|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.execute.JarUtil
Field Summary | |
static java.lang.String |
ADD_JAR_DDL
|
private DataDictionary |
dd
|
private DataDescriptorGenerator |
ddg
|
static java.lang.String |
DROP_JAR_DDL
|
private FileResource |
fr
|
private UUID |
id
|
private LanguageConnectionContext |
lcc
|
static java.lang.String |
READ_JAR
|
static java.lang.String |
REPLACE_JAR_DDL
|
private java.lang.String |
schemaName
|
private java.lang.String |
sqlName
|
Constructor Summary | |
JarUtil(UUID id,
java.lang.String schemaName,
java.lang.String sqlName)
|
Method Summary | |
long |
add(java.io.InputStream is)
Add a jar file to the current connection's database. |
static long |
add(UUID id,
java.lang.String schemaName,
java.lang.String sqlName,
java.lang.String externalPath)
Add a jar file to the current connection's database. |
void |
drop(boolean purgeOnCommit)
Drop a jar file from the current connection's database. |
static void |
drop(UUID id,
java.lang.String schemaName,
java.lang.String sqlName,
boolean purgeOnCommit)
Drop a jar file from the current connection's database. |
private StorageFile |
getAsFile(long generationId)
|
static java.lang.Object |
getAsObject(java.lang.String schemaName,
java.lang.String sqlName)
|
private java.io.InputStream |
getAsStream(long generationId)
|
static java.io.InputStream |
getAsStream(java.lang.String schemaName,
java.lang.String sqlName,
long generationId)
|
private FileInfoDescriptor |
getInfo()
Get the FileInfoDescriptor for the Jar file or null if it does not exist. |
static FileInfoDescriptor |
getInfo(java.lang.String schemaName,
java.lang.String sqlName,
java.lang.String statementType)
Get the FileInfoDescriptor for a jar file from the current connection's database or null if it does not exist. |
private void |
notifyLoader(boolean reload)
|
long |
replace(java.io.InputStream is,
boolean purgeOnCommit)
Replace a jar file in the current connection's database with the content of an external file. |
static long |
replace(UUID id,
java.lang.String schemaName,
java.lang.String sqlName,
java.lang.String externalPath,
boolean purgeOnCommit)
Replace a jar file from the current connection's database with the content of an external file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ADD_JAR_DDL
public static final java.lang.String DROP_JAR_DDL
public static final java.lang.String REPLACE_JAR_DDL
public static final java.lang.String READ_JAR
private UUID id
private java.lang.String schemaName
private java.lang.String sqlName
private LanguageConnectionContext lcc
private FileResource fr
private DataDictionary dd
private DataDescriptorGenerator ddg
Constructor Detail |
public JarUtil(UUID id, java.lang.String schemaName, java.lang.String sqlName) throws StandardException
Method Detail |
public static long add(UUID id, java.lang.String schemaName, java.lang.String sqlName, java.lang.String externalPath) throws StandardException
id
- The id for the jar file we add. If null this makes up a new id.schemaName
- the name for the schema that holds the jar file.sqlName
- the sql name for the jar file.externalPath
- the path for the jar file to add.
StandardException
- Oppspublic long add(java.io.InputStream is) throws StandardException
The reason for adding the jar file in this private instance method is that it allows us to share set up logic with drop and replace.
is
- A stream for reading the content of the file to add.
StandardException
- Oppspublic static void drop(UUID id, java.lang.String schemaName, java.lang.String sqlName, boolean purgeOnCommit) throws StandardException
id
- The id for the jar file we drop. Ignored if null.schemaName
- the name for the schema that holds the jar file.sqlName
- the sql name for the jar file.purgeOnCommit
- True means purge the old jar file on commit. False
means leave it around for use by replication.
StandardException
- Oppspublic void drop(boolean purgeOnCommit) throws StandardException
The reason for dropping the jar file in this private instance method is that it allows us to share set up logic with add and replace.
purgeOnCommit
- True means purge the old jar file on commit. False
means leave it around for use by replication.
StandardException
- Oppspublic static long replace(UUID id, java.lang.String schemaName, java.lang.String sqlName, java.lang.String externalPath, boolean purgeOnCommit) throws StandardException
id
- The id for the jar file we add. Ignored if null.schemaName
- the name for the schema that holds the jar file.sqlName
- the sql name for the jar file.externalPath
- the path for the jar file to add.purgeOnCommit
- True means purge the old jar file on commit. False
means leave it around for use by replication.
StandardException
- Oppspublic long replace(java.io.InputStream is, boolean purgeOnCommit) throws StandardException
The reason for adding the jar file in this private instance method is that it allows us to share set up logic with add and drop.
is
- An input stream for reading the new content of the jar file.purgeOnCommit
- True means purge the old jar file on commit. False
means leave it around for use by replication.
StandardException
- Oppspublic static FileInfoDescriptor getInfo(java.lang.String schemaName, java.lang.String sqlName, java.lang.String statementType) throws StandardException
schemaName
- the name for the schema that holds the jar file.sqlName
- the sql name for the jar file.
StandardException
- Oppsprivate FileInfoDescriptor getInfo() throws StandardException
StandardException
- Ooopspublic static java.lang.Object getAsObject(java.lang.String schemaName, java.lang.String sqlName) throws StandardException
StandardException
private StorageFile getAsFile(long generationId)
public static java.io.InputStream getAsStream(java.lang.String schemaName, java.lang.String sqlName, long generationId) throws StandardException
StandardException
private java.io.InputStream getAsStream(long generationId) throws StandardException
StandardException
private void notifyLoader(boolean reload) throws StandardException
StandardException
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |