org.apache.derby.impl.sql.execute
Class JarUtil
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.JarUtil
-
public class JarUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voiddrop(LanguageConnectionContext lcc, java.lang.String schemaName, java.lang.String sqlName)Drop a jar file from the current connection's database.static longinstall(LanguageConnectionContext lcc, java.lang.String schemaName, java.lang.String sqlName, java.lang.String externalPath)install a jar file to the current connection's database.static java.lang.StringmkExternalName(UUID id, java.lang.String schemaName, java.lang.String sqlName, char separatorChar)Make an external name for a jar file stored in the database.static longreplace(LanguageConnectionContext lcc, java.lang.String schemaName, java.lang.String sqlName, java.lang.String externalPath)Replace a jar file from the current connection's database with the content of an external file.static voidupgradeJar(TransactionController tc, FileInfoDescriptor fid)Upgrade code: upgrade one jar file to new style (>= 10.9)
-
-
-
Method Detail
-
install
public static long install(LanguageConnectionContext lcc, java.lang.String schemaName, java.lang.String sqlName, java.lang.String externalPath) throws StandardException
install a jar file to the current connection's database.- Parameters:
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.- Returns:
- The generationId for the jar file we add.
- Throws:
StandardException- Opps
-
drop
public static void drop(LanguageConnectionContext lcc, java.lang.String schemaName, java.lang.String sqlName) throws StandardException
Drop a jar file from the current connection's database.- Parameters:
schemaName- the name for the schema that holds the jar file.sqlName- the sql name for the jar file.- Throws:
StandardException- Opps
-
replace
public static long replace(LanguageConnectionContext lcc, java.lang.String schemaName, java.lang.String sqlName, java.lang.String externalPath) throws StandardException
Replace a jar file from the current connection's database with the content of an external file.- Parameters:
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.- Returns:
- The new generationId for the jar file we replace.
- Throws:
StandardException- Opps
-
mkExternalName
public static java.lang.String mkExternalName(UUID id, java.lang.String schemaName, java.lang.String sqlName, char separatorChar) throws StandardException
Make an external name for a jar file stored in the database.- Throws:
StandardException
-
upgradeJar
public static void upgradeJar(TransactionController tc, FileInfoDescriptor fid) throws StandardException
Upgrade code: upgrade one jar file to new style (>= 10.9)- Parameters:
tc- transaction controllerfid- the jar file to be upgraded- Throws:
StandardException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG