Klasse BaseTurbineUserPeer

java.lang.Object
org.apache.fulcrum.security.torque.om.BaseTurbineUserPeer
Bekannte direkte Unterklassen:
TurbineUserPeer

public abstract class BaseTurbineUserPeer extends Object
The skeleton for this class was autogenerated by Torque on: [Fri Nov 03 10:19:39 CET 2023] You should not use this class directly. It should not even be extended; all references should be to TurbineUserPeer
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final String
    The default database name for this class.
    static final org.apache.torque.map.ColumnMap
    The column for the EMAIL field
    static final org.apache.torque.map.ColumnMap
    The column for the FIRST_NAME field
    static final org.apache.torque.map.ColumnMap
    The column for the LAST_NAME field
    static final org.apache.torque.map.ColumnMap
    The column for the LOGIN_NAME field
    static final int
    number of columns for this peer
    static final org.apache.torque.map.ColumnMap
    The column for the OBJECTDATA field
    static final org.apache.torque.map.ColumnMap
    The column for the PASSWORD_VALUE field
    static final org.apache.torque.map.TableMap
    The table map for this class.
    static final String
    The table name for this class.
    static final org.apache.torque.map.ColumnMap
    The column for the USER_ID field
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static void
    addSelectColumns(org.apache.torque.criteria.Criteria criteria)
    Add all the columns needed to create a new object.
    static org.apache.torque.util.ColumnValues
    Returns the contents of the object as ColumnValues object
    static org.apache.torque.criteria.Criteria
    buildCriteria(Collection<org.apache.torque.om.ObjectKey<?>> pks)
    Build a Criteria object which selects all objects which primary keys are contained in the passed collection.
    static org.apache.torque.criteria.Criteria
    Build a Criteria object from the data object for this peer.
    static org.apache.torque.criteria.Criteria
    buildCriteria(org.apache.torque.om.ObjectKey<?> pk)
    Build a Criteria object which selects all objects which have a given primary key.
    static org.apache.torque.criteria.Criteria
    Build a Criteria object which selects all passed objects using their primary key.
    static org.apache.torque.criteria.Criteria
    Build a Criteria object from the data object for this peer, skipping all binary columns.
    static void
    correctBooleans(org.apache.torque.criteria.Criteria criteria)
    changes the boolean values in the criteria to the appropriate type, whenever a booleanchar or booleanint column is involved.
    static void
    correctBooleans(org.apache.torque.util.ColumnValues columnValues)
    Checks all columns in the criteria to see whether booleanchar and booleanint columns are queried with a boolean.
    protected static TurbineUserPeerImpl
    Creates a new instance of the implementation of the peer.
    static int
    Deletes data objects, i.e. rows in a table, in the database.
    static int
    Deletes data objects, i.e. rows in a table, in the database.
    static int
    Deletes a data object, i.e. a row in a table, in the database.
    static int
    Deletes a data object, i.e. a row in a table, in the database.
    static int
    doDelete(org.apache.torque.criteria.Criteria criteria)
    Deletes rows from a database table.
    static int
    doDelete(org.apache.torque.criteria.Criteria criteria, Connection con)
    Deletes rows from a table.
    static int
    doDelete(org.apache.torque.om.ObjectKey<?> pk)
    Deletes a row in the database.
    static int
    doDelete(org.apache.torque.om.ObjectKey<?> pk, Connection con)
    Deletes a row in the database.
    static void
    Method to do inserts
    static void
    Method to do inserts.
    static int
    doInsert(org.apache.torque.Column[] toInsertInto, org.apache.torque.criteria.Criteria criteria)
    Executes a insert into...select statement.
    static int
    doInsert(org.apache.torque.Column[] toInsertInto, org.apache.torque.criteria.Criteria criteria, String dbName)
    Executes a insert into...select statement.
    static int
    doInsert(org.apache.torque.Column[] toInsertInto, org.apache.torque.criteria.Criteria criteria, String dbName, Connection connection)
    Executes a insert into...select statement.
    static int
    doInsert(org.apache.torque.Column[] toInsertInto, org.apache.torque.criteria.Criteria criteria, Connection connection)
    Executes a insert into...select statement.
    static org.apache.torque.om.ObjectKey<?>
    doInsert(org.apache.torque.util.ColumnValues columnValues)
    Method to do inserts.
    static org.apache.torque.om.ObjectKey<?>
    doInsert(org.apache.torque.util.ColumnValues columnValues, Connection con)
    Method to do inserts.
    static <T> List<T>
    doSelect(String query, org.apache.torque.om.mapper.RecordMapper<T> mapper, String dbName)
    Selects rows from a database an maps them to objects.
    static <T> List<T>
    doSelect(String query, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection)
    Selects rows from a database an maps them to objects.
    Selects TurbineUser objects from the database which have the same content as the passed object.
    doSelect(org.apache.torque.criteria.Criteria criteria)
    Selects TurbineUser objects from a database.
    doSelect(org.apache.torque.criteria.Criteria criteria, Connection connection)
    Selects TurbineUser objects from a database within a transaction.
    static <T> List<T>
    doSelect(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper)
    Selects rows from a database an maps them to objects.
    static <T> List<T>
    doSelect(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection)
    Selects rows from a database an maps them to objects.
    static <T> Stream<T>
    doSelectAsStream(String query, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection)
    Selects rows from a database an maps them to objects.
    doSelectAsStream(org.apache.torque.criteria.Criteria criteria, Connection connection)
    Selects TurbineUser objects from a database within a transaction.
    static <T> Stream<T>
    doSelectAsStream(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection)
    Selects rows from a database an maps them to objects.
    Selects at most one TurbineUser object from the database which has the same content as the passed object.
    doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria)
    Selects at most one TurbineUser object from a database.
    doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria, Connection connection)
    Selects at most one TurbineUser object from a database within a transaction.
    static <T> T
    doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper)
    Selects at most a single row from a database an maps them to objects.
    static <T> T
    doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection)
    Selects at most a single row from a database an maps them to objects.
    static int
    Updates an TurbineUser in the database.
    static int
    Updates a TurbineUser in the database.
    static int
    doUpdate(org.apache.torque.criteria.Criteria selectCriteria, org.apache.torque.util.ColumnValues updateValues)
    Executes an update against the database.
    static int
    doUpdate(org.apache.torque.criteria.Criteria criteria, org.apache.torque.util.ColumnValues updateValues, Connection connection)
    Executes an update against the database.
    static int
    doUpdate(org.apache.torque.util.ColumnValues columnValues)
    Method to do updates.
    static int
    doUpdate(org.apache.torque.util.ColumnValues columnValues, Connection con)
    Method to do updates.
    static int
    executeStatement(String statementString)
    Utility method which executes a given sql statement as prepared statement.
    static int
    executeStatement(String statementString, String dbName, List<org.apache.torque.util.JdbcTypedValue> replacementValues)
    Utility method which executes a given sql statement as prepared statement.
    static int
    executeStatement(String statementString, String dbName, Map<String,org.apache.torque.util.JdbcTypedValue> replacementValues)
    Utility method which executes a given sql statement as prepared statement.
    static int
    executeStatement(String statementString, Connection con, List<org.apache.torque.util.JdbcTypedValue> replacementValues)
    Utility method which executes a given sql statement as prepared statement.
    static int
    executeStatement(String statementString, Connection con, Map<String,org.apache.torque.util.JdbcTypedValue> replacementValues)
    Utility method which executes a given sql statement as prepared statement.
    static int
    executeStatement(String statementString, List<org.apache.torque.util.JdbcTypedValue> replacementValues)
    Utility method which executes a given sql statement as prepared statement.
    static int
    executeStatement(String statementString, Map<String,org.apache.torque.util.JdbcTypedValue> replacementValues)
    Utility method which executes a given sql statement as prepared statement.
    Returns a new instance of the Data object class
    static org.apache.torque.map.TableMap
    Returns the TableMap related to this peer.
    Returns an instance of the implementation of the peer.
    static void
     
    retrieveByObjectKeys(Collection<org.apache.torque.om.ObjectKey<?>> pks)
    Retrieve a multiple objects by pk.
    retrieveByObjectKeys(Collection<org.apache.torque.om.ObjectKey<?>> pks, Connection con)
    Retrieve multiple objects by pk.
    Retrieve a single object by pk
    Retrieve a single object by pk
    retrieveByPK(org.apache.torque.om.ObjectKey<?> pk)
    Retrieve a single object by pk
    retrieveByPK(org.apache.torque.om.ObjectKey<?> pk, Connection con)
    Retrieve a single object by pk
    Retrieve multiple objects by pk.
    Retrieve multiple objects by pk.
    static void
    Saves the passed collection as linked objects.
    void
    Saves the passed collection as linked objects.
    static void
    Sets the instance of the implementation of the peer.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • 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 org.apache.torque.map.TableMap TABLE
      The table map for this class.
    • USER_ID

      public static final org.apache.torque.map.ColumnMap USER_ID
      The column for the USER_ID field
    • LOGIN_NAME

      public static final org.apache.torque.map.ColumnMap LOGIN_NAME
      The column for the LOGIN_NAME field
    • PASSWORD_VALUE

      public static final org.apache.torque.map.ColumnMap PASSWORD_VALUE
      The column for the PASSWORD_VALUE field
    • FIRST_NAME

      public static final org.apache.torque.map.ColumnMap FIRST_NAME
      The column for the FIRST_NAME field
    • LAST_NAME

      public static final org.apache.torque.map.ColumnMap LAST_NAME
      The column for the LAST_NAME field
    • EMAIL

      public static final org.apache.torque.map.ColumnMap EMAIL
      The column for the EMAIL field
    • OBJECTDATA

      public static final org.apache.torque.map.ColumnMap OBJECTDATA
      The column for the OBJECTDATA field
    • numColumns

      public static final int numColumns
      number of columns for this peer
      Siehe auch:
  • Konstruktordetails

    • BaseTurbineUserPeer

      public BaseTurbineUserPeer()
  • Methodendetails

    • createTurbineUserPeerImpl

      protected static TurbineUserPeerImpl createTurbineUserPeerImpl()
      Creates a new instance of the implementation of the peer.
      Gibt zurück:
      the new instance.
    • getTurbineUserPeerImpl

      public static TurbineUserPeerImpl getTurbineUserPeerImpl()
      Returns an instance of the implementation of the peer. If no instance is currently cached, a new instance is created and cached.
      Gibt zurück:
      an instance of the implementation of the peer, not null.
    • setTurbineUserPeerImpl

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

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

      public static void correctBooleans(org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.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.
      Parameter:
      criteria - the criteria in which the boolean values should be corrected.
      Löst aus:
      org.apache.torque.TorqueException - if the database map for the criteria cannot be obtained.
    • correctBooleans

      public static void correctBooleans(org.apache.torque.util.ColumnValues columnValues) throws org.apache.torque.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.
      Parameter:
      columnValues - The value to be checked for booleanint and booleanchar columns.
      Löst aus:
      org.apache.torque.TorqueException - if the database map for the criteria cannot be retrieved.
    • doSelect

      public static List<TurbineUser> doSelect(org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException
      Selects TurbineUser objects from a database.
      Parameter:
      criteria - object used to create the SELECT statement.
      Gibt zurück:
      the list of selected objects, not null.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelect

      public static List<TurbineUser> doSelect(org.apache.torque.criteria.Criteria criteria, Connection connection) throws org.apache.torque.TorqueException
      Selects TurbineUser objects from a database within a transaction.
      Parameter:
      criteria - object used to create the SELECT statement.
      connection - the connection holding the transaction, not null.
      Gibt zurück:
      The list of selected objects, not null.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectAsStream

      public static Stream<TurbineUser> doSelectAsStream(org.apache.torque.criteria.Criteria criteria, Connection connection) throws org.apache.torque.TorqueException
      Selects TurbineUser 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.
      Parameter:
      criteria - object used to create the SELECT statement.
      connection - the connection holding the transaction, not null.
      Gibt zurück:
      The results of the query as a Stream, not null.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelect

      public static <T> List<T> doSelect(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper) throws org.apache.torque.TorqueException
      Selects rows from a database an maps them to objects.
      Parameter:
      criteria - A Criteria specifying the records to select, not null.
      mapper - The mapper creating the objects from the resultSet, not null.
      Gibt zurück:
      The results of the query, not null.
      Löst aus:
      org.apache.torque.TorqueException - if querying the database fails.
    • doSelect

      public static <T> List<T> doSelect(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection) throws org.apache.torque.TorqueException
      Selects rows from a database an maps them to objects.
      Parameter:
      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.
      Gibt zurück:
      The results of the query, not null.
      Löst aus:
      org.apache.torque.TorqueException - Error performing database query.
    • doSelectAsStream

      public static <T> Stream<T> doSelectAsStream(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection) throws org.apache.torque.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.
      Parameter:
      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.
      Gibt zurück:
      The results of the query as a Stream, not null.
      Löst aus:
      org.apache.torque.TorqueException - Error performing database query.
    • doSelect

      public static <T> List<T> doSelect(String query, org.apache.torque.om.mapper.RecordMapper<T> mapper, String dbName) throws org.apache.torque.TorqueException
      Selects rows from a database an maps them to objects.
      Parameter:
      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.
      Gibt zurück:
      The results of the query, not null.
      Löst aus:
      org.apache.torque.TorqueException - if querying the database fails.
    • doSelect

      public static <T> List<T> doSelect(String query, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection) throws org.apache.torque.TorqueException
      Selects rows from a database an maps them to objects.
      Parameter:
      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.
      Gibt zurück:
      The results of the query, not null.
      Löst aus:
      org.apache.torque.TorqueException - if querying the database fails.
    • doSelectAsStream

      public static <T> Stream<T> doSelectAsStream(String query, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection) throws org.apache.torque.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.
      Parameter:
      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.
      Gibt zurück:
      The results of the query as a Stream, not null.
      Löst aus:
      org.apache.torque.TorqueException - if querying the database fails.
    • doSelect

      public static List<TurbineUser> doSelect(TurbineUser obj) throws org.apache.torque.TorqueException
      Selects TurbineUser objects from the database which have the same content as the passed object.
      Gibt zurück:
      The list of selected objects, not null.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doSelectSingleRecord

      public static TurbineUser doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException
      Selects at most one TurbineUser object from a database.
      Parameter:
      criteria - object used to create the SELECT statement.
      Gibt zurück:
      the selected Object, or null if no object was selected.
      Löst aus:
      org.apache.torque.TorqueException - If more than one record is selected or if an error occurs when processing the query.
    • doSelectSingleRecord

      public static TurbineUser doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria, Connection connection) throws org.apache.torque.TorqueException
      Selects at most one TurbineUser object from a database within a transaction.
      Parameter:
      criteria - object used to create the SELECT statement.
      connection - the connection holding the transaction, not null.
      Gibt zurück:
      the selected Object, or null if no object was selected.
      Löst aus:
      org.apache.torque.TorqueException - If more than one record is selected or if an error occurs when processing the query.
    • doSelectSingleRecord

      public static <T> T doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper) throws org.apache.torque.TorqueException
      Selects at most a single row from a database an maps them to objects.
      Parameter:
      criteria - A Criteria specifying the records to select, not null.
      mapper - The mapper creating the objects from the resultSet, not null.
      Gibt zurück:
      The selected row, or null if no records was selected.
      Löst aus:
      org.apache.torque.TorqueException - if querying the database fails.
    • doSelectSingleRecord

      public static <T> T doSelectSingleRecord(org.apache.torque.criteria.Criteria criteria, org.apache.torque.om.mapper.RecordMapper<T> mapper, Connection connection) throws org.apache.torque.TorqueException
      Selects at most a single row from a database an maps them to objects.
      Parameter:
      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.
      Gibt zurück:
      The selected row, or null if no records was selected.
      Löst aus:
      org.apache.torque.TorqueException - if querying the database fails.
    • doSelectSingleRecord

      public static TurbineUser doSelectSingleRecord(TurbineUser obj) throws org.apache.torque.TorqueException
      Selects at most one TurbineUser object from the database which has the same content as the passed object.
      Gibt zurück:
      the selected Object, or null if no object was selected.
      Löst aus:
      org.apache.torque.TorqueException - If more than one record is selected or if an error occurs when processing the query.
    • getDbObjectInstance

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

      public static org.apache.torque.om.ObjectKey<?> doInsert(org.apache.torque.util.ColumnValues columnValues) throws org.apache.torque.TorqueException
      Method to do inserts.
      Parameter:
      columnValues - the values to insert.
      Gibt zurück:
      the primary key of the inserted row.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doInsert

      public static org.apache.torque.om.ObjectKey<?> doInsert(org.apache.torque.util.ColumnValues columnValues, Connection con) throws org.apache.torque.TorqueException
      Method to do inserts. This method is to be used during a transaction, otherwise use the doInsert(Criteria) method.
      Parameter:
      columnValues - the values to insert.
      con - the connection to use, not null.
      Gibt zurück:
      the primary key of the inserted row.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doInsert

      public static void doInsert(TurbineUser obj) throws org.apache.torque.TorqueException
      Method to do inserts
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doInsert

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

      public static int doInsert(org.apache.torque.Column[] toInsertInto, org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException
      Executes a insert into...select statement.
      Parameter:
      toInsertInto - the columns in which to insert, not null.
      criteria - the criteria which selects the values to insert, not null.
      Gibt zurück:
      the number of inserted rows.
      Löst aus:
      org.apache.torque.TorqueException - if a database error occurs.
    • doInsert

      public static int doInsert(org.apache.torque.Column[] toInsertInto, org.apache.torque.criteria.Criteria criteria, String dbName) throws org.apache.torque.TorqueException
      Executes a insert into...select statement.
      Parameter:
      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().
      Gibt zurück:
      the number of inserted rows.
      Löst aus:
      org.apache.torque.TorqueException - if a database error occurs.
    • doInsert

      public static int doInsert(org.apache.torque.Column[] toInsertInto, org.apache.torque.criteria.Criteria criteria, Connection connection) throws org.apache.torque.TorqueException
      Executes a insert into...select statement.
      Parameter:
      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.
      Gibt zurück:
      the number of inserted rows.
      Löst aus:
      org.apache.torque.TorqueException - if a database error occurs.
    • doInsert

      public static int doInsert(org.apache.torque.Column[] toInsertInto, org.apache.torque.criteria.Criteria criteria, String dbName, Connection connection) throws org.apache.torque.TorqueException
      Executes a insert into...select statement.
      Parameter:
      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.
      Gibt zurück:
      the number of inserted rows.
      Löst aus:
      org.apache.torque.TorqueException - if a database error occurs.
    • doUpdate

      public static int doUpdate(org.apache.torque.util.ColumnValues columnValues) throws org.apache.torque.TorqueException
      Method to do updates.
      Parameter:
      columnValues - the values to update plus the primary key identifying the row to update.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doUpdate

      public static int doUpdate(org.apache.torque.util.ColumnValues columnValues, Connection con) throws org.apache.torque.TorqueException
      Method to do updates. This method is to be used during a transaction, otherwise use the doUpdate(Criteria) method. It will take care of the connection details internally.
      Parameter:
      columnValues - the values to update plus the primary key identifying the row to update.
      con - the connection to use, not null.
      Gibt zurück:
      the number of affected rows.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doUpdate

      public static int doUpdate(org.apache.torque.criteria.Criteria selectCriteria, org.apache.torque.util.ColumnValues updateValues) throws org.apache.torque.TorqueException
      Executes an update against the database. The rows to be updated are selected using criteria and updated using the values in updateValues.
      Parameter:
      selectCriteria - selects which rows of which table should be updated.
      updateValues - Which columns to update with which values, not null.
      Gibt zurück:
      the number of affected rows.
      Löst aus:
      org.apache.torque.TorqueException - if updating fails.
    • doUpdate

      public static int doUpdate(org.apache.torque.criteria.Criteria criteria, org.apache.torque.util.ColumnValues updateValues, Connection connection) throws org.apache.torque.TorqueException
      Executes an update against the database. The rows to be updated are selected using criteria and updated using the values in updateValues.
      Parameter:
      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.
      Gibt zurück:
      the number of affected rows.
      Löst aus:
      org.apache.torque.TorqueException - if updating fails.
    • doUpdate

      public static int doUpdate(TurbineUser obj) throws org.apache.torque.TorqueException
      Updates an TurbineUser in the database. The primary key is used to identify the object to update.
      Parameter:
      obj - the data object to update in the database.
      Gibt zurück:
      the number of affected rows.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doUpdate

      public static int doUpdate(TurbineUser obj, Connection con) throws org.apache.torque.TorqueException
      Updates a TurbineUser 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(TurbineUser) method can be used.
      Parameter:
      obj - the data object to update in the database.
      con - the connection to use, not null.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • executeStatement

      public static int executeStatement(String statementString) throws org.apache.torque.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.
      Parameter:
      statementString - A String with the sql statement to execute.
      Gibt zurück:
      The number of rows affected.
      Löst aus:
      org.apache.torque.TorqueException - if executing the statement fails or no database connection can be established.
    • executeStatement

      public static int executeStatement(String statementString, List<org.apache.torque.util.JdbcTypedValue> replacementValues) throws org.apache.torque.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.
      Parameter:
      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.
      Gibt zurück:
      The number of rows affected.
      Löst aus:
      org.apache.torque.TorqueException - if executing the statement fails or no database connection can be established.
    • executeStatement

      public static int executeStatement(String statementString, String dbName, List<org.apache.torque.util.JdbcTypedValue> replacementValues) throws org.apache.torque.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.
      Parameter:
      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.
      Gibt zurück:
      The number of rows affected.
      Löst aus:
      org.apache.torque.TorqueException - if executing the statement fails or no database connection can be established.
    • executeStatement

      public static int executeStatement(String statementString, Connection con, List<org.apache.torque.util.JdbcTypedValue> replacementValues) throws org.apache.torque.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.
      Parameter:
      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.
      Gibt zurück:
      The number of rows affected.
      Löst aus:
      org.apache.torque.TorqueException - if executing the statement fails.
    • executeStatement

      public static int executeStatement(String statementString, Map<String,org.apache.torque.util.JdbcTypedValue> replacementValues) throws org.apache.torque.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.
      Parameter:
      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.
      Gibt zurück:
      The number of rows affected.
      Löst aus:
      org.apache.torque.TorqueException - if executing the statement fails.
    • executeStatement

      public static int executeStatement(String statementString, String dbName, Map<String,org.apache.torque.util.JdbcTypedValue> replacementValues) throws org.apache.torque.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.
      Parameter:
      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.
      Gibt zurück:
      The number of rows affected.
      Löst aus:
      org.apache.torque.TorqueException - if executing the statement fails.
    • executeStatement

      public static int executeStatement(String statementString, Connection con, Map<String,org.apache.torque.util.JdbcTypedValue> replacementValues) throws org.apache.torque.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.
      Parameter:
      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.
      Gibt zurück:
      The number of rows affected.
      Löst aus:
      org.apache.torque.TorqueException - if executing the statement fails.
    • doDelete

      public static int doDelete(org.apache.torque.criteria.Criteria criteria) throws org.apache.torque.TorqueException
      Deletes rows from a database table.
      Parameter:
      criteria - defines the rows to be deleted, not null.
      Gibt zurück:
      the number of deleted rows.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public static int doDelete(org.apache.torque.criteria.Criteria criteria, Connection con) throws org.apache.torque.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.
      Parameter:
      criteria - defines the rows to be deleted, not null.
      con - the connection to use, not null.
      Gibt zurück:
      the number of deleted rows.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public static int doDelete(TurbineUser obj) throws org.apache.torque.TorqueException
      Deletes a data object, i.e. a row in a table, in the database.
      Parameter:
      obj - the data object to delete in the database, not null.
      Gibt zurück:
      the number of deleted rows.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public static int doDelete(TurbineUser obj, Connection con) throws org.apache.torque.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.
      Parameter:
      obj - the data object to delete in the database, not null.
      con - the connection to use, not null.
      Gibt zurück:
      the number of deleted rows.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public static int doDelete(Collection<TurbineUser> objects) throws org.apache.torque.TorqueException
      Deletes data objects, i.e. rows in a table, in the database.
      Parameter:
      objects - the datas object to delete in the database, not null, may not contain null.
      Gibt zurück:
      the number of deleted rows.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public static int doDelete(Collection<TurbineUser> objects, Connection con) throws org.apache.torque.TorqueException
      Deletes data objects, i.e. rows in a table, in the database. This method uses the passed connection to delete the rows; if a transaction is open in the connection, the deletion happens inside this transaction.
      Parameter:
      objects - the datas object to delete in the database, not null, may not contain null.
      con - the connection to use for deleting, not null.
      Gibt zurück:
      the number of deleted rows.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public static int doDelete(org.apache.torque.om.ObjectKey<?> pk) throws org.apache.torque.TorqueException
      Deletes a row in the database.
      Parameter:
      pk - the ObjectKey that identifies the row to delete.
      Gibt zurück:
      the number of deleted rows.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • doDelete

      public static int doDelete(org.apache.torque.om.ObjectKey<?> pk, Connection con) throws org.apache.torque.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.
      Parameter:
      pk - the ObjectKey that identifies the row to delete.
      con - the connection to use for deleting, not null.
      Gibt zurück:
      the number of deleted rows.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • buildCriteria

      public static org.apache.torque.criteria.Criteria buildCriteria(org.apache.torque.om.ObjectKey<?> pk)
      Build a Criteria object which selects all objects which have a given primary key.
      Parameter:
      pk - the primary key value to build the criteria from, not null.
    • buildCriteria

      public static org.apache.torque.criteria.Criteria buildCriteria(Collection<org.apache.torque.om.ObjectKey<?>> pks)
      Build a Criteria object which selects all objects which primary keys are contained in the passed collection.
      Parameter:
      pks - the primary key values to build the criteria from, not null, may not contain null.
    • buildPkCriteria

      public static org.apache.torque.criteria.Criteria buildPkCriteria(Collection<TurbineUser> 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.
      Parameter:
      objects - the objects to build the criteria from, not null, may not contain null.
    • buildCriteria

      public static org.apache.torque.criteria.Criteria buildCriteria(TurbineUser obj)
      Build a Criteria object from the data object for this peer.
      Parameter:
      obj - the object to build the criteria from, not null.
    • buildSelectCriteria

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

      public static org.apache.torque.util.ColumnValues buildColumnValues(TurbineUser turbineUser) throws org.apache.torque.TorqueException
      Returns the contents of the object as ColumnValues object
      Löst aus:
      org.apache.torque.TorqueException - if the table map cannot be retrieved (should not happen).
    • retrieveByPK

      public static TurbineUser retrieveByPK(Integer pk) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException
      Retrieve a single object by pk
      Parameter:
      pk - the primary key
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
      org.apache.torque.NoRowsException - Primary key was not found in database.
      org.apache.torque.TooManyRowsException - Primary key was not found in database.
    • retrieveByPK

      public static TurbineUser retrieveByPK(Integer pk, Connection con) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException
      Retrieve a single object by pk
      Parameter:
      pk - the primary key
      con - the connection to use
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
      org.apache.torque.NoRowsException - Primary key was not found in database.
      org.apache.torque.TooManyRowsException - Primary key was not found in database.
    • retrieveByPK

      public static TurbineUser retrieveByPK(org.apache.torque.om.ObjectKey<?> pk) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException
      Retrieve a single object by pk
      Parameter:
      pk - the primary key
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
      org.apache.torque.NoRowsException - Primary key was not found in database.
      org.apache.torque.TooManyRowsException - Primary key was not found in database.
    • retrieveByPK

      public static TurbineUser retrieveByPK(org.apache.torque.om.ObjectKey<?> pk, Connection con) throws org.apache.torque.TorqueException, org.apache.torque.NoRowsException, org.apache.torque.TooManyRowsException
      Retrieve a single object by pk
      Parameter:
      pk - the primary key
      con - the connection to use
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
      org.apache.torque.NoRowsException - Primary key was not found in database.
      org.apache.torque.TooManyRowsException - Primary key was not found in database.
    • retrieveByTypedPKs

      public static List<TurbineUser> retrieveByTypedPKs(Collection<Integer> pks) throws org.apache.torque.TorqueException
      Retrieve multiple objects by pk.
      Parameter:
      pks - List of primary keys
      Gibt zurück:
      the list of matching objects, not null.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • retrieveByTypedPKs

      public static List<TurbineUser> retrieveByTypedPKs(Collection<Integer> pks, Connection dbcon) throws org.apache.torque.TorqueException
      Retrieve multiple objects by pk.
      Parameter:
      pks - List of primary keys
      dbcon - the connection to use
      Gibt zurück:
      the list of matching objects, not null.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • retrieveByObjectKeys

      public static List<TurbineUser> retrieveByObjectKeys(Collection<org.apache.torque.om.ObjectKey<?>> pks) throws org.apache.torque.TorqueException
      Retrieve a multiple objects by pk.
      Parameter:
      pks - List of primary keys
      Gibt zurück:
      the list of matching objects, not null.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • retrieveByObjectKeys

      public static List<TurbineUser> retrieveByObjectKeys(Collection<org.apache.torque.om.ObjectKey<?>> pks, Connection con) throws org.apache.torque.TorqueException
      Retrieve multiple objects by pk.
      Parameter:
      pks - List of primary keys
      con - the connection to use
      Gibt zurück:
      the list of matching objects, not null.
      Löst aus:
      org.apache.torque.TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
    • setAndSaveTurbineUserGroupRoles

      public static void setAndSaveTurbineUserGroupRoles(TurbineUser toLinkTo, Collection<TurbineUserGroupRole> toSave) throws org.apache.torque.TorqueException
      Saves the passed collection as linked objects. This means the following is done:
      • The current collection of objects which are linked to toLinkTo and which are also in the list toSave is read from the database into the list intersection.
      • All objects in toSave which are not in intersection are inserted.
      • All objects in intersection are updated with the corresponding values in toSave and saved.
      • All objects in the database which are linked to toLinkTo but are not in toSave are deleted from the database.
      Parameter:
      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.
      Löst aus:
      org.apache.torque.TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
    • setAndSaveTurbineUserGroupRoles

      public void setAndSaveTurbineUserGroupRoles(TurbineUser toLinkTo, Collection<TurbineUserGroupRole> toSave, Connection connection) throws org.apache.torque.TorqueException
      Saves the passed collection as linked objects. This means the following is done:
      • The current collection of objects which are linked to toLinkTo and which are also in the list toSave is read from the database into the list intersection.
      • All objects in toSave which are not in intersection are inserted.
      • All objects in intersection are updated with the corresponding values in toSave and saved.
      • All objects in the database which are linked to toLinkTo but are not in toSave are deleted from the database.
      Parameter:
      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.
      Löst aus:
      org.apache.torque.TorqueException - if an error accessing the database occurs.
      NullPointerException - if toSave is null or contains null elements.
    • getTableMap

      public static org.apache.torque.map.TableMap getTableMap() throws org.apache.torque.TorqueException
      Returns the TableMap related to this peer.
      Gibt zurück:
      the table map, not null.
      Löst aus:
      org.apache.torque.TorqueException - if the Peer instance does not hold a Table map.
    • initDatabaseMap

      public static void initDatabaseMap()