|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.quartz.impl.jdbcjobstore.oracle Class OracleDelegate
java.lang.Object org.quartz.impl.jdbcjobstore.StdJDBCDelegate org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
- All Implemented Interfaces:
- Constants, DriverDelegate, StdJDBCConstants
- Direct Known Subclasses:
- WebLogicOracleDelegate
public class OracleDelegate
- extends StdJDBCDelegate
This is a driver delegate for the Oracle 10 and 11 database.
- Author:
- James House, Patrick Lightbody, Eric Mueller
- See Also:
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 |
---|
INSERT_ORACLE_JOB_DETAIL
public static final String INSERT_ORACLE_JOB_DETAIL
- See Also:
- Constant Field Values
UPDATE_ORACLE_JOB_DETAIL
public static final String UPDATE_ORACLE_JOB_DETAIL
- See Also:
- Constant Field Values
UPDATE_ORACLE_JOB_DETAIL_BLOB
public static final String UPDATE_ORACLE_JOB_DETAIL_BLOB
- See Also:
- Constant Field Values
SELECT_ORACLE_JOB_DETAIL_BLOB
public static final String SELECT_ORACLE_JOB_DETAIL_BLOB
- See Also:
- Constant Field Values
UPDATE_ORACLE_TRIGGER
public static final String UPDATE_ORACLE_TRIGGER
- See Also:
- Constant Field Values
SELECT_ORACLE_TRIGGER_JOB_DETAIL_BLOB
public static final String SELECT_ORACLE_TRIGGER_JOB_DETAIL_BLOB
- See Also:
- Constant Field Values
UPDATE_ORACLE_TRIGGER_JOB_DETAIL_BLOB
public static final String UPDATE_ORACLE_TRIGGER_JOB_DETAIL_BLOB
- See Also:
- Constant Field Values
UPDATE_ORACLE_TRIGGER_JOB_DETAIL_EMPTY_BLOB
public static final String UPDATE_ORACLE_TRIGGER_JOB_DETAIL_EMPTY_BLOB
- See Also:
- Constant Field Values
INSERT_ORACLE_CALENDAR
public static final String INSERT_ORACLE_CALENDAR
- See Also:
- Constant Field Values
SELECT_ORACLE_CALENDAR_BLOB
public static final String SELECT_ORACLE_CALENDAR_BLOB
- See Also:
- Constant Field Values
UPDATE_ORACLE_CALENDAR_BLOB
public static final String UPDATE_ORACLE_CALENDAR_BLOB
- See Also:
- Constant Field Values
Constructor Detail |
---|
OracleDelegate
public OracleDelegate(org.slf4j.Logger logger, String tablePrefix, String schedName, String instanceId, org.quartz.spi.ClassLoadHelper classLoadHelper)
Create new OrcaleDelegate instance.
- Parameters:
logger
- the logger to use during executiontablePrefix
- the prefix of all table names
OracleDelegate
public OracleDelegate(org.slf4j.Logger logger, String tablePrefix, String schedName, String instanceId, org.quartz.spi.ClassLoadHelper classLoadHelper, Boolean useProperties)
Create new OrcaleDelegate instance.
- Parameters:
logger
- the logger to use during executiontablePrefix
- the prefix of all table namesuseProperties
- use java.util.Properties for storage
Method Detail |
---|
getObjectFromBlob
protected Object getObjectFromBlob(ResultSet rs, String colName) throws ClassNotFoundException, IOException, SQLException
- Description copied from class:
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.- Overrides:
getObjectFromBlob
in classStdJDBCDelegate
- Parameters:
rs
- the result set, already queued to the correct rowcolName
- the column name for the BLOB- Returns:
- the deserialized Object from the ResultSet BLOB
- Throws:
ClassNotFoundException
- if a class found during deserialization cannot be foundIOException
- if deserialization causes an errorSQLException
insertJobDetail
public int insertJobDetail(Connection conn, JobDetail job) throws IOException, SQLException
- Description copied from class:
StdJDBCDelegate
Insert the job detail record.
- Specified by:
insertJobDetail
in interfaceDriverDelegate
- Overrides:
insertJobDetail
in classStdJDBCDelegate
- Parameters:
conn
- the DB Connectionjob
- the job to insert- Returns:
- number of rows inserted
- Throws:
IOException
- if there were problems serializing the JobDataMapSQLException
getJobDataFromBlob
protected Object getJobDataFromBlob(ResultSet rs, String colName) throws ClassNotFoundException, IOException, SQLException
- Description copied from class:
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.- Overrides:
getJobDataFromBlob
in classStdJDBCDelegate
- Parameters:
rs
- the result set, already queued to the correct rowcolName
- the column name for the BLOB- Returns:
- the deserialized Object from the ResultSet BLOB
- Throws:
ClassNotFoundException
- if a class found during deserialization cannot be foundIOException
- if deserialization causes an errorSQLException
updateJobDetail
public int updateJobDetail(Connection conn, JobDetail job) throws IOException, SQLException
- Description copied from class:
StdJDBCDelegate
Update the job detail record.
- Specified by:
updateJobDetail
in interfaceDriverDelegate
- Overrides:
updateJobDetail
in classStdJDBCDelegate
- Parameters:
conn
- the DB Connectionjob
- the job to update- Returns:
- number of rows updated
- Throws:
IOException
- if there were problems serializing the JobDataMapSQLException
insertTrigger
public int insertTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, JobDetail jobDetail) throws SQLException, IOException
- Description copied from class:
StdJDBCDelegate
Insert the base trigger data.
- Specified by:
insertTrigger
in interfaceDriverDelegate
- Overrides:
insertTrigger
in classStdJDBCDelegate
- Parameters:
conn
- the DB Connectiontrigger
- the trigger to insertstate
- the state that the trigger should be stored in- Returns:
- the number of rows inserted
- Throws:
SQLException
IOException
updateTrigger
public int updateTrigger(Connection conn, org.quartz.spi.OperableTrigger trigger, String state, JobDetail jobDetail) throws SQLException, IOException
- Description copied from class:
StdJDBCDelegate
Update the base trigger data.
- Specified by:
updateTrigger
in interfaceDriverDelegate
- Overrides:
updateTrigger
in classStdJDBCDelegate
- Parameters:
conn
- the DB Connectiontrigger
- the trigger to insertstate
- the state that the trigger should be stored in- Returns:
- the number of rows updated
- Throws:
SQLException
IOException
insertCalendar
public int insertCalendar(Connection conn, String calendarName, Calendar calendar) throws IOException, SQLException
- Description copied from class:
StdJDBCDelegate
Insert a new calendar.
- Specified by:
insertCalendar
in interfaceDriverDelegate
- Overrides:
insertCalendar
in classStdJDBCDelegate
- Parameters:
conn
- the DB ConnectioncalendarName
- the name for the new calendarcalendar
- the calendar- Returns:
- the number of rows inserted
- Throws:
IOException
- if there were problems serializing the calendarSQLException
updateCalendar
public int updateCalendar(Connection conn, String calendarName, Calendar calendar) throws IOException, SQLException
- Description copied from class:
StdJDBCDelegate
Update a calendar.
- Specified by:
updateCalendar
in interfaceDriverDelegate
- Overrides:
updateCalendar
in classStdJDBCDelegate
- Parameters:
conn
- the DB ConnectioncalendarName
- the name for the new calendarcalendar
- the calendar- Returns:
- the number of rows updated
- Throws:
IOException
- if there were problems serializing the calendarSQLException
updateJobData
public int updateJobData(Connection conn, JobDetail job) throws IOException, SQLException
- Description copied from class:
StdJDBCDelegate
Update the job data map for the given job.
- Specified by:
updateJobData
in interfaceDriverDelegate
- Overrides:
updateJobData
in classStdJDBCDelegate
- Parameters:
conn
- the DB Connectionjob
- the job to update- Returns:
- the number of rows updated
- Throws:
IOException
- if there were problems serializing the JobDataMapSQLException
writeDataToBlob
protected Blob writeDataToBlob(ResultSet rs, int column, byte[] data) throws SQLException
- Throws:
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2001-2011, Terracotta, Inc.