Class BaseTorqueDynamicGroupPeerImpl
- java.lang.Object
- 
- org.apache.torque.util.BasePeerImpl<T>
- 
- org.apache.torque.util.AbstractPeerImpl<TorqueDynamicGroup>
- 
- org.apache.fulcrum.security.torque.om.BaseTorqueDynamicGroupPeerImpl
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- TorqueDynamicGroupPeerImpl
 
 public abstract class BaseTorqueDynamicGroupPeerImpl extends org.apache.torque.util.AbstractPeerImpl<TorqueDynamicGroup> The skeleton for this class was autogenerated by Torque on: [Thu Nov 04 13:34:23 CET 2021] You should not use this class directly. It should not even be extended; all references should be to TorqueDynamicGroupPeer- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description BaseTorqueDynamicGroupPeerImpl()Constructor.BaseTorqueDynamicGroupPeerImpl(org.apache.torque.om.mapper.RecordMapper<TorqueDynamicGroup> recordMapper, org.apache.torque.map.TableMap tableMap, String databaseName)Constructor providing the objects to be injected as parameters.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.torque.util.ColumnValuesbuildColumnValues(TorqueDynamicGroup torqueDynamicGroup)Returns the contents of the object as ColumnValues object.org.apache.torque.criteria.CriteriabuildCriteria(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.CriteriabuildCriteria(TorqueDynamicGroup obj)Build a Criteria object from the data object for this peer.org.apache.torque.criteria.CriteriabuildCriteria(org.apache.torque.om.ObjectKey<?> pk)Build a Criteria object which selects all objects which have a given primary key.org.apache.torque.criteria.CriteriabuildPkCriteria(Collection<TorqueDynamicGroup> objects)Build a Criteria object which selects all passed objects using their primary key.org.apache.torque.criteria.CriteriabuildSelectCriteria(TorqueDynamicGroup obj)Build a Criteria object from the data object for this peer, skipping all binary columns.intdoDelete(Collection<TorqueDynamicGroup> objects)Deletes data objects, i.e. rows in a table, in the database.intdoDelete(Collection<TorqueDynamicGroup> objects, Connection con)Deletes data objects, i.e. rows in a table, in the database.intdoDelete(TorqueDynamicGroup obj)Deletes a data object, i.e. a row in a table, in the database.intdoDelete(TorqueDynamicGroup obj, Connection con)Deletes a data object, i.e. a row in a table, in the database.intdoUpdate(org.apache.torque.util.ColumnValues columnValues, Connection con)Method to do updates.TorqueDynamicGroupgetDbObjectInstance()Returns a new instance of the Data object classList<TorqueDynamicGroup>retrieveByObjectKeys(Collection<org.apache.torque.om.ObjectKey<?>> pks)Retrieve multiple objects by pk.List<TorqueDynamicGroup>retrieveByObjectKeys(Collection<org.apache.torque.om.ObjectKey<?>> pks, Connection dbcon)Retrieve multiple objects by pk.TorqueDynamicGroupretrieveByPK(Integer pk)Retrieve a single object by pkTorqueDynamicGroupretrieveByPK(Integer pk, Connection con)Retrieve a single object by pkTorqueDynamicGroupretrieveByPK(org.apache.torque.om.ObjectKey<?> pk)Retrieve a single object by pkTorqueDynamicGroupretrieveByPK(org.apache.torque.om.ObjectKey<?> pk, Connection con)Retrieve a single object by pkList<TorqueDynamicGroup>retrieveByTypedPKs(Collection<Integer> pks)Retrieve multiple objects by pk.List<TorqueDynamicGroup>retrieveByTypedPKs(Collection<Integer> pks, Connection dbcon)Retrieve multiple objects by pk.voidsetAndSaveTorqueDynamicGroupRoles(TorqueDynamicGroup toLinkTo, Collection<TorqueDynamicGroupRole> toSave)Saves the passed collection as linked objects.voidsetAndSaveTorqueDynamicGroupRoles(TorqueDynamicGroup toLinkTo, Collection<TorqueDynamicGroupRole> toSave, Connection connection)Saves the passed collection as linked objects.voidsetAndSaveTorqueDynamicUserGroups(TorqueDynamicGroup toLinkTo, Collection<TorqueDynamicUserGroup> toSave)Saves the passed collection as linked objects.voidsetAndSaveTorqueDynamicUserGroups(TorqueDynamicGroup toLinkTo, Collection<TorqueDynamicUserGroup> toSave, Connection connection)Saves the passed collection as linked objects.- 
Methods inherited from class org.apache.torque.util.AbstractPeerImpldoDelete, doDelete, doInsert, doInsert, doInsert, doSelect, doSelectSingleRecord, doUpdate, doUpdate
 - 
Methods inherited from class org.apache.torque.util.BasePeerImpladdSelectColumns, correctBooleans, correctBooleans, doDelete, doDelete, doInsert, doInsert, doInsert, doInsert, doInsert, doSelect, doSelect, doSelect, doSelect, doSelect, doSelect, doSelect, doSelect, doSelectAsStream, doSelectAsStream, doSelectAsStream, doSelectAsStream, doSelectSingleRecord, doSelectSingleRecord, doSelectSingleRecord, doSelectSingleRecord, doUpdate, doUpdate, doUpdate, executeStatement, executeStatement, executeStatement, executeStatement, executeStatement, executeStatement, executeStatement, getDatabaseName, getRecordMapper, getTableMap, setDatabaseName, setDbName, setRecordMapper, setTableMap
 
- 
 
- 
- 
- 
Constructor Detail- 
BaseTorqueDynamicGroupPeerImplpublic BaseTorqueDynamicGroupPeerImpl() Constructor. The recordMapper, tableMap and databaseName fields are correctly initialized.
 - 
BaseTorqueDynamicGroupPeerImplpublic BaseTorqueDynamicGroupPeerImpl(org.apache.torque.om.mapper.RecordMapper<TorqueDynamicGroup> recordMapper, org.apache.torque.map.TableMap tableMap, String databaseName) Constructor providing the objects to be injected as parameters.- Parameters:
- recordMapper- a record mapper to map JDBC result sets to objects
- tableMap- the default table map
- databaseName- the name of the database
 
 
- 
 - 
Method Detail- 
getDbObjectInstancepublic TorqueDynamicGroup getDbObjectInstance() Returns a new instance of the Data object class
 - 
doUpdatepublic int doUpdate(org.apache.torque.util.ColumnValues columnValues, Connection con) throws org.apache.torque.TorqueException Method to do updates. This method is to be used during a transaction, otherwise use the doUpdate(Criteria) method.- Overrides:
- doUpdatein class- org.apache.torque.util.BasePeerImpl<TorqueDynamicGroup>
- Parameters:
- columnValues- the values to update plus the primary key identifying the row to update.
- con- the connection to use, not null.
- Returns:
- the number of affected rows.
- Throws:
- org.apache.torque.TorqueException- Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
 
 - 
doDeletepublic int doDelete(TorqueDynamicGroup obj) throws org.apache.torque.TorqueException Deletes a data object, i.e. a row in a table, in the database.- Parameters:
- obj- the data object to delete in the database, not null.
- Returns:
- the number of deleted rows.
- Throws:
- org.apache.torque.TorqueException- Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
 
 - 
doDeletepublic int doDelete(TorqueDynamicGroup obj, Connection con) throws org.apache.torque.TorqueException Deletes a data object, i.e. a row in a table, in the database. This method is to be used during a transaction, otherwise use the doDelete(TorqueDynamicGroup) method.- Parameters:
- obj- the data object to delete in the database, not null.
- con- the connection to use, not null.
- Returns:
- the number of deleted rows.
- Throws:
- org.apache.torque.TorqueException- Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
 
 - 
doDeletepublic int doDelete(Collection<TorqueDynamicGroup> objects) throws org.apache.torque.TorqueException Deletes data objects, i.e. rows in a table, in the database.- Parameters:
- objects- the data object to delete in the database, not null, may not contain null.
- Returns:
- the number of deleted rows.
- Throws:
- org.apache.torque.TorqueException- Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
 
 - 
doDeletepublic int doDelete(Collection<TorqueDynamicGroup> objects, Connection con) throws org.apache.torque.TorqueException Deletes data objects, i.e. rows in a table, in the database. This method uses the passed connection to delete the rows; if a transaction is open in the connection, the deletion happens inside this transaction.- Parameters:
- objects- the data objects to delete in the database, not null, may not contain null.
- con- the connection to use for deleting, not null.
- Returns:
- the number of deleted rows.
- Throws:
- org.apache.torque.TorqueException- Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
 
 - 
buildCriteriapublic 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.- Overrides:
- buildCriteriain class- org.apache.torque.util.AbstractPeerImpl<TorqueDynamicGroup>
- Parameters:
- pk- the primary key value to build the criteria from, not null.
 
 - 
buildCriteriapublic 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.- Parameters:
- pks- the primary key values to build the criteria from, not null, may not contain null.
 
 - 
buildPkCriteriapublic org.apache.torque.criteria.Criteria buildPkCriteria(Collection<TorqueDynamicGroup> objects) Build a Criteria object which selects all passed objects using their primary key. Objects which do not yet have a primary key are ignored.- Parameters:
- objects- the objects to build the criteria from, not null, may not contain null.
 
 - 
buildCriteriapublic org.apache.torque.criteria.Criteria buildCriteria(TorqueDynamicGroup obj) Build a Criteria object from the data object for this peer. The primary key columns are only added if the object is not new.- Specified by:
- buildCriteriain class- org.apache.torque.util.AbstractPeerImpl<TorqueDynamicGroup>
- Parameters:
- obj- the object to build the criteria from, not null.
 
 - 
buildSelectCriteriapublic org.apache.torque.criteria.Criteria buildSelectCriteria(TorqueDynamicGroup obj) Build a Criteria object from the data object for this peer, skipping all binary columns.- Specified by:
- buildSelectCriteriain class- org.apache.torque.util.AbstractPeerImpl<TorqueDynamicGroup>
- Parameters:
- obj- the object to build the criteria from, not null.
 
 - 
buildColumnValuespublic org.apache.torque.util.ColumnValues buildColumnValues(TorqueDynamicGroup torqueDynamicGroup) throws org.apache.torque.TorqueException Returns the contents of the object as ColumnValues object. Primary key columns which are generated on insertion are not added to the returned object if they still have their initial value. Also, columns which have the useDatabaseDefaultValue flag set to true are also not added to the returned object if they still have their initial value.- Specified by:
- buildColumnValuesin class- org.apache.torque.util.AbstractPeerImpl<TorqueDynamicGroup>
- Throws:
- org.apache.torque.TorqueException- if the table map cannot be retrieved (should not happen).
 
 - 
retrieveByPKpublic TorqueDynamicGroup retrieveByPK(Integer pk) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException Retrieve a single object by pk- Parameters:
- pk- the primary key
- Throws:
- org.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.
 
 - 
retrieveByPKpublic TorqueDynamicGroup retrieveByPK(Integer pk, Connection con) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException Retrieve a single object by pk- Parameters:
- pk- the primary key
- con- the connection to use
- Throws:
- org.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.
 
 - 
retrieveByPKpublic TorqueDynamicGroup retrieveByPK(org.apache.torque.om.ObjectKey<?> pk) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException Retrieve a single object by pk- Parameters:
- pk- the primary key
- Throws:
- org.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.
 
 - 
retrieveByPKpublic TorqueDynamicGroup retrieveByPK(org.apache.torque.om.ObjectKey<?> pk, Connection con) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException Retrieve a single object by pk- Parameters:
- pk- the primary key
- con- the connection to use
- Throws:
- org.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.
 
 - 
retrieveByTypedPKspublic List<TorqueDynamicGroup> retrieveByTypedPKs(Collection<Integer> pks) throws org.apache.torque.TorqueException Retrieve multiple objects by pk.- Parameters:
- pks- List of primary keys. Entries in pks which do not match entries in the database are ignored.
- Returns:
- the list of matching objects, not null.
- Throws:
- org.apache.torque.TorqueException- Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
 
 - 
retrieveByTypedPKspublic List<TorqueDynamicGroup> retrieveByTypedPKs(Collection<Integer> pks, Connection dbcon) throws org.apache.torque.TorqueException Retrieve multiple objects by pk.- Parameters:
- pks- List of primary keys. Entries in pks which do not match entries in the database are ignored.
- dbcon- the connection to use
- Returns:
- the list of matching objects, not null.
- Throws:
- org.apache.torque.TorqueException- Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
 
 - 
retrieveByObjectKeyspublic List<TorqueDynamicGroup> retrieveByObjectKeys(Collection<org.apache.torque.om.ObjectKey<?>> pks) throws org.apache.torque.TorqueException Retrieve multiple objects by pk.- Parameters:
- pks- List of primary keys. Entries in pks which do not match entries in the database are ignored.
- Returns:
- the list of matching objects, not null.
- Throws:
- org.apache.torque.TorqueException- Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
 
 - 
retrieveByObjectKeyspublic List<TorqueDynamicGroup> retrieveByObjectKeys(Collection<org.apache.torque.om.ObjectKey<?>> pks, Connection dbcon) throws org.apache.torque.TorqueException Retrieve multiple objects by pk.- Parameters:
- pks- List of primary keys. Entries in pks which do not match entries in the database are ignored.
- dbcon- the connection to use
- Returns:
- the list of matching objects, not null.
- Throws:
- org.apache.torque.TorqueException- Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
 
 - 
setAndSaveTorqueDynamicUserGroupspublic void setAndSaveTorqueDynamicUserGroups(TorqueDynamicGroup toLinkTo, Collection<TorqueDynamicUserGroup> toSave) throws org.apache.torque.TorqueException Saves the passed collection as linked objects. This means the following is done:- The current collection of objects which are linked to toLinkTo and which are also in the list toSave is read from the database into the list intersection.
- All objects in toSave which are not in intersection are inserted.
- All objects in intersection are updated with the corresponding values in toSave and saved.
- All objects in the database which are linked to toLinkTo but are not in toSave are deleted from the database.
 - Parameters:
- 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.
- Throws:
- org.apache.torque.TorqueException- if an error accessing the database occurs.
- NullPointerException- if toSave is null or contains null elements.
 
 - 
setAndSaveTorqueDynamicUserGroupspublic void setAndSaveTorqueDynamicUserGroups(TorqueDynamicGroup toLinkTo, Collection<TorqueDynamicUserGroup> toSave, Connection connection) throws org.apache.torque.TorqueException Saves the passed collection as linked objects. This means the following is done:- The current collection of objects which are linked to toLinkTo and which are also in the list toSave is read from the database into the list intersection.
- All objects in toSave which are not in intersection are inserted.
- All objects in intersection are updated with the corresponding values in toSave and saved.
- All objects in the database which are linked to toLinkTo but are not in toSave are deleted from the database.
 - Parameters:
- 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.
- Throws:
- org.apache.torque.TorqueException- if an error accessing the database occurs.
- NullPointerException- if toSave is null or contains null elements.
 
 - 
setAndSaveTorqueDynamicGroupRolespublic void setAndSaveTorqueDynamicGroupRoles(TorqueDynamicGroup toLinkTo, Collection<TorqueDynamicGroupRole> toSave) throws org.apache.torque.TorqueException Saves the passed collection as linked objects. This means the following is done:- The current collection of objects which are linked to toLinkTo and which are also in the list toSave is read from the database into the list intersection.
- All objects in toSave which are not in intersection are inserted.
- All objects in intersection are updated with the corresponding values in toSave and saved.
- All objects in the database which are linked to toLinkTo but are not in toSave are deleted from the database.
 - Parameters:
- 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.
- Throws:
- org.apache.torque.TorqueException- if an error accessing the database occurs.
- NullPointerException- if toSave is null or contains null elements.
 
 - 
setAndSaveTorqueDynamicGroupRolespublic void setAndSaveTorqueDynamicGroupRoles(TorqueDynamicGroup toLinkTo, Collection<TorqueDynamicGroupRole> toSave, Connection connection) throws org.apache.torque.TorqueException Saves the passed collection as linked objects. This means the following is done:- The current collection of objects which are linked to toLinkTo and which are also in the list toSave is read from the database into the list intersection.
- All objects in toSave which are not in intersection are inserted.
- All objects in intersection are updated with the corresponding values in toSave and saved.
- All objects in the database which are linked to toLinkTo but are not in toSave are deleted from the database.
 - Parameters:
- 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.
- Throws:
- org.apache.torque.TorqueException- if an error accessing the database occurs.
- NullPointerException- if toSave is null or contains null elements.
 
 
- 
 
-