|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.database.Library
Represents a group of tables in a relational database. A library is called a catalog on some system, or a schema on others.
Field Summary | |
static String |
className
|
static String |
KEY_SEPARATOR
|
Method Summary | |
static Library |
createLibrary(String pSystemAlias,
String pLibraryName)
Creates and returns a new Library using the given system url, library name, (a Library is only created if it doesn't already exist). |
Table |
createTable(String pTableName)
Returns the Table in this Library with the given name. |
Table |
createTable(String pTableName,
Class pTableClass)
Returns the Table in this Library with the given name. |
Map |
getAllTables()
Returns a Map of all the Tables in this Library. |
String |
getDBLibraryName()
Returns the name of this library in the database. |
static Library |
getDefaultLibrary(String pSystemAlias)
Returns the default Library for the given library name and system alias. |
static Map |
getLibraries(String pSystemAlias)
Returns a Map of Libraries for the specified system alias. |
static Library |
getLibrary(String pSystemAlias,
String pLibraryName)
Gets the Library with the given name for the DBSystem with the specified alias. |
static Library |
getLibrary(String pSystemAlias,
String pLibraryName,
boolean pCreate)
Returns the Library for the given library name and system alias. |
String |
getMetaDataSystemAlias()
Gets the alias of the system this Library's DBSystem uses for retrieving its meta data. |
String |
getName()
Returns the name of this library. |
DBSystem |
getSystem()
Returns the DBSystem to which this Library belongs. |
String |
getSystemAlias()
Returns the url of this Library's DBSystem. |
String |
getSystemURL()
Returns the url of this Library's DBSystem. |
Table |
getTable(String pTableName)
Returns the Table in this Library with the given name. |
Table |
getTable(String pTableName,
boolean pCreate)
Returns the Table in this Library with the given name. |
List |
getTableNames()
Gets a list of table names currently in the library instance. |
Map |
getTables()
Returns a Map of Table objects existing in this Library (May not be all of the tables in the database). |
StringBuffer |
getXMLData(StringBuffer pXMLData)
This returns a StringBuffer containing all necessary XML data for this object. |
boolean |
isDefault()
Tests if this library is the default library |
boolean |
isExistenceConfirmed()
Return whether or not this Table's existence in the database has been confirmed. |
boolean |
isHasAllTables()
|
boolean |
isShared()
Tests if this Library is the logical "shared" library |
Table |
removeTable(String pTableName)
Removes the Table with the given name. |
void |
startRetrieveAllTablesTask()
|
void |
taskCompleted(TaskEvent pTaskEvent)
Invoked when a task completes its execution. |
void |
taskFailed(TaskEvent pTaskEvent)
Invoked when a task fails while executing. |
void |
taskStarted(TaskEvent pTaskEvent)
Invoked when a task starts executing. |
String |
toString()
Returns the String representation of this Library. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String KEY_SEPARATOR
public static final String className
Method Detail |
public static Library createLibrary(String pSystemAlias, String pLibraryName)
pSystemAlias
- pLibraryName
-
public Table createTable(String pTableName)
pTableName
- String
public Table createTable(String pTableName, Class pTableClass)
public Map getAllTables() throws DataEngineException
DataEngineException
public String getDBLibraryName()
public static Library getDefaultLibrary(String pSystemAlias)
public static Map getLibraries(String pSystemAlias)
public static Library getLibrary(String pSystemAlias, String pLibraryName)
public static Library getLibrary(String pSystemAlias, String pLibraryName, boolean pCreate)
public String getMetaDataSystemAlias()
public String getName()
getName
in interface IDBObject
public DBSystem getSystem()
public String getSystemAlias()
public String getSystemURL()
public Table getTable(String pTableName)
public Table getTable(String pTableName, boolean pCreate)
public List getTableNames()
public Map getTables()
public StringBuffer getXMLData(StringBuffer pXMLData)
getXMLData
in interface IXMLObject
public boolean isDefault()
public boolean isExistenceConfirmed()
public boolean isHasAllTables()
public Table removeTable(String pTableName)
pTableName
- name of Table to remove
public void startRetrieveAllTablesTask()
public void taskCompleted(TaskEvent pTaskEvent)
taskCompleted
in interface ITaskListener
public void taskFailed(TaskEvent pTaskEvent)
taskFailed
in interface ITaskListener
public void taskStarted(TaskEvent pTaskEvent)
taskStarted
in interface ITaskListener
public String toString()
toString
in class Object
public boolean isShared()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |