|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.sql.BaseSQL
public class BaseSQL
BaseSQL provides wrappers around SQL queries and transforms ResultSets into java objects
| Nested Class Summary | |
|---|---|
static class |
BaseSQL.BatchClearTable
Batch operation for adding parameters to the ClearTable prepared statement |
static class |
BaseSQL.BatchDropTable
Batch operation for adding parameters to the DropTable prepared statement |
static class |
BaseSQL.BatchDropView
Batch operation for adding parameters to the DropView prepared statement |
static class |
BaseSQL.BatchInsertGraph
Batch operation for adding parameters to the InsertGraph prepared statement |
static class |
BaseSQL.BatchLockTable
Batch operation for adding parameters to the LockTable prepared statement |
static class |
BaseSQL.BatchRemoveRowsFromTable
Batch operation for adding parameters to the RemoveRowsFromTable prepared statement |
static class |
BaseSQL.BatchUnlockTable
Batch operation for adding parameters to the UnlockTable prepared statement |
| Field Summary | |
|---|---|
static java.lang.String |
clearTable
Constant "clearTable" used to reference prepared statement base.clearTable
DELETE FROM ${a}
|
static java.lang.String |
dropTable
Constant "dropTable" used to reference prepared statement base.dropTable
DROP TABLE ${a}
|
static java.lang.String |
dropView
Constant "dropView" used to reference prepared statement base.dropView
DROP VIEW ${a}
|
static java.lang.String |
getRowCount
Constant "getRowCount" used to reference prepared statement base.getRowCount
SELECT COUNT(*) FROM ${a}
|
static java.lang.String |
insertGraph
Constant "insertGraph" used to reference prepared statement base.insertGraph
INSERT INTO ${a} (Name) VALUES (?)
|
static java.lang.String |
lockTable
Constant "lockTable" used to reference prepared statement base.lockTable
LOCK TABLE ${a} ${b}
|
static java.lang.String |
removeRowsFromTable
Constant "removeRowsFromTable" used to reference prepared statement base.removeRowsFromTable
DELETE FROM ${a} WHERE (GraphID = ?)
|
static java.lang.String |
unlockTable
Constant "unlockTable" used to reference prepared statement base.unlockTable
EMPTY
|
| Constructor Summary | |
|---|---|
BaseSQL()
|
|
| Method Summary | |
|---|---|
static void |
clearTable(PreparedStatementCache sqlCache,
java.lang.String tableName)
Runs the clearTable prepared statement. |
static void |
dropTable(PreparedStatementCache sqlCache,
java.lang.String tableName)
Runs the dropTable prepared statement. |
static void |
dropView(PreparedStatementCache sqlCache,
java.lang.String tableName)
Runs the dropView prepared statement. |
static java.lang.Integer |
getRowCount(PreparedStatementCache sqlCache,
java.lang.String tableName)
Runs the getRowCount prepared statement. |
static void |
insertGraph(PreparedStatementCache sqlCache,
java.lang.String Name,
java.lang.String tableName)
Runs the insertGraph prepared statement. |
static void |
lockTable(PreparedStatementCache sqlCache,
java.lang.String tableName,
java.lang.String mode)
Runs the lockTable prepared statement. |
static void |
prepareClearTable(java.sql.PreparedStatement ps)
Sets the input parameters for the clearTable prepared statement. |
static void |
prepareDropTable(java.sql.PreparedStatement ps)
Sets the input parameters for the dropTable prepared statement. |
static void |
prepareDropView(java.sql.PreparedStatement ps)
Sets the input parameters for the dropView prepared statement. |
static void |
prepareGetRowCount(java.sql.PreparedStatement ps)
Sets the input parameters for the getRowCount prepared statement. |
static void |
prepareInsertGraph(java.sql.PreparedStatement ps,
java.lang.String Name)
Sets the input parameters for the insertGraph prepared statement. |
static void |
prepareLockTable(java.sql.PreparedStatement ps)
Sets the input parameters for the lockTable prepared statement. |
static void |
prepareRemoveRowsFromTable(java.sql.PreparedStatement ps,
long GraphID)
Sets the input parameters for the removeRowsFromTable prepared statement. |
static void |
prepareUnlockTable(java.sql.PreparedStatement ps)
Sets the input parameters for the unlockTable prepared statement. |
static void |
removeRowsFromTable(PreparedStatementCache sqlCache,
long GraphID,
java.lang.String tableName)
Runs the removeRowsFromTable prepared statement. |
static void |
unlockTable(PreparedStatementCache sqlCache,
java.lang.String tableName)
Runs the unlockTable prepared statement. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String dropTable
DROP TABLE ${a}
public static final java.lang.String dropView
DROP VIEW ${a}
public static final java.lang.String clearTable
DELETE FROM ${a}
public static final java.lang.String removeRowsFromTable
DELETE FROM ${a} WHERE (GraphID = ?)
public static final java.lang.String insertGraph
INSERT INTO ${a} (Name) VALUES (?)
public static final java.lang.String getRowCount
SELECT COUNT(*) FROM ${a}
public static final java.lang.String lockTable
LOCK TABLE ${a} ${b}
public static final java.lang.String unlockTable
EMPTY
| Constructor Detail |
|---|
public BaseSQL()
| Method Detail |
|---|
public static void dropTable(PreparedStatementCache sqlCache,
java.lang.String tableName)
throws RdbException
DROP TABLE ${a}
sqlCache - factory and cache of PreparedStatmentstableName - template parameter
RdbException
public static void prepareDropTable(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are set
java.sql.SQLException
public static void dropView(PreparedStatementCache sqlCache,
java.lang.String tableName)
throws RdbException
DROP VIEW ${a}
sqlCache - factory and cache of PreparedStatmentstableName - template parameter
RdbException
public static void prepareDropView(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are set
java.sql.SQLException
public static void clearTable(PreparedStatementCache sqlCache,
java.lang.String tableName)
throws RdbException
DELETE FROM ${a}
sqlCache - factory and cache of PreparedStatmentstableName - template parameter
RdbException
public static void prepareClearTable(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are set
java.sql.SQLException
public static void removeRowsFromTable(PreparedStatementCache sqlCache,
long GraphID,
java.lang.String tableName)
throws RdbException
DELETE FROM ${a} WHERE (GraphID = ?)
sqlCache - factory and cache of PreparedStatmentsGraphID - template parametertableName - template parameter
RdbException
public static void prepareRemoveRowsFromTable(java.sql.PreparedStatement ps,
long GraphID)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setGraphID - template parameter
java.sql.SQLException
public static void insertGraph(PreparedStatementCache sqlCache,
java.lang.String Name,
java.lang.String tableName)
throws RdbException
INSERT INTO ${a} (Name) VALUES (?)
sqlCache - factory and cache of PreparedStatmentsName - template parametertableName - template parameter
RdbException
public static void prepareInsertGraph(java.sql.PreparedStatement ps,
java.lang.String Name)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setName - template parameter
java.sql.SQLException
public static java.lang.Integer getRowCount(PreparedStatementCache sqlCache,
java.lang.String tableName)
throws RdbException
SELECT COUNT(*) FROM ${a}
sqlCache - factory and cache of PreparedStatmentstableName - template parameter
RdbException
public static void prepareGetRowCount(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are set
java.sql.SQLException
public static void lockTable(PreparedStatementCache sqlCache,
java.lang.String tableName,
java.lang.String mode)
throws RdbException
LOCK TABLE ${a} ${b}
sqlCache - factory and cache of PreparedStatmentstableName - template parametermode - template parameter
RdbException
public static void prepareLockTable(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are set
java.sql.SQLException
public static void unlockTable(PreparedStatementCache sqlCache,
java.lang.String tableName)
throws RdbException
EMPTY
sqlCache - factory and cache of PreparedStatmentstableName - template parameter
RdbException
public static void prepareUnlockTable(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are set
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||