|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object PersistenceMap DatabaseMap
DatabaseMap encapsulates the metadata which describes a database in a persistence environment and manages a pool of connections associated with the database. The metadata includes the database name, URL, username, password, locking style, and a collection of table identifiers.
Field Summary | |
static short |
LK_MSS
|
static short |
LK_MYSQL
|
static short |
LK_NONE
|
static short |
LK_ORACLE
|
Method Summary | |
boolean |
contains(Vector v)
Returns true if this database contains all tables listed in the specified vector. |
short |
databaseID()
Returns the identifier for this database. |
boolean |
equals(Object o)
Returns true if the specified database has the same identifier as this database. |
TableMap |
find(short id)
Returns the table matching the specified table identifier if it exists in this database. |
TableMap |
find(Short key)
Returns the table matching the specified key if it exists in this database. |
TableMap |
find(String name)
Returns the table matching the specified name if it exists in this database. |
short |
lockStyle()
Returns the locking style for this database. |
void |
outputXML(PrintWriter out)
Output an XML representation of this database on the specified print writer. |
void |
show()
Output a description of this database on stdout. |
String |
url()
Returns the URL for this database. |
Methods inherited from class PersistenceMap |
hashCode, manager, name, toString |
Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final short LK_NONE
public static final short LK_MSS
public static final short LK_MYSQL
public static final short LK_ORACLE
Method Detail |
public boolean contains(Vector v)
v
- the list of tables to check.
public TableMap find(String name)
name
- the name of the table to find.
public TableMap find(short id)
id
- the identifier of the table to be found.
public TableMap find(Short key)
key
- the key of the table to find.
public void outputXML(PrintWriter out)
out
- the print writer to use for all output.public void show()
public short databaseID()
public short lockStyle()
public String url()
public boolean equals(Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |