|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.scm.DerbyUtils
public class DerbyUtils
This class provides certain utility functions for working with the embedded derby database
| Field Summary | |
|---|---|
static String |
AUTHOR_SELECT
|
static String |
BASELINE_SELECT
|
static String |
CHECKSUM_UPDATE
|
static String |
CREATE_NAME_INDEX
|
static String |
CREATE_PROJECT_TABLE
|
static String |
DELTA_SELECT
|
static String |
DERBY_DB_FOLDER
|
static String |
DERBY_DRIVER
|
static String |
DERBY_SYS_HOME_PROPERTY
|
static String |
DIR_SELECT
|
static String |
DROP_NAME_INDEX
|
static String |
DROP_PROJECT_TABLE
|
static String |
INSERT_MEMBER_RECORD
|
static String |
PROJECT_SELECT
|
static String |
SELECT_MEMBER_1
|
| Constructor Summary | |
|---|---|
DerbyUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
createCMProjectTables(Connection db)
Establishes a fresh set of Integrity SCM cache tables |
static Connection |
createDBConnection(File path)
Opens a connection to the derby database represented with the File 'path' |
static CM_PROJECT |
getEnum(String name)
Returns the CM_PROJECT column name for the string column name |
static int |
getRowCount(ResultSet rs)
This function provides a count of the total number of rows in the ResultSet |
static Hashtable<CM_PROJECT,Object> |
getRowData(ResultSet rs)
Convenience function that converts a result set row into a Hashtable for easy access |
static void |
loadDerbyDriver()
Utility function to load the Java DB Driver |
static void |
setDerbySystemDir(File dir)
Utility function that sets the derby DB home |
static void |
shutdownDB(File path)
Shuts down the embedded derby database represented with the File 'path' |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DERBY_DRIVER
public static final String DERBY_SYS_HOME_PROPERTY
public static final String DERBY_DB_FOLDER
public static final String CREATE_PROJECT_TABLE
public static final String DROP_PROJECT_TABLE
public static final String CREATE_NAME_INDEX
public static final String DROP_NAME_INDEX
public static final String SELECT_MEMBER_1
public static final String INSERT_MEMBER_RECORD
public static final String BASELINE_SELECT
public static final String DELTA_SELECT
public static final String PROJECT_SELECT
public static final String AUTHOR_SELECT
public static final String DIR_SELECT
public static final String CHECKSUM_UPDATE
| Constructor Detail |
|---|
public DerbyUtils()
| Method Detail |
|---|
public static final CM_PROJECT getEnum(String name)
name -
public static void setDerbySystemDir(File dir)
dir - public static void loadDerbyDriver()
public static Connection createDBConnection(File path)
throws SQLException
path - Job directory where the derby db will be saved
SQLExceptionpublic static void shutdownDB(File path)
path - Job directory where the derby db can be locatedpublic static boolean createCMProjectTables(Connection db)
db - Derby database connection
public static Hashtable<CM_PROJECT,Object> getRowData(ResultSet rs)
throws SQLException,
IOException
rs - ResultSet row object
SQLException
IOException
public static int getRowCount(ResultSet rs)
throws SQLException
set -
SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||