Class BaseEasyDeskUserImplPeerImpl

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EasyDeskUserImplPeerImpl

public abstract class BaseEasyDeskUserImplPeerImpl extends AbstractPeerImpl<EasyDeskUserImpl>
Artifactizable(User) The skeleton for this class was autogenerated by Torque on: [Sun Oct 18 20:57:17 KST 2026] You should not use this class directly. It should not even be extended; all references should be to EasyDeskUserImplPeer
  • Constructor Details

    • BaseEasyDeskUserImplPeerImpl

      public BaseEasyDeskUserImplPeerImpl()
      Constructor. The recordMapper, tableMap and databaseName fields are correctly initialized.
    • BaseEasyDeskUserImplPeerImpl

      public BaseEasyDeskUserImplPeerImpl(RecordMapper<EasyDeskUserImpl> recordMapper, 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 Details

    • getDbObjectInstance

      public EasyDeskUserImpl getDbObjectInstance()
      Returns a new instance of the Data object class
    • doUpdate

      public int doUpdate(ColumnValues columnValues, Connection con) throws TorqueException
      Method to do updates. This method is to be used during a transaction, otherwise use the doUpdate(Criteria) method.
      Overrides:
      doUpdate in class BasePeerImpl<EasyDeskUserImpl>
      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:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public int doDelete(EasyDeskUserImpl obj) throws 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:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public int doDelete(EasyDeskUserImpl obj, Connection con) throws 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(EasyDeskUserImpl) 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:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public int doDelete(Collection<EasyDeskUserImpl> objects) throws 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:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public int doDelete(Collection<EasyDeskUserImpl> objects, Connection con) throws 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:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • buildCriteria

      public Criteria buildCriteria(ObjectKey<?> pk)
      Build a Criteria object which selects all objects which have a given primary key.
      Overrides:
      buildCriteria in class AbstractPeerImpl<EasyDeskUserImpl>
      Parameters:
      pk - the primary key value to build the criteria from, not null.
    • buildCriteria

      public Criteria buildCriteria(Collection<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.
    • buildPkCriteria

      public Criteria buildPkCriteria(Collection<EasyDeskUserImpl> 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.
    • buildCriteria

      public Criteria buildCriteria(EasyDeskUserImpl 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:
      buildCriteria in class AbstractPeerImpl<EasyDeskUserImpl>
      Parameters:
      obj - the object to build the criteria from, not null.
    • buildSelectCriteria

      public Criteria buildSelectCriteria(EasyDeskUserImpl obj)
      Build a Criteria object from the data object for this peer, skipping all binary columns.
      Specified by:
      buildSelectCriteria in class AbstractPeerImpl<EasyDeskUserImpl>
      Parameters:
      obj - the object to build the criteria from, not null.
    • buildColumnValues

      public ColumnValues buildColumnValues(EasyDeskUserImpl easyDeskUserImpl) throws 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:
      buildColumnValues in class AbstractPeerImpl<EasyDeskUserImpl>
      Throws:
      TorqueException - if the table map cannot be retrieved (should not happen).
    • retrieveByPK

      Retrieve a single object by pk
      Parameters:
      pk - the primary key
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
      NoRowsException - Primary key was not found in database.
      TooManyRowsException - Primary key was not found in database.
    • retrieveByPK

      Retrieve a single object by pk
      Parameters:
      pk - the primary key
      con - the connection to use
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
      NoRowsException - Primary key was not found in database.
      TooManyRowsException - Primary key was not found in database.
    • retrieveByPK

      Retrieve a single object by pk
      Parameters:
      pk - the primary key
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
      NoRowsException - Primary key was not found in database.
      TooManyRowsException - Primary key was not found in database.
    • retrieveByPK

      Retrieve a single object by pk
      Parameters:
      pk - the primary key
      con - the connection to use
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
      NoRowsException - Primary key was not found in database.
      TooManyRowsException - Primary key was not found in database.
    • retrieveByTypedPKs

      public List<EasyDeskUserImpl> retrieveByTypedPKs(Collection<Long> pks) throws 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:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • retrieveByTypedPKs

      public List<EasyDeskUserImpl> retrieveByTypedPKs(Collection<Long> pks, Connection dbcon) throws 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:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • retrieveByObjectKeys

      public List<EasyDeskUserImpl> retrieveByObjectKeys(Collection<ObjectKey<?>> pks) throws 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:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • retrieveByObjectKeys

      public List<EasyDeskUserImpl> retrieveByObjectKeys(Collection<ObjectKey<?>> pks, Connection dbcon) throws 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:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • setAndSaveActivityRelatedByOldUserIds

      public void setAndSaveActivityRelatedByOldUserIds(EasyDeskUserImpl toLinkTo, Collection<Activity> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveActivityRelatedByOldUserIds

      public void setAndSaveActivityRelatedByOldUserIds(EasyDeskUserImpl toLinkTo, Collection<Activity> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveActivityRelatedByNewUserIds

      public void setAndSaveActivityRelatedByNewUserIds(EasyDeskUserImpl toLinkTo, Collection<Activity> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveActivityRelatedByNewUserIds

      public void setAndSaveActivityRelatedByNewUserIds(EasyDeskUserImpl toLinkTo, Collection<Activity> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveAttachmentRelatedByCreatedBys

      public void setAndSaveAttachmentRelatedByCreatedBys(EasyDeskUserImpl toLinkTo, Collection<Attachment> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveAttachmentRelatedByCreatedBys

      public void setAndSaveAttachmentRelatedByCreatedBys(EasyDeskUserImpl toLinkTo, Collection<Attachment> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveAttachmentRelatedByModifiedBys

      public void setAndSaveAttachmentRelatedByModifiedBys(EasyDeskUserImpl toLinkTo, Collection<Attachment> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveAttachmentRelatedByModifiedBys

      public void setAndSaveAttachmentRelatedByModifiedBys(EasyDeskUserImpl toLinkTo, Collection<Attachment> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveMITLists

      public void setAndSaveMITLists(EasyDeskUserImpl toLinkTo, Collection<MITList> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveMITLists

      public void setAndSaveMITLists(EasyDeskUserImpl toLinkTo, Collection<MITList> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveModuleUserAttributes

      public void setAndSaveModuleUserAttributes(EasyDeskUserImpl toLinkTo, Collection<ModuleUserAttribute> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveModuleUserAttributes

      public void setAndSaveModuleUserAttributes(EasyDeskUserImpl toLinkTo, Collection<ModuleUserAttribute> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveUserAttributeOptions

      public void setAndSaveUserAttributeOptions(EasyDeskUserImpl toLinkTo, Collection<UserAttributeOption> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveUserAttributeOptions

      public void setAndSaveUserAttributeOptions(EasyDeskUserImpl toLinkTo, Collection<UserAttributeOption> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveActivitySets

      public void setAndSaveActivitySets(EasyDeskUserImpl toLinkTo, Collection<ActivitySet> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveActivitySets

      public void setAndSaveActivitySets(EasyDeskUserImpl toLinkTo, Collection<ActivitySet> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveQuerys

      public void setAndSaveQuerys(EasyDeskUserImpl toLinkTo, Collection<Query> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveQuerys

      public void setAndSaveQuerys(EasyDeskUserImpl toLinkTo, Collection<Query> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveQueryUsers

      public void setAndSaveQueryUsers(EasyDeskUserImpl toLinkTo, Collection<QueryUser> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveQueryUsers

      public void setAndSaveQueryUsers(EasyDeskUserImpl toLinkTo, Collection<QueryUser> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveReports

      public void setAndSaveReports(EasyDeskUserImpl toLinkTo, Collection<Report> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveReports

      public void setAndSaveReports(EasyDeskUserImpl toLinkTo, Collection<Report> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveTransitionConditions

      public void setAndSaveTransitionConditions(EasyDeskUserImpl toLinkTo, Collection<TransitionCondition> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveTransitionConditions

      public void setAndSaveTransitionConditions(EasyDeskUserImpl toLinkTo, Collection<TransitionCondition> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveNotificationStatusRelatedByCreatorIds

      public void setAndSaveNotificationStatusRelatedByCreatorIds(EasyDeskUserImpl toLinkTo, Collection<NotificationStatus> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveNotificationStatusRelatedByCreatorIds

      public void setAndSaveNotificationStatusRelatedByCreatorIds(EasyDeskUserImpl toLinkTo, Collection<NotificationStatus> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveNotificationStatusRelatedByReceiverIds

      public void setAndSaveNotificationStatusRelatedByReceiverIds(EasyDeskUserImpl toLinkTo, Collection<NotificationStatus> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveNotificationStatusRelatedByReceiverIds

      public void setAndSaveNotificationStatusRelatedByReceiverIds(EasyDeskUserImpl toLinkTo, Collection<NotificationStatus> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveNotificationFilters

      public void setAndSaveNotificationFilters(EasyDeskUserImpl toLinkTo, Collection<NotificationFilter> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveNotificationFilters

      public void setAndSaveNotificationFilters(EasyDeskUserImpl toLinkTo, Collection<NotificationFilter> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveWorkflows

      public void setAndSaveWorkflows(EasyDeskUserImpl toLinkTo, Collection<Workflow> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveWorkflows

      public void setAndSaveWorkflows(EasyDeskUserImpl toLinkTo, Collection<Workflow> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveWorkflowGroups

      public void setAndSaveWorkflowGroups(EasyDeskUserImpl toLinkTo, Collection<WorkflowGroup> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveWorkflowGroups

      public void setAndSaveWorkflowGroups(EasyDeskUserImpl toLinkTo, Collection<WorkflowGroup> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveEasyDeskUserGroupRoles

      public void setAndSaveEasyDeskUserGroupRoles(EasyDeskUserImpl toLinkTo, Collection<EasyDeskUserGroupRole> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveEasyDeskUserGroupRoles

      public void setAndSaveEasyDeskUserGroupRoles(EasyDeskUserImpl toLinkTo, Collection<EasyDeskUserGroupRole> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveAttributeValues

      public void setAndSaveAttributeValues(EasyDeskUserImpl toLinkTo, Collection<AttributeValue> toSave) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception
    • setAndSaveAttributeValues

      public void setAndSaveAttributeValues(EasyDeskUserImpl toLinkTo, Collection<AttributeValue> toSave, Connection connection) throws Exception
      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:
      TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
      Exception