org.openanzo.server.repository.rdb.sql
Class AciRdbWrapper

java.lang.Object
  extended by org.openanzo.server.repository.rdb.sql.AciRdbWrapper

public class AciRdbWrapper
extends java.lang.Object

AciRdbWrapper provides wrappers around SQL queries and transforms ResultSets into java objects

Author:
Generated Source from org.openanzo.jdbc.utils.opgen.jet

Nested Class Summary
static class AciRdbWrapper.BatchDeleteAccessControl
          Batch operation for adding parameters to the DeleteAccessControl prepared statement
static class AciRdbWrapper.BatchInsertAccessControl
          Batch operation for adding parameters to the InsertAccessControl prepared statement
static class AciRdbWrapper.BatchUpdateAccessControl
          Batch operation for adding parameters to the UpdateAccessControl prepared statement
static interface AciRdbWrapper.DeleteAccessControlParams
          Interface for managing the parameters to the deleteAccessControl prepared statement.
static class AciRdbWrapper.DeleteAccessControlParamsImpl
          Default implementation of DeleteAccessControlParams
static interface AciRdbWrapper.InsertAccessControlParams
          Interface for managing the parameters to the insertAccessControl prepared statement.
static class AciRdbWrapper.InsertAccessControlParamsImpl
          Default implementation of InsertAccessControlParams
static interface AciRdbWrapper.SelectAccessControlResult
          Interface for holding the results of the selectAccessControl prepared statement.
static class AciRdbWrapper.SelectAccessControlResultImpl
          Default implementation of SelectAccessControlResult
static interface AciRdbWrapper.UpdateAccessControlParams
          Interface for managing the parameters to the updateAccessControl prepared statement.
static class AciRdbWrapper.UpdateAccessControlParamsImpl
          Default implementation of UpdateAccessControlParams
 
Field Summary
static java.lang.String deleteAccessControl
          Constant "deleteAccessControl" used to reference prepared statement Aci.deleteAccessControl UPDATE ACIS SET HEND=? WHERE ID = ?;
static java.lang.String insertAccessControl
          Constant "insertAccessControl" used to reference prepared statement Aci.insertAccessControl INSERT INTO ACIS (ID, CANREAD, CANADD, CANREMOVE, CANINSERTNAMEDGRAPH, CANREMOVENAMEDGRAPH, CANCHANGENAMEDGRAPHACL, ROLEID, ACLID, HSTART) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
static java.lang.String selectAccessControl
          Constant "selectAccessControl" used to reference prepared statement Aci.selectAccessControl SELECT ACLID, ROLEID, CANREAD, CANADD, CANREMOVE, CANINSERTNAMEDGRAPH, CANREMOVENAMEDGRAPH, CANCHANGENAMEDGRAPHACL FROM ACIS WHERE ID = ? ;
static java.lang.String updateAccessControl
          Constant "updateAccessControl" used to reference prepared statement Aci.updateAccessControl UPDATE ACIS SET CANREAD = ?, CANADD = ?, CANREMOVE = ?, CANINSERTNAMEDGRAPH = ?, CANREMOVENAMEDGRAPH = ?, CANCHANGENAMEDGRAPHACL = ?, ROLEID = ?, ACLID = ? WHERE ID = ? ;
 
Constructor Summary
AciRdbWrapper()
           
 
Method Summary
static void deleteAccessControl(PreparedStatementCache sqlCache, AciRdbWrapper.DeleteAccessControlParams params)
          Runs the deleteAccessControl prepared statement.
static void deleteAccessControl(PreparedStatementCache sqlCache, java.lang.Long hend, long id)
          Runs the deleteAccessControl prepared statement.
static void insertAccessControl(PreparedStatementCache sqlCache, AciRdbWrapper.InsertAccessControlParams params)
          Runs the insertAccessControl prepared statement.
static void insertAccessControl(PreparedStatementCache sqlCache, long id, int read, int add, int remove, int insertNamedGraph, int removeNamedGraph, int changeNamedGraphAcl, long roleId, long aclId, java.lang.Long hstart)
          Runs the insertAccessControl prepared statement.
