Class BaseEasyDeskModulePeer

java.lang.Object
com.easydesk.om.BaseEasyDeskModulePeer
Direct Known Subclasses:
EasyDeskModulePeer

public abstract class BaseEasyDeskModulePeer extends Object
Group Detail Representation Table Artifactizable(Group) The skeleton for this class was autogenerated by Torque on: [Sun Oct 18 20:57:13 KST 2026] You should not use this class directly. It should not even be extended; all references should be to EasyDeskModulePeer
  • Field Details

    • DATABASE_NAME

      public static final String DATABASE_NAME
      The default database name for this class.
    • TABLE_NAME

      public static final String TABLE_NAME
      The table name for this class.
    • TABLE

      public static final TableMap TABLE
      The table map for this class.
    • MODULE_ID

      public static final ColumnMap MODULE_ID
      The column for the MODULE_ID field
    • MODULE_NAME

      public static final ColumnMap MODULE_NAME
      The column for the MODULE_NAME field
    • DOMAIN

      public static final ColumnMap DOMAIN
      The column for the DOMAIN field
    • MODULE_CODE

      public static final ColumnMap MODULE_CODE
      The column for the MODULE_CODE field
    • MODULE_DESCRIPTION

      public static final ColumnMap MODULE_DESCRIPTION
      The column for the MODULE_DESCRIPTION field
    • MODULE_URL

      public static final ColumnMap MODULE_URL
      The column for the MODULE_URL field
    • LOCALE_VALUE

      public static final ColumnMap LOCALE_VALUE
      The column for the LOCALE_VALUE field
    • PARENT_ID

      public static final ColumnMap PARENT_ID
      The column for the PARENT_ID field
    • TEMPLATE_ID

      public static final ColumnMap TEMPLATE_ID
      The column for the TEMPLATE_ID field
    • REMOVED

      public static final ColumnMap REMOVED
      The column for the REMOVED field
    • LOCKED

      public static final ColumnMap LOCKED
      The column for the LOCKED field
    • CLASS_KEY

      public static final ColumnMap CLASS_KEY
      The column for the CLASS_KEY field
    • numColumns

      public static final int numColumns
      number of columns for this peer
      See Also:
    • CLASSKEY_0

      public static final String CLASSKEY_0
      A key representing a particular subclass
      See Also:
  • Constructor Details

    • BaseEasyDeskModulePeer

      public BaseEasyDeskModulePeer()
  • Method Details

    • createEasyDeskModulePeerImpl

      protected static EasyDeskModulePeerImpl createEasyDeskModulePeerImpl()
      Creates a new instance of the implementation of the peer.
      Returns:
      the new instance.
    • getEasyDeskModulePeerImpl

      public static EasyDeskModulePeerImpl getEasyDeskModulePeerImpl()
      Returns an instance of the implementation of the peer. If no instance is currently cached, a new instance is created and cached.
      Returns:
      an instance of the implementation of the peer, not null.
    • setEasyDeskModulePeerImpl

      public static void setEasyDeskModulePeerImpl(EasyDeskModulePeerImpl peerImplInstance)
      Sets the instance of the implementation of the peer.
      Parameters:
      peerImplInstance - an instance of the implementation of the peer, or null if a new instance should be created automatically.
    • addSelectColumns

      public static void addSelectColumns(Criteria criteria)
      Add all the columns needed to create a new object.
      Parameters:
      criteria - object containing the columns to add.
    • correctBooleans

      public static void correctBooleans(Criteria criteria) throws TorqueException
      changes the boolean values in the criteria to the appropriate type, whenever a booleanchar or booleanint column is involved. This enables the user to create criteria using Boolean values for booleanchar or booleanint columns.
      Parameters:
      criteria - the criteria in which the boolean values should be corrected.
      Throws:
      TorqueException - if the database map for the criteria cannot be obtained.
    • correctBooleans

      public static void correctBooleans(ColumnValues columnValues) throws TorqueException
      Checks all columns in the criteria to see whether booleanchar and booleanint columns are queried with a boolean. If yes, the query values are mapped onto values the database does understand, i.e. 0 and 1 for booleanints and N and Y for booleanchar columns.
      Parameters:
      columnValues - The value to be checked for booleanint and booleanchar columns.
      Throws:
      TorqueException - if the database map for the criteria cannot be retrieved.
    • doSelect

      public static List<EasyDeskModule> doSelect(Criteria criteria) throws TorqueException
      Selects EasyDeskModule objects from a database.
      Parameters:
      criteria - object used to create the SELECT statement.
      Returns:
      the list of selected objects, not null.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelect

      public static List<EasyDeskModule> doSelect(Criteria criteria, Connection connection) throws TorqueException
      Selects EasyDeskModule objects from a database within a transaction.
      Parameters:
      criteria - object used to create the SELECT statement.
      connection - the connection holding the transaction, not null.
      Returns:
      The list of selected objects, not null.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectAsStream

      public static Stream<EasyDeskModule> doSelectAsStream(Criteria criteria, Connection connection) throws TorqueException
      Selects EasyDeskModule objects from a database within a transaction. This method returns a stream that must be closed after use. All resources used by this method will be closed when the stream is closed.
      Parameters:
      criteria - object used to create the SELECT statement.
      connection - the connection holding the transaction, not null.
      Returns:
      The results of the query as a Stream, not null.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelect

      public static <T> List<T> doSelect(Criteria criteria, RecordMapper<T> mapper) throws TorqueException
      Selects rows from a database an maps them to objects.
      Parameters:
      criteria - A Criteria specifying the records to select, not null.
      mapper - The mapper creating the objects from the resultSet, not null.
      Returns:
      The results of the query, not null.
      Throws:
      TorqueException - if querying the database fails.
    • doSelect

      public static <T> List<T> doSelect(Criteria criteria, RecordMapper<T> mapper, Connection connection) throws TorqueException
      Selects rows from a database an maps them to objects.
      Parameters:
      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.
      Returns:
      The results of the query, not null.
      Throws:
      TorqueException - Error performing database query.
    • doSelectAsStream

      public static <T> Stream<T> doSelectAsStream(Criteria criteria, RecordMapper<T> mapper, Connection connection) throws TorqueException
      Selects rows from a database an maps them to objects. This method returns a stream that must be closed after use. All resources used by this method will be closed when the stream is closed.
      Parameters:
      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.
      Returns:
      The results of the query as a Stream, not null.
      Throws:
      TorqueException - Error performing database query.
    • doSelect

      public static <T> List<T> doSelect(String query, RecordMapper<T> mapper, String dbName) throws TorqueException
      Selects rows from a database an maps them to objects.
      Parameters:
      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.
      Returns:
      The results of the query, not null.
      Throws:
      TorqueException - if querying the database fails.
    • doSelect

      public static <T> List<T> doSelect(String query, RecordMapper<T> mapper, Connection connection) throws TorqueException
      Selects rows from a database an maps them to objects.
      Parameters:
      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.
      Returns:
      The results of the query, not null.
      Throws:
      TorqueException - if querying the database fails.
    • doSelectAsStream

      public static <T> Stream<T> doSelectAsStream(String query, RecordMapper<T> mapper, Connection connection) throws TorqueException
      Selects rows from a database an maps them to objects. This method returns a stream that must be closed after use. All resources used by this method will be closed when the stream is closed.
      Parameters:
      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.
      Returns:
      The results of the query as a Stream, not null.
      Throws:
      TorqueException - if querying the database fails.
    • doSelect

      public static List<EasyDeskModule> doSelect(EasyDeskModule obj) throws TorqueException
      Selects EasyDeskModule objects from the database which have the same content as the passed object.
      Returns:
      The list of selected objects, not null.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectSingleRecord

      public static EasyDeskModule doSelectSingleRecord(Criteria criteria) throws TorqueException
      Selects at most one EasyDeskModule object from a database.
      Parameters:
      criteria - object used to create the SELECT statement.
      Returns:
      the selected Object, or null if no object was selected.
      Throws:
      TorqueException - If more than one record is selected or if an error occurs when processing the query.
    • doSelectSingleRecord

      public static EasyDeskModule doSelectSingleRecord(Criteria criteria, Connection connection) throws TorqueException
      Selects at most one EasyDeskModule object from a database within a transaction.
      Parameters:
      criteria - object used to create the SELECT statement.
      connection - the connection holding the transaction, not null.
      Returns:
      the selected Object, or null if no object was selected.
      Throws:
      TorqueException - If more than one record is selected or if an error occurs when processing the query.
    • doSelectSingleRecord

      public static <T> T doSelectSingleRecord(Criteria criteria, RecordMapper<T> mapper) throws TorqueException
      Selects at most a single row from a database an maps them to objects.
      Parameters:
      criteria - A Criteria specifying the records to select, not null.
      mapper - The mapper creating the objects from the resultSet, not null.
      Returns:
      The selected row, or null if no records was selected.
      Throws:
      TorqueException - if querying the database fails.
    • doSelectSingleRecord

      public static <T> T doSelectSingleRecord(Criteria criteria, RecordMapper<T> mapper, Connection connection) throws TorqueException
      Selects at most a single row from a database an maps them to objects.
      Parameters:
      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.
      Returns:
      The selected row, or null if no records was selected.
      Throws:
      TorqueException - if querying the database fails.
    • doSelectSingleRecord

      public static EasyDeskModule doSelectSingleRecord(EasyDeskModule obj) throws TorqueException
      Selects at most one EasyDeskModule object from the database which has the same content as the passed object.
      Returns:
      the selected Object, or null if no object was selected.
      Throws:
      TorqueException - If more than one record is selected or if an error occurs when processing the query.
    • getDbObjectInstance

      public static EasyDeskModule getDbObjectInstance()
      Returns a new instance of the Data object class
    • doInsert

      public static ObjectKey<?> doInsert(ColumnValues columnValues) throws TorqueException
      Method to do inserts.
      Parameters:
      columnValues - the values to insert.
      Returns:
      the primary key of the inserted row.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doInsert

      public static ObjectKey<?> doInsert(ColumnValues columnValues, Connection con) throws TorqueException
      Method to do inserts. This method is to be used during a transaction, otherwise use the doInsert(Criteria) method.
      Parameters:
      columnValues - the values to insert.
      con - the connection to use, not null.
      Returns:
      the primary key of the inserted row.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doInsert

      public static void doInsert(EasyDeskModule obj) throws TorqueException
      Method to do inserts
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doInsert

      public static void doInsert(EasyDeskModule obj, Connection con) throws TorqueException
      Method to do inserts. This method is to be used during a transaction, otherwise use the doInsert(EasyDeskModule) method. It will take care of the connection details internally.
      Parameters:
      obj - the data object to insert into the database.
      con - the connection to use
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doInsert

      public static int doInsert(Column[] toInsertInto, Criteria criteria) throws TorqueException
      Executes a insert into...select statement.
      Parameters:
      toInsertInto - the columns in which to insert, not null.
      criteria - the criteria which selects the values to insert, not null.
      Returns:
      the number of inserted rows.
      Throws:
      TorqueException - if a database error occurs.
    • doInsert

      public static int doInsert(Column[] toInsertInto, Criteria criteria, String dbName) throws TorqueException
      Executes a insert into...select statement.
      Parameters:
      toInsertInto - the columns in which to insert, not null.
      criteria - the criteria which selects the values to insert, not null.
      dbName - the database name, or null to take the database name from getDatabaseName().
      Returns:
      the number of inserted rows.
      Throws:
      TorqueException - if a database error occurs.
    • doInsert

      public static int doInsert(Column[] toInsertInto, Criteria criteria, Connection connection) throws TorqueException
      Executes a insert into...select statement.
      Parameters:
      toInsertInto - the columns in which to insert, not null.
      criteria - the criteria which selects the values to insert, not null.
      connection - the database connection to use, not null.
      Returns:
      the number of inserted rows.
      Throws:
      TorqueException - if a database error occurs.
    • doInsert

      public static int doInsert(Column[] toInsertInto, Criteria criteria, String dbName, Connection connection) throws TorqueException
      Executes a insert into...select statement.
      Parameters:
      toInsertInto - the columns in which to insert, not null.
      criteria - the criteria which selects the values to insert, not null.
      dbName - the database name, or null to take the database name from getDatabaseName().
      connection - the database connection to use, not null.
      Returns:
      the number of inserted rows.
      Throws:
      TorqueException - if a database error occurs.
    • doUpdate

      public static int doUpdate(ColumnValues columnValues) throws TorqueException
      Method to do updates.
      Parameters:
      columnValues - the values to update plus the primary key identifying the row to update.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doUpdate

      public static 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. It will take care of the connection details internally.
      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.
    • doUpdate

      public static int doUpdate(Criteria selectCriteria, ColumnValues updateValues) throws TorqueException
      Executes an update against the database. The rows to be updated are selected using criteria and updated using the values in updateValues.
      Parameters:
      selectCriteria - selects which rows of which table should be updated.
      updateValues - Which columns to update with which values, not null.
      Returns:
      the number of affected rows.
      Throws:
      TorqueException - if updating fails.
    • doUpdate

      public static int doUpdate(Criteria criteria, ColumnValues updateValues, Connection connection) throws TorqueException
      Executes an update against the database. The rows to be updated are selected using criteria and updated using the values in updateValues.
      Parameters:
      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.
      Returns:
      the number of affected rows.
      Throws:
      TorqueException - if updating fails.
    • doUpdate

      public static int doUpdate(EasyDeskModule obj) throws TorqueException
      Updates an EasyDeskModule in the database. The primary key is used to identify the object to update.
      Parameters:
      obj - the data object to update in the database.
      Returns:
      the number of affected rows.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doUpdate

      public static int doUpdate(EasyDeskModule obj, Connection con) throws TorqueException
      Updates a EasyDeskModule in the database. The primary key is used to identify the object to update. This method is to be used during a transaction, otherwise the doUpdate(EasyDeskModule) method can be used.
      Parameters:
      obj - the data object to update in the database.
      con - the connection to use, not null.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • executeStatement

      public static int executeStatement(String statementString) throws TorqueException
      Utility method which executes a given sql statement as prepared statement. This method should be used for update, insert, and delete statements. Use executeQuery() for selects.
      Parameters:
      statementString - A String with the sql statement to execute.
      Returns:
      The number of rows affected.
      Throws:
      TorqueException - if executing the statement fails or no database connection can be established.
    • executeStatement

      public static int executeStatement(String statementString, List<JdbcTypedValue> replacementValues) throws TorqueException
      Utility method which executes a given sql statement as prepared statement. This method should be used for update, insert, and delete statements. Use executeQuery() for selects.
      Parameters:
      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.
      Returns:
      The number of rows affected.
      Throws:
      TorqueException - if executing the statement fails or no database connection can be established.
    • executeStatement

      public static int executeStatement(String statementString, String dbName, List<JdbcTypedValue> replacementValues) throws TorqueException
      Utility method which executes a given sql statement as prepared statement. This method should be used for update, insert, and delete statements. Use executeQuery() for selects.
      Parameters:
      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.
      Returns:
      The number of rows affected.
      Throws:
      TorqueException - if executing the statement fails or no database connection can be established.
    • executeStatement

      public static int executeStatement(String statementString, Connection con, List<JdbcTypedValue> replacementValues) throws TorqueException
      Utility method which executes a given sql statement as prepared statement. This method should be used for update, insert, and delete statements. Use executeQuery() for selects.
      Parameters:
      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.
      Returns:
      The number of rows affected.
      Throws:
      TorqueException - if executing the statement fails.
    • executeStatement

      public static int executeStatement(String statementString, Map<String,JdbcTypedValue> replacementValues) throws TorqueException
      Utility method which executes a given sql statement as prepared statement. This method should be used for update, insert, and delete statements. Use executeQuery() for selects.
      Parameters:
      statementString - A String with the sql statement to execute, containing placeholders of the form ":${placeholderName}". ${placeholderName} must contain only letters, digits and the underscore Each placeholder must be followed by a space, except when it is at the end of the statement.
      replacementValues - a map mapping the placeholder names to values to use as placeholders in the query. Can be null or empty if no placeholders need to be filled.
      Returns:
      The number of rows affected.
      Throws:
      TorqueException - if executing the statement fails.
    • executeStatement

      public static int executeStatement(String statementString, String dbName, Map<String,JdbcTypedValue> replacementValues) throws TorqueException
      Utility method which executes a given sql statement as prepared statement. This method should be used for update, insert, and delete statements. Use executeQuery() for selects.
      Parameters:
      statementString - A String with the sql statement to execute, containing placeholders of the form ":${placeholderName}". ${placeholderName} must contain only letters, digits and the underscore Each placeholder must be followed by a space, except when it is at the end of the statement.
      dbName - The name of the database to execute the statement against, or null for the default DB.
      replacementValues - a map mapping the placeholder names to values to use as placeholders in the query. Can be null or empty if no placeholders need to be filled.
      Returns:
      The number of rows affected.
      Throws:
      TorqueException - if executing the statement fails.
    • executeStatement

      public static int executeStatement(String statementString, Connection con, Map<String,JdbcTypedValue> replacementValues) throws TorqueException
      Utility method which executes a given sql statement as prepared statement. This method should be used for update, insert, and delete statements. Use executeQuery() for selects.
      Parameters:
      statementString - A String with the sql statement to execute, containing placeholders of the form ":${placeholderName}". ${placeholderName} must contain only letters, digits and the underscore Each placeholder must be followed by a space, except when it is at the end of the statement.
      con - The database connection to use.
      replacementValues - a map mapping the placeholder names (without leading colons) to values to use as placeholders in the query. Can be null or empty if no placeholders need to be filled.
      Returns:
      The number of rows affected.
      Throws:
      TorqueException - if executing the statement fails.
    • doDelete

      public static int doDelete(Criteria criteria) throws TorqueException
      Deletes rows from a database table.
      Parameters:
      criteria - defines the rows to be deleted, not null.
      Returns:
      the number of deleted rows.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public static int doDelete(Criteria criteria, Connection con) throws TorqueException
      Deletes rows from a table. 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:
      criteria - defines the rows to be deleted, 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 static int doDelete(EasyDeskModule 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 static int doDelete(EasyDeskModule obj, Connection con) throws TorqueException
      Deletes a data object, i.e. a row 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:
      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 static int doDelete(Collection<EasyDeskModule> objects) throws TorqueException
      Deletes data objects, i.e. rows in a table, in the database.
      Parameters:
      objects - the datas 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 static int doDelete(Collection<EasyDeskModule> 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 datas object 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.
    • doDelete

      public static int doDelete(ObjectKey<?> pk) throws TorqueException
      Deletes a row in the database.
      Parameters:
      pk - the ObjectKey that identifies the row to delete.
      Returns:
      the number of deleted rows.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public static int doDelete(ObjectKey<?> pk, Connection con) throws TorqueException
      Deletes a row 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:
      pk - the ObjectKey that identifies the row to delete.
      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 static Criteria buildCriteria(ObjectKey<?> pk)
      Build a Criteria object which selects all objects which have a given primary key.
      Parameters:
      pk - the primary key value to build the criteria from, not null.
    • buildCriteria

      public static 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 static Criteria buildPkCriteria(Collection<EasyDeskModule> 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 static Criteria buildCriteria(EasyDeskModule obj)
      Build a Criteria object from the data object for this peer.
      Parameters:
      obj - the object to build the criteria from, not null.
    • buildSelectCriteria

      public static Criteria buildSelectCriteria(EasyDeskModule obj)
      Build a Criteria object from the data object for this peer, skipping all binary columns.
      Parameters:
      obj - the object to build the criteria from, not null.
    • buildColumnValues

      public static ColumnValues buildColumnValues(EasyDeskModule easyDeskModule) throws TorqueException
      Returns the contents of the object as ColumnValues object
      Throws:
      TorqueException - if the table map cannot be retrieved (should not happen).
    • retrieveByPK

      public static EasyDeskModule retrieveByPK(Long pk) throws TorqueException, NoRowsException, TooManyRowsException
      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

      public static EasyDeskModule retrieveByPK(Long pk, Connection con) throws TorqueException, NoRowsException, TooManyRowsException
      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

      public static EasyDeskModule retrieveByPK(ObjectKey<?> pk) throws TorqueException, NoRowsException, TooManyRowsException
      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

      public static EasyDeskModule retrieveByPK(ObjectKey<?> pk, Connection con) throws TorqueException, NoRowsException, TooManyRowsException
      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 static List<EasyDeskModule> retrieveByTypedPKs(Collection<Long> pks) throws TorqueException
      Retrieve multiple objects by pk.
      Parameters:
      pks - List of primary keys
      Returns:
      the list of matching objects, not null.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • retrieveByTypedPKs

      public static List<EasyDeskModule> retrieveByTypedPKs(Collection<Long> pks, Connection dbcon) throws TorqueException
      Retrieve multiple objects by pk.
      Parameters:
      pks - List of primary keys
      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 static List<EasyDeskModule> retrieveByObjectKeys(Collection<ObjectKey<?>> pks) throws TorqueException
      Retrieve a multiple objects by pk.
      Parameters:
      pks - List of primary keys
      Returns:
      the list of matching objects, not null.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • retrieveByObjectKeys

      public static List<EasyDeskModule> retrieveByObjectKeys(Collection<ObjectKey<?>> pks, Connection con) throws TorqueException
      Retrieve multiple objects by pk.
      Parameters:
      pks - List of primary keys
      con - 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.
    • doSelectJoinEasyDeskModuleRelatedByParentId

      public static List<EasyDeskModule> doSelectJoinEasyDeskModuleRelatedByParentId(Criteria criteria) throws TorqueException
      Selects a collection of dbObjectClassName objects pre-filled with their EasyDeskModule objects.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinEasyDeskModuleRelatedByParentId

      public static List<EasyDeskModule> doSelectJoinEasyDeskModuleRelatedByParentId(Criteria criteria, Connection conn) throws TorqueException
      Selects a collection of EasyDeskModule objects pre-filled with their EasyDeskModule objects.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinEasyDeskModuleRelatedByTemplateId

      public static List<EasyDeskModule> doSelectJoinEasyDeskModuleRelatedByTemplateId(Criteria criteria) throws TorqueException
      Selects a collection of dbObjectClassName objects pre-filled with their EasyDeskModule objects.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinEasyDeskModuleRelatedByTemplateId

      public static List<EasyDeskModule> doSelectJoinEasyDeskModuleRelatedByTemplateId(Criteria criteria, Connection conn) throws TorqueException
      Selects a collection of EasyDeskModule objects pre-filled with their EasyDeskModule objects.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinEasyDeskGroupImpl

      public static List<EasyDeskModule> doSelectJoinEasyDeskGroupImpl(Criteria criteria) throws TorqueException
      Selects a collection of dbObjectClassName objects pre-filled with their EasyDeskGroupImpl objects.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinEasyDeskGroupImpl

      public static List<EasyDeskModule> doSelectJoinEasyDeskGroupImpl(Criteria criteria, Connection conn) throws TorqueException
      Selects a collection of EasyDeskModule objects pre-filled with their EasyDeskGroupImpl objects.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinAllExceptEasyDeskModuleRelatedByParentId

      protected static List<EasyDeskModule> doSelectJoinAllExceptEasyDeskModuleRelatedByParentId(Criteria criteria) throws TorqueException
      selects a collection of EasyDeskModule objects pre-filled with all related objects. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in EasyDeskModulePeer.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinAllExceptEasyDeskModuleRelatedByParentId

      protected static List<EasyDeskModule> doSelectJoinAllExceptEasyDeskModuleRelatedByParentId(Criteria criteria, Connection conn) throws TorqueException
      selects a collection of EasyDeskModule objects pre-filled with related objects. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in EasyDeskModulePeer.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinAllExceptEasyDeskModuleRelatedByTemplateId

      protected static List<EasyDeskModule> doSelectJoinAllExceptEasyDeskModuleRelatedByTemplateId(Criteria criteria) throws TorqueException
      selects a collection of EasyDeskModule objects pre-filled with all related objects. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in EasyDeskModulePeer.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinAllExceptEasyDeskModuleRelatedByTemplateId

      protected static List<EasyDeskModule> doSelectJoinAllExceptEasyDeskModuleRelatedByTemplateId(Criteria criteria, Connection conn) throws TorqueException
      selects a collection of EasyDeskModule objects pre-filled with related objects. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in EasyDeskModulePeer.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinAllExceptEasyDeskGroupImpl

      protected static List<EasyDeskModule> doSelectJoinAllExceptEasyDeskGroupImpl(Criteria criteria) throws TorqueException
      selects a collection of EasyDeskModule objects pre-filled with all related objects. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in EasyDeskModulePeer.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectJoinAllExceptEasyDeskGroupImpl

      protected static List<EasyDeskModule> doSelectJoinAllExceptEasyDeskGroupImpl(Criteria criteria, Connection conn) throws TorqueException
      selects a collection of EasyDeskModule objects pre-filled with related objects. This method is protected by default in order to keep the public api reasonable. You can provide public methods for those you actually need in EasyDeskModulePeer.
      Throws:
      TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • setAndSaveAttributeGroups

      public static void setAndSaveAttributeGroups(EasyDeskModule toLinkTo, Collection<AttributeGroup> 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
    • setAndSaveAttributeGroups

      public void setAndSaveAttributeGroups(EasyDeskModule toLinkTo, Collection<AttributeGroup> 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
    • setAndSaveItems

      public static void setAndSaveItems(EasyDeskModule toLinkTo, Collection<Item> 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
    • setAndSaveItems

      public void setAndSaveItems(EasyDeskModule toLinkTo, Collection<Item> 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
    • setAndSaveModuleItemTypes

      public static void setAndSaveModuleItemTypes(EasyDeskModule toLinkTo, Collection<ModuleItemType> 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
    • setAndSaveModuleItemTypes

      public void setAndSaveModuleItemTypes(EasyDeskModule toLinkTo, Collection<ModuleItemType> 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
    • setAndSaveMITListItemRelatedByModuleIds

      public static void setAndSaveMITListItemRelatedByModuleIds(EasyDeskModule toLinkTo, Collection<MITListItem> 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
    • setAndSaveMITListItemRelatedByModuleIds

      public void setAndSaveMITListItemRelatedByModuleIds(EasyDeskModule toLinkTo, Collection<MITListItem> 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
    • setAndSaveMITListItemRelatedByParentIds

      public static void setAndSaveMITListItemRelatedByParentIds(EasyDeskModule toLinkTo, Collection<MITListItem> 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
    • setAndSaveMITListItemRelatedByParentIds

      public void setAndSaveMITListItemRelatedByParentIds(EasyDeskModule toLinkTo, Collection<MITListItem> 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
    • setAndSaveModuleAttributes

      public static void setAndSaveModuleAttributes(EasyDeskModule toLinkTo, Collection<ModuleAttribute> 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
    • setAndSaveModuleAttributes

      public void setAndSaveModuleAttributes(EasyDeskModule toLinkTo, Collection<ModuleAttribute> 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
    • setAndSaveModuleOptions

      public static void setAndSaveModuleOptions(EasyDeskModule toLinkTo, Collection<ModuleOption> 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
    • setAndSaveModuleOptions

      public void setAndSaveModuleOptions(EasyDeskModule toLinkTo, Collection<ModuleOption> 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 static void setAndSaveModuleUserAttributes(EasyDeskModule 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(EasyDeskModule 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 static void setAndSaveUserAttributeOptions(EasyDeskModule 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(EasyDeskModule 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
    • setAndSaveQuerys

      public static void setAndSaveQuerys(EasyDeskModule 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(EasyDeskModule 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
    • setAndSaveTemplateGroups

      public static void setAndSaveTemplateGroups(EasyDeskModule toLinkTo, Collection<TemplateGroup> 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
    • setAndSaveTemplateGroups

      public void setAndSaveTemplateGroups(EasyDeskModule toLinkTo, Collection<TemplateGroup> 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
    • setAndSaveQueryValues

      public static void setAndSaveQueryValues(EasyDeskModule toLinkTo, Collection<QueryValue> 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
    • setAndSaveQueryValues

      public void setAndSaveQueryValues(EasyDeskModule toLinkTo, Collection<QueryValue> 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 static void setAndSaveReports(EasyDeskModule 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(EasyDeskModule 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 static void setAndSaveTransitionConditions(EasyDeskModule 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(EasyDeskModule 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
    • setAndSaveGlobalParameters

      public static void setAndSaveGlobalParameters(EasyDeskModule toLinkTo, Collection<GlobalParameter> 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
    • setAndSaveGlobalParameters

      public void setAndSaveGlobalParameters(EasyDeskModule toLinkTo, Collection<GlobalParameter> 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 static void setAndSaveNotificationFilters(EasyDeskModule 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(EasyDeskModule 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
    • setAndSaveAnonymousNotificationFilters

      public static void setAndSaveAnonymousNotificationFilters(EasyDeskModule toLinkTo, Collection<AnonymousNotificationFilter> 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
    • setAndSaveAnonymousNotificationFilters

      public void setAndSaveAnonymousNotificationFilters(EasyDeskModule toLinkTo, Collection<AnonymousNotificationFilter> 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 static void setAndSaveWorkflows(EasyDeskModule 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(EasyDeskModule 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 static void setAndSaveWorkflowGroups(EasyDeskModule 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(EasyDeskModule 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
    • setAndSaveEasyDeskValidators

      public static void setAndSaveEasyDeskValidators(EasyDeskModule toLinkTo, Collection<EasyDeskValidator> 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
    • setAndSaveEasyDeskValidators

      public void setAndSaveEasyDeskValidators(EasyDeskModule toLinkTo, Collection<EasyDeskValidator> 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
    • setAndSaveEasyErrors

      public static void setAndSaveEasyErrors(EasyDeskModule toLinkTo, Collection<EasyError> 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
    • setAndSaveEasyErrors

      public void setAndSaveEasyErrors(EasyDeskModule toLinkTo, Collection<EasyError> 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
    • setAndSaveValueFormatters

      public static void setAndSaveValueFormatters(EasyDeskModule toLinkTo, Collection<ValueFormatter> 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
    • setAndSaveValueFormatters

      public void setAndSaveValueFormatters(EasyDeskModule toLinkTo, Collection<ValueFormatter> 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
    • setAndSaveEasyDeskModuleRelatedByParentIds

      public static void setAndSaveEasyDeskModuleRelatedByParentIds(EasyDeskModule toLinkTo, Collection<EasyDeskModule> 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
    • setAndSaveEasyDeskModuleRelatedByParentIds

      public void setAndSaveEasyDeskModuleRelatedByParentIds(EasyDeskModule toLinkTo, Collection<EasyDeskModule> 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
    • setAndSaveEasyDeskModuleRelatedByTemplateIds

      public static void setAndSaveEasyDeskModuleRelatedByTemplateIds(EasyDeskModule toLinkTo, Collection<EasyDeskModule> 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
    • setAndSaveEasyDeskModuleRelatedByTemplateIds

      public void setAndSaveEasyDeskModuleRelatedByTemplateIds(EasyDeskModule toLinkTo, Collection<EasyDeskModule> 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
    • setAndSaveLocalizedErrorInfos

      public static void setAndSaveLocalizedErrorInfos(EasyDeskModule toLinkTo, Collection<LocalizedErrorInfo> 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
    • setAndSaveLocalizedErrorInfos

      public void setAndSaveLocalizedErrorInfos(EasyDeskModule toLinkTo, Collection<LocalizedErrorInfo> 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
    • setAndSaveLocalizedListInfos

      public static void setAndSaveLocalizedListInfos(EasyDeskModule toLinkTo, Collection<LocalizedListInfo> 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
    • setAndSaveLocalizedListInfos

      public void setAndSaveLocalizedListInfos(EasyDeskModule toLinkTo, Collection<LocalizedListInfo> 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
    • setAndSaveLocalizedOptionInfos

      public static void setAndSaveLocalizedOptionInfos(EasyDeskModule toLinkTo, Collection<LocalizedOptionInfo> 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
    • setAndSaveLocalizedOptionInfos

      public void setAndSaveLocalizedOptionInfos(EasyDeskModule toLinkTo, Collection<LocalizedOptionInfo> 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
    • setAndSaveOptionOptions

      public static void setAndSaveOptionOptions(EasyDeskModule toLinkTo, Collection<OptionOption> 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
    • setAndSaveOptionOptions

      public void setAndSaveOptionOptions(EasyDeskModule toLinkTo, Collection<OptionOption> 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
    • getTableMap

      public static TableMap getTableMap() throws TorqueException
      Returns the TableMap related to this peer.
      Returns:
      the table map, not null.
      Throws:
      TorqueException - if the Peer instance does not hold a Table map.
    • initDatabaseMap

      public static void initDatabaseMap()