| java.lang.Object org.apache.derby.impl.sql.execute.JarUtil
JarUtil | public class JarUtil (Code) | | |
Method Summary | |
public static long | add(UUID id, String schemaName, String sqlName, String externalPath) Add a jar file to the current connection's database.
Parameters: id - The id for the jar file we add. | public long | add(InputStream is) Add a jar file to the current connection's database. | public static void | drop(UUID id, String schemaName, String sqlName, boolean purgeOnCommit) Drop a jar file from the current connection's database.
Parameters: id - The id for the jar file we drop. | public void | drop(boolean purgeOnCommit) Drop a jar file from the current connection's database.
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.
Parameters: purgeOnCommit - True means purge the old jar file on commit. | public static Object | getAsObject(String schemaName, String sqlName) | public static InputStream | getAsStream(String schemaName, String sqlName, long generationId) | public static FileInfoDescriptor | getInfo(String schemaName, String sqlName, String statementType) Get the FileInfoDescriptor for a jar file from the current connection's database or
null if it does not exist.
Parameters: schemaName - the name for the schema that holds the jar file. Parameters: sqlName - the sql name for the jar file. | public static long | replace(UUID id, String schemaName, String sqlName, String externalPath, boolean purgeOnCommit) Replace a jar file from the current connection's database with the content of an
external file. | public long | replace(InputStream is, boolean purgeOnCommit) Replace a jar file in the current connection's database with the
content of an external file.
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.
Parameters: is - An input stream for reading the new content of the jar file. Parameters: purgeOnCommit - True means purge the old jar file on commit. |
REPLACE_JAR_DDL | final public static String REPLACE_JAR_DDL(Code) | | |
add | public static long add(UUID id, String schemaName, String sqlName, String externalPath) throws StandardException(Code) | | Add a jar file to the current connection's database.
Parameters: id - The id for the jar file we add. If null this makes up a new id. Parameters: schemaName - the name for the schema that holds the jar file. Parameters: sqlName - the sql name for the jar file. Parameters: externalPath - the path for the jar file to add. The generationId for the jar file we add. exception: StandardException - Opps |
add | public long add(InputStream is) throws StandardException(Code) | | Add a jar file to the current connection's database.
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.
Parameters: is - A stream for reading the content of the file to add. exception: StandardException - Opps |
drop | public static void drop(UUID id, String schemaName, String sqlName, boolean purgeOnCommit) throws StandardException(Code) | | Drop a jar file from the current connection's database.
Parameters: id - The id for the jar file we drop. Ignored if null. Parameters: schemaName - the name for the schema that holds the jar file. Parameters: sqlName - the sql name for the jar file. Parameters: purgeOnCommit - True means purge the old jar file on commit. Falsemeans leave it around for use by replication. exception: StandardException - Opps |
drop | public void drop(boolean purgeOnCommit) throws StandardException(Code) | | Drop a jar file from the current connection's database.
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.
Parameters: purgeOnCommit - True means purge the old jar file on commit. Falsemeans leave it around for use by replication. exception: StandardException - Opps |
getInfo | public static FileInfoDescriptor getInfo(String schemaName, String sqlName, String statementType) throws StandardException(Code) | | Get the FileInfoDescriptor for a jar file from the current connection's database or
null if it does not exist.
Parameters: schemaName - the name for the schema that holds the jar file. Parameters: sqlName - the sql name for the jar file. The FileInfoDescriptor. exception: StandardException - Opps |
replace | public static long replace(UUID id, String schemaName, String sqlName, String externalPath, boolean purgeOnCommit) throws StandardException(Code) | | Replace a jar file from the current connection's database with the content of an
external file.
Parameters: id - The id for the jar file we add. Ignored if null. Parameters: schemaName - the name for the schema that holds the jar file. Parameters: sqlName - the sql name for the jar file. Parameters: externalPath - the path for the jar file to add. Parameters: purgeOnCommit - True means purge the old jar file on commit. Falsemeans leave it around for use by replication. The new generationId for the jar file we replace. exception: StandardException - Opps |
replace | public long replace(InputStream is, boolean purgeOnCommit) throws StandardException(Code) | | Replace a jar file in the current connection's database with the
content of an external file.
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.
Parameters: is - An input stream for reading the new content of the jar file. Parameters: purgeOnCommit - True means purge the old jar file on commit. Falsemeans leave it around for use by replication. exception: StandardException - Opps |
|
|