static void prepareDeleteAccessControl(java.sql.PreparedStatement ps, java.lang.Long hend, long id)
          Sets the input parameters for the deleteAccessControl prepared statement.
static void prepareInsertAccessControl(java.sql.PreparedStatement ps, long id, int read, int add, int remove, int insertNamedGraph, int removeNamedGraph, int changeNamedGraphAcl, long roleId, long aclId, java.lang.Long hstart)
          Sets the input parameters for the insertAccessControl prepared statement.
static void prepareSelectAccessControl(java.sql.PreparedStatement ps, long id)
          Sets the input parameters for the selectAccessControl prepared statement.
static void prepareUpdateAccessControl(java.sql.PreparedStatement ps, int read, int add, int remove, int insertNamedGraph, int removeNamedGraph, int changeNamedGraphAcl, long roleId, long aclId, long id)
          Sets the input parameters for the updateAccessControl prepared statement.
static AciRdbWrapper.SelectAccessControlResult selectAccessControl(PreparedStatementCache sqlCache, long id)
          Runs the selectAccessControl prepared statement.
static AciRdbWrapper.SelectAccessControlResult selectAccessControl(PreparedStatementCache sqlCache, long id, AciRdbWrapper.SelectAccessControlResult result)
          Runs the selectAccessControl prepared statement.
static void updateAccessControl(PreparedStatementCache sqlCache, AciRdbWrapper.UpdateAccessControlParams params)
          Runs the updateAccessControl prepared statement.
static void updateAccessControl(PreparedStatementCache sqlCache, int read, int add, int remove, int insertNamedGraph, int removeNamedGraph, int changeNamedGraphAcl, long roleId, long aclId, long id)
          Runs the updateAccessControl prepared statement.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectAccessControl

public static final java.lang.String selectAccessControl
Constant "selectAccessControl" used to reference prepared statement Aci.selectAccessControl SELECT ACLID, ROLEID, CANREAD, CANADD, CANREMOVE, CANINSERTNAMEDGRAPH, CANREMOVENAMEDGRAPH, CANCHANGENAMEDGRAPHACL FROM ACIS WHERE ID = ? ;

See Also:
Constant Field Values

updateAccessControl

public static final java.lang.String updateAccessControl
Constant "updateAccessControl" used to reference prepared statement Aci.updateAccessControl UPDATE ACIS SET CANREAD = ?, CANADD = ?, CANREMOVE = ?, CANINSERTNAMEDGRAPH = ?, CANREMOVENAMEDGRAPH = ?, CANCHANGENAMEDGRAPHACL = ?, ROLEID = ?, ACLID = ? WHERE ID = ? ;

See Also:
Constant Field Values

insertAccessControl

public static final java.lang.String insertAccessControl
Constant "insertAccessControl" used to reference prepared statement Aci.insertAccessControl INSERT INTO ACIS (ID, CANREAD, CANADD, CANREMOVE, CANINSERTNAMEDGRAPH, CANREMOVENAMEDGRAPH, CANCHANGENAMEDGRAPHACL, ROLEID, ACLID, HSTART) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);

See Also:
Constant Field Values

deleteAccessControl

public static final java.lang.String deleteAccessControl
Constant "deleteAccessControl" used to reference prepared statement Aci.deleteAccessControl UPDATE ACIS SET HEND=? WHERE ID = ?;

See Also:
Constant Field Values
Constructor Detail

AciRdbWrapper

public AciRdbWrapper()
Method Detail

selectAccessControl

public static AciRdbWrapper.SelectAccessControlResult selectAccessControl(PreparedStatementCache sqlCache,
                                                                          long id)
                                                                   throws AnzoException,
                                                                          java.sql.SQLException
Runs the selectAccessControl prepared statement. SELECT ACLID, ROLEID, CANREAD, CANADD, CANREMOVE, CANINSERTNAMEDGRAPH, CANREMOVENAMEDGRAPH, CANCHANGENAMEDGRAPHACL FROM ACIS WHERE ID = ? ;

