|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
This is a driver delegate for the Oracle JDBC driver. To use this delegate,
jdbcDriverVendor
should be configured as 'Oracle' with any
jdbcDriverVersion
.
WebLogicDelegate
,
org.quartz.impl.jdbcjobstore.oracle.WebLogicOracleDelegate
Field Summary | |
static java.lang.String |
INSERT_ORACLE_CALENDAR
|
static java.lang.String |
INSERT_ORACLE_JOB_DETAIL
|
static java.lang.String |
SELECT_ORACLE_CALENDAR_BLOB
|
static java.lang.String |
SELECT_ORACLE_JOB_DETAIL_BLOB
|
static java.lang.String |
UPDATE_ORACLE_CALENDAR_BLOB
|
static java.lang.String |
UPDATE_ORACLE_JOB_DETAIL
|
static java.lang.String |
UPDATE_ORACLE_JOB_DETAIL_BLOB
|
static java.lang.String |
UPDATE_ORACLE_JOB_DETAIL_EMPTY_BLOB
|
Fields inherited from class org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
instanceId, logger, tablePrefix, useProperties |
Constructor Summary | |
OracleDelegate(org.apache.commons.logging.Log logger,
java.lang.String tablePrefix,
java.lang.String instanceId)
Create new OrcaleDelegate instance. |
|
OracleDelegate(org.apache.commons.logging.Log logger,
java.lang.String tablePrefix,
java.lang.String instanceId,
java.lang.Boolean useProperties)
Create new OrcaleDelegate instance. |
Method Summary | |
protected java.lang.Object |
getJobDetailFromBlob(java.sql.ResultSet rs,
java.lang.String colName)
This method should be overridden by any delegate subclasses that need special handling for BLOBs for job details. |
protected java.lang.Object |
getObjectFromBlob(java.sql.ResultSet rs,
java.lang.String colName)
This method should be overridden by any delegate subclasses that need special handling for BLOBs. |
int |
insertCalendar(java.sql.Connection conn,
java.lang.String calendarName,
Calendar calendar)
Insert a new calendar. |
int |
insertJobDetail(java.sql.Connection conn,
JobDetail job)
Insert the job detail record. |
int |
updateCalendar(java.sql.Connection conn,
java.lang.String calendarName,
Calendar calendar)
Update a calendar. |
int |
updateJobData(java.sql.Connection conn,
JobDetail job)
Update the job data map for the given job. |
int |
updateJobDetail(java.sql.Connection conn,
JobDetail job)
Update the job detail record. |
protected java.sql.Blob |
writeDataToBlob(java.sql.ResultSet rs,
int column,
byte[] data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String INSERT_ORACLE_JOB_DETAIL
public static final java.lang.String UPDATE_ORACLE_JOB_DETAIL
public static final java.lang.String UPDATE_ORACLE_JOB_DETAIL_BLOB
public static final java.lang.String UPDATE_ORACLE_JOB_DETAIL_EMPTY_BLOB
public static final java.lang.String SELECT_ORACLE_JOB_DETAIL_BLOB
public static final java.lang.String INSERT_ORACLE_CALENDAR
public static final java.lang.String SELECT_ORACLE_CALENDAR_BLOB
public static final java.lang.String UPDATE_ORACLE_CALENDAR_BLOB
Constructor Detail |
public OracleDelegate(org.apache.commons.logging.Log logger, java.lang.String tablePrefix, java.lang.String instanceId)
Create new OrcaleDelegate instance.
logger
- the logger to use during executiontablePrefix
- the prefix of all table namespublic OracleDelegate(org.apache.commons.logging.Log logger, java.lang.String tablePrefix, java.lang.String instanceId, java.lang.Boolean useProperties)
Create new OrcaleDelegate instance.
logger
- the logger to use during executiontablePrefix
- the prefix of all table namesuseProperties
- use java.util.Properties for storageMethod Detail |
protected java.lang.Object getObjectFromBlob(java.sql.ResultSet rs, java.lang.String colName) throws java.lang.ClassNotFoundException, java.io.IOException, java.sql.SQLException
StdJDBCDelegate
This method should be overridden by any delegate subclasses that need
special handling for BLOBs. The default implementation uses standard
JDBC java.sql.Blob
operations.
getObjectFromBlob
in class StdJDBCDelegate
rs
- the result set, already queued to the correct rowcolName
- the column name for the BLOB
java.lang.ClassNotFoundException
- if a class found during deserialization cannot be found
java.io.IOException
- if deserialization causes an error
java.sql.SQLException
public int insertJobDetail(java.sql.Connection conn, JobDetail job) throws java.io.IOException, java.sql.SQLException
StdJDBCDelegate
Insert the job detail record.
insertJobDetail
in interface DriverDelegate
insertJobDetail
in class StdJDBCDelegate
conn
- the DB Connectionjob
- the job to insert
java.io.IOException
- if there were problems serializing the JobDataMap
java.sql.SQLException
protected java.lang.Object getJobDetailFromBlob(java.sql.ResultSet rs, java.lang.String colName) throws java.lang.ClassNotFoundException, java.io.IOException, java.sql.SQLException
StdJDBCDelegate
This method should be overridden by any delegate subclasses that need
special handling for BLOBs for job details. The default implementation
uses standard JDBC java.sql.Blob
operations.
getJobDetailFromBlob
in class StdJDBCDelegate
rs
- the result set, already queued to the correct rowcolName
- the column name for the BLOB
java.io.IOException
- if deserialization causes an error
java.lang.ClassNotFoundException
- if a class found during deserialization cannot be found
java.sql.SQLException
public int updateJobDetail(java.sql.Connection conn, JobDetail job) throws java.io.IOException, java.sql.SQLException
StdJDBCDelegate
Update the job detail record.
updateJobDetail
in interface DriverDelegate
updateJobDetail
in class StdJDBCDelegate
conn
- the DB Connectionjob
- the job to update
java.io.IOException
- if there were problems serializing the JobDataMap
java.sql.SQLException
public int insertCalendar(java.sql.Connection conn, java.lang.String calendarName, Calendar calendar) throws java.io.IOException, java.sql.SQLException
StdJDBCDelegate
Insert a new calendar.
insertCalendar
in interface DriverDelegate
insertCalendar
in class StdJDBCDelegate
conn
- the DB ConnectioncalendarName
- the name for the new calendarcalendar
- the calendar
java.io.IOException
- if there were problems serializing the calendar
java.sql.SQLException
public int updateCalendar(java.sql.Connection conn, java.lang.String calendarName, Calendar calendar) throws java.io.IOException, java.sql.SQLException
StdJDBCDelegate
Update a calendar.
updateCalendar
in interface DriverDelegate
updateCalendar
in class StdJDBCDelegate
conn
- the DB ConnectioncalendarName
- the name for the new calendarcalendar
- the calendar
java.io.IOException
- if there were problems serializing the calendar
java.sql.SQLException
public int updateJobData(java.sql.Connection conn, JobDetail job) throws java.io.IOException, java.sql.SQLException
StdJDBCDelegate
Update the job data map for the given job.
updateJobData
in interface DriverDelegate
updateJobData
in class StdJDBCDelegate
conn
- the DB Connectionjob
- the job to update
java.io.IOException
java.sql.SQLException
protected java.sql.Blob writeDataToBlob(java.sql.ResultSet rs, int column, byte[] data) throws java.sql.SQLException
java.sql.SQLException
|
Quartz Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |