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