|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.sql.NoSequencesSQL
public class NoSequencesSQL
NoSequencesSQL provides wrappers around SQL queries and transforms ResultSets into java objects
| Nested Class Summary | |
|---|---|
static class |
NoSequencesSQL.BatchInsertLiteral
Batch operation for adding parameters to the InsertLiteral prepared statement |
static class |
NoSequencesSQL.BatchInsertLongLiteral
Batch operation for adding parameters to the InsertLongLiteral prepared statement |
static class |
NoSequencesSQL.BatchInsertLongNode
Batch operation for adding parameters to the InsertLongNode prepared statement |
static class |
NoSequencesSQL.BatchInsertNode
Batch operation for adding parameters to the InsertNode prepared statement |
static class |
NoSequencesSQL.BatchUpdateNodeID
Batch operation for adding parameters to the UpdateNodeID prepared statement |
static interface |
NoSequencesSQL.InsertLiteralParams
Interface for managing the parameters to the insertLiteral prepared statement. |
static class |
NoSequencesSQL.InsertLiteralParamsImpl
Default implementation of InsertLiteralParams |
static interface |
NoSequencesSQL.InsertLongLiteralParams
Interface for managing the parameters to the insertLongLiteral prepared statement. |
static class |
NoSequencesSQL.InsertLongLiteralParamsImpl
Default implementation of InsertLongLiteralParams |
static interface |
NoSequencesSQL.InsertLongNodeParams
Interface for managing the parameters to the insertLongNode prepared statement. |
static class |
NoSequencesSQL.InsertLongNodeParamsImpl
Default implementation of InsertLongNodeParams |
static interface |
NoSequencesSQL.InsertNodeParams
Interface for managing the parameters to the insertNode prepared statement. |
static class |
NoSequencesSQL.InsertNodeParamsImpl
Default implementation of InsertNodeParams |
| Field Summary | |
|---|---|
static java.lang.String |
insertLiteral
Constant "insertLiteral" used to reference prepared statement no-sequences.insertLiteral
INSERT INTO ${a} (ID, VALUE, MODIFIER_ID) VALUES(?, ?, ?)
|
static java.lang.String |
insertLongLiteral
Constant "insertLongLiteral" used to reference prepared statement no-sequences.insertLongLiteral
INSERT INTO ${a} (ID, HASH, VALUE, MODIFIER_ID) VALUES(?, ?, ?, ?)
|
static java.lang.String |
insertLongNode
Constant "insertLongNode" used to reference prepared statement no-sequences.insertLongNode
INSERT INTO ${a} (ID, HASH, VALUE) VALUES(?, ?, ?)
|
static java.lang.String |
insertNode
Constant "insertNode" used to reference prepared statement no-sequences.insertNode
INSERT INTO ${a} (ID, VALUE) VALUES(?, ?)
|
static java.lang.String |
selectNodeID
Constant "selectNodeID" used to reference prepared statement no-sequences.selectNodeID
SELECT ID FROM ${a}
|
static java.lang.String |
updateNodeID
Constant "updateNodeID" used to reference prepared statement no-sequences.updateNodeID
UPDATE ${a} SET ID = ?
|
| Constructor Summary | |
|---|---|
NoSequencesSQL()
|
|
| Method Summary | |
|---|---|
static void |
insertLiteral(PreparedStatementCache sqlCache,
long id,
java.lang.String value,
long modifier_id,
java.lang.String literalNodeTableName)
Runs the insertLiteral prepared statement. |
static void |
insertLiteral(PreparedStatementCache sqlCache,
NoSequencesSQL.InsertLiteralParams params,
java.lang.String literalNodeTableName)
Runs the insertLiteral prepared statement. |
static void |
insertLongLiteral(PreparedStatementCache sqlCache,
long id,
long hash,
java.lang.String value,
long modifier_id,
java.lang.String longLiteralNodeTableName)
Runs the insertLongLiteral prepared statement. |
static void |
insertLongLiteral(PreparedStatementCache sqlCache,
NoSequencesSQL.InsertLongLiteralParams params,
java.lang.String longLiteralNodeTableName)
Runs the insertLongLiteral prepared statement. |
static void |
insertLongNode(PreparedStatementCache sqlCache,
long id,
long hash,
java.lang.String value,
java.lang.String nodeTableName)
Runs the insertLongNode prepared statement. |
static void |
insertLongNode(PreparedStatementCache sqlCache,
NoSequencesSQL.InsertLongNodeParams params,
java.lang.String nodeTableName)
Runs the insertLongNode prepared statement. |
static void |
insertNode(PreparedStatementCache sqlCache,
long id,
java.lang.String value,
java.lang.String nodeTableName)
Runs the insertNode prepared statement. |
static void |
insertNode(PreparedStatementCache sqlCache,
NoSequencesSQL.InsertNodeParams params,
java.lang.String nodeTableName)
Runs the insertNode prepared statement. |
static void |
prepareInsertLiteral(java.sql.PreparedStatement ps,
long id,
java.lang.String value,
long modifier_id)
Sets the input parameters for the insertLiteral prepared statement. |
static void |
prepareInsertLongLiteral(java.sql.PreparedStatement ps,
long id,
long hash,
java.lang.String value,
long modifier_id)
Sets the input parameters for the insertLongLiteral prepared statement. |
static void |
prepareInsertLongNode(java.sql.PreparedStatement ps,
long id,
long hash,
java.lang.String value)
Sets the input parameters for the insertLongNode prepared statement. |
static void |
prepareInsertNode(java.sql.PreparedStatement ps,
long id,
java.lang.String value)
Sets the input parameters for the insertNode prepared statement. |
static void |
prepareSelectNodeID(java.sql.PreparedStatement ps)
Sets the input parameters for the selectNodeID prepared statement. |
static void |
prepareUpdateNodeID(java.sql.PreparedStatement ps,
long id)
Sets the input parameters for the updateNodeID prepared statement. |
static java.lang.Long |
selectNodeID(PreparedStatementCache sqlCache,
java.lang.String sequenceName)
Runs the selectNodeID prepared statement. |
static void |
updateNodeID(PreparedStatementCache sqlCache,
long id,
java.lang.String sequenceName)
Runs the updateNodeID 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 insertNode
INSERT INTO ${a} (ID, VALUE) VALUES(?, ?)
public static final java.lang.String insertLongNode
INSERT INTO ${a} (ID, HASH, VALUE) VALUES(?, ?, ?)
public static final java.lang.String insertLiteral
INSERT INTO ${a} (ID, VALUE, MODIFIER_ID) VALUES(?, ?, ?)
public static final java.lang.String insertLongLiteral
INSERT INTO ${a} (ID, HASH, VALUE, MODIFIER_ID) VALUES(?, ?, ?, ?)
public static final java.lang.String selectNodeID
SELECT ID FROM ${a}
public static final java.lang.String updateNodeID
UPDATE ${a} SET ID = ?
| Constructor Detail |
|---|
public NoSequencesSQL()
| Method Detail |
|---|
public static void insertNode(PreparedStatementCache sqlCache,
NoSequencesSQL.InsertNodeParams params,
java.lang.String nodeTableName)
throws RdbException
INSERT INTO ${a} (ID, VALUE) VALUES(?, ?)
sqlCache - factory and cache of PreparedStatmentsparams - InsertNodeParams input InterfacenodeTableName - template parameter
RdbException
public static void insertNode(PreparedStatementCache sqlCache,
long id,
java.lang.String value,
java.lang.String nodeTableName)
throws RdbException
INSERT INTO ${a} (ID, VALUE) VALUES(?, ?)
sqlCache - factory and cache of PreparedStatmentsid - template parametervalue - template parameternodeTableName - template parameter
RdbException
public static void prepareInsertNode(java.sql.PreparedStatement ps,
long id,
java.lang.String value)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setid - template parametervalue - template parameter
java.sql.SQLException
public static void insertLongNode(PreparedStatementCache sqlCache,
NoSequencesSQL.InsertLongNodeParams params,
java.lang.String nodeTableName)
throws RdbException
INSERT INTO ${a} (ID, HASH, VALUE) VALUES(?, ?, ?)
sqlCache - factory and cache of PreparedStatmentsparams - InsertLongNodeParams input InterfacenodeTableName - template parameter
RdbException
public static void insertLongNode(PreparedStatementCache sqlCache,
long id,
long hash,
java.lang.String value,
java.lang.String nodeTableName)
throws RdbException
INSERT INTO ${a} (ID, HASH, VALUE) VALUES(?, ?, ?)
sqlCache - factory and cache of PreparedStatmentsid - template parameterhash - template parametervalue - template parameternodeTableName - template parameter
RdbException
public static void prepareInsertLongNode(java.sql.PreparedStatement ps,
long id,
long hash,
java.lang.String value)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setid - template parameterhash - template parametervalue - template parameter
java.sql.SQLException
public static void insertLiteral(PreparedStatementCache sqlCache,
NoSequencesSQL.InsertLiteralParams params,
java.lang.String literalNodeTableName)
throws RdbException
INSERT INTO ${a} (ID, VALUE, MODIFIER_ID) VALUES(?, ?, ?)
sqlCache - factory and cache of PreparedStatmentsparams - InsertLiteralParams input InterfaceliteralNodeTableName - template parameter
RdbException
public static void insertLiteral(PreparedStatementCache sqlCache,
long id,
java.lang.String value,
long modifier_id,
java.lang.String literalNodeTableName)
throws RdbException
INSERT INTO ${a} (ID, VALUE, MODIFIER_ID) VALUES(?, ?, ?)
sqlCache - factory and cache of PreparedStatmentsid - template parametervalue - template parametermodifier_id - template parameterliteralNodeTableName - template parameter
RdbException
public static void prepareInsertLiteral(java.sql.PreparedStatement ps,
long id,
java.lang.String value,
long modifier_id)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setid - template parametervalue - template parametermodifier_id - template parameter
java.sql.SQLException
public static void insertLongLiteral(PreparedStatementCache sqlCache,
NoSequencesSQL.InsertLongLiteralParams params,
java.lang.String longLiteralNodeTableName)
throws RdbException
INSERT INTO ${a} (ID, HASH, VALUE, MODIFIER_ID) VALUES(?, ?, ?, ?)
sqlCache - factory and cache of PreparedStatmentsparams - InsertLongLiteralParams input InterfacelongLiteralNodeTableName - template parameter
RdbException
public static void insertLongLiteral(PreparedStatementCache sqlCache,
long id,
long hash,
java.lang.String value,
long modifier_id,
java.lang.String longLiteralNodeTableName)
throws RdbException
INSERT INTO ${a} (ID, HASH, VALUE, MODIFIER_ID) VALUES(?, ?, ?, ?)
sqlCache - factory and cache of PreparedStatmentsid - template parameterhash - template parametervalue - template parametermodifier_id - template parameterlongLiteralNodeTableName - template parameter
RdbException
public static void prepareInsertLongLiteral(java.sql.PreparedStatement ps,
long id,
long hash,
java.lang.String value,
long modifier_id)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setid - template parameterhash - template parametervalue - template parametermodifier_id - template parameter
java.sql.SQLException
public static java.lang.Long selectNodeID(PreparedStatementCache sqlCache,
java.lang.String sequenceName)
throws RdbException
SELECT ID FROM ${a}
sqlCache - factory and cache of PreparedStatmentssequenceName - template parameter
RdbException
public static void prepareSelectNodeID(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are set
java.sql.SQLException
public static void updateNodeID(PreparedStatementCache sqlCache,
long id,
java.lang.String sequenceName)
throws RdbException
UPDATE ${a} SET ID = ?
sqlCache - factory and cache of PreparedStatmentsid - template parametersequenceName - template parameter
RdbException
public static void prepareUpdateNodeID(java.sql.PreparedStatement ps,
long id)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setid - template parameter
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||