Parameters:
sqlCache - factory and cache of PreparedStatments
id - template parameter
Returns:
SelectAccessControlResult containing the results of the SQL operation
Throws:
AnzoException
java.sql.SQLException

selectAccessControl

public static AciRdbWrapper.SelectAccessControlResult selectAccessControl(PreparedStatementCache sqlCache,
                                                                          long id,
                                                                          AciRdbWrapper.SelectAccessControlResult result)
                                                                   throws AnzoException,
                                                                          java.sql.SQLException
Runs the selectAccessControl prepared statement. SELECT ACLID, ROLEID, CANREAD, CANADD, CANREMOVE, CANINSERTNAMEDGRAPH, CANREMOVENAMEDGRAPH, CANCHANGENAMEDGRAPHACL FROM ACIS WHERE ID = ? ;

Parameters:
sqlCache - factory and cache of PreparedStatments
id - template parameter
result - SelectAccessControlResult result object
Returns:
SelectAccessControlResult
Throws:
AnzoException
java.sql.SQLException

prepareSelectAccessControl

public static void prepareSelectAccessControl(java.sql.PreparedStatement ps,
                                              long id)
                                       throws java.sql.SQLException
Sets the input parameters for the selectAccessControl prepared statement.

Parameters:
ps - PreparedStatement to whose parameters are set
id - template parameter
Throws:
java.sql.SQLException

updateAccessControl

public static void updateAccessControl(PreparedStatementCache sqlCache,
                                       AciRdbWrapper.UpdateAccessControlParams params)
                                throws AnzoException,
                                       java.sql.SQLException
Runs the updateAccessControl prepared statement. UPDATE ACIS SET CANREAD = ?, CANADD = ?, CANREMOVE = ?, CANINSERTNAMEDGRAPH = ?, CANREMOVENAMEDGRAPH = ?, CANCHANGENAMEDGRAPHACL = ?, ROLEID = ?, ACLID = ? WHERE ID = ? ;

Parameters:
sqlCache - factory and cache of PreparedStatments
params - UpdateAccessControlParams input Interface
Throws:
AnzoException
java.sql.SQLException

updateAccessControl

public static void updateAccessControl(PreparedStatementCache sqlCache,
                                       int read,
                                       int add,
                                       int remove,
                                       int insertNamedGraph,
                                       int removeNamedGraph,
                                       int changeNamedGraphAcl,
                                       long roleId,
                                       long aclId,
                                       long id)
                                throws AnzoException,
                                       java.sql.SQLException
Runs the updateAccessControl prepared statement. UPDATE ACIS SET CANREAD = ?, CANADD = ?, CANREMOVE = ?, CANINSERTNAMEDGRAPH = ?, CANREMOVENAMEDGRAPH = ?, CANCHANGENAMEDGRAPHACL = ?, ROLEID = ?, ACLID = ? WHERE ID = ? ;

Parameters:
sqlCache - factory and cache of PreparedStatments
read - template parameter
add - template parameter
remove - template parameter
insertNamedGraph - template parameter
removeNamedGraph - template parameter
changeNamedGraphAcl - template parameter
roleId - template parameter
aclId - template parameter
id - template parameter
Throws:
AnzoException
java.sql.SQLException

prepareUpdateAccessControl

public static void prepareUpdateAccessControl(java.sql.PreparedStatement ps,
                                              int read,
                                              int add,
                                              int remove,
                                              int insertNamedGraph,
                                              int removeNamedGraph,
                                              int changeNamedGraphAcl,
                                              long roleId,
                                              long aclId,
                                              long id)
                                       throws java.sql.SQLException
Sets the input parameters for the updateAccessControl prepared statement.

Parameters:
ps - PreparedStatement to whose parameters are set
read - template parameter
add - template parameter
remove - template parameter
insertNamedGraph - template parameter
removeNamedGraph - template parameter
changeNamedGraphAcl - template parameter
roleId - template parameter
aclId - template parameter
id - template parameter
Throws:
java.sql.SQLException

insertAccessControl

public static void insertAccessControl(PreparedStatementCache sqlCache,
                                       AciRdbWrapper.InsertAccessControlParams params)
                                throws AnzoException,
                                       java.sql.SQLException
Runs the insertAccessControl prepared statement. INSERT INTO ACIS (ID, CANREAD, CANADD, CANREMOVE, CANINSERTNAMEDGRAPH, CANREMOVENAMEDGRAPH, CANCHANGENAMEDGRAPHACL, ROLEID, ACLID, HSTART) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);

Parameters:
sqlCache - factory and cache of PreparedStatments
params - InsertAccessControlParams input Interface
Throws:
AnzoException
java.sql.SQLException

insertAccessControl

public static void insertAccessControl(PreparedStatementCache sqlCache,
                                       long id,
                                       int read,
                                       int add,
                                       int remove,
                                       int insertNamedGraph,
                                       int removeNamedGraph,
                                       int changeNamedGraphAcl,
                                       long roleId,
                                       long aclId,
                                       java.lang.Long hstart)
                                throws AnzoException,
                                       java.sql.SQLException
Runs the insertAccessControl prepared statement. INSERT INTO ACIS (ID, CANREAD, CANADD, CANREMOVE, CANINSERTNAMEDGRAPH, CANREMOVENAMEDGRAPH, CANCHANGENAMEDGRAPHACL, ROLEID, ACLID, HSTART) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);

Parameters:
sqlCache - factory and cache of PreparedStatments
id - template parameter
read - template parameter
add - template parameter
remove - template parameter
insertNamedGraph - template parameter
removeNamedGraph - template parameter
changeNamedGraphAcl - template parameter
roleId - template parameter
aclId - template parameter
hstart - template parameter
Throws:
AnzoException
java.sql.SQLException

prepareInsertAccessControl

public static void prepareInsertAccessControl(java.sql.PreparedStatement ps,
                                              long id,
                                              int read,
                                              int add,
                                              int remove,
                                              int insertNamedGraph,
                                              int removeNamedGraph,
                                              int changeNamedGraphAcl,
                                              long roleId,
                                              long aclId,
                                              java.lang.Long hstart)
                                       throws java.sql.SQLException
Sets the input parameters for the insertAccessControl prepared statement.

Parameters:
ps - PreparedStatement to whose parameters are set
id - template parameter
read - template parameter
add - template parameter
remove - template parameter
insertNamedGraph - template parameter
removeNamedGraph - template parameter
changeNamedGraphAcl - template parameter
roleId - template parameter
aclId - template parameter
hstart - template parameter
Throws:
java.sql.SQLException

deleteAccessControl

public static void deleteAccessControl(PreparedStatementCache sqlCache,
                                       AciRdbWrapper.DeleteAccessControlParams params)
                                throws AnzoException,
                                       java.sql.SQLException
Runs the deleteAccessControl prepared statement. UPDATE ACIS SET HEND=? WHERE ID = ?;

Parameters:
sqlCache - factory and cache of PreparedStatments
params - DeleteAccessControlParams input Interface
Throws:
AnzoException
java.sql.SQLException

deleteAccessControl

public static void deleteAccessControl(PreparedStatementCache sqlCache,
                                       java.lang.Long hend,
                                       long id)
                                throws AnzoException,
                                       java.sql.SQLException
Runs the deleteAccessControl prepared statement. UPDATE ACIS SET HEND=? WHERE ID = ?;

Parameters:
sqlCache - factory and cache of PreparedStatments
hend - template parameter
id - template parameter
Throws:
AnzoException
java.sql.SQLException

prepareDeleteAccessControl

public static void prepareDeleteAccessControl(java.sql.PreparedStatement ps,
                                              java.lang.Long hend,
                                              long id)
                                       throws java.sql.SQLException
Sets the input parameters for the deleteAccessControl prepared statement.

Parameters:
ps - PreparedStatement to whose parameters are set
hend - template parameter
id - template parameter
Throws:
java.sql.SQLException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.