org.apache.turbine.services.schedule
Class JobEntryPeer
java.lang.Object
|
+--org.apache.torque.util.BasePeer
|
+--org.apache.turbine.services.schedule.JobEntryPeer
- All Implemented Interfaces:
- java.io.Serializable
- public class JobEntryPeer
- extends org.apache.torque.util.BasePeer
Peer class for JobEntry database access.
- Version:
- $Id: JobEntryPeer.java,v 1.3 2002/07/11 07:34:30 mpoeschl Exp $
- Author:
- Dave Bryson
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
DAY_OF_MONTH
|
static java.lang.String |
EMAIL
|
static java.lang.String |
HOUR
|
static java.lang.String |
MINUTE
|
static java.lang.String |
OID
|
static java.lang.String |
PROPERTY
|
static java.lang.String |
SECOND
|
static java.lang.String |
TASK
|
static java.lang.String |
WEEKDAY
|
Fields inherited from class org.apache.torque.util.BasePeer |
category, DEFAULT_MAP_BUILDER, IGNORE_CASE, ORDER_BY, TABLE_NAME |
Method Summary |
protected static void |
addSelectColumns(org.apache.torque.util.Criteria criteria)
Add all the columns needed to create a new object. |
static org.apache.torque.om.ObjectKey |
doInsert(org.apache.torque.util.Criteria criteria)
Perform a SQL insert , handling connection details
internally. |
static org.apache.torque.om.ObjectKey |
doInsert(org.apache.torque.util.Criteria criteria,
java.sql.Connection dbCon)
Method to do inserts. |
static java.util.List |
doSelect(org.apache.torque.util.Criteria criteria)
Called from the SchedulerService init() to batch load Jobs into
the queue. |
static void |
doUpdate(org.apache.torque.util.Criteria criteria)
Update an existing Job. |
static JobEntry |
getJob(int oid)
Retrieve a JobEntry based on its id. |
Methods inherited from class org.apache.torque.util.BasePeer |
createPreparedStatement, createQueryString, deleteAll, deleteAll, doDelete, doDelete, doPSSelect, doPSSelect, doSelect, doUpdate, doUpdate, doUpdate, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeStatement, executeStatement, executeStatement, getMapBuilder, getMapBuilder, getSelectResults, getSelectResults, getSelectResults, getSelectResults, handleMultiple, handleMultipleRecords, hashtableToByteArray, initColumnNames, initCriteriaKeys, initTableColumns, initTableSchema, initTableSchema |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OID
public static final java.lang.String OID
SECOND
public static final java.lang.String SECOND
MINUTE
public static final java.lang.String MINUTE
HOUR
public static final java.lang.String HOUR
WEEKDAY
public static final java.lang.String WEEKDAY
DAY_OF_MONTH
public static final java.lang.String DAY_OF_MONTH
TASK
public static final java.lang.String TASK
EMAIL
public static final java.lang.String EMAIL
PROPERTY
public static final java.lang.String PROPERTY
JobEntryPeer
public JobEntryPeer()
doUpdate
public static void doUpdate(org.apache.torque.util.Criteria criteria)
throws org.apache.torque.TorqueException
- Update an existing Job.
- Parameters:
Criteria
- The information to update.- Throws:
Exception,
- a generic exception.
doSelect
public static java.util.List doSelect(org.apache.torque.util.Criteria criteria)
throws org.apache.torque.TorqueException
- Called from the SchedulerService init() to batch load Jobs into
the queue.
- Parameters:
Criteria
- The information for the where.- Returns:
- Vector of JobEntries.
- Throws:
Exception,
- a generic exception.
doInsert
public static org.apache.torque.om.ObjectKey doInsert(org.apache.torque.util.Criteria criteria)
throws org.apache.torque.TorqueException
- Perform a SQL
insert
, handling connection details
internally.
doInsert
public static org.apache.torque.om.ObjectKey doInsert(org.apache.torque.util.Criteria criteria,
java.sql.Connection dbCon)
throws org.apache.torque.TorqueException
- Method to do inserts. This method is to be used during a transaction,
otherwise use the doInsert(Criteria) method. It will take care of
the connection details internally.
addSelectColumns
protected static void addSelectColumns(org.apache.torque.util.Criteria criteria)
throws org.apache.torque.TorqueException
- Add all the columns needed to create a new object.
getJob
public static JobEntry getJob(int oid)
throws java.lang.Exception
- Retrieve a JobEntry based on its id.
- Parameters:
oid
- The JobEntry int id.- Returns:
- A JobEntry.
- Throws:
Exception,
- a generic exception.
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.