|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.props.AbstractPropsContainer
com.cometway.props.PropsContainer
com.cometway.jdbc.JDBCPropsContainer
public class JDBCPropsContainer
| Field Summary | |
|---|---|
protected JDBCConnectionDriver |
connectionMgr
|
protected java.lang.String |
name
|
protected java.lang.String |
table
|
| Constructor Summary | |
|---|---|
JDBCPropsContainer(JDBCConnectionDriver connectionDriver,
java.util.Vector objectWriterThreads,
java.lang.String table,
java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
copy(IPropsContainer ipc)
Copies the data from this JDBCPropsContainer to the one passed in as an argument. |
static boolean |
createTable(JDBCConnectionDriver connectionMgr,
java.lang.String name)
Creates a table in the database using a connection from the connection pool. |
static boolean |
dropTable(JDBCConnectionDriver connectionMgr,
java.lang.String name)
Drops a table from the database. |
java.util.Enumeration |
enumerateProps()
Returns an enumeration of the keys for this container. |
java.lang.Object |
getProperty(java.lang.String key)
Returns a reference to a named object in the container. |
static java.lang.String |
getStatus()
Returns a string containing current status information about JDBCPropsContainer performance. |
boolean |
removeProperty(java.lang.String key)
Removes a named object from the container. |
static void |
setDebug(boolean state)
Enables debugging messages that are printed to the System.out stream. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Adds a named object to the container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JDBCConnectionDriver connectionMgr
protected java.lang.String table
protected java.lang.String name
| Constructor Detail |
|---|
public JDBCPropsContainer(JDBCConnectionDriver connectionDriver,
java.util.Vector objectWriterThreads,
java.lang.String table,
java.lang.String name)
connectionDriver - The JDBCConnectionDriver to use for DB connections.objectWriterThreads - The ThreadPool to use when performing lazy writestable - The name of the table in the database where these
props are stored.name - The name of this props.| Method Detail |
|---|
public void copy(IPropsContainer ipc)
copy in interface IPropsContainercopy in class PropsContaineripc - The props to copy into.public java.util.Enumeration enumerateProps()
PropsContainer
enumerateProps in interface IPropsContainerenumerateProps in class PropsContainerpublic java.lang.Object getProperty(java.lang.String key)
PropsContainer
getProperty in interface IPropsContainergetProperty in class PropsContainerkey - the name of the object to retrieve.
public boolean removeProperty(java.lang.String key)
PropsContainer
removeProperty in interface IPropsContainerremoveProperty in class PropsContainerkey - the name of the object to remove.
public void setProperty(java.lang.String key,
java.lang.Object value)
PropsContainer
setProperty in interface IPropsContainersetProperty in class PropsContainerkey - the name of the obejct to add.value - the object to add.
public static boolean createTable(JDBCConnectionDriver connectionMgr,
java.lang.String name)
connectionMgr - The connectionManager to get a pooled connection from.name - The name of the table to create.
public static boolean dropTable(JDBCConnectionDriver connectionMgr,
java.lang.String name)
connectionMgr - The connectionManager to get a pooled DB connection from.name - The name of the table to drop.public static java.lang.String getStatus()
public static void setDebug(boolean state)
state - true enables debugging; false disables it.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||