com.intersys.objects
Class DatabaseUtilities
java.lang.Object
com.intersys.objects.DatabaseUtilities
- public class DatabaseUtilities
- extends Object
DatabaseUtilities.java
Created: Sat Oct 27 10:42:56 2001
Method Summary |
String |
compileCacheClass(String className,
String flags)
|
static void |
compileJavaClass(String srcFile,
String sourcepath,
String addClassPath,
String targetDir)
|
static void |
compileJavaClass(String srcFile,
String sourcepath,
String addClassPath,
String targetDir,
PrintStream out)
|
static void |
compileJavaClasses(String[] srcFiles,
String sourcepath,
String addClassPath,
String targetDir)
|
static void |
compileJavaClasses(String[] srcFiles,
String sourcepath,
String addClassPath,
String targetDir,
PrintStream out)
|
void |
exportClass(String className,
String outFile,
String flags,
boolean cdl)
Exports class (or classes) to XML or CDL format file. |
void |
exportClassRemote(String className,
String outFile,
String flags,
boolean cdl)
|
static File |
findFile(File scratch,
String name,
String ext)
|
String[] |
generateClass(String cacheClassName,
String outDir)
|
String[] |
generateClass(String cacheClassName,
String outDir,
String flags)
|
String[] |
importClass(String classDefinitionFile,
String flags)
|
void |
importDir(String dirPath,
String flags)
|
String[] |
loadRemoteFile(String classDefinitionFile,
String flags)
|
int |
populateClass(String className,
int numberOfInstances)
|
DatabaseUtilities
public DatabaseUtilities(Database db)
generateClass
public String[] generateClass(String cacheClassName,
String outDir)
throws CacheException,
IOException
- Throws:
CacheException
IOException
generateClass
public String[] generateClass(String cacheClassName,
String outDir,
String flags)
throws CacheException,
IOException
- Throws:
CacheException
IOException
importClass
public String[] importClass(String classDefinitionFile,
String flags)
throws CacheException
- Throws:
CacheException
loadRemoteFile
public String[] loadRemoteFile(String classDefinitionFile,
String flags)
throws CacheException
- Throws:
CacheException
compileCacheClass
public String compileCacheClass(String className,
String flags)
throws CacheException
- Throws:
CacheException
exportClass
public void exportClass(String className,
String outFile,
String flags,
boolean cdl)
throws CacheException
- Exports class (or classes) to XML or CDL format file.
- Parameters:
className
- Name of the class to export or several comma
separated names.outFile
- File name to write result.flags
- Flags to pass to export routine.cdl
- if true, then exports to CDL format, otehrwise
exports to XML format.
- Throws:
CacheException
exportClassRemote
public void exportClassRemote(String className,
String outFile,
String flags,
boolean cdl)
throws CacheException
- Throws:
CacheException
populateClass
public int populateClass(String className,
int numberOfInstances)
throws CacheException
- Throws:
CacheException
importDir
public void importDir(String dirPath,
String flags)
throws CacheException
- Throws:
CacheException
compileJavaClasses
public static void compileJavaClasses(String[] srcFiles,
String sourcepath,
String addClassPath,
String targetDir)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
compileJavaClasses
public static void compileJavaClasses(String[] srcFiles,
String sourcepath,
String addClassPath,
String targetDir,
PrintStream out)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
compileJavaClass
public static void compileJavaClass(String srcFile,
String sourcepath,
String addClassPath,
String targetDir)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
compileJavaClass
public static void compileJavaClass(String srcFile,
String sourcepath,
String addClassPath,
String targetDir,
PrintStream out)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
findFile
public static File findFile(File scratch,
String name,
String ext)
throws ClassNotFoundException
- Throws:
ClassNotFoundException