org.apache.tools.ant.taskdefs.optional.oraclejava
Class oraclejavaBase

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.taskdefs.optional.oraclejava.oraclejavaBase
Direct Known Subclasses:
OracleDropJava, OracleLoadJava

public class oraclejavaBase
extends org.apache.tools.ant.Task

Title: oraclejavaBase

Description: The Base Class for Ant Oracle Java Task Utilities

Version:
0.2
Author:
Nicholas Whitehead (nwhitehe@yahoo.com)

Field Summary
protected  int argCnt
          The count of arguments to the Oracle Command
protected  java.util.TreeMap args
          Container for arguments to the Oracle Command
protected  java.lang.String debug
          Holder for the debug option
protected  java.lang.String definer
          Holder for the definer option
protected  java.lang.String encoding
          Holder for the encoding option
protected  java.lang.String fileOut
          Holder for the fileout option
protected  java.util.TreeMap files
          Container for files and resources to be loaded
protected  java.lang.String force
          Holder for the force option
protected  int grantCnt
          The count of grants to be issued
protected  java.util.TreeMap grants
          Container for user grants to be issued
protected  boolean isGrants
          Indicates that grants will be issued on the loaded files or resources
protected  boolean isOci
          Indicates if oci selection has been made
protected  boolean isThin
          Indicates if thin selection has been made
protected  java.lang.String jarasresource
          Holder for the jarasresource option
protected  java.lang.String loadFile
          Holder for the loadFile option -- What is the load file ?
protected  int loadFileCnt
          The count of files or resources to be loaded
protected  java.lang.String noserverside
          Holder for the noserverside option
protected  java.lang.String noverify
          Holder for the noverfiy option
protected  java.lang.String oci8
          Holder for the oci8 option
protected  java.lang.String resolve
          Holder for the resolve option
protected  java.lang.String resolver
          Holder for the resolver option
protected  java.lang.String schema
          Holder for the schema option
protected  java.lang.String stdOut
          Holder for the stdOut option
protected  java.lang.String synonym
          Holder for the synonym option
protected  java.lang.String tableschema
          Holder for the tableschema option
protected  java.lang.String thin
          Holder for the thin option
protected  java.lang.String time
          Holder for the time option
protected  java.lang.String unresolvedok
          Holder for the unresolvedok option
protected  java.lang.String user
          Holder for the user option
protected  java.lang.String verbose
          Holder for the verbose option
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
oraclejavaBase()
           
 
Method Summary
 void addArg(java.lang.String arg)
          Adds an arugment to be submitted to Load/Drop Java
 void addConfiguredFileSet(org.apache.tools.ant.types.FileSet fileSet)
          Adds files in the pattern set to the files TreeMap and increments the load file count
 void addFile(java.lang.String file)
          Adds a file to be submitted to Load/Drop Java and increments the load file count
 void setDebug(java.lang.String debug)
          Turns on SQL logging in the loaded class.
 void setDefiner(java.lang.String definer)
          Sets the definer of the loaded resources
 void setEncoding(java.lang.String encoding)
          Sets the encoding type of the loaded resources
 void setFileOut(java.lang.String fileOut)
          Redirects all the output from the loadjava process to a file.
 void setForce(java.lang.String force)
          Sets the force option, forcing a resource to be loaded even if it is determined it is already loaded.
 void setJarasresource(java.lang.String jarasresource)
          If set, resources in a loaded jar file will not be unpacked.
 void setNoserverside(java.lang.String noserverside)
          Forces the access to server side objects to be accessed using the JDBC driver at the cost of performance
 void setNoverify(java.lang.String noverify)
          Sets the option so Classes will be loaded with no bytecode verification.
 void setOci(java.lang.String oci)
          Synonym to setOci8
 void setOci8(java.lang.String oci8)
          Sets the option to use OCI instead of THIN to connect to the database
 void setResolve(java.lang.String resolve)
          If set to on, classes will be resolved in a seconds pass after load.
 void setResolver(java.lang.String resolver)
          Specifies a resolving specificaion for newly loaded classes.
 void setSchema(java.lang.String schema)
          Set the schema into whihc resources will be loaded
 void setStdOut(java.lang.String stdOut)
          Sends stderr output to stdout.
 void setSynonym(java.lang.String synonym)
          Creates PUBLIC synonyms for all the loaded resources
 void setTableschema(java.lang.String tableschema)
          Creates loadjava internal tables in the specified schema instead of the schema of the loading user.
 void setThin(java.lang.String thin)
          Sets the option to use THIN instead of OCI to connect to the database
 void setTime(java.lang.String time)
          Places a timestamp message on all output messages.
 void setUnresolvedok(java.lang.String unresolvedok)
          If specified with resolve will ignore all unresolved errors.
 void setUser(java.lang.String user)
          Specifies a connect string eg.
 void setVerbose(java.lang.String verbose)
          Prints detailed status messages to stdout.
 
Methods inherited from class org.apache.tools.ant.Task
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

files

protected java.util.TreeMap files
Container for files and resources to be loaded

args

protected java.util.TreeMap args
Container for arguments to the Oracle Command

grants

protected java.util.TreeMap grants
Container for user grants to be issued

loadFileCnt

protected int loadFileCnt
The count of files or resources to be loaded

argCnt

protected int argCnt
The count of arguments to the Oracle Command

grantCnt

protected int grantCnt
The count of grants to be issued

isGrants

protected boolean isGrants
Indicates that grants will be issued on the loaded files or resources

definer

protected java.lang.String definer
Holder for the definer option

encoding

protected java.lang.String encoding
Holder for the encoding option

force

protected java.lang.String force
Holder for the force option

fileOut

protected java.lang.String fileOut
Holder for the fileout option

noverify

protected java.lang.String noverify
Holder for the noverfiy option

oci8

protected java.lang.String oci8
Holder for the oci8 option

resolve

protected java.lang.String resolve
Holder for the resolve option

resolver

protected java.lang.String resolver
Holder for the resolver option

schema

protected java.lang.String schema
Holder for the schema option

synonym

protected java.lang.String synonym
Holder for the synonym option

thin

protected java.lang.String thin
Holder for the thin option

time

protected java.lang.String time
Holder for the time option

tableschema

protected java.lang.String tableschema
Holder for the tableschema option

user

protected java.lang.String user
Holder for the user option

verbose

protected java.lang.String verbose
Holder for the verbose option

loadFile

protected java.lang.String loadFile
Holder for the loadFile option -- What is the load file ?

debug

protected java.lang.String debug
Holder for the debug option

noserverside

protected java.lang.String noserverside
Holder for the noserverside option

jarasresource

protected java.lang.String jarasresource
Holder for the jarasresource option

unresolvedok

protected java.lang.String unresolvedok
Holder for the unresolvedok option

stdOut

protected java.lang.String stdOut
Holder for the stdOut option

isOci

protected boolean isOci
Indicates if oci selection has been made

isThin

protected boolean isThin
Indicates if thin selection has been made
Constructor Detail

oraclejavaBase

public oraclejavaBase()
Method Detail

addConfiguredFileSet

public void addConfiguredFileSet(org.apache.tools.ant.types.FileSet fileSet)
Adds files in the pattern set to the files TreeMap and increments the load file count
Parameters:
fileSet - The fileset identified by the patternset

addArg

public void addArg(java.lang.String arg)
Adds an arugment to be submitted to Load/Drop Java
Parameters:
arg - The argument

addFile

public void addFile(java.lang.String file)
Adds a file to be submitted to Load/Drop Java and increments the load file count
Parameters:
arg - The file name

setDefiner

public void setDefiner(java.lang.String definer)
Sets the definer of the loaded resources
Parameters:
definer - The username of the definer

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the encoding type of the loaded resources
Parameters:
encoding - A valid encoding type

setForce

public void setForce(java.lang.String force)
Sets the force option, forcing a resource to be loaded even if it is determined it is already loaded.
Parameters:
force - String on or off

setNoverify

public void setNoverify(java.lang.String noverify)
Sets the option so Classes will be loaded with no bytecode verification.
Parameters:
noverify - String on or off

setOci8

public void setOci8(java.lang.String oci8)
Sets the option to use OCI instead of THIN to connect to the database
Parameters:
oci8 - String on or off. Mandatory unless THIN is used

setOci

public void setOci(java.lang.String oci)
Synonym to setOci8
Parameters:
oci - String on or off. Mandatory unless THIN is used

setResolve

public void setResolve(java.lang.String resolve)
If set to on, classes will be resolved in a seconds pass after load. If set to immediate or off, will be resolved immediately on load.
Parameters:
resolve - String on, off or immediate

setResolver

public void setResolver(java.lang.String resolver)
Specifies a resolving specificaion for newly loaded classes.
Parameters:
resolver - A resolving specificaion

setSchema

public void setSchema(java.lang.String schema)
Set the schema into whihc resources will be loaded
Parameters:
schema - The name of a valid schema

setSynonym

public void setSynonym(java.lang.String synonym)
Creates PUBLIC synonyms for all the loaded resources
Parameters:
synonym - String on or off

setThin

public void setThin(java.lang.String thin)
Sets the option to use THIN instead of OCI to connect to the database
Parameters:
thin - String on or off. Mandatory unless OCI is used

setTableschema

public void setTableschema(java.lang.String tableschema)
Creates loadjava internal tables in the specified schema instead of the schema of the loading user.
Parameters:
tableschema - The name of a valid schema

setUser

public void setUser(java.lang.String user)
Specifies a connect string eg. thin: SCOTT/TIGER@localhost:1521:NICKMAN eg. oci: SCOTT/TIGER@LOCAL
Parameters:
user - A mandatory connect string to the database

setVerbose

public void setVerbose(java.lang.String verbose)
Prints detailed status messages to stdout.
Parameters:
verbose - String on or off

setDebug

public void setDebug(java.lang.String debug)
Turns on SQL logging in the loaded class.
Parameters:
debug - String on or off

setNoserverside

public void setNoserverside(java.lang.String noserverside)
Forces the access to server side objects to be accessed using the JDBC driver at the cost of performance
Parameters:
noserverside - String on or off

setJarasresource

public void setJarasresource(java.lang.String jarasresource)
If set, resources in a loaded jar file will not be unpacked.
Parameters:
jarasresource - String on or off

setFileOut

public void setFileOut(java.lang.String fileOut)
Redirects all the output from the loadjava process to a file.
Parameters:
fileOut - A valid writable file name

setStdOut

public void setStdOut(java.lang.String stdOut)
Sends stderr output to stdout.
Parameters:
stdOut - String on or off

setTime

public void setTime(java.lang.String time)
Places a timestamp message on all output messages.
Parameters:
time - String on or off

setUnresolvedok

public void setUnresolvedok(java.lang.String unresolvedok)
If specified with resolve will ignore all unresolved errors.
Parameters:
unresolvedok - String on or off