| <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="de"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>BaseJobEntryTorquePeer.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Turbine</a> > <a href="index.source.html" class="el_package">org.apache.turbine.services.schedule</a> > <span class="el_source">BaseJobEntryTorquePeer.java</span></div><h1>BaseJobEntryTorquePeer.java</h1><pre class="source lang-java linenums">package org.apache.turbine.services.schedule; |
| |
| import java.sql.Connection; |
| import java.util.Collection; |
| import java.util.List; |
| import java.util.Map; |
| import java.util.stream.Stream; |
| |
| import org.apache.torque.NoRowsException; |
| import org.apache.torque.TooManyRowsException; |
| import org.apache.torque.Column; |
| import org.apache.torque.Torque; |
| import org.apache.torque.TorqueException; |
| import org.apache.torque.adapter.IDMethod; |
| import org.apache.torque.criteria.Criteria; |
| import org.apache.torque.map.DatabaseMap; |
| import org.apache.torque.map.TableMap; |
| import org.apache.torque.map.ColumnMap; |
| import org.apache.torque.om.mapper.RecordMapper; |
| import org.apache.torque.om.ObjectKey; |
| import org.apache.torque.util.ColumnValues; |
| import org.apache.torque.util.JdbcTypedValue; |
| |
| |
| |
| /** |
| * The skeleton for this class was autogenerated by Torque on: |
| * |
| * [Tue Jun 17 14:08:21 CEST 2025] |
| * |
| * You should not use this class directly. It should not even be |
| * extended; all references should be to JobEntryTorquePeer |
| */ |
| |
| @SuppressWarnings("unused") |
| <span class="nc" id="L36">public abstract class BaseJobEntryTorquePeer</span> |
| { |
| /** The default database name for this class. */ |
| public static final String DATABASE_NAME; |
| |
| /** The table name for this class. */ |
| public static final String TABLE_NAME; |
| |
| /** The table map for this class. */ |
| public static final TableMap TABLE; |
| /** The column for the JOB_ID field */ |
| public static final ColumnMap JOB_ID; |
| /** The column for the SECOND field */ |
| public static final ColumnMap SECOND; |
| /** The column for the MINUTE field */ |
| public static final ColumnMap MINUTE; |
| /** The column for the HOUR field */ |
| public static final ColumnMap HOUR; |
| /** The column for the WEEK_DAY field */ |
| public static final ColumnMap WEEK_DAY; |
| /** The column for the DAY_OF_MONTH field */ |
| public static final ColumnMap DAY_OF_MONTH; |
| /** The column for the TASK field */ |
| public static final ColumnMap TASK; |
| /** The column for the EMAIL field */ |
| public static final ColumnMap EMAIL; |
| /** The column for the PROPERTY field */ |
| public static final ColumnMap PROPERTY; |
| |
| /** number of columns for this peer */ |
| public static final int numColumns = 9; |
| |
| |
| /** The implementation of the peer. */ |
| private static JobEntryTorquePeerImpl jobEntryTorquePeerImpl; |
| |
| |
| static |
| { |
| <span class="nc" id="L75"> DatabaseMap dbMap = Torque.getOrCreateDatabase("default")</span> |
| <span class="nc" id="L76"> .getDatabaseMap();</span> |
| <span class="nc bnc" id="L77" title="All 2 branches missed."> if (dbMap.getTable("TURBINE_SCHEDULED_JOB") == null)</span> |
| { |
| <span class="nc" id="L79"> dbMap.addTable("TURBINE_SCHEDULED_JOB");</span> |
| } |
| <span class="nc" id="L81"> DATABASE_NAME = "default";</span> |
| <span class="nc" id="L82"> TABLE_NAME = "TURBINE_SCHEDULED_JOB";</span> |
| |
| <span class="nc" id="L84"> TABLE = dbMap.getTable("TURBINE_SCHEDULED_JOB");</span> |
| <span class="nc" id="L85"> TABLE.setJavaName("JobEntryTorque");</span> |
| <span class="nc" id="L86"> TABLE.setOMClass(org.apache.turbine.services.schedule.JobEntryTorque.class);</span> |
| <span class="nc" id="L87"> TABLE.setPeerClass(org.apache.turbine.services.schedule.JobEntryTorquePeer.class);</span> |
| <span class="nc" id="L88"> TABLE.setPrimaryKeyMethod(IDMethod.ID_BROKER);</span> |
| <span class="nc" id="L89"> TABLE.setPrimaryKeyMethodInfo(IDMethod.ID_BROKER, TABLE.getName());</span> |
| <span class="nc" id="L90"> TABLE.setPrimaryKeyMethodInfo(IDMethod.SEQUENCE, "$sequenceName");</span> |
| <span class="nc" id="L91"> TABLE.setPrimaryKeyMethodInfo(IDMethod.AUTO_INCREMENT, "TURBINE_SCHEDULED_JOB");</span> |
| <span class="nc" id="L92"> TABLE.setUseInheritance(true);</span> |
| |
| |
| // ------------- Column: JOB_ID -------------------- |
| <span class="nc" id="L96"> JOB_ID = new ColumnMap("JOB_ID", TABLE);</span> |
| <span class="nc" id="L97"> JOB_ID.setType(Integer.valueOf(0));</span> |
| <span class="nc" id="L98"> JOB_ID.setTorqueType("INTEGER");</span> |
| <span class="nc" id="L99"> JOB_ID.setUsePrimitive(true);</span> |
| <span class="nc" id="L100"> JOB_ID.setPrimaryKey(true);</span> |
| <span class="nc" id="L101"> JOB_ID.setNotNull(true);</span> |
| <span class="nc" id="L102"> JOB_ID.setJavaName("JobId");</span> |
| <span class="nc" id="L103"> JOB_ID.setAutoIncrement(true);</span> |
| <span class="nc" id="L104"> JOB_ID.setProtected(false);</span> |
| <span class="nc" id="L105"> JOB_ID.setJavaType( "int" );</span> |
| <span class="nc" id="L106"> JOB_ID.setPosition(1);</span> |
| <span class="nc" id="L107"> TABLE.addColumn(JOB_ID);</span> |
| // ------------- Column: SECOND -------------------- |
| <span class="nc" id="L109"> SECOND = new ColumnMap("SECOND", TABLE);</span> |
| <span class="nc" id="L110"> SECOND.setType(Integer.valueOf(0));</span> |
| <span class="nc" id="L111"> SECOND.setTorqueType("INTEGER");</span> |
| <span class="nc" id="L112"> SECOND.setUsePrimitive(true);</span> |
| <span class="nc" id="L113"> SECOND.setPrimaryKey(false);</span> |
| <span class="nc" id="L114"> SECOND.setNotNull(true);</span> |
| <span class="nc" id="L115"> SECOND.setJavaName("Second");</span> |
| <span class="nc" id="L116"> SECOND.setAutoIncrement(true);</span> |
| <span class="nc" id="L117"> SECOND.setProtected(false);</span> |
| <span class="nc" id="L118"> SECOND.setJavaType( "int" );</span> |
| <span class="nc" id="L119"> SECOND.setDefault("-1");</span> |
| <span class="nc" id="L120"> SECOND.setPosition(2);</span> |
| <span class="nc" id="L121"> TABLE.addColumn(SECOND);</span> |
| // ------------- Column: MINUTE -------------------- |
| <span class="nc" id="L123"> MINUTE = new ColumnMap("MINUTE", TABLE);</span> |
| <span class="nc" id="L124"> MINUTE.setType(Integer.valueOf(0));</span> |
| <span class="nc" id="L125"> MINUTE.setTorqueType("INTEGER");</span> |
| <span class="nc" id="L126"> MINUTE.setUsePrimitive(true);</span> |
| <span class="nc" id="L127"> MINUTE.setPrimaryKey(false);</span> |
| <span class="nc" id="L128"> MINUTE.setNotNull(true);</span> |
| <span class="nc" id="L129"> MINUTE.setJavaName("Minute");</span> |
| <span class="nc" id="L130"> MINUTE.setAutoIncrement(true);</span> |
| <span class="nc" id="L131"> MINUTE.setProtected(false);</span> |
| <span class="nc" id="L132"> MINUTE.setJavaType( "int" );</span> |
| <span class="nc" id="L133"> MINUTE.setDefault("-1");</span> |
| <span class="nc" id="L134"> MINUTE.setPosition(3);</span> |
| <span class="nc" id="L135"> TABLE.addColumn(MINUTE);</span> |
| // ------------- Column: HOUR -------------------- |
| <span class="nc" id="L137"> HOUR = new ColumnMap("HOUR", TABLE);</span> |
| <span class="nc" id="L138"> HOUR.setType(Integer.valueOf(0));</span> |
| <span class="nc" id="L139"> HOUR.setTorqueType("INTEGER");</span> |
| <span class="nc" id="L140"> HOUR.setUsePrimitive(true);</span> |
| <span class="nc" id="L141"> HOUR.setPrimaryKey(false);</span> |
| <span class="nc" id="L142"> HOUR.setNotNull(true);</span> |
| <span class="nc" id="L143"> HOUR.setJavaName("Hour");</span> |
| <span class="nc" id="L144"> HOUR.setAutoIncrement(true);</span> |
| <span class="nc" id="L145"> HOUR.setProtected(false);</span> |
| <span class="nc" id="L146"> HOUR.setJavaType( "int" );</span> |
| <span class="nc" id="L147"> HOUR.setDefault("-1");</span> |
| <span class="nc" id="L148"> HOUR.setPosition(4);</span> |
| <span class="nc" id="L149"> TABLE.addColumn(HOUR);</span> |
| // ------------- Column: WEEK_DAY -------------------- |
| <span class="nc" id="L151"> WEEK_DAY = new ColumnMap("WEEK_DAY", TABLE);</span> |
| <span class="nc" id="L152"> WEEK_DAY.setType(Integer.valueOf(0));</span> |
| <span class="nc" id="L153"> WEEK_DAY.setTorqueType("INTEGER");</span> |
| <span class="nc" id="L154"> WEEK_DAY.setUsePrimitive(true);</span> |
| <span class="nc" id="L155"> WEEK_DAY.setPrimaryKey(false);</span> |
| <span class="nc" id="L156"> WEEK_DAY.setNotNull(true);</span> |
| <span class="nc" id="L157"> WEEK_DAY.setJavaName("WeekDay");</span> |
| <span class="nc" id="L158"> WEEK_DAY.setAutoIncrement(true);</span> |
| <span class="nc" id="L159"> WEEK_DAY.setProtected(false);</span> |
| <span class="nc" id="L160"> WEEK_DAY.setJavaType( "int" );</span> |
| <span class="nc" id="L161"> WEEK_DAY.setDefault("-1");</span> |
| <span class="nc" id="L162"> WEEK_DAY.setPosition(5);</span> |
| <span class="nc" id="L163"> TABLE.addColumn(WEEK_DAY);</span> |
| // ------------- Column: DAY_OF_MONTH -------------------- |
| <span class="nc" id="L165"> DAY_OF_MONTH = new ColumnMap("DAY_OF_MONTH", TABLE);</span> |
| <span class="nc" id="L166"> DAY_OF_MONTH.setType(Integer.valueOf(0));</span> |
| <span class="nc" id="L167"> DAY_OF_MONTH.setTorqueType("INTEGER");</span> |
| <span class="nc" id="L168"> DAY_OF_MONTH.setUsePrimitive(true);</span> |
| <span class="nc" id="L169"> DAY_OF_MONTH.setPrimaryKey(false);</span> |
| <span class="nc" id="L170"> DAY_OF_MONTH.setNotNull(true);</span> |
| <span class="nc" id="L171"> DAY_OF_MONTH.setJavaName("DayOfMonth");</span> |
| <span class="nc" id="L172"> DAY_OF_MONTH.setAutoIncrement(true);</span> |
| <span class="nc" id="L173"> DAY_OF_MONTH.setProtected(false);</span> |
| <span class="nc" id="L174"> DAY_OF_MONTH.setJavaType( "int" );</span> |
| <span class="nc" id="L175"> DAY_OF_MONTH.setDefault("-1");</span> |
| <span class="nc" id="L176"> DAY_OF_MONTH.setPosition(6);</span> |
| <span class="nc" id="L177"> TABLE.addColumn(DAY_OF_MONTH);</span> |
| // ------------- Column: TASK -------------------- |
| <span class="nc" id="L179"> TASK = new ColumnMap("TASK", TABLE);</span> |
| <span class="nc" id="L180"> TASK.setType("");</span> |
| <span class="nc" id="L181"> TASK.setTorqueType("VARCHAR");</span> |
| <span class="nc" id="L182"> TASK.setUsePrimitive(false);</span> |
| <span class="nc" id="L183"> TASK.setPrimaryKey(false);</span> |
| <span class="nc" id="L184"> TASK.setNotNull(true);</span> |
| <span class="nc" id="L185"> TASK.setJavaName("Task");</span> |
| <span class="nc" id="L186"> TASK.setAutoIncrement(true);</span> |
| <span class="nc" id="L187"> TASK.setProtected(false);</span> |
| <span class="nc" id="L188"> TASK.setJavaType( "String" );</span> |
| <span class="nc" id="L189"> TASK.setSize(99);</span> |
| <span class="nc" id="L190"> TASK.setPosition(7);</span> |
| <span class="nc" id="L191"> TABLE.addColumn(TASK);</span> |
| // ------------- Column: EMAIL -------------------- |
| <span class="nc" id="L193"> EMAIL = new ColumnMap("EMAIL", TABLE);</span> |
| <span class="nc" id="L194"> EMAIL.setType("");</span> |
| <span class="nc" id="L195"> EMAIL.setTorqueType("VARCHAR");</span> |
| <span class="nc" id="L196"> EMAIL.setUsePrimitive(false);</span> |
| <span class="nc" id="L197"> EMAIL.setPrimaryKey(false);</span> |
| <span class="nc" id="L198"> EMAIL.setNotNull(false);</span> |
| <span class="nc" id="L199"> EMAIL.setJavaName("Email");</span> |
| <span class="nc" id="L200"> EMAIL.setAutoIncrement(true);</span> |
| <span class="nc" id="L201"> EMAIL.setProtected(false);</span> |
| <span class="nc" id="L202"> EMAIL.setJavaType( "String" );</span> |
| <span class="nc" id="L203"> EMAIL.setSize(99);</span> |
| <span class="nc" id="L204"> EMAIL.setPosition(8);</span> |
| <span class="nc" id="L205"> TABLE.addColumn(EMAIL);</span> |
| // ------------- Column: PROPERTY -------------------- |
| <span class="nc" id="L207"> PROPERTY = new ColumnMap("PROPERTY", TABLE);</span> |
| <span class="nc" id="L208"> PROPERTY.setType(new Object());</span> |
| <span class="nc" id="L209"> PROPERTY.setTorqueType("VARBINARY");</span> |
| <span class="nc" id="L210"> PROPERTY.setUsePrimitive(false);</span> |
| <span class="nc" id="L211"> PROPERTY.setPrimaryKey(false);</span> |
| <span class="nc" id="L212"> PROPERTY.setNotNull(false);</span> |
| <span class="nc" id="L213"> PROPERTY.setJavaName("Property");</span> |
| <span class="nc" id="L214"> PROPERTY.setAutoIncrement(true);</span> |
| <span class="nc" id="L215"> PROPERTY.setProtected(false);</span> |
| <span class="nc" id="L216"> PROPERTY.setJavaType( "byte[]" );</span> |
| <span class="nc" id="L217"> PROPERTY.setPosition(9);</span> |
| <span class="nc" id="L218"> TABLE.addColumn(PROPERTY);</span> |
| |
| |
| |
| <span class="nc" id="L222"> initDatabaseMap();</span> |
| <span class="nc" id="L223"> }</span> |
| |
| /** |
| * Creates a new instance of the implementation of the peer. |
| * |
| * @return the new instance. |
| */ |
| protected static JobEntryTorquePeerImpl createJobEntryTorquePeerImpl() |
| { |
| <span class="nc" id="L232"> JobEntryTorquePeerImpl instance = new JobEntryTorquePeerImpl();</span> |
| <span class="nc" id="L233"> return instance;</span> |
| } |
| |
| |
| /** |
| * Returns an instance of the implementation of the peer. |
| * If no instance is currently cached, a new instance is created and cached. |
| * |
| * @return an instance of the implementation of the peer, not null. |
| */ |
| public static JobEntryTorquePeerImpl getJobEntryTorquePeerImpl() |
| { |
| <span class="nc" id="L245"> JobEntryTorquePeerImpl peerImplInstance = jobEntryTorquePeerImpl;</span> |
| <span class="nc bnc" id="L246" title="All 2 branches missed."> if (peerImplInstance == null)</span> |
| { |
| <span class="nc" id="L248"> peerImplInstance = JobEntryTorquePeer.createJobEntryTorquePeerImpl();</span> |
| <span class="nc" id="L249"> jobEntryTorquePeerImpl = peerImplInstance;</span> |
| <span class="nc" id="L250"> Torque.registerPeerInstance(JobEntryTorque.class, peerImplInstance);</span> |
| } |
| <span class="nc" id="L252"> return peerImplInstance;</span> |
| } |
| |
| |
| |
| /** |
| * Sets the instance of the implementation of the peer. |
| * |
| * @param peerImplInstance an instance of the implementation of the peer, or null |
| * if a new instance should be created automatically. |
| */ |
| public static void setJobEntryTorquePeerImpl(JobEntryTorquePeerImpl peerImplInstance) |
| { |
| <span class="nc" id="L265"> jobEntryTorquePeerImpl = peerImplInstance;</span> |
| <span class="nc" id="L266"> }</span> |
| |
| |
| /** |
| * Add all the columns needed to create a new object. |
| * |
| * @param criteria object containing the columns to add. |
| */ |
| public static void addSelectColumns(Criteria criteria) |
| { |
| <span class="nc" id="L276"> getJobEntryTorquePeerImpl().addSelectColumns(criteria);</span> |
| <span class="nc" id="L277"> }</span> |
| |
| /** |
| * 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. |
| * |
| * @param criteria the criteria in which the boolean values |
| * should be corrected. |
| * |
| * @throws TorqueException if the database map for the criteria cannot be |
| obtained. |
| */ |
| public static void correctBooleans(Criteria criteria) throws TorqueException |
| { |
| <span class="nc" id="L293"> getJobEntryTorquePeerImpl().correctBooleans(criteria);</span> |
| <span class="nc" id="L294"> }</span> |
| |
| /** |
| * 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. |
| * |
| * @param columnValues The value to be checked for booleanint |
| * and booleanchar columns. |
| * @throws TorqueException if the database map for the criteria cannot be |
| * retrieved. |
| */ |
| public static void correctBooleans( |
| ColumnValues columnValues) |
| throws TorqueException |
| { |
| <span class="nc" id="L312"> getJobEntryTorquePeerImpl().correctBooleans(columnValues);</span> |
| <span class="nc" id="L313"> }</span> |
| |
| /** |
| * Selects JobEntryTorque objects from a database. |
| * |
| * @param criteria object used to create the SELECT statement. |
| * |
| * @return the list of selected objects, not null. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static List<JobEntryTorque> doSelect(Criteria criteria) |
| throws TorqueException |
| { |
| <span class="nc" id="L328"> return getJobEntryTorquePeerImpl().doSelect(criteria);</span> |
| } |
| |
| /** |
| * Selects JobEntryTorque objects from a database |
| * within a transaction. |
| * |
| * @param criteria object used to create the SELECT statement. |
| * @param connection the connection holding the transaction, not null. |
| * |
| * @return The list of selected objects, not null. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static List<JobEntryTorque> doSelect( |
| Criteria criteria, |
| Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L348"> return getJobEntryTorquePeerImpl().doSelect(criteria, connection);</span> |
| } |
| |
| /** |
| * Selects JobEntryTorque objects from a database |
| * within a transaction. |
| * |
| * This method returns a stream that <b>must</b> be closed after use. |
| * All resources used by this method will be closed when the stream is |
| * closed. |
| * |
| * @param criteria object used to create the SELECT statement. |
| * @param connection the connection holding the transaction, not null. |
| * |
| * @return The results of the query as a Stream, not null. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static Stream<JobEntryTorque> doSelectAsStream( |
| Criteria criteria, |
| Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L372"> return getJobEntryTorquePeerImpl().doSelectAsStream(criteria, connection);</span> |
| } |
| |
| /** |
| * Selects rows from a database an maps them to objects. |
| * |
| * @param criteria A Criteria specifying the records to select, not null. |
| * @param mapper The mapper creating the objects from the resultSet, |
| * not null. |
| * |
| * @return The results of the query, not null. |
| * |
| * @throws TorqueException if querying the database fails. |
| */ |
| public static <T> List<T> doSelect( |
| Criteria criteria, |
| RecordMapper<T> mapper) |
| throws TorqueException |
| { |
| <span class="nc" id="L391"> return getJobEntryTorquePeerImpl().doSelect(criteria, mapper);</span> |
| } |
| |
| /** |
| * Selects rows from a database an maps them to objects. |
| * |
| * @param criteria A Criteria specifying the records to select, not null. |
| * @param mapper The mapper creating the objects from the resultSet, |
| * not null. |
| * @param connection the database connection for selecting records, |
| * not null. |
| * |
| * @return The results of the query, not null. |
| * |
| * @throws TorqueException Error performing database query. |
| */ |
| public static <T> List<T> doSelect( |
| Criteria criteria, |
| RecordMapper<T> mapper, |
| Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L413"> return getJobEntryTorquePeerImpl().doSelect(</span> |
| criteria, |
| mapper, |
| connection); |
| } |
| |
| /** |
| * Selects rows from a database an maps them to objects. |
| * |
| * This method returns a stream that <b>must</b> be closed after use. |
| * All resources used by this method will be closed when the stream is |
| * closed. |
| * |
| * @param criteria A Criteria specifying the records to select, not null. |
| * @param mapper The mapper creating the objects from the resultSet, |
| * not null. |
| * @param connection the database connection for selecting records, |
| * not null. |
| * |
| * @return The results of the query as a Stream, not null. |
| * |
| * @throws TorqueException Error performing database query. |
| */ |
| public static <T> Stream<T> doSelectAsStream( |
| Criteria criteria, |
| RecordMapper<T> mapper, |
| Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L442"> return getJobEntryTorquePeerImpl().doSelectAsStream(</span> |
| criteria, |
| mapper, |
| connection); |
| } |
| |
| /** |
| * Selects rows from a database an maps them to objects. |
| * |
| * @param query the sql query to execute, not null. |
| * @param mapper The mapper creating the objects from the resultSet, |
| * not null. |
| * @param dbName The name of the database to create the connection for, |
| * or null for the default SDB. |
| * |
| * @return The results of the query, not null. |
| * |
| * @throws TorqueException if querying the database fails. |
| */ |
| public static <T> List<T> doSelect( |
| String query, |
| RecordMapper<T> mapper, |
| String dbName) |
| throws TorqueException |
| { |
| <span class="nc" id="L467"> return getJobEntryTorquePeerImpl().doSelect(</span> |
| query, |
| mapper, |
| dbName); |
| } |
| |
| /** |
| * Selects rows from a database an maps them to objects. |
| * |
| * @param query the SQL Query to execute, not null. |
| * @param mapper The mapper creating the objects from the resultSet, |
| * not null. |
| * @param connection the database connection, not null. |
| * |
| * @return The results of the query, not null. |
| * |
| * @throws TorqueException if querying the database fails. |
| */ |
| public static <T> List<T> doSelect( |
| String query, |
| RecordMapper<T> mapper, |
| Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L491"> return getJobEntryTorquePeerImpl().doSelect(</span> |
| query, |
| mapper, |
| connection); |
| } |
| |
| /** |
| * Selects rows from a database an maps them to objects. |
| * |
| * This method returns a stream that <b>must</b> be closed after use. |
| * All resources used by this method will be closed when the stream is |
| * closed. |
| * |
| * @param query the SQL Query to execute, not null. |
| * @param mapper The mapper creating the objects from the resultSet, |
| * not null. |
| * @param connection the database connection, not null. |
| * |
| * @return The results of the query as a Stream, not null. |
| * |
| * @throws TorqueException if querying the database fails. |
| */ |
| public static <T> Stream<T> doSelectAsStream( |
| String query, |
| RecordMapper<T> mapper, |
| Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L519"> return getJobEntryTorquePeerImpl().doSelectAsStream(</span> |
| query, |
| mapper, |
| connection); |
| } |
| |
| /** |
| * Selects JobEntryTorque objects from the database which have |
| * the same content as the passed object. |
| * |
| * @return The list of selected objects, not null. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static List<JobEntryTorque> doSelect(JobEntryTorque obj) |
| throws TorqueException |
| { |
| <span class="nc" id="L537"> return getJobEntryTorquePeerImpl().doSelect(obj);</span> |
| } |
| |
| /** |
| * Selects at most one JobEntryTorque object from a database. |
| * |
| * @param criteria object used to create the SELECT statement. |
| * |
| * @return 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. |
| */ |
| public static JobEntryTorque doSelectSingleRecord( |
| Criteria criteria) |
| throws TorqueException |
| { |
| <span class="nc" id="L554"> return getJobEntryTorquePeerImpl().doSelectSingleRecord(criteria);</span> |
| } |
| |
| /** |
| * Selects at most one JobEntryTorque object from a database |
| * within a transaction. |
| * |
| * @param criteria object used to create the SELECT statement. |
| * @param connection the connection holding the transaction, not null. |
| * |
| * @return 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. |
| */ |
| public static JobEntryTorque doSelectSingleRecord( |
| Criteria criteria, |
| Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L574"> return getJobEntryTorquePeerImpl().doSelectSingleRecord(criteria, connection);</span> |
| } |
| |
| /** |
| * Selects at most a single row from a database an maps them to objects. |
| * |
| * @param criteria A Criteria specifying the records to select, not null. |
| * @param mapper The mapper creating the objects from the resultSet, |
| * not null. |
| * |
| * @return The selected row, or null if no records was selected. |
| * |
| * @throws TorqueException if querying the database fails. |
| */ |
| public static <T> T doSelectSingleRecord( |
| org.apache.torque.criteria.Criteria criteria, |
| RecordMapper<T> mapper) |
| throws TorqueException |
| { |
| <span class="nc" id="L593"> return getJobEntryTorquePeerImpl().doSelectSingleRecord(</span> |
| criteria, |
| mapper); |
| } |
| |
| /** |
| * Selects at most a single row from a database an maps them to objects. |
| * |
| * @param criteria A Criteria specifying the records to select, not null. |
| * @param mapper The mapper creating the objects from the resultSet, |
| * not null. |
| * @param connection the database connection, not null. |
| * |
| * @return The selected row, or null if no records was selected. |
| * |
| * @throws TorqueException if querying the database fails. |
| */ |
| public static <T> T doSelectSingleRecord( |
| org.apache.torque.criteria.Criteria criteria, |
| RecordMapper<T> mapper, |
| Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L616"> return getJobEntryTorquePeerImpl().doSelectSingleRecord(</span> |
| criteria, |
| mapper, |
| connection); |
| } |
| |
| /** |
| * Selects at most one JobEntryTorque object from the database |
| * which has the same content as the passed object. |
| * |
| * @return 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. |
| */ |
| public static JobEntryTorque doSelectSingleRecord( |
| JobEntryTorque obj) |
| throws TorqueException |
| { |
| <span class="nc" id="L635"> return getJobEntryTorquePeerImpl().doSelectSingleRecord(obj);</span> |
| } |
| |
| |
| /** |
| * Returns a new instance of the Data object class |
| */ |
| public static JobEntryTorque getDbObjectInstance() |
| { |
| <span class="nc" id="L644"> return getJobEntryTorquePeerImpl().getDbObjectInstance();</span> |
| } |
| |
| |
| /** |
| * Method to do inserts. |
| * |
| * @param columnValues the values to insert. |
| * |
| * @return the primary key of the inserted row. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static ObjectKey<?> doInsert(ColumnValues columnValues) |
| throws TorqueException |
| { |
| <span class="nc" id="L661"> return getJobEntryTorquePeerImpl().doInsert(columnValues);</span> |
| } |
| |
| /** |
| * Method to do inserts. This method is to be used during a transaction, |
| * otherwise use the doInsert(Criteria) method. |
| * |
| * @param columnValues the values to insert. |
| * @param con the connection to use, not null. |
| * |
| * @return the primary key of the inserted row. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static ObjectKey<?> doInsert(ColumnValues columnValues, Connection con) |
| throws TorqueException |
| { |
| <span class="nc" id="L679"> return getJobEntryTorquePeerImpl().doInsert(columnValues, con);</span> |
| } |
| /** |
| * Method to do inserts |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static void doInsert(JobEntryTorque obj) |
| throws TorqueException |
| { |
| <span class="nc" id="L690"> getJobEntryTorquePeerImpl().doInsert(obj);</span> |
| <span class="nc" id="L691"> }</span> |
| |
| /** |
| * Method to do inserts. This method is to be used during a transaction, |
| * otherwise use the doInsert(JobEntryTorque) method. It will take |
| * care of the connection details internally. |
| * |
| * @param obj the data object to insert into the database. |
| * @param con the connection to use |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static void doInsert(JobEntryTorque obj, Connection con) |
| throws TorqueException |
| { |
| <span class="nc" id="L706"> getJobEntryTorquePeerImpl().doInsert(obj, con);</span> |
| <span class="nc" id="L707"> }</span> |
| |
| /** |
| * Executes a insert into...select statement. |
| * |
| * @param toInsertInto the columns in which to insert, not null. |
| * @param criteria the criteria which selects the values to insert, |
| * not null. |
| * |
| * @return the number of inserted rows. |
| * |
| * @throws TorqueException if a database error occurs. |
| */ |
| public static int doInsert( |
| final Column[] toInsertInto, |
| final Criteria criteria) |
| throws TorqueException |
| { |
| <span class="nc" id="L725"> return getJobEntryTorquePeerImpl().doInsert(toInsertInto, criteria);</span> |
| } |
| |
| /** |
| * Executes a insert into...select statement. |
| * |
| * @param toInsertInto the columns in which to insert, not null. |
| * @param criteria the criteria which selects the values to insert, |
| * not null. |
| * @param dbName the database name, or null to take the database name |
| * from getDatabaseName(). |
| * |
| * @return the number of inserted rows. |
| * |
| * @throws TorqueException if a database error occurs. |
| */ |
| public static int doInsert( |
| final Column[] toInsertInto, |
| final Criteria criteria, |
| final String dbName) |
| throws TorqueException |
| { |
| <span class="nc" id="L747"> return getJobEntryTorquePeerImpl().doInsert(toInsertInto, criteria, dbName);</span> |
| } |
| |
| /** |
| * Executes a insert into...select statement. |
| * |
| * @param toInsertInto the columns in which to insert, not null. |
| * @param criteria the criteria which selects the values to insert, |
| * not null. |
| * @param connection the database connection to use, not null. |
| * |
| * @return the number of inserted rows. |
| * |
| * @throws TorqueException if a database error occurs. |
| */ |
| public static int doInsert( |
| final Column[] toInsertInto, |
| final Criteria criteria, |
| final Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L768"> return getJobEntryTorquePeerImpl().doInsert(toInsertInto, criteria, connection);</span> |
| } |
| |
| /** |
| * Executes a insert into...select statement. |
| * |
| * @param toInsertInto the columns in which to insert, not null. |
| * @param criteria the criteria which selects the values to insert, |
| * not null. |
| * @param dbName the database name, or null to take the database name |
| * from getDatabaseName(). |
| * @param connection the database connection to use, not null. |
| * |
| * @return the number of inserted rows. |
| * |
| * @throws TorqueException if a database error occurs. |
| */ |
| public static int doInsert( |
| final Column[] toInsertInto, |
| final Criteria criteria, |
| String dbName, |
| final Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L792"> return getJobEntryTorquePeerImpl().doInsert(</span> |
| toInsertInto, |
| criteria, |
| dbName, |
| connection); |
| } |
| |
| /** |
| * Method to do updates. |
| * |
| * @param 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. |
| */ |
| public static int doUpdate(ColumnValues columnValues) throws TorqueException |
| { |
| <span class="nc" id="L810"> return getJobEntryTorquePeerImpl().doUpdate(columnValues);</span> |
| } |
| |
| /** |
| * 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. |
| * |
| * @param columnValues the values to update plus the primary key |
| * identifying the row to update. |
| * @param con the connection to use, not null. |
| * |
| * @return the number of affected rows. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doUpdate(ColumnValues columnValues, Connection con) |
| throws TorqueException |
| { |
| <span class="nc" id="L830"> return getJobEntryTorquePeerImpl().doUpdate(columnValues, con);</span> |
| } |
| |
| /** |
| * Executes an update against the database. The rows to be updated |
| * are selected using <code>criteria</code> and updated using the values |
| * in <code>updateValues</code>. |
| * |
| * @param selectCriteria selects which rows of which table should be updated. |
| * @param updateValues Which columns to update with which values, not null. |
| * |
| * @return the number of affected rows. |
| * |
| * @throws TorqueException if updating fails. |
| */ |
| public static int doUpdate( |
| Criteria selectCriteria, |
| ColumnValues updateValues) |
| throws TorqueException |
| { |
| <span class="nc" id="L850"> return getJobEntryTorquePeerImpl().doUpdate(</span> |
| selectCriteria, |
| updateValues); |
| } |
| |
| /** |
| * Executes an update against the database. The rows to be updated |
| * are selected using <code>criteria</code> and updated using the values |
| * in <code>updateValues</code>. |
| * |
| * @param criteria selects which rows of which table should be updated. |
| * @param updateValues Which columns to update with which values, not null. |
| * @param connection the database connection to use, not null. |
| * |
| * @return the number of affected rows. |
| * |
| * @throws TorqueException if updating fails. |
| */ |
| public static int doUpdate( |
| Criteria criteria, |
| ColumnValues updateValues, |
| Connection connection) |
| throws TorqueException |
| { |
| <span class="nc" id="L874"> return getJobEntryTorquePeerImpl().doUpdate(</span> |
| criteria, |
| updateValues, |
| connection); |
| } |
| |
| /** |
| * Updates an JobEntryTorque in the database. |
| * The primary key is used to identify the object to update. |
| * |
| * @param obj the data object to update in the database. |
| * |
| * @return the number of affected rows. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doUpdate(JobEntryTorque obj) throws TorqueException |
| { |
| <span class="nc" id="L893"> return getJobEntryTorquePeerImpl().doUpdate(obj);</span> |
| } |
| |
| /** |
| * Updates a JobEntryTorque 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(JobEntryTorque) method can be used. |
| * |
| * @param obj the data object to update in the database. |
| * @param con the connection to use, not null. |
| |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doUpdate(JobEntryTorque obj, Connection con) |
| throws TorqueException |
| { |
| <span class="nc" id="L911"> return getJobEntryTorquePeerImpl().doUpdate(obj, con);</span> |
| } |
| |
| /** |
| * 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. |
| * |
| * @param statementString A String with the sql statement to execute. |
| * |
| * @return The number of rows affected. |
| * |
| * @throws TorqueException if executing the statement fails |
| * or no database connection can be established. |
| */ |
| public static int executeStatement(String statementString) |
| throws TorqueException |
| { |
| <span class="nc" id="L930"> return getJobEntryTorquePeerImpl().executeStatement(statementString);</span> |
| } |
| |
| /** |
| * 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. |
| * |
| * @param statementString A String with the sql statement to execute. |
| * @param replacementValues values to use as placeholders in the query. |
| * or null or empty if no placeholders need to be filled. |
| * |
| * @return The number of rows affected. |
| * |
| * @throws TorqueException if executing the statement fails |
| * or no database connection can be established. |
| */ |
| public static int executeStatement( |
| String statementString, |
| List<JdbcTypedValue> replacementValues) |
| throws TorqueException |
| { |
| <span class="nc" id="L953"> return getJobEntryTorquePeerImpl().executeStatement(</span> |
| statementString, |
| replacementValues); |
| } |
| |
| /** |
| * 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. |
| * |
| * @param statementString A String with the sql statement to execute. |
| * @param dbName The name of the database to execute the statement against, |
| * or null for the default DB. |
| * @param replacementValues values to use as placeholders in the query. |
| * or null or empty if no placeholders need to be filled. |
| * |
| * @return The number of rows affected. |
| * |
| * @throws TorqueException if executing the statement fails |
| * or no database connection can be established. |
| */ |
| public static int executeStatement( |
| String statementString, |
| String dbName, |
| List<JdbcTypedValue> replacementValues) |
| throws TorqueException |
| { |
| <span class="nc" id="L981"> return getJobEntryTorquePeerImpl().executeStatement(</span> |
| statementString, |
| dbName, |
| replacementValues); |
| } |
| |
| /** |
| * 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. |
| * |
| * @param statementString A String with the sql statement to execute. |
| * @param con The database connection to use. |
| * @param replacementValues values to use as placeholders in the query. |
| * or null or empty if no placeholders need to be filled. |
| * |
| * @return The number of rows affected. |
| * |
| * @throws TorqueException if executing the statement fails. |
| */ |
| public static int executeStatement( |
| String statementString, |
| Connection con, |
| List<JdbcTypedValue> replacementValues) |
| throws TorqueException |
| { |
| <span class="nc" id="L1008"> return getJobEntryTorquePeerImpl().executeStatement(</span> |
| statementString, |
| con, |
| replacementValues); |
| } |
| |
| /** |
| * 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. |
| * |
| * @param 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. |
| * @param 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. |
| * |
| * @return The number of rows affected. |
| * |
| * @throws TorqueException if executing the statement fails. |
| */ |
| public static int executeStatement( |
| final String statementString, |
| final Map<String, JdbcTypedValue> replacementValues) |
| throws TorqueException |
| { |
| <span class="nc" id="L1037"> return getJobEntryTorquePeerImpl().executeStatement(</span> |
| statementString, |
| replacementValues); |
| } |
| |
| /** |
| * 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. |
| * |
| * @param 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. |
| * @param dbName The name of the database to execute the statement against, |
| * or null for the default DB. |
| * @param 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. |
| * |
| * @return The number of rows affected. |
| * |
| * @throws TorqueException if executing the statement fails. |
| */ |
| public static int executeStatement( |
| final String statementString, |
| final String dbName, |
| final Map<String, JdbcTypedValue> replacementValues) |
| throws TorqueException |
| { |
| <span class="nc" id="L1068"> return getJobEntryTorquePeerImpl().executeStatement(</span> |
| statementString, |
| dbName, |
| replacementValues); |
| } |
| |
| /** |
| * 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. |
| * |
| * @param 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. |
| * @param con The database connection to use. |
| * @param 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. |
| * |
| * @return The number of rows affected. |
| * |
| * @throws TorqueException if executing the statement fails. |
| */ |
| public static int executeStatement( |
| final String statementString, |
| final Connection con, |
| final Map<String, JdbcTypedValue> replacementValues) |
| throws TorqueException |
| { |
| <span class="nc" id="L1099"> return getJobEntryTorquePeerImpl().executeStatement(</span> |
| statementString, |
| con, |
| replacementValues); |
| } |
| |
| |
| /** |
| * Deletes rows from a database table. |
| * |
| * @param criteria defines the rows to be deleted, not null. |
| * |
| * @return the number of deleted rows. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doDelete(Criteria criteria) throws TorqueException |
| { |
| <span class="nc" id="L1118"> return getJobEntryTorquePeerImpl().doDelete(criteria);</span> |
| } |
| |
| /** |
| * 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. |
| * |
| * @param criteria defines the rows to be deleted, not null. |
| * @param con the connection to use, not null. |
| * |
| * @return the number of deleted rows. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doDelete(Criteria criteria, Connection con) |
| throws TorqueException |
| { |
| <span class="nc" id="L1138"> return getJobEntryTorquePeerImpl().doDelete(criteria, con);</span> |
| } |
| |
| /** |
| * Deletes a data object, i.e. a row in a table, in the database. |
| * |
| * @param obj the data object to delete in the database, not null. |
| * |
| * @return the number of deleted rows. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doDelete(JobEntryTorque obj) throws TorqueException |
| { |
| <span class="nc" id="L1153"> return getJobEntryTorquePeerImpl().doDelete(obj);</span> |
| } |
| |
| /** |
| * 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. |
| * |
| * @param obj the data object to delete in the database, not null. |
| * @param con the connection to use, not null. |
| * |
| * @return the number of deleted rows. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doDelete(JobEntryTorque obj, Connection con) |
| throws TorqueException |
| { |
| <span class="nc" id="L1173"> return getJobEntryTorquePeerImpl().doDelete(obj, con);</span> |
| } |
| |
| /** |
| * Deletes data objects, i.e. rows in a table, in the database. |
| * |
| * @param objects the datas object to delete in the database, not null, |
| * may not contain null. |
| * |
| * @return the number of deleted rows. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doDelete(Collection<JobEntryTorque> objects) |
| throws TorqueException |
| { |
| <span class="nc" id="L1190"> return getJobEntryTorquePeerImpl().doDelete(objects);</span> |
| } |
| |
| /** |
| * 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. |
| * |
| * @param objects the datas object to delete in the database, not null, |
| * may not contain null. |
| * @param con the connection to use for deleting, not null. |
| * |
| * @return the number of deleted rows. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doDelete( |
| Collection<JobEntryTorque> objects, |
| Connection con) |
| throws TorqueException |
| { |
| <span class="nc" id="L1213"> return getJobEntryTorquePeerImpl().doDelete(objects, con);</span> |
| } |
| |
| /** |
| * Deletes a row in the database. |
| * |
| * @param pk the ObjectKey that identifies the row to delete. |
| * |
| * @return the number of deleted rows. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doDelete(ObjectKey<?> pk) throws TorqueException |
| { |
| <span class="nc" id="L1228"> return getJobEntryTorquePeerImpl().doDelete(pk);</span> |
| } |
| |
| /** |
| * 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. |
| * |
| * @param pk the ObjectKey that identifies the row to delete. |
| * @param con the connection to use for deleting, not null. |
| * |
| * @return the number of deleted rows. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static int doDelete(ObjectKey<?> pk, Connection con) |
| throws TorqueException |
| { |
| <span class="nc" id="L1248"> return getJobEntryTorquePeerImpl().doDelete(pk, con);</span> |
| } |
| |
| /** |
| * Build a Criteria object which selects all objects which have a given |
| * primary key. |
| * |
| * @param pk the primary key value to build the criteria from, not null. |
| */ |
| public static Criteria buildCriteria(ObjectKey<?> pk) |
| { |
| <span class="nc" id="L1259"> return getJobEntryTorquePeerImpl().buildCriteria(pk);</span> |
| } |
| |
| /** |
| * Build a Criteria object which selects all objects which primary keys |
| * are contained in the passed collection. |
| * |
| * @param pks the primary key values to build the criteria from, not null, |
| * may not contain null. |
| */ |
| public static Criteria buildCriteria(Collection<ObjectKey<?>> pks) |
| { |
| <span class="nc" id="L1271"> return getJobEntryTorquePeerImpl().buildCriteria(pks);</span> |
| } |
| |
| /** |
| * Build a Criteria object which selects all passed objects using their |
| * primary key. Objects which do not yet have a primary key are ignored. |
| * |
| * @param objects the objects to build the criteria from, not null, |
| * may not contain null. |
| */ |
| public static Criteria buildPkCriteria( |
| Collection<JobEntryTorque> objects) |
| { |
| <span class="nc" id="L1284"> return getJobEntryTorquePeerImpl().buildPkCriteria(objects);</span> |
| } |
| |
| /** |
| * Build a Criteria object from the data object for this peer. |
| * |
| * @param obj the object to build the criteria from, not null. |
| */ |
| public static Criteria buildCriteria(JobEntryTorque obj) |
| { |
| <span class="nc" id="L1294"> return getJobEntryTorquePeerImpl().buildCriteria(obj);</span> |
| } |
| |
| /** |
| * Build a Criteria object from the data object for this peer, |
| * skipping all binary columns. |
| * |
| * @param obj the object to build the criteria from, not null. |
| */ |
| public static Criteria buildSelectCriteria(JobEntryTorque obj) |
| { |
| <span class="nc" id="L1305"> return getJobEntryTorquePeerImpl().buildSelectCriteria(obj);</span> |
| } |
| |
| /** |
| * Returns the contents of the object as ColumnValues object |
| * |
| * @throws TorqueException if the table map cannot be retrieved |
| * (should not happen). |
| */ |
| public static ColumnValues buildColumnValues(JobEntryTorque jobEntryTorque) |
| throws TorqueException |
| { |
| |
| <span class="nc" id="L1318"> return getJobEntryTorquePeerImpl().buildColumnValues(jobEntryTorque);</span> |
| } |
| |
| /** |
| * Retrieve a single object by pk |
| * |
| * @param pk the primary key |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| * @throws NoRowsException Primary key was not found in database. |
| * @throws TooManyRowsException Primary key was not found in database. |
| */ |
| public static JobEntryTorque retrieveByPK(int pk) |
| throws TorqueException, NoRowsException, TooManyRowsException |
| { |
| <span class="nc" id="L1333"> return getJobEntryTorquePeerImpl().retrieveByPK(pk);</span> |
| } |
| |
| /** |
| * Retrieve a single object by pk |
| * |
| * @param pk the primary key |
| * @param con the connection to use |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| * @throws NoRowsException Primary key was not found in database. |
| * @throws TooManyRowsException Primary key was not found in database. |
| */ |
| public static JobEntryTorque retrieveByPK(int pk, Connection con) |
| throws TorqueException, NoRowsException, TooManyRowsException |
| { |
| <span class="nc" id="L1349"> return getJobEntryTorquePeerImpl().retrieveByPK(pk, con);</span> |
| } |
| |
| |
| |
| |
| /** |
| * Retrieve a single object by pk |
| * |
| * @param pk the primary key |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| * @throws NoRowsException Primary key was not found in database. |
| * @throws TooManyRowsException Primary key was not found in database. |
| */ |
| public static JobEntryTorque retrieveByPK(ObjectKey<?> pk) |
| throws TorqueException, NoRowsException, TooManyRowsException |
| { |
| <span class="nc" id="L1367"> return getJobEntryTorquePeerImpl().retrieveByPK(pk);</span> |
| } |
| |
| /** |
| * Retrieve a single object by pk |
| * |
| * @param pk the primary key |
| * @param con the connection to use |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| * @throws NoRowsException Primary key was not found in database. |
| * @throws TooManyRowsException Primary key was not found in database. |
| */ |
| public static JobEntryTorque retrieveByPK(ObjectKey<?> pk, Connection con) |
| throws TorqueException, NoRowsException, TooManyRowsException |
| { |
| <span class="nc" id="L1383"> return getJobEntryTorquePeerImpl().retrieveByPK(pk, con);</span> |
| } |
| |
| |
| /** |
| * Retrieve multiple objects by pk. |
| * |
| * @param pks List of primary keys |
| * |
| * @return the list of matching objects, not null. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static List<JobEntryTorque> retrieveByTypedPKs(Collection<Integer> pks) |
| throws TorqueException |
| { |
| <span class="nc" id="L1400"> return getJobEntryTorquePeerImpl().retrieveByTypedPKs(pks);</span> |
| } |
| |
| /** |
| * Retrieve multiple objects by pk. |
| * |
| * @param pks List of primary keys |
| * @param dbcon the connection to use |
| * |
| * @return the list of matching objects, not null. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static List<JobEntryTorque> retrieveByTypedPKs( |
| Collection<Integer> pks, |
| Connection dbcon) |
| throws TorqueException |
| { |
| <span class="nc" id="L1419"> return getJobEntryTorquePeerImpl().retrieveByTypedPKs(pks, dbcon);</span> |
| } |
| |
| /** |
| * Retrieve a multiple objects by pk. |
| * |
| * @param pks List of primary keys |
| * |
| * @return the list of matching objects, not null. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static List<JobEntryTorque> retrieveByObjectKeys(Collection<ObjectKey<?>> pks) |
| throws TorqueException |
| { |
| <span class="nc" id="L1435"> return getJobEntryTorquePeerImpl().retrieveByObjectKeys(pks);</span> |
| } |
| |
| /** |
| * Retrieve multiple objects by pk. |
| * |
| * @param pks List of primary keys |
| * @param con the connection to use |
| * |
| * @return the list of matching objects, not null. |
| * |
| * @throws TorqueException Any exceptions caught during processing will be |
| * rethrown wrapped into a TorqueException. |
| */ |
| public static List<JobEntryTorque> retrieveByObjectKeys(Collection<ObjectKey<?>> pks, Connection con) |
| throws TorqueException |
| { |
| <span class="nc" id="L1452"> return getJobEntryTorquePeerImpl().retrieveByObjectKeys(pks, con);</span> |
| } |
| |
| |
| |
| |
| |
| /** |
| * Returns the TableMap related to this peer. |
| * |
| * @return the table map, not null. |
| * |
| * @throws TorqueException if the Peer instance does not hold a Table map. |
| */ |
| public static TableMap getTableMap() |
| throws TorqueException |
| { |
| <span class="nc" id="L1469"> return getJobEntryTorquePeerImpl().getTableMap();</span> |
| } |
| |
| public static void initDatabaseMap() |
| { |
| <span class="nc" id="L1474"> }</span> |
| |
| |
| } |
| </pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.12.202403310830</span></div></body></html> |