|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.db.Datastore
public class Datastore
Main entry point for getting connections to the store database. This allows us to do our own connection pooling.
Field Summary | |
---|---|
static int |
DBTYPE
|
static int |
DBTYPE_DB2
|
static int |
DBTYPE_ORA
|
static int |
DBTYPE_SQLS
|
static int |
DBTYPE_SYBASE
|
static java.lang.String |
PROP_DBG
|
static java.lang.String |
PROP_LOGSQL
|
static java.lang.String |
PROP_POOLSTMT
|
static java.lang.String |
PROP_TRC
|
static java.lang.String |
resolvedDB
|
Constructor Summary | |
---|---|
Datastore()
|
Method Summary | |
---|---|
static void |
checkAndLoadInitXML()
|
static java.sql.Connection |
getConnection()
Gets a connection from the global database connection pool. |
static java.util.Locale |
getLocale()
For internal use only |
static com.wm.data.IData |
getPoolInfo()
|
static com.wm.jdbc.IJDBCConnPool |
getTNPool()
For internal use only |
static int[] |
getVersion()
|
static java.sql.Connection |
handleSQLException(java.sql.Connection conn,
java.lang.Throwable t)
For internal use only |
static void |
init(java.io.File srv_dir,
java.util.Locale loc)
For internal use only |
static boolean |
isArchivingEnabled()
|
static boolean |
isEmbedded()
|
static boolean |
isInitialized()
For internal use only |
static boolean |
isOffLine()
For internal use only |
static void |
releaseConnection(java.sql.Connection conn)
Release a connection back to the pool. |
static void |
setArchivingEnabled()
|
static void |
setOffLine(boolean mode)
For internal use only |
static boolean |
setVersion(int major,
int minor)
For internal use only |
static void |
shutdown()
For internal use only |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_DBG
public static final java.lang.String PROP_TRC
public static final java.lang.String PROP_POOLSTMT
public static final java.lang.String PROP_LOGSQL
public static final int DBTYPE_ORA
public static final int DBTYPE_SQLS
public static final int DBTYPE_SYBASE
public static final int DBTYPE_DB2
public static int DBTYPE
public static java.lang.String resolvedDB
Constructor Detail |
---|
public Datastore()
Method Detail |
---|
public static void init(java.io.File srv_dir, java.util.Locale loc) throws DatastoreException
DatastoreException
public static void shutdown()
public static boolean isEmbedded()
public static int[] getVersion()
public static boolean setVersion(int major, int minor) throws java.sql.SQLException
java.sql.SQLException
public static void setOffLine(boolean mode)
public static boolean isOffLine()
public static final java.sql.Connection getConnection() throws java.sql.SQLException
java.sql.SQLException
public static void releaseConnection(java.sql.Connection conn)
conn
- the connection to returnpublic static java.util.Locale getLocale()
public static boolean isInitialized()
public static com.wm.jdbc.IJDBCConnPool getTNPool()
public static com.wm.data.IData getPoolInfo()
public static java.sql.Connection handleSQLException(java.sql.Connection conn, java.lang.Throwable t)
public static void checkAndLoadInitXML() throws DatastoreException
DatastoreException
public static boolean isArchivingEnabled()
public static void setArchivingEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |