|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.common.rdb.sql.TransactionSQL
public class TransactionSQL
TransactionSQL provides wrappers around SQL queries and transforms ResultSets into java objects
| Nested Class Summary | |
|---|---|
static interface |
TransactionSQL.DeleteChangesetParams
Interface for managing the parameters to the deleteChangeset prepared statement. |
static class |
TransactionSQL.DeleteChangesetParamsImpl
Default implementation of DeleteChangesetParams |
static interface |
TransactionSQL.DeleteCommandParams
Interface for managing the parameters to the deleteCommand prepared statement. |
static class |
TransactionSQL.DeleteCommandParamsImpl
Default implementation of DeleteCommandParams |
static interface |
TransactionSQL.InsertChangesetParams
Interface for managing the parameters to the insertChangeset prepared statement. |
static class |
TransactionSQL.InsertChangesetParamsImpl
Default implementation of InsertChangesetParams |
static interface |
TransactionSQL.InsertCommandParams
Interface for managing the parameters to the insertCommand prepared statement. |
static class |
TransactionSQL.InsertCommandParamsImpl
Default implementation of InsertCommandParams |
static interface |
TransactionSQL.InsertCommandStatementAddParams
Interface for managing the parameters to the insertCommandStatementAdd prepared statement. |
static class |
TransactionSQL.InsertCommandStatementAddParamsImpl
Default implementation of InsertCommandStatementAddParams |
static interface |
TransactionSQL.InsertCommandStatementDelParams
Interface for managing the parameters to the insertCommandStatementDel prepared statement. |
static class |
TransactionSQL.InsertCommandStatementDelParamsImpl
Default implementation of InsertCommandStatementDelParams |
static interface |
TransactionSQL.InsertNotificationStatementAddParams
Interface for managing the parameters to the insertNotificationStatementAdd prepared statement. |
static class |
TransactionSQL.InsertNotificationStatementAddParamsImpl
Default implementation of InsertNotificationStatementAddParams |
static interface |
TransactionSQL.InsertNotificationStatementDelParams
Interface for managing the parameters to the insertNotificationStatementDel prepared statement. |
static class |
TransactionSQL.InsertNotificationStatementDelParamsImpl
Default implementation of InsertNotificationStatementDelParams |
static interface |
TransactionSQL.PurgeCommitedStatementsParams
Interface for managing the parameters to the purgeCommitedStatements prepared statement. |
static class |
TransactionSQL.PurgeCommitedStatementsParamsImpl
Default implementation of PurgeCommitedStatementsParams |
static interface |
TransactionSQL.SelectAdditionsParams
Interface for managing the parameters to the selectAdditions prepared statement. |
static class |
TransactionSQL.SelectAdditionsParamsImpl
Default implementation of SelectAdditionsParams |
static interface |
TransactionSQL.SelectAdditionsResult
Interface for holding the results of the selectAdditions prepared statement. |
static class |
TransactionSQL.SelectAdditionsResultImpl
Default implementation of SelectAdditionsResult |
static interface |
TransactionSQL.SelectChangesetResult
Interface for holding the results of the selectChangeset prepared statement. |
static class |
TransactionSQL.SelectChangesetResultImpl
Default implementation of SelectChangesetResult |
static interface |
TransactionSQL.SelectCommandResult
Interface for holding the results of the selectCommand prepared statement. |
static class |
TransactionSQL.SelectCommandResultImpl
Default implementation of SelectCommandResult |
static interface |
TransactionSQL.SelectDeletionsParams
Interface for managing the parameters to the selectDeletions prepared statement. |
static class |
TransactionSQL.SelectDeletionsParamsImpl
Default implementation of SelectDeletionsParams |
static interface |
TransactionSQL.SelectDeletionsResult
Interface for holding the results of the selectDeletions prepared statement. |
static class |
TransactionSQL.SelectDeletionsResultImpl
Default implementation of SelectDeletionsResult |
static interface |
TransactionSQL.UdpateChangesetParams
Interface for managing the parameters to the udpateChangeset prepared statement. |
static class |
TransactionSQL.UdpateChangesetParamsImpl
Default implementation of UdpateChangesetParams |
static interface |
TransactionSQL.UpdateCommandParams
Interface for managing the parameters to the updateCommand prepared statement. |
static class |
TransactionSQL.UpdateCommandParamsImpl
Default implementation of UpdateCommandParams |
static interface |
TransactionSQL.UpdateNotificationStatementAddParams
Interface for managing the parameters to the updateNotificationStatementAdd prepared statement. |
static class |
TransactionSQL.UpdateNotificationStatementAddParamsImpl
Default implementation of UpdateNotificationStatementAddParams |
static interface |
TransactionSQL.UpdateNotificationStatementDelParams
Interface for managing the parameters to the updateNotificationStatementDel prepared statement. |
static class |
TransactionSQL.UpdateNotificationStatementDelParamsImpl
Default implementation of UpdateNotificationStatementDelParams |
static interface |
TransactionSQL.UpdateStatementAddParams
Interface for managing the parameters to the updateStatementAdd prepared statement. |
static class |
TransactionSQL.UpdateStatementAddParamsImpl
Default implementation of UpdateStatementAddParams |
static interface |
TransactionSQL.UpdateStatementDelParams
Interface for managing the parameters to the updateStatementDel prepared statement. |
static class |
TransactionSQL.UpdateStatementDelParamsImpl
Default implementation of UpdateStatementDelParams |
static interface |
TransactionSQL.UpdateTransactionStatementAddParams
Interface for managing the parameters to the updateTransactionStatementAdd prepared statement. |
static class |
TransactionSQL.UpdateTransactionStatementAddParamsImpl
Default implementation of UpdateTransactionStatementAddParams |
static interface |
TransactionSQL.UpdateTransactionStatementDelParams
Interface for managing the parameters to the updateTransactionStatementDel prepared statement. |
static class |
TransactionSQL.UpdateTransactionStatementDelParamsImpl
Default implementation of UpdateTransactionStatementDelParams |
| Field Summary | |
|---|---|
static java.lang.String |
deleteChangeset
Constant "deleteChangeset" used to reference prepared statement transaction.deleteChangeset
DELETE FROM ${a} WHERE COMMANDID = ? AND ID = ?
|
static java.lang.String |
deleteCommand
Constant "deleteCommand" used to reference prepared statement transaction.deleteCommand
DELETE FROM ${a} WHERE TRANSACTIONID = ? AND ID = ?
|
static java.lang.String |
deleteTransaction
Constant "deleteTransaction" used to reference prepared statement transaction.deleteTransaction
DELETE FROM ${a} WHERE ID = ?
|
static java.lang.String |
insertChangeset
Constant "insertChangeset" used to reference prepared statement transaction.insertChangeset
INSERT INTO ${a} (commandId, addGraph,removeGraph,metaddgraph,metaremovegraph,namedGraphUri) VALUES (?, ?, ?, ?,?,?)
|
static java.lang.String |
insertCommand
Constant "insertCommand" used to reference prepared statement transaction.insertCommand
INSERT INTO ${a} (transactionId, commandType,context,prereq) VALUES (?, ?, ?, ?)
|
static java.lang.String |
insertCommandStatementAdd
Constant "insertCommandStatementAdd" used to reference prepared statement transaction.insertCommandStatementAdd
INSERT INTO ${a}_ST (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,TS_ID,CS_ID) VALUES(?,?,?,?,?,?,?)
|
static java.lang.String |
insertCommandStatementDel
Constant "insertCommandStatementDel" used to reference prepared statement transaction.insertCommandStatementDel
INSERT INTO ${a}_ST (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,TE_ID,CE_ID) VALUES(?,?,?,?,?,?,?)
|
static java.lang.String |
insertNotificationStatementAdd
Constant "insertNotificationStatementAdd" used to reference prepared statement transaction.insertNotificationStatementAdd
INSERT INTO ${a} (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,NS,NE) VALUES(?,?,?,?,?,1,0)
|
static java.lang.String |
insertNotificationStatementDel
Constant "insertNotificationStatementDel" used to reference prepared statement transaction.insertNotificationStatementDel
INSERT INTO ${a} (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,NS,NE) VALUES(?,?,?,?,?,0,1)
|
static java.lang.String |
insertTransaction
Constant "insertTransaction" used to reference prepared statement transaction.insertTransaction
INSERT INTO ${a} (CREATED) VALUES (?)
|
static java.lang.String |
maxId
Constant "maxId" used to reference prepared statement transaction.maxId
SELECT MAX(ID) FROM ${a}
|
static java.lang.String |
purgeCommitedStatements
Constant "purgeCommitedStatements" used to reference prepared statement transaction.purgeCommitedStatements
DELETE FROM ${a}_ST WHERE (TS_ID IS NOT NULL AND TS_ID=?) OR (TE_ID IS NOT NULL AND TE_ID=?)
|
static java.lang.String |
purgeNotificationStatements
Constant "purgeNotificationStatements" used to reference prepared statement transaction.purgeNotificationStatements
DELETE FROM ${a} WHERE TS_ID IS NULL AND TE_ID IS NULL AND (NS=1 OR NE=1)
|
static java.lang.String |
selectAdditions
Constant "selectAdditions" used to reference prepared statement transaction.selectAdditions
SELECT ST.METADATA,ST.NAMEDGRAPHID,ST.subj,ST.prop,ST.obj FROM ${a}_ST ST where ST.ts_id =? AND ST.cs_id=?
|
static java.lang.String |
selectChangeset
Constant "selectChangeset" used to reference prepared statement transaction.selectChangeset
SELECT ID,ADDGRAPH,REMOVEGRAPH,METAADDGRAPH,METAREMOVEGRAPH,NAMEDGRAPHURI FROM ${a} WHERE COMMANDID = ? ORDER BY ID
|
static java.lang.String |
selectCommand
Constant "selectCommand" used to reference prepared statement transaction.selectCommand
SELECT ID,COMMANDTYPE,PREREQ,CONTEXT FROM ${a} WHERE TRANSACTIONID = ? ORDER BY ID
|
static java.lang.String |
selectDeletions
Constant "selectDeletions" used to reference prepared statement transaction.selectDeletions
SELECT ST.METADATA,ST.NAMEDGRAPHID,ST.subj,ST.prop,ST.obj FROM ${a}_ST ST where ST.te_id =? AND ST.ce_id=?
|
static java.lang.String |
selectMaxChangesetId
Constant "selectMaxChangesetId" used to reference prepared statement transaction.selectMaxChangesetId
SELECT MAX(id) FROM ${a}
|
static java.lang.String |
selectTransactions
Constant "selectTransactions" used to reference prepared statement transaction.selectTransactions
SELECT ID FROM ${a} ORDER BY ID
|
static java.lang.String |
udpateChangeset
Constant "udpateChangeset" used to reference prepared statement transaction.udpateChangeset
UPDATE ${a} SET ADDGRAPH=?,REMOVEGRAPH=? ,METAADDGRAPH=?,METAREMOVEGRAPH=? WHERE ID=?
|
static java.lang.String |
updateCommand
Constant "updateCommand" used to reference prepared statement transaction.updateCommand
UPDATE ${a} set transactionId=?,commandType=?,context=?,preReq=? where id=?
|
static java.lang.String |
updateNotificationStatementAdd
Constant "updateNotificationStatementAdd" used to reference prepared statement transaction.updateNotificationStatementAdd
UPDATE ${a} SET NS=1,NE=0 WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NOT NULL OR TE_ID IS NOT NULL )
|
static java.lang.String |
updateNotificationStatementDel
Constant "updateNotificationStatementDel" used to reference prepared statement transaction.updateNotificationStatementDel
UPDATE ${a} SET NS=0,NE=1 WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NOT NULL OR TE_ID IS NOT NULL )
|
static java.lang.String |
updateStatementAdd
Constant "updateStatementAdd" used to reference prepared statement transaction.updateStatementAdd
UPDATE ${a} SET NS=0,NE=0,TS_ID=NULL,TE_ID=NULL,CS_ID=NULL,TE_ID=NULL WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NULL OR TS_ID) AND (TE_ID IS NULL OR TE_ID)
|
static java.lang.String |
updateStatementDel
Constant "updateStatementDel" used to reference prepared statement transaction.updateStatementDel
DELETE FROM ${a} WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NULL OR TS_ID) AND (TE_ID IS NULL OR TE_ID)
|
static java.lang.String |
updateTransactionStatementAdd
Constant "updateTransactionStatementAdd" used to reference prepared statement transaction.updateTransactionStatementAdd
UPDATE ${a} SET TS_ID=?,CS_ID=? WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND TS_ID IS NULL and TE_ID IS NULL AND CS_ID IS NULL AND CE_ID IS NULL
|
static java.lang.String |
updateTransactionStatementDel
Constant "updateTransactionStatementDel" used to reference prepared statement transaction.updateTransactionStatementDel
UPDATE ${a} SET TE_ID=?,CE_ID=? WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND TE_ID IS NULL
|
| Constructor Summary | |
|---|---|
TransactionSQL()
|
|
| Method Summary | |
|---|---|
static int |
deleteChangeset(PreparedStatementCache sqlCache,
long cmdId,
long csId,
java.lang.String transactionTableName)
Runs the deleteChangeset prepared statement. |
static int |
deleteChangeset(PreparedStatementCache sqlCache,
TransactionSQL.DeleteChangesetParams params,
java.lang.String transactionTableName)
Runs the deleteChangeset prepared statement. |
static int |
deleteCommand(PreparedStatementCache sqlCache,
long transactionId,
long cmdId,
java.lang.String transactionTableName)
Runs the deleteCommand prepared statement. |
static int |
deleteCommand(PreparedStatementCache sqlCache,
TransactionSQL.DeleteCommandParams params,
java.lang.String transactionTableName)
Runs the deleteCommand prepared statement. |
static int |
deleteTransaction(PreparedStatementCache sqlCache,
long transactionId,
java.lang.String transactionTableName)
Runs the deleteTransaction prepared statement. |
static int |
insertChangeset(PreparedStatementCache sqlCache,
long commandId,
java.sql.Clob addGraph,
java.sql.Clob removeGraph,
java.sql.Clob addMetaGraph,
java.sql.Clob removeMetaGraph,
java.lang.String uri,
java.lang.String transactionTableName)
Runs the insertChangeset prepared statement. |
static int |
insertChangeset(PreparedStatementCache sqlCache,
TransactionSQL.InsertChangesetParams params,
java.lang.String transactionTableName)
Runs the insertChangeset prepared statement. |
static int |
insertCommand(PreparedStatementCache sqlCache,
long transactionId,
java.lang.String commandType,
java.sql.Clob context,
java.sql.Clob preReq,
java.lang.String transactionTableName)
Runs the insertCommand prepared statement. |
static int |
insertCommand(PreparedStatementCache sqlCache,
TransactionSQL.InsertCommandParams params,
java.lang.String transactionTableName)
Runs the insertCommand prepared statement. |
static int |
insertCommandStatementAdd(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transId,
long commandId,
java.lang.String transactionTableName)
Runs the insertCommandStatementAdd prepared statement. |
static int |
insertCommandStatementAdd(PreparedStatementCache sqlCache,
TransactionSQL.InsertCommandStatementAddParams params,
java.lang.String transactionTableName)
Runs the insertCommandStatementAdd prepared statement. |
static int |
insertCommandStatementDel(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transId,
long commandId,
java.lang.String transactionTableName)
Runs the insertCommandStatementDel prepared statement. |
static int |
insertCommandStatementDel(PreparedStatementCache sqlCache,
TransactionSQL.InsertCommandStatementDelParams params,
java.lang.String transactionTableName)
Runs the insertCommandStatementDel prepared statement. |
static int |
insertNotificationStatementAdd(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
java.lang.String transactionTableName)
Runs the insertNotificationStatementAdd prepared statement. |
static int |
insertNotificationStatementAdd(PreparedStatementCache sqlCache,
TransactionSQL.InsertNotificationStatementAddParams params,
java.lang.String transactionTableName)
Runs the insertNotificationStatementAdd prepared statement. |
static int |
insertNotificationStatementDel(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
java.lang.String transactionTableName)
Runs the insertNotificationStatementDel prepared statement. |
static int |
insertNotificationStatementDel(PreparedStatementCache sqlCache,
TransactionSQL.InsertNotificationStatementDelParams params,
java.lang.String transactionTableName)
Runs the insertNotificationStatementDel prepared statement. |
static int |
insertTransaction(PreparedStatementCache sqlCache,
java.sql.Timestamp created,
java.lang.String transactionTableName)
Runs the insertTransaction prepared statement. |
static java.lang.Long |
maxId(PreparedStatementCache sqlCache,
java.lang.String transactionTableName)
Runs the maxId prepared statement. |
static void |
prepareDeleteChangeset(java.sql.PreparedStatement ps,
long cmdId,
long csId)
Sets the input parameters for the deleteChangeset prepared statement. |
static void |
prepareDeleteCommand(java.sql.PreparedStatement ps,
long transactionId,
long cmdId)
Sets the input parameters for the deleteCommand prepared statement. |
static void |
prepareDeleteTransaction(java.sql.PreparedStatement ps,
long transactionId)
Sets the input parameters for the deleteTransaction prepared statement. |
static void |
prepareInsertChangeset(java.sql.PreparedStatement ps,
long commandId,
java.sql.Clob addGraph,
java.sql.Clob removeGraph,
java.sql.Clob addMetaGraph,
java.sql.Clob removeMetaGraph,
java.lang.String uri)
Sets the input parameters for the insertChangeset prepared statement. |
static void |
prepareInsertCommand(java.sql.PreparedStatement ps,
long transactionId,
java.lang.String commandType,
java.sql.Clob context,
java.sql.Clob preReq)
Sets the input parameters for the insertCommand prepared statement. |
static void |
prepareInsertCommandStatementAdd(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transId,
long commandId)
Sets the input parameters for the insertCommandStatementAdd prepared statement. |
static void |
prepareInsertCommandStatementDel(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transId,
long commandId)
Sets the input parameters for the insertCommandStatementDel prepared statement. |
static void |
prepareInsertNotificationStatementAdd(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj)
Sets the input parameters for the insertNotificationStatementAdd prepared statement. |
static void |
prepareInsertNotificationStatementDel(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj)
Sets the input parameters for the insertNotificationStatementDel prepared statement. |
static void |
prepareInsertTransaction(java.sql.PreparedStatement ps,
java.sql.Timestamp created)
Sets the input parameters for the insertTransaction prepared statement. |
static void |
prepareMaxId(java.sql.PreparedStatement ps)
Sets the input parameters for the maxId prepared statement. |
static void |
preparePurgeCommitedStatements(java.sql.PreparedStatement ps,
long lastTransaction,
long lastTransaction2)
Sets the input parameters for the purgeCommitedStatements prepared statement. |
static void |
preparePurgeNotificationStatements(java.sql.PreparedStatement ps)
Sets the input parameters for the purgeNotificationStatements prepared statement. |
static void |
prepareSelectAdditions(java.sql.PreparedStatement ps,
long transactionId,
long commandId2)
Sets the input parameters for the selectAdditions prepared statement. |
static void |
prepareSelectChangeset(java.sql.PreparedStatement ps,
long cmdId)
Sets the input parameters for the selectChangeset prepared statement. |
static void |
prepareSelectCommand(java.sql.PreparedStatement ps,
long transactionId)
Sets the input parameters for the selectCommand prepared statement. |
static void |
prepareSelectDeletions(java.sql.PreparedStatement ps,
long transactionId,
long commandId)
Sets the input parameters for the selectDeletions prepared statement. |
static void |
prepareSelectMaxChangesetId(java.sql.PreparedStatement ps)
Sets the input parameters for the selectMaxChangesetId prepared statement. |
static void |
prepareSelectTransactions(java.sql.PreparedStatement ps)
Sets the input parameters for the selectTransactions prepared statement. |
static void |
prepareUdpateChangeset(java.sql.PreparedStatement ps,
java.sql.Clob addGraph,
java.sql.Clob removeGraph,
java.sql.Clob addMetaGraph,
java.sql.Clob removeMetaGraph,
long id)
Sets the input parameters for the udpateChangeset prepared statement. |
static void |
prepareUpdateCommand(java.sql.PreparedStatement ps,
long transactionId,
java.lang.String commandType,
java.sql.Clob context,
java.sql.Clob preReq,
long id)
Sets the input parameters for the updateCommand prepared statement. |
static void |
prepareUpdateNotificationStatementAdd(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj)
Sets the input parameters for the updateNotificationStatementAdd prepared statement. |
static void |
prepareUpdateNotificationStatementDel(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj)
Sets the input parameters for the updateNotificationStatementDel prepared statement. |
static void |
prepareUpdateStatementAdd(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long lastTransaction,
long lastTransaction2)
Sets the input parameters for the updateStatementAdd prepared statement. |
static void |
prepareUpdateStatementDel(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long lastTransaction,
long lastTransaction2)
Sets the input parameters for the updateStatementDel prepared statement. |
static void |
prepareUpdateTransactionStatementAdd(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transactionId,
long commandId)
Sets the input parameters for the updateTransactionStatementAdd prepared statement. |
static void |
prepareUpdateTransactionStatementDel(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transactionId,
long commandId)
Sets the input parameters for the updateTransactionStatementDel prepared statement. |
static int |
purgeCommitedStatements(PreparedStatementCache sqlCache,
long lastTransaction,
long lastTransaction2,
java.lang.String transactionTableName)
Runs the purgeCommitedStatements prepared statement. |
static int |
purgeCommitedStatements(PreparedStatementCache sqlCache,
TransactionSQL.PurgeCommitedStatementsParams params,
java.lang.String transactionTableName)
Runs the purgeCommitedStatements prepared statement. |
static int |
purgeNotificationStatements(PreparedStatementCache sqlCache,
java.lang.String transactionTableName)
Runs the purgeNotificationStatements prepared statement. |
static ClosableIterator<TransactionSQL.SelectAdditionsResult> |
selectAdditions(PreparedStatementCache sqlCache,
long transactionId,
long commandId2,
java.lang.String containerName)
Runs the selectAdditions prepared statement with the default transformer. |
static ClosableIterator<TransactionSQL.SelectAdditionsResult> |
selectAdditions(PreparedStatementCache sqlCache,
long transactionId,
long commandId2,
java.lang.String containerName,
Transformer<TransactionSQL.SelectAdditionsResult> transform)
Runs the selectAdditions prepared statement. |
static ClosableIterator<TransactionSQL.SelectAdditionsResult> |
selectAdditions(PreparedStatementCache sqlCache,
TransactionSQL.SelectAdditionsParams params,
java.lang.String containerName)
Runs the selectAdditions prepared statement. |
static ClosableIterator<TransactionSQL.SelectChangesetResult> |
selectChangeset(PreparedStatementCache sqlCache,
long cmdId,
java.lang.String transactionTableName)
Runs the selectChangeset prepared statement with the default transformer. |
static ClosableIterator<TransactionSQL.SelectChangesetResult> |
selectChangeset(PreparedStatementCache sqlCache,
long cmdId,
java.lang.String transactionTableName,
Transformer<TransactionSQL.SelectChangesetResult> transform)
Runs the selectChangeset prepared statement. |
static ClosableIterator<TransactionSQL.SelectCommandResult> |
selectCommand(PreparedStatementCache sqlCache,
long transactionId,
java.lang.String transactionTableName)
Runs the selectCommand prepared statement with the default transformer. |
static ClosableIterator<TransactionSQL.SelectCommandResult> |
selectCommand(PreparedStatementCache sqlCache,
long transactionId,
java.lang.String transactionTableName,
Transformer<TransactionSQL.SelectCommandResult> transform)
Runs the selectCommand prepared statement. |
static ClosableIterator<TransactionSQL.SelectDeletionsResult> |
selectDeletions(PreparedStatementCache sqlCache,
long transactionId,
long commandId,
java.lang.String containerName)
Runs the selectDeletions prepared statement with the default transformer. |
static ClosableIterator<TransactionSQL.SelectDeletionsResult> |
selectDeletions(PreparedStatementCache sqlCache,
long transactionId,
long commandId,
java.lang.String containerName,
Transformer<TransactionSQL.SelectDeletionsResult> transform)
Runs the selectDeletions prepared statement. |
static ClosableIterator<TransactionSQL.SelectDeletionsResult> |
selectDeletions(PreparedStatementCache sqlCache,
TransactionSQL.SelectDeletionsParams params,
java.lang.String containerName)
Runs the selectDeletions prepared statement. |
static java.lang.Long |
selectMaxChangesetId(PreparedStatementCache sqlCache,
java.lang.String transactionTableName)
Runs the selectMaxChangesetId prepared statement. |
static ClosableIterator<java.lang.Long> |
selectTransactions(PreparedStatementCache sqlCache,
java.lang.String transactionTableName)
Runs the selectTransactions prepared statement with the default transformer. |
static ClosableIterator<java.lang.Long> |
selectTransactions(PreparedStatementCache sqlCache,
java.lang.String transactionTableName,
Transformer<java.lang.Long> transform)
Runs the selectTransactions prepared statement. |
static int |
udpateChangeset(PreparedStatementCache sqlCache,
java.sql.Clob addGraph,
java.sql.Clob removeGraph,
java.sql.Clob addMetaGraph,
java.sql.Clob removeMetaGraph,
long id,
java.lang.String transactionTableName)
Runs the udpateChangeset prepared statement. |
static int |
udpateChangeset(PreparedStatementCache sqlCache,
TransactionSQL.UdpateChangesetParams params,
java.lang.String transactionTableName)
Runs the udpateChangeset prepared statement. |
static int |
updateCommand(PreparedStatementCache sqlCache,
long transactionId,
java.lang.String commandType,
java.sql.Clob context,
java.sql.Clob preReq,
long id,
java.lang.String transactionTableName)
Runs the updateCommand prepared statement. |
static int |
updateCommand(PreparedStatementCache sqlCache,
TransactionSQL.UpdateCommandParams params,
java.lang.String transactionTableName)
Runs the updateCommand prepared statement. |
static int |
updateNotificationStatementAdd(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
java.lang.String transactionTableName)
Runs the updateNotificationStatementAdd prepared statement. |
static int |
updateNotificationStatementAdd(PreparedStatementCache sqlCache,
TransactionSQL.UpdateNotificationStatementAddParams params,
java.lang.String transactionTableName)
Runs the updateNotificationStatementAdd prepared statement. |
static int |
updateNotificationStatementDel(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
java.lang.String transactionTableName)
Runs the updateNotificationStatementDel prepared statement. |
static int |
updateNotificationStatementDel(PreparedStatementCache sqlCache,
TransactionSQL.UpdateNotificationStatementDelParams params,
java.lang.String transactionTableName)
Runs the updateNotificationStatementDel prepared statement. |
static int |
updateStatementAdd(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long lastTransaction,
long lastTransaction2,
java.lang.String transactionTableName)
Runs the updateStatementAdd prepared statement. |
static int |
updateStatementAdd(PreparedStatementCache sqlCache,
TransactionSQL.UpdateStatementAddParams params,
java.lang.String transactionTableName)
Runs the updateStatementAdd prepared statement. |
static int |
updateStatementDel(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long lastTransaction,
long lastTransaction2,
java.lang.String transactionTableName)
Runs the updateStatementDel prepared statement. |
static int |
updateStatementDel(PreparedStatementCache sqlCache,
TransactionSQL.UpdateStatementDelParams params,
java.lang.String transactionTableName)
Runs the updateStatementDel prepared statement. |
static int |
updateTransactionStatementAdd(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transactionId,
long commandId,
java.lang.String transactionTableName)
Runs the updateTransactionStatementAdd prepared statement. |
static int |
updateTransactionStatementAdd(PreparedStatementCache sqlCache,
TransactionSQL.UpdateTransactionStatementAddParams params,
java.lang.String transactionTableName)
Runs the updateTransactionStatementAdd prepared statement. |
static int |
updateTransactionStatementDel(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transactionId,
long commandId,
java.lang.String transactionTableName)
Runs the updateTransactionStatementDel prepared statement. |
static int |
updateTransactionStatementDel(PreparedStatementCache sqlCache,
TransactionSQL.UpdateTransactionStatementDelParams params,
java.lang.String transactionTableName)
Runs the updateTransactionStatementDel 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 insertNotificationStatementAdd
INSERT INTO ${a} (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,NS,NE) VALUES(?,?,?,?,?,1,0)
public static final java.lang.String insertNotificationStatementDel
INSERT INTO ${a} (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,NS,NE) VALUES(?,?,?,?,?,0,1)
public static final java.lang.String updateNotificationStatementAdd
UPDATE ${a} SET NS=1,NE=0 WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NOT NULL OR TE_ID IS NOT NULL )
public static final java.lang.String updateNotificationStatementDel
UPDATE ${a} SET NS=0,NE=1 WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NOT NULL OR TE_ID IS NOT NULL )
public static final java.lang.String purgeCommitedStatements
DELETE FROM ${a}_ST WHERE (TS_ID IS NOT NULL AND TS_ID=?) OR (TE_ID IS NOT NULL AND TE_ID=?)
public static final java.lang.String purgeNotificationStatements
DELETE FROM ${a} WHERE TS_ID IS NULL AND TE_ID IS NULL AND (NS=1 OR NE=1)
public static final java.lang.String updateStatementAdd
UPDATE ${a} SET NS=0,NE=0,TS_ID=NULL,TE_ID=NULL,CS_ID=NULL,TE_ID=NULL WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NULL OR TS_ID) AND (TE_ID IS NULL OR TE_ID)
public static final java.lang.String updateStatementDel
DELETE FROM ${a} WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NULL OR TS_ID) AND (TE_ID IS NULL OR TE_ID)
public static final java.lang.String insertCommandStatementAdd
INSERT INTO ${a}_ST (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,TS_ID,CS_ID) VALUES(?,?,?,?,?,?,?)
public static final java.lang.String insertCommandStatementDel
INSERT INTO ${a}_ST (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,TE_ID,CE_ID) VALUES(?,?,?,?,?,?,?)
public static final java.lang.String updateTransactionStatementDel
UPDATE ${a} SET TE_ID=?,CE_ID=? WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND TE_ID IS NULL
public static final java.lang.String updateTransactionStatementAdd
UPDATE ${a} SET TS_ID=?,CS_ID=? WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND TS_ID IS NULL and TE_ID IS NULL AND CS_ID IS NULL AND CE_ID IS NULL
public static final java.lang.String selectAdditions
SELECT ST.METADATA,ST.NAMEDGRAPHID,ST.subj,ST.prop,ST.obj FROM ${a}_ST ST where ST.ts_id =? AND ST.cs_id=?
public static final java.lang.String selectDeletions
SELECT ST.METADATA,ST.NAMEDGRAPHID,ST.subj,ST.prop,ST.obj FROM ${a}_ST ST where ST.te_id =? AND ST.ce_id=?
public static final java.lang.String udpateChangeset
UPDATE ${a} SET ADDGRAPH=?,REMOVEGRAPH=? ,METAADDGRAPH=?,METAREMOVEGRAPH=? WHERE ID=?
public static final java.lang.String insertChangeset
INSERT INTO ${a} (commandId, addGraph,removeGraph,metaddgraph,metaremovegraph,namedGraphUri) VALUES (?, ?, ?, ?,?,?)
public static final java.lang.String selectMaxChangesetId
SELECT MAX(id) FROM ${a}
public static final java.lang.String deleteChangeset
DELETE FROM ${a} WHERE COMMANDID = ? AND ID = ?
public static final java.lang.String selectChangeset
SELECT ID,ADDGRAPH,REMOVEGRAPH,METAADDGRAPH,METAREMOVEGRAPH,NAMEDGRAPHURI FROM ${a} WHERE COMMANDID = ? ORDER BY ID
public static final java.lang.String updateCommand
UPDATE ${a} set transactionId=?,commandType=?,context=?,preReq=? where id=?
public static final java.lang.String insertCommand
INSERT INTO ${a} (transactionId, commandType,context,prereq) VALUES (?, ?, ?, ?)
public static final java.lang.String deleteCommand
DELETE FROM ${a} WHERE TRANSACTIONID = ? AND ID = ?
public static final java.lang.String deleteTransaction
DELETE FROM ${a} WHERE ID = ?
public static final java.lang.String selectCommand
SELECT ID,COMMANDTYPE,PREREQ,CONTEXT FROM ${a} WHERE TRANSACTIONID = ? ORDER BY ID
public static final java.lang.String insertTransaction
INSERT INTO ${a} (CREATED) VALUES (?)
public static final java.lang.String maxId
SELECT MAX(ID) FROM ${a}
public static final java.lang.String selectTransactions
SELECT ID FROM ${a} ORDER BY ID
| Constructor Detail |
|---|
public TransactionSQL()
| Method Detail |
|---|
public static int insertNotificationStatementAdd(PreparedStatementCache sqlCache,
TransactionSQL.InsertNotificationStatementAddParams params,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a} (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,NS,NE) VALUES(?,?,?,?,?,1,0)
sqlCache - factory and cache of PreparedStatmentsparams - InsertNotificationStatementAddParams input InterfacetransactionTableName - template parameter
RdbException
public static int insertNotificationStatementAdd(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a} (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,NS,NE) VALUES(?,?,?,?,?,1,0)
sqlCache - factory and cache of PreparedStatmentsmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransactionTableName - template parameter
RdbException
public static void prepareInsertNotificationStatementAdd(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parameter
java.sql.SQLException
public static int insertNotificationStatementDel(PreparedStatementCache sqlCache,
TransactionSQL.InsertNotificationStatementDelParams params,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a} (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,NS,NE) VALUES(?,?,?,?,?,0,1)
sqlCache - factory and cache of PreparedStatmentsparams - InsertNotificationStatementDelParams input InterfacetransactionTableName - template parameter
RdbException
public static int insertNotificationStatementDel(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a} (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,NS,NE) VALUES(?,?,?,?,?,0,1)
sqlCache - factory and cache of PreparedStatmentsmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransactionTableName - template parameter
RdbException
public static void prepareInsertNotificationStatementDel(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parameter
java.sql.SQLException
public static int updateNotificationStatementAdd(PreparedStatementCache sqlCache,
TransactionSQL.UpdateNotificationStatementAddParams params,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET NS=1,NE=0 WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NOT NULL OR TE_ID IS NOT NULL )
sqlCache - factory and cache of PreparedStatmentsparams - UpdateNotificationStatementAddParams input InterfacetransactionTableName - template parameter
RdbException
public static int updateNotificationStatementAdd(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET NS=1,NE=0 WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NOT NULL OR TE_ID IS NOT NULL )
sqlCache - factory and cache of PreparedStatmentsmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransactionTableName - template parameter
RdbException
public static void prepareUpdateNotificationStatementAdd(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parameter
java.sql.SQLException
public static int updateNotificationStatementDel(PreparedStatementCache sqlCache,
TransactionSQL.UpdateNotificationStatementDelParams params,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET NS=0,NE=1 WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NOT NULL OR TE_ID IS NOT NULL )
sqlCache - factory and cache of PreparedStatmentsparams - UpdateNotificationStatementDelParams input InterfacetransactionTableName - template parameter
RdbException
public static int updateNotificationStatementDel(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET NS=0,NE=1 WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NOT NULL OR TE_ID IS NOT NULL )
sqlCache - factory and cache of PreparedStatmentsmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransactionTableName - template parameter
RdbException
public static void prepareUpdateNotificationStatementDel(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parameter
java.sql.SQLException
public static int purgeCommitedStatements(PreparedStatementCache sqlCache,
TransactionSQL.PurgeCommitedStatementsParams params,
java.lang.String transactionTableName)
throws RdbException
DELETE FROM ${a}_ST WHERE (TS_ID IS NOT NULL AND TS_ID=?) OR (TE_ID IS NOT NULL AND TE_ID=?)
sqlCache - factory and cache of PreparedStatmentsparams - PurgeCommitedStatementsParams input InterfacetransactionTableName - template parameter
RdbException
public static int purgeCommitedStatements(PreparedStatementCache sqlCache,
long lastTransaction,
long lastTransaction2,
java.lang.String transactionTableName)
throws RdbException
DELETE FROM ${a}_ST WHERE (TS_ID IS NOT NULL AND TS_ID=?) OR (TE_ID IS NOT NULL AND TE_ID=?)
sqlCache - factory and cache of PreparedStatmentslastTransaction - template parameterlastTransaction2 - template parametertransactionTableName - template parameter
RdbException
public static void preparePurgeCommitedStatements(java.sql.PreparedStatement ps,
long lastTransaction,
long lastTransaction2)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setlastTransaction - template parameterlastTransaction2 - template parameter
java.sql.SQLException
public static int purgeNotificationStatements(PreparedStatementCache sqlCache,
java.lang.String transactionTableName)
throws RdbException
DELETE FROM ${a} WHERE TS_ID IS NULL AND TE_ID IS NULL AND (NS=1 OR NE=1)
sqlCache - factory and cache of PreparedStatmentstransactionTableName - template parameter
RdbException
public static void preparePurgeNotificationStatements(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are set
java.sql.SQLException
public static int updateStatementAdd(PreparedStatementCache sqlCache,
TransactionSQL.UpdateStatementAddParams params,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET NS=0,NE=0,TS_ID=NULL,TE_ID=NULL,CS_ID=NULL,TE_ID=NULL WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NULL OR TS_ID) AND (TE_ID IS NULL OR TE_ID)
sqlCache - factory and cache of PreparedStatmentsparams - UpdateStatementAddParams input InterfacetransactionTableName - template parameter
RdbException
public static int updateStatementAdd(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long lastTransaction,
long lastTransaction2,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET NS=0,NE=0,TS_ID=NULL,TE_ID=NULL,CS_ID=NULL,TE_ID=NULL WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NULL OR TS_ID) AND (TE_ID IS NULL OR TE_ID)
sqlCache - factory and cache of PreparedStatmentsmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parameterlastTransaction - template parameterlastTransaction2 - template parametertransactionTableName - template parameter
RdbException
public static void prepareUpdateStatementAdd(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long lastTransaction,
long lastTransaction2)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parameterlastTransaction - template parameterlastTransaction2 - template parameter
java.sql.SQLException
public static int updateStatementDel(PreparedStatementCache sqlCache,
TransactionSQL.UpdateStatementDelParams params,
java.lang.String transactionTableName)
throws RdbException
DELETE FROM ${a} WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NULL OR TS_ID) AND (TE_ID IS NULL OR TE_ID)
sqlCache - factory and cache of PreparedStatmentsparams - UpdateStatementDelParams input InterfacetransactionTableName - template parameter
RdbException
public static int updateStatementDel(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long lastTransaction,
long lastTransaction2,
java.lang.String transactionTableName)
throws RdbException
DELETE FROM ${a} WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND (TS_ID IS NULL OR TS_ID) AND (TE_ID IS NULL OR TE_ID)
sqlCache - factory and cache of PreparedStatmentsmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parameterlastTransaction - template parameterlastTransaction2 - template parametertransactionTableName - template parameter
RdbException
public static void prepareUpdateStatementDel(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long lastTransaction,
long lastTransaction2)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parameterlastTransaction - template parameterlastTransaction2 - template parameter
java.sql.SQLException
public static int insertCommandStatementAdd(PreparedStatementCache sqlCache,
TransactionSQL.InsertCommandStatementAddParams params,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a}_ST (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,TS_ID,CS_ID) VALUES(?,?,?,?,?,?,?)
sqlCache - factory and cache of PreparedStatmentsparams - InsertCommandStatementAddParams input InterfacetransactionTableName - template parameter
RdbException
public static int insertCommandStatementAdd(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transId,
long commandId,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a}_ST (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,TS_ID,CS_ID) VALUES(?,?,?,?,?,?,?)
sqlCache - factory and cache of PreparedStatmentsmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransId - template parametercommandId - template parametertransactionTableName - template parameter
RdbException
public static void prepareInsertCommandStatementAdd(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transId,
long commandId)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransId - template parametercommandId - template parameter
java.sql.SQLException
public static int insertCommandStatementDel(PreparedStatementCache sqlCache,
TransactionSQL.InsertCommandStatementDelParams params,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a}_ST (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,TE_ID,CE_ID) VALUES(?,?,?,?,?,?,?)
sqlCache - factory and cache of PreparedStatmentsparams - InsertCommandStatementDelParams input InterfacetransactionTableName - template parameter
RdbException
public static int insertCommandStatementDel(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transId,
long commandId,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a}_ST (METADATA,NAMEDGRAPHID,SUBJ,PROP,OBJ,TE_ID,CE_ID) VALUES(?,?,?,?,?,?,?)
sqlCache - factory and cache of PreparedStatmentsmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransId - template parametercommandId - template parametertransactionTableName - template parameter
RdbException
public static void prepareInsertCommandStatementDel(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transId,
long commandId)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransId - template parametercommandId - template parameter
java.sql.SQLException
public static int updateTransactionStatementDel(PreparedStatementCache sqlCache,
TransactionSQL.UpdateTransactionStatementDelParams params,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET TE_ID=?,CE_ID=? WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND TE_ID IS NULL
sqlCache - factory and cache of PreparedStatmentsparams - UpdateTransactionStatementDelParams input InterfacetransactionTableName - template parameter
RdbException
public static int updateTransactionStatementDel(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transactionId,
long commandId,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET TE_ID=?,CE_ID=? WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND TE_ID IS NULL
sqlCache - factory and cache of PreparedStatmentsmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransactionId - template parametercommandId - template parametertransactionTableName - template parameter
RdbException
public static void prepareUpdateTransactionStatementDel(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transactionId,
long commandId)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransactionId - template parametercommandId - template parameter
java.sql.SQLException
public static int updateTransactionStatementAdd(PreparedStatementCache sqlCache,
TransactionSQL.UpdateTransactionStatementAddParams params,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET TS_ID=?,CS_ID=? WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND TS_ID IS NULL and TE_ID IS NULL AND CS_ID IS NULL AND CE_ID IS NULL
sqlCache - factory and cache of PreparedStatmentsparams - UpdateTransactionStatementAddParams input InterfacetransactionTableName - template parameter
RdbException
public static int updateTransactionStatementAdd(PreparedStatementCache sqlCache,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transactionId,
long commandId,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET TS_ID=?,CS_ID=? WHERE METADATA=? AND NAMEDGRAPHID=? AND SUBJ=? AND PROP=? AND OBJ=? AND TS_ID IS NULL and TE_ID IS NULL AND CS_ID IS NULL AND CE_ID IS NULL
sqlCache - factory and cache of PreparedStatmentsmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransactionId - template parametercommandId - template parametertransactionTableName - template parameter
RdbException
public static void prepareUpdateTransactionStatementAdd(java.sql.PreparedStatement ps,
int metadata,
long namedgraphid,
long subj,
long prop,
long obj,
long transactionId,
long commandId)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setmetadata - template parameternamedgraphid - template parametersubj - template parameterprop - template parameterobj - template parametertransactionId - template parametercommandId - template parameter
java.sql.SQLException
public static ClosableIterator<TransactionSQL.SelectAdditionsResult> selectAdditions(PreparedStatementCache sqlCache,
TransactionSQL.SelectAdditionsParams params,
java.lang.String containerName)
throws RdbException
SELECT ST.METADATA,ST.NAMEDGRAPHID,ST.subj,ST.prop,ST.obj FROM ${a}_ST ST where ST.ts_id =? AND ST.cs_id=?
sqlCache - factory and cache of PreparedStatmentsparams - SelectAdditionsParams input InterfacecontainerName - template parameter
RdbException
public static ClosableIterator<TransactionSQL.SelectAdditionsResult> selectAdditions(PreparedStatementCache sqlCache,
long transactionId,
long commandId2,
java.lang.String containerName)
throws RdbException
SELECT ST.METADATA,ST.NAMEDGRAPHID,ST.subj,ST.prop,ST.obj FROM ${a}_ST ST where ST.ts_id =? AND ST.cs_id=?
sqlCache - factory and cache of PreparedStatmentstransactionId - template parametercommandId2 - template parametercontainerName - template parameter
RdbException
public static ClosableIterator<TransactionSQL.SelectAdditionsResult> selectAdditions(PreparedStatementCache sqlCache,
long transactionId,
long commandId2,
java.lang.String containerName,
Transformer<TransactionSQL.SelectAdditionsResult> transform)
throws RdbException
SELECT ST.METADATA,ST.NAMEDGRAPHID,ST.subj,ST.prop,ST.obj FROM ${a}_ST ST where ST.ts_id =? AND ST.cs_id=?
sqlCache - factory and cache of PreparedStatmentstransactionId - template parametercommandId2 - template parametercontainerName - template parametertransform - org.openanzo.jdbc.utils.TransformerRdbException
public static void prepareSelectAdditions(java.sql.PreparedStatement ps,
long transactionId,
long commandId2)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are settransactionId - template parametercommandId2 - template parameter
java.sql.SQLException
public static ClosableIterator<TransactionSQL.SelectDeletionsResult> selectDeletions(PreparedStatementCache sqlCache,
TransactionSQL.SelectDeletionsParams params,
java.lang.String containerName)
throws RdbException
SELECT ST.METADATA,ST.NAMEDGRAPHID,ST.subj,ST.prop,ST.obj FROM ${a}_ST ST where ST.te_id =? AND ST.ce_id=?
sqlCache - factory and cache of PreparedStatmentsparams - SelectDeletionsParams input InterfacecontainerName - template parameter
RdbException
public static ClosableIterator<TransactionSQL.SelectDeletionsResult> selectDeletions(PreparedStatementCache sqlCache,
long transactionId,
long commandId,
java.lang.String containerName)
throws RdbException
SELECT ST.METADATA,ST.NAMEDGRAPHID,ST.subj,ST.prop,ST.obj FROM ${a}_ST ST where ST.te_id =? AND ST.ce_id=?
sqlCache - factory and cache of PreparedStatmentstransactionId - template parametercommandId - template parametercontainerName - template parameter
RdbException
public static ClosableIterator<TransactionSQL.SelectDeletionsResult> selectDeletions(PreparedStatementCache sqlCache,
long transactionId,
long commandId,
java.lang.String containerName,
Transformer<TransactionSQL.SelectDeletionsResult> transform)
throws RdbException
SELECT ST.METADATA,ST.NAMEDGRAPHID,ST.subj,ST.prop,ST.obj FROM ${a}_ST ST where ST.te_id =? AND ST.ce_id=?
sqlCache - factory and cache of PreparedStatmentstransactionId - template parametercommandId - template parametercontainerName - template parametertransform - org.openanzo.jdbc.utils.TransformerRdbException
public static void prepareSelectDeletions(java.sql.PreparedStatement ps,
long transactionId,
long commandId)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are settransactionId - template parametercommandId - template parameter
java.sql.SQLException
public static int udpateChangeset(PreparedStatementCache sqlCache,
TransactionSQL.UdpateChangesetParams params,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET ADDGRAPH=?,REMOVEGRAPH=? ,METAADDGRAPH=?,METAREMOVEGRAPH=? WHERE ID=?
sqlCache - factory and cache of PreparedStatmentsparams - UdpateChangesetParams input InterfacetransactionTableName - template parameter
RdbException
public static int udpateChangeset(PreparedStatementCache sqlCache,
java.sql.Clob addGraph,
java.sql.Clob removeGraph,
java.sql.Clob addMetaGraph,
java.sql.Clob removeMetaGraph,
long id,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} SET ADDGRAPH=?,REMOVEGRAPH=? ,METAADDGRAPH=?,METAREMOVEGRAPH=? WHERE ID=?
sqlCache - factory and cache of PreparedStatmentsaddGraph - template parameterremoveGraph - template parameteraddMetaGraph - template parameterremoveMetaGraph - template parameterid - template parametertransactionTableName - template parameter
RdbException
public static void prepareUdpateChangeset(java.sql.PreparedStatement ps,
java.sql.Clob addGraph,
java.sql.Clob removeGraph,
java.sql.Clob addMetaGraph,
java.sql.Clob removeMetaGraph,
long id)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setaddGraph - template parameterremoveGraph - template parameteraddMetaGraph - template parameterremoveMetaGraph - template parameterid - template parameter
java.sql.SQLException
public static int insertChangeset(PreparedStatementCache sqlCache,
TransactionSQL.InsertChangesetParams params,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a} (commandId, addGraph,removeGraph,metaddgraph,metaremovegraph,namedGraphUri) VALUES (?, ?, ?, ?,?,?)
sqlCache - factory and cache of PreparedStatmentsparams - InsertChangesetParams input InterfacetransactionTableName - template parameter
RdbException
public static int insertChangeset(PreparedStatementCache sqlCache,
long commandId,
java.sql.Clob addGraph,
java.sql.Clob removeGraph,
java.sql.Clob addMetaGraph,
java.sql.Clob removeMetaGraph,
java.lang.String uri,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a} (commandId, addGraph,removeGraph,metaddgraph,metaremovegraph,namedGraphUri) VALUES (?, ?, ?, ?,?,?)
sqlCache - factory and cache of PreparedStatmentscommandId - template parameteraddGraph - template parameterremoveGraph - template parameteraddMetaGraph - template parameterremoveMetaGraph - template parameteruri - template parametertransactionTableName - template parameter
RdbException
public static void prepareInsertChangeset(java.sql.PreparedStatement ps,
long commandId,
java.sql.Clob addGraph,
java.sql.Clob removeGraph,
java.sql.Clob addMetaGraph,
java.sql.Clob removeMetaGraph,
java.lang.String uri)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setcommandId - template parameteraddGraph - template parameterremoveGraph - template parameteraddMetaGraph - template parameterremoveMetaGraph - template parameteruri - template parameter
java.sql.SQLException
public static java.lang.Long selectMaxChangesetId(PreparedStatementCache sqlCache,
java.lang.String transactionTableName)
throws RdbException
SELECT MAX(id) FROM ${a}
sqlCache - factory and cache of PreparedStatmentstransactionTableName - template parameter
RdbException
public static void prepareSelectMaxChangesetId(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are set
java.sql.SQLException
public static int deleteChangeset(PreparedStatementCache sqlCache,
TransactionSQL.DeleteChangesetParams params,
java.lang.String transactionTableName)
throws RdbException
DELETE FROM ${a} WHERE COMMANDID = ? AND ID = ?
sqlCache - factory and cache of PreparedStatmentsparams - DeleteChangesetParams input InterfacetransactionTableName - template parameter
RdbException
public static int deleteChangeset(PreparedStatementCache sqlCache,
long cmdId,
long csId,
java.lang.String transactionTableName)
throws RdbException
DELETE FROM ${a} WHERE COMMANDID = ? AND ID = ?
sqlCache - factory and cache of PreparedStatmentscmdId - template parametercsId - template parametertransactionTableName - template parameter
RdbException
public static void prepareDeleteChangeset(java.sql.PreparedStatement ps,
long cmdId,
long csId)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setcmdId - template parametercsId - template parameter
java.sql.SQLException
public static ClosableIterator<TransactionSQL.SelectChangesetResult> selectChangeset(PreparedStatementCache sqlCache,
long cmdId,
java.lang.String transactionTableName)
throws RdbException
SELECT ID,ADDGRAPH,REMOVEGRAPH,METAADDGRAPH,METAREMOVEGRAPH,NAMEDGRAPHURI FROM ${a} WHERE COMMANDID = ? ORDER BY ID
sqlCache - factory and cache of PreparedStatmentscmdId - template parametertransactionTableName - template parameter
RdbException
public static ClosableIterator<TransactionSQL.SelectChangesetResult> selectChangeset(PreparedStatementCache sqlCache,
long cmdId,
java.lang.String transactionTableName,
Transformer<TransactionSQL.SelectChangesetResult> transform)
throws RdbException
SELECT ID,ADDGRAPH,REMOVEGRAPH,METAADDGRAPH,METAREMOVEGRAPH,NAMEDGRAPHURI FROM ${a} WHERE COMMANDID = ? ORDER BY ID
sqlCache - factory and cache of PreparedStatmentscmdId - template parametertransactionTableName - template parametertransform - org.openanzo.jdbc.utils.TransformerRdbException
public static void prepareSelectChangeset(java.sql.PreparedStatement ps,
long cmdId)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setcmdId - template parameter
java.sql.SQLException
public static int updateCommand(PreparedStatementCache sqlCache,
TransactionSQL.UpdateCommandParams params,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} set transactionId=?,commandType=?,context=?,preReq=? where id=?
sqlCache - factory and cache of PreparedStatmentsparams - UpdateCommandParams input InterfacetransactionTableName - template parameter
RdbException
public static int updateCommand(PreparedStatementCache sqlCache,
long transactionId,
java.lang.String commandType,
java.sql.Clob context,
java.sql.Clob preReq,
long id,
java.lang.String transactionTableName)
throws RdbException
UPDATE ${a} set transactionId=?,commandType=?,context=?,preReq=? where id=?
sqlCache - factory and cache of PreparedStatmentstransactionId - template parametercommandType - template parametercontext - template parameterpreReq - template parameterid - template parametertransactionTableName - template parameter
RdbException
public static void prepareUpdateCommand(java.sql.PreparedStatement ps,
long transactionId,
java.lang.String commandType,
java.sql.Clob context,
java.sql.Clob preReq,
long id)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are settransactionId - template parametercommandType - template parametercontext - template parameterpreReq - template parameterid - template parameter
java.sql.SQLException
public static int insertCommand(PreparedStatementCache sqlCache,
TransactionSQL.InsertCommandParams params,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a} (transactionId, commandType,context,prereq) VALUES (?, ?, ?, ?)
sqlCache - factory and cache of PreparedStatmentsparams - InsertCommandParams input InterfacetransactionTableName - template parameter
RdbException
public static int insertCommand(PreparedStatementCache sqlCache,
long transactionId,
java.lang.String commandType,
java.sql.Clob context,
java.sql.Clob preReq,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a} (transactionId, commandType,context,prereq) VALUES (?, ?, ?, ?)
sqlCache - factory and cache of PreparedStatmentstransactionId - template parametercommandType - template parametercontext - template parameterpreReq - template parametertransactionTableName - template parameter
RdbException
public static void prepareInsertCommand(java.sql.PreparedStatement ps,
long transactionId,
java.lang.String commandType,
java.sql.Clob context,
java.sql.Clob preReq)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are settransactionId - template parametercommandType - template parametercontext - template parameterpreReq - template parameter
java.sql.SQLException
public static int deleteCommand(PreparedStatementCache sqlCache,
TransactionSQL.DeleteCommandParams params,
java.lang.String transactionTableName)
throws RdbException
DELETE FROM ${a} WHERE TRANSACTIONID = ? AND ID = ?
sqlCache - factory and cache of PreparedStatmentsparams - DeleteCommandParams input InterfacetransactionTableName - template parameter
RdbException
public static int deleteCommand(PreparedStatementCache sqlCache,
long transactionId,
long cmdId,
java.lang.String transactionTableName)
throws RdbException
DELETE FROM ${a} WHERE TRANSACTIONID = ? AND ID = ?
sqlCache - factory and cache of PreparedStatmentstransactionId - template parametercmdId - template parametertransactionTableName - template parameter
RdbException
public static void prepareDeleteCommand(java.sql.PreparedStatement ps,
long transactionId,
long cmdId)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are settransactionId - template parametercmdId - template parameter
java.sql.SQLException
public static int deleteTransaction(PreparedStatementCache sqlCache,
long transactionId,
java.lang.String transactionTableName)
throws RdbException
DELETE FROM ${a} WHERE ID = ?
sqlCache - factory and cache of PreparedStatmentstransactionId - template parametertransactionTableName - template parameter
RdbException
public static void prepareDeleteTransaction(java.sql.PreparedStatement ps,
long transactionId)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are settransactionId - template parameter
java.sql.SQLException
public static ClosableIterator<TransactionSQL.SelectCommandResult> selectCommand(PreparedStatementCache sqlCache,
long transactionId,
java.lang.String transactionTableName)
throws RdbException
SELECT ID,COMMANDTYPE,PREREQ,CONTEXT FROM ${a} WHERE TRANSACTIONID = ? ORDER BY ID
sqlCache - factory and cache of PreparedStatmentstransactionId - template parametertransactionTableName - template parameter
RdbException
public static ClosableIterator<TransactionSQL.SelectCommandResult> selectCommand(PreparedStatementCache sqlCache,
long transactionId,
java.lang.String transactionTableName,
Transformer<TransactionSQL.SelectCommandResult> transform)
throws RdbException
SELECT ID,COMMANDTYPE,PREREQ,CONTEXT FROM ${a} WHERE TRANSACTIONID = ? ORDER BY ID
sqlCache - factory and cache of PreparedStatmentstransactionId - template parametertransactionTableName - template parametertransform - org.openanzo.jdbc.utils.TransformerRdbException
public static void prepareSelectCommand(java.sql.PreparedStatement ps,
long transactionId)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are settransactionId - template parameter
java.sql.SQLException
public static int insertTransaction(PreparedStatementCache sqlCache,
java.sql.Timestamp created,
java.lang.String transactionTableName)
throws RdbException
INSERT INTO ${a} (CREATED) VALUES (?)
sqlCache - factory and cache of PreparedStatmentscreated - template parametertransactionTableName - template parameter
RdbException
public static void prepareInsertTransaction(java.sql.PreparedStatement ps,
java.sql.Timestamp created)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setcreated - template parameter
java.sql.SQLException
public static java.lang.Long maxId(PreparedStatementCache sqlCache,
java.lang.String transactionTableName)
throws RdbException
SELECT MAX(ID) FROM ${a}
sqlCache - factory and cache of PreparedStatmentstransactionTableName - template parameter
RdbException
public static void prepareMaxId(java.sql.PreparedStatement ps)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are set
java.sql.SQLException
public static ClosableIterator<java.lang.Long> selectTransactions(PreparedStatementCache sqlCache,
java.lang.String transactionTableName)
throws RdbException
SELECT ID FROM ${a} ORDER BY ID
sqlCache - factory and cache of PreparedStatmentstransactionTableName - template parameter
RdbException
public static ClosableIterator<java.lang.Long> selectTransactions(PreparedStatementCache sqlCache,
java.lang.String transactionTableName,
Transformer<java.lang.Long> transform)
throws RdbException
SELECT ID FROM ${a} ORDER BY ID
sqlCache - factory and cache of PreparedStatmentstransactionTableName - template parametertransform - org.openanzo.jdbc.utils.TransformerRdbException
public static void prepareSelectTransactions(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 | |||||||||