public abstract class BaseTorqueTurbineRolePeerImpl extends org.apache.torque.util.BasePeerImpl<TorqueTurbineRole>
Constructor and Description |
---|
BaseTorqueTurbineRolePeerImpl()
Constructor.
|
BaseTorqueTurbineRolePeerImpl(org.apache.torque.om.mapper.RecordMapper<TorqueTurbineRole> recordMapper,
org.apache.torque.map.TableMap tableMap,
String databaseName)
Constructor providing the objects to be injected as parameters.
|
Modifier and Type | Method and Description |
---|---|
org.apache.torque.util.ColumnValues |
buildColumnValues(TorqueTurbineRole torqueTurbineRole)
Returns the contents of the object as ColumnValues object.
|
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.
|
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.
|
org.apache.torque.criteria.Criteria |
buildCriteria(TorqueTurbineRole obj)
Build a Criteria object from the data object for this peer.
|
org.apache.torque.criteria.Criteria |
buildPkCriteria(Collection<TorqueTurbineRole> objects)
Build a Criteria object which selects all passed objects using their
primary key.
|
org.apache.torque.criteria.Criteria |
buildSelectCriteria(TorqueTurbineRole obj)
Build a Criteria object from the data object for this peer,
skipping all binary columns.
|
int |
doDelete(Collection<TorqueTurbineRole> objects)
Deletes data objects, i.e. rows in a table, in the database.
|
int |
doDelete(Collection<TorqueTurbineRole> objects,
Connection con)
Deletes data objects, i.e. rows in a table, in the database.
|
int |
doDelete(org.apache.torque.om.ObjectKey pk)
Deletes a row in the database.
|
int |
doDelete(org.apache.torque.om.ObjectKey pk,
Connection con)
Deletes a row in the database.
|
int |
doDelete(TorqueTurbineRole obj)
Deletes a data object, i.e. a row in a table, in the database.
|
int |
doDelete(TorqueTurbineRole obj,
Connection con)
Deletes a data object, i.e. a row in a table, in the database.
|
org.apache.torque.om.ObjectKey |
doInsert(org.apache.torque.util.ColumnValues columnValues)
Method to do inserts.
|
org.apache.torque.om.ObjectKey |
doInsert(org.apache.torque.util.ColumnValues columnValues,
Connection con)
Method to do inserts.
|
void |
doInsert(TorqueTurbineRole obj)
Method to do inserts
|
void |
doInsert(TorqueTurbineRole obj,
Connection con)
Method to do inserts.
|
List<TorqueTurbineRole> |
doSelect(TorqueTurbineRole obj)
Selects TorqueTurbineRole objects from the database which have
the same content as the passed object.
|
TorqueTurbineRole |
doSelectSingleRecord(TorqueTurbineRole obj)
Selects at most one TorqueTurbineRole object from the database
which has the same content as the passed object.
|
int |
doUpdate(org.apache.torque.util.ColumnValues columnValues)
Method to do updates.
|
int |
doUpdate(org.apache.torque.util.ColumnValues columnValues,
Connection con)
Method to do updates.
|
int |
doUpdate(TorqueTurbineRole obj)
Updates an TorqueTurbineRole in the database.
|
int |
doUpdate(TorqueTurbineRole obj,
Connection con)
Updates a TorqueTurbineRole in the database.
|
TorqueTurbineRole |
getDbObjectInstance()
Returns a new instance of the Data object class
|
TorqueTurbineRole |
retrieveByPK(Integer pk)
Retrieve a single object by pk
|
TorqueTurbineRole |
retrieveByPK(Integer pk,
Connection con)
Retrieve a single object by pk
|
TorqueTurbineRole |
retrieveByPK(org.apache.torque.om.ObjectKey pk)
Retrieve a single object by pk
|
TorqueTurbineRole |
retrieveByPK(org.apache.torque.om.ObjectKey pk,
Connection con)
Retrieve a single object by pk
|
List<TorqueTurbineRole> |
retrieveByPKs(Collection<org.apache.torque.om.ObjectKey> pks)
Retrieve a multiple objects by pk
|
List<TorqueTurbineRole> |
retrieveByPKs(Collection<org.apache.torque.om.ObjectKey> pks,
Connection dbcon)
Retrieve multiple objects by pk
|
void |
setAndSaveTorqueTurbineRolePermissions(TorqueTurbineRole toLinkTo,
Collection<TorqueTurbineRolePermission> toSave)
Saves the passed collection as linked objects.
|
void |
setAndSaveTorqueTurbineRolePermissions(TorqueTurbineRole toLinkTo,
Collection<TorqueTurbineRolePermission> toSave,
Connection connection)
Saves the passed collection as linked objects.
|
void |
setAndSaveTorqueTurbineUserGroupRoles(TorqueTurbineRole toLinkTo,
Collection<TorqueTurbineUserGroupRole> toSave)
Saves the passed collection as linked objects.
|
void |
setAndSaveTorqueTurbineUserGroupRoles(TorqueTurbineRole toLinkTo,
Collection<TorqueTurbineUserGroupRole> toSave,
Connection connection)
Saves the passed collection as linked objects.
|
addSelectColumns, addSelectColumns, correctBooleans, correctBooleans, correctBooleans, deleteAll, deleteAll, doDelete, doDelete, doDelete, doDelete, doSelect, doSelect, doSelect, doSelect, doSelect, doSelect, doSelect, doSelect, doSelect, doSelect, doSelect, doSelect, doSelectSingleRecord, doSelectSingleRecord, doSelectSingleRecord, doSelectSingleRecord, doUpdate, doUpdate, doUpdate, doUpdate, executeStatement, executeStatement, executeStatement, executeStatement, getDatabaseName, getRecordMapper, getTableMap, initCriteriaKeys, setDatabaseName, setDbName, setDbName, setRecordMapper, setTableMap
public BaseTorqueTurbineRolePeerImpl()
public BaseTorqueTurbineRolePeerImpl(org.apache.torque.om.mapper.RecordMapper<TorqueTurbineRole> recordMapper, org.apache.torque.map.TableMap tableMap, String databaseName)
recordMapper
- a record mapper to map JDBC result sets to objectstableMap
- the default table mapdatabaseName
- the name of the databasepublic List<TorqueTurbineRole> doSelect(TorqueTurbineRole obj) throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public TorqueTurbineRole doSelectSingleRecord(TorqueTurbineRole obj) throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public TorqueTurbineRole getDbObjectInstance()
public org.apache.torque.om.ObjectKey doInsert(org.apache.torque.util.ColumnValues columnValues) throws org.apache.torque.TorqueException
doInsert
in class org.apache.torque.util.BasePeerImpl<TorqueTurbineRole>
columnValues
- the values to insert.org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public org.apache.torque.om.ObjectKey doInsert(org.apache.torque.util.ColumnValues columnValues, Connection con) throws org.apache.torque.TorqueException
doInsert
in class org.apache.torque.util.BasePeerImpl<TorqueTurbineRole>
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 void doInsert(TorqueTurbineRole obj) throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public void doInsert(TorqueTurbineRole 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 int doUpdate(org.apache.torque.util.ColumnValues columnValues) throws org.apache.torque.TorqueException
doUpdate
in class org.apache.torque.util.BasePeerImpl<TorqueTurbineRole>
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 int doUpdate(org.apache.torque.util.ColumnValues columnValues, Connection con) throws org.apache.torque.TorqueException
doUpdate
in class org.apache.torque.util.BasePeerImpl<TorqueTurbineRole>
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 int doUpdate(TorqueTurbineRole 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 int doUpdate(TorqueTurbineRole 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 int doDelete(TorqueTurbineRole 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 int doDelete(TorqueTurbineRole 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 int doDelete(Collection<TorqueTurbineRole> objects) throws org.apache.torque.TorqueException
objects
- the data 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 int doDelete(Collection<TorqueTurbineRole> objects, Connection con) throws org.apache.torque.TorqueException
objects
- the data objects 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 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 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 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 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 org.apache.torque.criteria.Criteria buildPkCriteria(Collection<TorqueTurbineRole> objects)
objects
- the objects to build the criteria from, not null,
may not contain null.public org.apache.torque.criteria.Criteria buildCriteria(TorqueTurbineRole obj)
obj
- the object to build the criteria from, not null.public org.apache.torque.criteria.Criteria buildSelectCriteria(TorqueTurbineRole obj)
obj
- the object to build the criteria from, not null.public org.apache.torque.util.ColumnValues buildColumnValues(TorqueTurbineRole torqueTurbineRole) throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- if the table map cannot be retrieved
(should not happen).public TorqueTurbineRole 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 TorqueTurbineRole 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 TorqueTurbineRole 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 TorqueTurbineRole 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 List<TorqueTurbineRole> 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 List<TorqueTurbineRole> retrieveByPKs(Collection<org.apache.torque.om.ObjectKey> pks, Connection dbcon) throws org.apache.torque.TorqueException
pks
- List of primary keysdbcon
- the connection to useorg.apache.torque.TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.public void setAndSaveTorqueTurbineRolePermissions(TorqueTurbineRole toLinkTo, Collection<TorqueTurbineRolePermission> 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 setAndSaveTorqueTurbineRolePermissions(TorqueTurbineRole toLinkTo, Collection<TorqueTurbineRolePermission> 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 void setAndSaveTorqueTurbineUserGroupRoles(TorqueTurbineRole toLinkTo, Collection<TorqueTurbineUserGroupRole> 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 setAndSaveTorqueTurbineUserGroupRoles(TorqueTurbineRole toLinkTo, Collection<TorqueTurbineUserGroupRole> 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.Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.