public class DatabaseConnection extends DatabaseUtils
BOOL, BYTE, DATE, DOUBLE, EXP_INDEX_TABLE, EXP_RESULT_COL, EXP_RESULT_PREFIX, EXP_SETUP_COL, EXP_TYPE_COL, FLOAT, INTEGER, LONG, PROPERTY_FILE, SHORT, STRING, TEXT, TIME, TIMESTAMP
Constructor and Description |
---|
DatabaseConnection()
Sets up the database drivers.
|
DatabaseConnection(java.io.File propsFile)
Reads the properties from the specified file and sets up the database drivers.
|
DatabaseConnection(java.util.Properties props)
Uses the specified properties to set up the database drivers.
|
Modifier and Type | Method and Description |
---|---|
java.sql.DatabaseMetaData |
getMetaData()
Gets meta data for the database connection object.
|
java.util.Properties |
getProperties()
Returns the underlying properties object.
|
java.lang.String |
getRevision()
Returns the revision string.
|
int |
getUpdateCount()
Dewtermines if the current query retrieves a result set or updates a table
|
boolean |
getUpperCase()
Check if the property checkUpperCaseNames in the DatabaseUtils file is
set to true or false.
|
arrayToString, attributeCaseFix, close, close, connectToDatabase, createExperimentIndex, createExperimentIndexEntry, createResultsTable, databaseURLTipText, debugTipText, disconnectFromDatabase, execute, experimentIndexExists, getDatabaseURL, getDebug, getKeywords, getKeywordsMaskChar, getPassword, getResultFromTable, getResultSet, getResultsTableName, getSupportedCursorScrollType, getUsername, initialize, initialize, isConnected, isCursorScrollable, isCursorScrollSensitive, isKeyword, maskKeyword, passwordTipText, processKeyString, putResultInTable, select, setDatabaseURL, setDebug, setKeywords, setKeywordsMaskChar, setPassword, setUsername, tableExists, translateDBColumnType, typeName, update, usernameTipText
public DatabaseConnection() throws java.lang.Exception
java.lang.Exception
- if an error occurspublic DatabaseConnection(java.io.File propsFile) throws java.lang.Exception
propsFile
- the props file to load, ignored if null or pointing
to a directoryjava.lang.Exception
- if an error occurspublic DatabaseConnection(java.util.Properties props) throws java.lang.Exception
props
- the properties to use, ignored if nulljava.lang.Exception
- if an error occurspublic java.util.Properties getProperties()
public boolean getUpperCase()
public java.sql.DatabaseMetaData getMetaData() throws java.lang.Exception
java.lang.Exception
- if an error occurspublic int getUpdateCount() throws java.sql.SQLException
java.sql.SQLException
- if an error occurspublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class DatabaseUtils