|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.impl.jdbcjobstore.StdJDBCDelegate org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
public class OracleDelegate
This is a driver delegate for the Oracle 10 and 11 database.
WebLogicDelegate
,
WebLogicOracleDelegate
Field Summary | |
---|---|
static String |
INSERT_ORACLE_CALENDAR
|
static String |
INSERT_ORACLE_JOB_DETAIL
|
static String |
SELECT_ORACLE_CALENDAR_BLOB
|
static String |
SELECT_ORACLE_JOB_DETAIL_BLOB
|
static String |
SELECT_ORACLE_TRIGGER_JOB_DETAIL_BLOB
|
static String |
UPDATE_ORACLE_CALENDAR_BLOB
|
static String |
UPDATE_ORACLE_JOB_DETAIL
|
static String |
UPDATE_ORACLE_JOB_DETAIL_BLOB
|
static String |
UPDATE_ORACLE_TRIGGER
|
static String |
UPDATE_ORACLE_TRIGGER_JOB_DETAIL_BLOB
|
static String |
UPDATE_ORACLE_TRIGGER_JOB_DETAIL_EMPTY_BLOB
|
Fields inherited from class org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
---|
classLoadHelper, instanceId, logger, schedName, tablePrefix, triggerPersistenceDelegates, useProperties |
Constructor Summary | |
---|---|
OracleDelegate(org.slf4j.Logger logger,
String tablePrefix,
String schedName,
String instanceId,
org.quartz.spi.ClassLoadHelper classLoadHelper)
Create new OrcaleDelegate instance. |
|
OracleDelegate(org.slf4j.Logger logger,
String tablePrefix,
String schedName,
String instanceId,
org.quartz.spi.ClassLoadHelper classLoadHelper,
Boolean useProperties)
Create new OrcaleDelegate instance. |
Method Summary | |
---|---|
protected Object |
getJobDataFromBlob(ResultSet rs,
String colName)
This method should be overridden by any delegate subclasses that need special handling for BLOBs for job details. |
protected Object |
getObjectFromBlob(ResultSet rs,
String colName)
This method should be overridden by any delegate subclasses that need special handling for BLOBs. |
int |
insertCalendar(Connection conn,
String calendarName,
Calendar calendar)
Insert a new calendar. |
int |
insertJobDetail(Connection conn,
JobDetail job)
Insert the job detail record. |
int |
insertTrigger(Connection conn,
org.quartz.spi.OperableTrigger trigger,
String state,
JobDetail jobDetail)
Insert the base trigger data. |
int |
updateCalendar(Connection conn,
String calendarName,
Calendar calendar)
Update a calendar. |
int |
updateJobData(Connection conn,
JobDetail job)
Update the job data map for the given job. |
int |
updateJobDetail(Connection conn,
JobDetail job)
Update the job detail record. |
int |
updateTrigger(Connection conn,
org.quartz.spi.OperableTrigger trigger,
String state,
JobDetail jobDetail)
Update the base trigger data. |
protected Blob |
writeDataToBlob(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 String INSERT_ORACLE_JOB_DETAIL
public static final String UPDATE_ORACLE_JOB_DETAIL
public static final String UPDATE_ORACLE_JOB_DETAIL_BLOB
public static final String SELECT_ORACLE_JOB_DETAIL_BLOB
public static final String UPDATE_ORACLE_TRIGGER
public static final String SELECT_ORACLE_TRIGGER_JOB_DETAIL_BLOB
public static final String UPDATE_ORACLE_TRIGGER_JOB_DETAIL_BLOB
public static final String UPDATE_ORACLE_TRIGGER_JOB_DETAIL_EMPTY_BLOB
public static final String INSERT_ORACLE_CALENDAR
public static final String SELECT_ORACLE_CALENDAR_BLOB
public static final String UPDATE_ORACLE_CALENDAR_BLOB
Constructor Detail |
---|
public OracleDelegate(org.slf4j.Logger logger, String tablePrefix, String schedName, String instanceId, org.quartz.spi.ClassLoadHelper classLoadHelper)
Create new OrcaleDelegate instance.
logger
- the logger to use during executiontablePrefix
- the prefix of all table namespublic OracleDelegate(org.slf4j.Logger logger, String tablePrefix, String schedName, String instanceId, org.quartz.spi.ClassLoadHelper classLoadHelper, 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 Object getObjectFromBlob(ResultSet rs, String colName) throws ClassNotFoundException, IOException, 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
ClassNotFoundException
- if a class found during deserialization cannot be found
IOException
- if deserialization causes an error
SQLException
public int insertJobDetail(Connection conn, JobDetail job) throws IOException, SQLException
StdJDBCDelegate
Insert the job detail record.
insertJobDetail
in interface DriverDelegate
insertJobDetail
in class StdJDBCDelegate
conn
- the DB Connectionjob
- the job to insert
IOException
- if there were problems serializing the JobDataMap
SQLException
protected Object getJobDataFromBlob(ResultSet rs, String colName) throws ClassNotFoundException, IOException, 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.
getJobDataFromBlob
in class StdJDBCDelegate
rs
- the result set, already queued to the correct rowcolName
- the column name for the BLOB
ClassNotFoundException
- if a class found during deserialization cannot be found
IOException
- if deserialization causes an error
SQLException
public int updateJobDetail(Connection conn, JobDetail job) throws IOException, SQLException
StdJDBCDelegate
Update the job detail record.
updateJobDetail
in interface DriverDelegate
updateJobDetail
in class StdJDBCDelegate
conn
- the DB Connectionjob
- the job to update
IOException
- if there were problems serializing the JobDataMap
SQLException
public int insertTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, JobDetail jobDetail) throws SQLException, IOException
StdJDBCDelegate
Insert the base trigger data.
insertTrigger
in interface DriverDelegate
insertTrigger
in class StdJDBCDelegate
conn
- the DB Connectiontrigger
- the trigger to insertstate
- the state that the trigger should be stored in
SQLException
IOException
public int updateTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, JobDetail jobDetail) throws SQLException, IOException
StdJDBCDelegate
Update the base trigger data.
updateTrigger
in interface DriverDelegate
updateTrigger
in class StdJDBCDelegate
conn
- the DB Connectiontrigger
- the trigger to insertstate
- the state that the trigger should be stored in
SQLException
IOException
public int insertCalendar(Connection conn, String calendarName, Calendar calendar) throws IOException, 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
IOException
- if there were problems serializing the calendar
SQLException
public int updateCalendar(Connection conn, String calendarName, Calendar calendar) throws IOException, 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
IOException
- if there were problems serializing the calendar
SQLException
public int updateJobData(Connection conn, JobDetail job) throws IOException, 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
IOException
- if there were problems serializing the JobDataMap
SQLException
protected Blob writeDataToBlob(ResultSet rs, int column, byte[] data) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |