public abstract class BaseTorqueDynamicRolePeer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DATABASE_NAME
The default database name for this class.
|
static int |
numColumns
number of columns for this peer
|
static org.apache.torque.map.ColumnMap |
ROLE_ID
The column for the ROLE_ID field
|
static org.apache.torque.map.ColumnMap |
ROLE_NAME
The column for the ROLE_NAME field
|
static org.apache.torque.map.TableMap |
TABLE
The table map for this class.
|
static String |
TABLE_NAME
The table name for this class.
|
Constructor and Description |
---|
BaseTorqueDynamicRolePeer() |
Modifier and Type | Method and Description |
---|---|
static void |
addSelectColumns(org.apache.torque.criteria.Criteria criteria)
Add all the columns needed to create a new object.
|
static org.apache.torque.util.ColumnValues |
buildColumnValues(TorqueDynamicRole torqueDynamicRole)
Returns the contents of the object as ColumnValues object
|
static org.apache.torque.criteria.Criteria |
buildCriteria(Collection<org.apache.torque.om.ObjectKey> pks)
Build a Criteria object which selects all objects which primary keys
are contained in the passed collection.
|
static org.apache.torque.criteria.Criteria |
buildCriteria(org.apache.torque.om.ObjectKey pk)
Build a Criteria object which selects all objects which have a given
primary key.
|
static org.apache.torque.criteria.Criteria |
buildCriteria(TorqueDynamicRole obj)
Build a Criteria object from the data object for this peer.
|
static org.apache.torque.criteria.Criteria |
buildPkCriteria(Collection<TorqueDynamicRole> objects)
Build a Criteria object which selects all passed objects using their
primary key.
|
static org.apache.torque.criteria.Criteria |
buildSelectCriteria(TorqueDynamicRole obj)
Build a Criteria object from the data object for this peer,
skipping all binary columns.
|
static void |
correctBooleans(org.apache.torque.util.ColumnValues columnValues)
Checks all columns in the criteria to see whether
booleanchar and booleanint columns are queried with a boolean.
|
static void |
correctBooleans(org.apache.torque.criteria.Criteria criteria)
changes the boolean values in the criteria to the appropriate type,
whenever a booleanchar or booleanint column is involved.
|
protected static TorqueDynamicRolePeerImpl |
createTorqueDynamicRolePeerImpl()
Creates a new instance of the implementation of the peer.
|
static int |
doDelete(Collection<TorqueDynamicRole> objects)
Deletes data objects, i.e. rows in a table, in the database.
|
static int |
doDelete(Collection<TorqueDynamicRole> objects,
Connection con)
Deletes data objects, i.e. rows in a table, in the database.
|
static int |
doDelete(org.apache.torque.criteria.Criteria criteria)
Deletes rows from a database table.
|
static int |
doDelete(org.apache.torque.criteria.Criteria criteria,
Connection con)
Deletes rows from a table.
|
static int |
doDelete(org.apache.torque.om.ObjectKey pk)
Deletes a row in the database.
|
static int |
doDelete(org.apache.torque.om.ObjectKey pk,
Connection con)
Deletes a row in the database.
|
static int |
doDelete(TorqueDynamicRole obj)
Deletes a data object, i.e. a row in a table, in the database.
|
static int |
doDelete(TorqueDynamicRole obj,
Connection con)
Deletes a data object, i.e. a row in a table, in the database.
|
static org.apache.torque.om.ObjectKey |
doInsert(org.apache.torque.util.ColumnValues columnValues)
Method to do inserts.
|
static org.apache.torque.om.ObjectKey |
doInsert(org.apache.torque.util.ColumnValues columnValues,
Connection con)
Method to do inserts.
|
static void |
doInsert(TorqueDynamicRole obj)
Method to do inserts
|
static void |
doInsert(TorqueDynamicRole obj,
Connection con)
Method to do inserts.
|
static List<TorqueDynamicRole> |
doSelect(org.apache.torque.criteria.Criteria criteria)
Selects TorqueDynamicRole objects from a database.
|
static List<TorqueDynamicRole> |
doSelect(org.apache.torque.criteria.Criteria criteria,
Connection connection)
Selects TorqueDynamicRole objects from a database
within a transaction.
|
static <T> List<T> |
doSelect(org.apache.torque.criteria.Criteria criteria,
org.apache.torque.om.mapper.RecordMapper<T> mapper)
Selects rows from a database an maps them to objects.
|
static <T> List<T> |
doSelect(org.apache.torque.criteria.Criteria criteria,
org.apache.torque.om.mapper.RecordMapper<T> mapper,
Connection connection)
Selects rows from a database an maps them to objects.
|
static <T> List<T> |
doSelect(String query,
org.apache.torque.om.mapper.RecordMapper<T> mapper,
Connection connection)
Selects rows from a database an maps them to objects.
|
static <T> List<T> |
doSelect(String query,
org.apache.torque.om.mapper.RecordMapper<T> mapper,
String dbName)
Selects rows from a database an maps them to objects.
|
static List<TorqueDynamicRole> |
doSelect(TorqueDynamicRole obj)
Selects TorqueDynamicRole objects from the database which have
the same content as the passed object.
|
static TorqueDynamicRole |
doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria)
Selects at most one TorqueDynamicRole object from a database.
|
static TorqueDynamicRole |
doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria,
Connection connection)
Selects at most one TorqueDynamicRole object from a database
within a transaction.
|
static <T> T |
doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria,
org.apache.torque.om.mapper.RecordMapper<T> mapper)
Selects at most a single row from a database an maps them to objects.
|
static <T> T |
doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria,
org.apache.torque.om.mapper.RecordMapper<T> mapper,
Connection connection)
Selects at most a single row from a database an maps them to objects.
|
static TorqueDynamicRole |
doSelectSingleRecord(TorqueDynamicRole obj)
Selects at most one TorqueDynamicRole object from the database
which has the same content as the passed object.
|
static int |
doUpdate(org.apache.torque.util.ColumnValues columnValues)
Method to do updates.
|
static int |
doUpdate(org.apache.torque.util.ColumnValues columnValues,
Connection con)
Method to do updates.
|
static int |
doUpdate(org.apache.torque.criteria.Criteria selectCriteria,
org.apache.torque.util.ColumnValues updateValues)
Executes an update against the database.
|
static int |
doUpdate(org.apache.torque.criteria.Criteria criteria,
org.apache.torque.util.ColumnValues updateValues,
Connection connection)
Executes an update against the database.
|
static int |
doUpdate(TorqueDynamicRole obj)
Updates an TorqueDynamicRole in the database.
|
static int |
doUpdate(TorqueDynamicRole obj,
Connection con)
Updates a TorqueDynamicRole in the database.
|
static int |
executeStatement(String statementString)
Utility method which executes a given sql statement
as prepared statement.
|
static int |
executeStatement(String statementString,
Connection con,
List<org.apache.torque.util.JdbcTypedValue> replacementValues)
Utility method which executes a given sql statement
as prepared statement.
|
static int |
executeStatement(String statementString,
List<org.apache.torque.util.JdbcTypedValue> replacementValues)
Utility method which executes a given sql statement
as prepared statement.
|
static int |
executeStatement(String statementString,
String dbName,
List<org.apache.torque.util.JdbcTypedValue> replacementValues)
Utility method which executes a given sql statement
as prepared statement.
|
static TorqueDynamicRole |
getDbObjectInstance()
Returns a new instance of the Data object class
|
static org.apache.torque.map.TableMap |
getTableMap()
Returns the TableMap related to this peer.
|
static TorqueDynamicRolePeerImpl |
getTorqueDynamicRolePeerImpl()
Returns an instance of the implementation of the peer.
|
static void |
initDatabaseMap() |
static TorqueDynamicRole |
retrieveByPK(Integer pk)
Retrieve a single object by pk
|
static TorqueDynamicRole |
retrieveByPK(Integer pk,
Connection con)
Retrieve a single object by pk
|
static TorqueDynamicRole |
retrieveByPK(org.apache.torque.om.ObjectKey pk)
Retrieve a single object by pk
|
static TorqueDynamicRole |
retrieveByPK(org.apache.torque.om.ObjectKey pk,
Connection con)
Retrieve a single object by pk
|
static List<TorqueDynamicRole> |
retrieveByPKs(Collection<org.apache.torque.om.ObjectKey> pks)
Retrieve a multiple objects by pk
|
static List<TorqueDynamicRole> |
retrieveByPKs(Collection<org.apache.torque.om.ObjectKey> pks,
Connection con)
Retrieve multiple objects by pk
|
static void |
setAndSaveTorqueDynamicGroupRoles(TorqueDynamicRole toLinkTo,
Collection<TorqueDynamicGroupRole> toSave)
Saves the passed collection as linked objects.
|
void |
setAndSaveTorqueDynamicGroupRoles(TorqueDynamicRole toLinkTo,
Collection<TorqueDynamicGroupRole> toSave,
Connection connection)
Saves the passed collection as linked objects.
|
static void |
setAndSaveTorqueDynamicRolePermissions(TorqueDynamicRole toLinkTo,
Collection<TorqueDynamicRolePermission> toSave)
Saves the passed collection as linked objects.
|
void |
setAndSaveTorqueDynamicRolePermissions(TorqueDynamicRole toLinkTo,
Collection<TorqueDynamicRolePermission> toSave,
Connection connection)
Saves the passed collection as linked objects.
|
static void |
setTorqueDynamicRolePeerImpl(TorqueDynamicRolePeerImpl peerImplInstance)
Sets the instance of the implementation of the peer.
|
public static final String DATABASE_NAME
public static final String TABLE_NAME
public static final org.apache.torque.map.TableMap TABLE
public static final org.apache.torque.map.ColumnMap ROLE_ID
public static final org.apache.torque.map.ColumnMap ROLE_NAME
public static final int numColumns
protected static TorqueDynamicRolePeerImpl createTorqueDynamicRolePeerImpl()
public static TorqueDynamicRolePeerImpl getTorqueDynamicRolePeerImpl()
public static void setTorqueDynamicRolePeerImpl(TorqueDynamicRolePeerImpl peerImplInstance)
an
- instance of the implementation of the peer, or null
if a new instance should be created automatically.public static void addSelectColumns(org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- object containing the columns to add.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static void correctBooleans(org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- the criteria in which the boolean values
should be corrected.org.apache.torque.TorqueException
- if the database map for the criteria cannot be
obtained.public static void correctBooleans(org.apache.torque.util.ColumnValues columnValues) throws org.apache.torque.TorqueException
columnValues
- The value to be checked for booleanint
and booleanchar columns.org.apache.torque.TorqueException
- if the database map for the criteria cannot be
retrieved.public static List<TorqueDynamicRole> doSelect(org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- object used to create the SELECT statement.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static List<TorqueDynamicRole> doSelect(org.apache.torque.criteria.Criteria criteria, Connection connection) throws org.apache.torque.TorqueException
criteria
- object used to create the SELECT statement.connection
- the connection holding the transaction, not null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static <T> List<T> doSelect(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper) throws org.apache.torque.TorqueException
criteria
- A Criteria specifying the records to select, not null.mapper
- The mapper creating the objects from the resultSet,
not null.org.apache.torque.TorqueException
- if querying the database fails.public static <T> List<T> doSelect(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection) throws org.apache.torque.TorqueException
criteria
- A Criteria specifying the records to select, not null.mapper
- The mapper creating the objects from the resultSet,
not null.connection
- the database connection for selecting records,
not null.org.apache.torque.TorqueException
- Error performing database query.public static <T> List<T> doSelect(String query, org.apache.torque.om.mapper.RecordMapper<T> mapper, String dbName) throws org.apache.torque.TorqueException
query
- the sql query to execute, not null.mapper
- The mapper creating the objects from the resultSet,
not null.dbName
- The name of the database to create the connection for,
or null for the default SDB.org.apache.torque.TorqueException
- if querying the database fails.public static <T> List<T> doSelect(String query, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection) throws org.apache.torque.TorqueException
query
- the SQL Query to execute, not null.mapper
- The mapper creating the objects from the resultSet,
not null.connection
- the database connection, not null.org.apache.torque.TorqueException
- if querying the database fails.public static List<TorqueDynamicRole> doSelect(TorqueDynamicRole obj) throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static TorqueDynamicRole doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- object used to create the SELECT statement.org.apache.torque.TorqueException
- If more than one record is selected or if
an error occurs when processing the query.public static TorqueDynamicRole doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria, Connection connection) throws org.apache.torque.TorqueException
criteria
- object used to create the SELECT statement.connection
- the connection holding the transaction, not null.org.apache.torque.TorqueException
- If more than one record is selected or if
an error occurs when processing the query.public static <T> T doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper) throws org.apache.torque.TorqueException
criteria
- A Criteria specifying the records to select, not null.mapper
- The mapper creating the objects from the resultSet,
not null.org.apache.torque.TorqueException
- if querying the database fails.public static <T> T doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection) throws org.apache.torque.TorqueException
criteria
- A Criteria specifying the records to select, not null.mapper
- The mapper creating the objects from the resultSet,
not null.connection
- the database connection, not null.org.apache.torque.TorqueException
- if querying the database fails.public static TorqueDynamicRole doSelectSingleRecord(TorqueDynamicRole obj) throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- If more than one record is selected or if
an error occurs when processing the query.public static TorqueDynamicRole getDbObjectInstance()
public static org.apache.torque.om.ObjectKey doInsert(org.apache.torque.util.ColumnValues columnValues) throws org.apache.torque.TorqueException
columnValues
- the values to insert.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static org.apache.torque.om.ObjectKey doInsert(org.apache.torque.util.ColumnValues columnValues, Connection con) throws org.apache.torque.TorqueException
columnValues
- the values to insert.con
- the connection to use, not null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static void doInsert(TorqueDynamicRole obj) throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static void doInsert(TorqueDynamicRole obj, Connection con) throws org.apache.torque.TorqueException
obj
- the data object to insert into the database.con
- the connection to useorg.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doUpdate(org.apache.torque.util.ColumnValues columnValues) throws org.apache.torque.TorqueException
columnValues
- the values to update plus the primary key
identifying the row to update.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doUpdate(org.apache.torque.util.ColumnValues columnValues, Connection con) throws org.apache.torque.TorqueException
columnValues
- the values to update plus the primary key
identifying the row to update.con
- the connection to use, not null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doUpdate(org.apache.torque.criteria.Criteria selectCriteria, org.apache.torque.util.ColumnValues updateValues) throws org.apache.torque.TorqueException
criteria
and updated using the values
in updateValues
.criteria
- selects which rows of which table should be updated.updateValues
- Which columns to update with which values, not null.org.apache.torque.TorqueException
- if updating fails.public static int doUpdate(org.apache.torque.criteria.Criteria criteria, org.apache.torque.util.ColumnValues updateValues, Connection connection) throws org.apache.torque.TorqueException
criteria
and updated using the values
in updateValues
.criteria
- selects which rows of which table should be updated.updateValues
- Which columns to update with which values, not null.connection
- the database connection to use, not null.org.apache.torque.TorqueException
- if updating fails.public static int doUpdate(TorqueDynamicRole obj) throws org.apache.torque.TorqueException
obj
- the data object to update in the database.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doUpdate(TorqueDynamicRole obj, Connection con) throws org.apache.torque.TorqueException
obj
- the data object to update in the database.con
- the connection to use, not null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int executeStatement(String statementString) throws org.apache.torque.TorqueException
statementString
- A String with the sql statement to execute.org.apache.torque.TorqueException
- if executing the statement fails
or no database connection can be established.public static int executeStatement(String statementString, List<org.apache.torque.util.JdbcTypedValue> replacementValues) throws org.apache.torque.TorqueException
statementString
- A String with the sql statement to execute.replacementValues
- values to use as placeholders in the query.
or null or empty if no placeholders need to be filled.org.apache.torque.TorqueException
- if executing the statement fails
or no database connection can be established.public static int executeStatement(String statementString, String dbName, List<org.apache.torque.util.JdbcTypedValue> replacementValues) throws org.apache.torque.TorqueException
statementString
- A String with the sql statement to execute.dbName
- The name of the database to execute the statement against,
or null for the default DB.replacementValues
- values to use as placeholders in the query.
or null or empty if no placeholders need to be filled.org.apache.torque.TorqueException
- if executing the statement fails
or no database connection can be established.public static int executeStatement(String statementString, Connection con, List<org.apache.torque.util.JdbcTypedValue> replacementValues) throws org.apache.torque.TorqueException
statementString
- A String with the sql statement to execute.con
- The database connection to use.replacementValues
- values to use as placeholders in the query.
or null or empty if no placeholders need to be filled.org.apache.torque.TorqueException
- if executing the statement fails.public static int doDelete(org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException
criteria
- defines the rows to be deleted, not null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doDelete(org.apache.torque.criteria.Criteria criteria, Connection con) throws org.apache.torque.TorqueException
criteria
- defines the rows to be deleted, not null.con
- the connection to use, not null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doDelete(TorqueDynamicRole obj) throws org.apache.torque.TorqueException
obj
- the data object to delete in the database, not null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doDelete(TorqueDynamicRole obj, Connection con) throws org.apache.torque.TorqueException
obj
- the data object to delete in the database, not null.con
- the connection to use, not null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doDelete(Collection<TorqueDynamicRole> objects) throws org.apache.torque.TorqueException
objects
- the datas object to delete in the database, not null,
may not contain null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doDelete(Collection<TorqueDynamicRole> objects, Connection con) throws org.apache.torque.TorqueException
objects
- the datas object to delete in the database, not null,
may not contain null.con
- the connection to use for deleting, not null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doDelete(org.apache.torque.om.ObjectKey pk) throws org.apache.torque.TorqueException
pk
- the ObjectKey that identifies the row to delete.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static int doDelete(org.apache.torque.om.ObjectKey pk, Connection con) throws org.apache.torque.TorqueException
pk
- the ObjectKey that identifies the row to delete.con
- the connection to use for deleting, not null.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static org.apache.torque.criteria.Criteria buildCriteria(org.apache.torque.om.ObjectKey pk)
pk
- the primary key value to build the criteria from, not null.public static org.apache.torque.criteria.Criteria buildCriteria(Collection<org.apache.torque.om.ObjectKey> pks)
pks
- the primary key values to build the criteria from, not null,
may not contain null.public static org.apache.torque.criteria.Criteria buildPkCriteria(Collection<TorqueDynamicRole> objects)
objects
- the objects to build the criteria from, not null,
may not contain null.public static org.apache.torque.criteria.Criteria buildCriteria(TorqueDynamicRole obj)
obj
- the object to build the criteria from, not null.public static org.apache.torque.criteria.Criteria buildSelectCriteria(TorqueDynamicRole obj)
obj
- the object to build the criteria from, not null.public static org.apache.torque.util.ColumnValues buildColumnValues(TorqueDynamicRole torqueDynamicRole) throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- if the table map cannot be retrieved
(should not happen).public static TorqueDynamicRole retrieveByPK(Integer pk) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException
pk
- the primary keyorg.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.org.apache.torque.NoRowsException
- Primary key was not found in database.org.apache.torque.TooManyRowsException
- Primary key was not found in database.public static TorqueDynamicRole retrieveByPK(Integer pk, Connection con) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException
pk
- the primary keycon
- the connection to useorg.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.org.apache.torque.NoRowsException
- Primary key was not found in database.org.apache.torque.TooManyRowsException
- Primary key was not found in database.public static TorqueDynamicRole retrieveByPK(org.apache.torque.om.ObjectKey pk) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException
pk
- the primary keyorg.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.org.apache.torque.NoRowsException
- Primary key was not found in database.org.apache.torque.TooManyRowsException
- Primary key was not found in database.public static TorqueDynamicRole retrieveByPK(org.apache.torque.om.ObjectKey pk, Connection con) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException
pk
- the primary keycon
- the connection to useorg.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.org.apache.torque.NoRowsException
- Primary key was not found in database.org.apache.torque.TooManyRowsException
- Primary key was not found in database.public static List<TorqueDynamicRole> retrieveByPKs(Collection<org.apache.torque.om.ObjectKey> pks) throws org.apache.torque.TorqueException
pks
- List of primary keysorg.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static List<TorqueDynamicRole> retrieveByPKs(Collection<org.apache.torque.om.ObjectKey> pks, Connection con) throws org.apache.torque.TorqueException
pks
- List of primary keyscon
- the connection to useorg.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public static void setAndSaveTorqueDynamicRolePermissions(TorqueDynamicRole toLinkTo, Collection<TorqueDynamicRolePermission> toSave) throws org.apache.torque.TorqueException
toLinkTo
- the object which collections should be set with the
values in toSave.toSave
- Contains the objects to save, not null,
may not contain null.org.apache.torque.TorqueException
- if an error accessing the database occurs.NullPointerException
- if toFill is null or contains null elements.public void setAndSaveTorqueDynamicRolePermissions(TorqueDynamicRole toLinkTo, Collection<TorqueDynamicRolePermission> toSave, Connection connection) throws org.apache.torque.TorqueException
toLinkTo
- the object which collections should be set with the
values in toSave.toSave
- Contains the objects to save, not null,
may not contain null.connection
- the database connection to use.org.apache.torque.TorqueException
- if an error accessing the database occurs.NullPointerException
- if toFill is null or contains null elements.public static void setAndSaveTorqueDynamicGroupRoles(TorqueDynamicRole toLinkTo, Collection<TorqueDynamicGroupRole> toSave) throws org.apache.torque.TorqueException
toLinkTo
- the object which collections should be set with the
values in toSave.toSave
- Contains the objects to save, not null,
may not contain null.org.apache.torque.TorqueException
- if an error accessing the database occurs.NullPointerException
- if toFill is null or contains null elements.public void setAndSaveTorqueDynamicGroupRoles(TorqueDynamicRole toLinkTo, Collection<TorqueDynamicGroupRole> toSave, Connection connection) throws org.apache.torque.TorqueException
toLinkTo
- the object which collections should be set with the
values in toSave.toSave
- Contains the objects to save, not null,
may not contain null.connection
- the database connection to use.org.apache.torque.TorqueException
- if an error accessing the database occurs.NullPointerException
- if toFill is null or contains null elements.public static org.apache.torque.map.TableMap getTableMap() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- if the Peer instance does not hold a Table map.public static void initDatabaseMap()
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.