|
||||||||||
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.PointbaseDelegate
public class PointbaseDelegate
This is a driver delegate for the Pointbase JDBC driver.
Field Summary |
---|
Fields inherited from class org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
---|
classLoadHelper, instanceId, logger, schedName, tablePrefix, triggerPersistenceDelegates, useProperties |
Constructor Summary | |
---|---|
PointbaseDelegate(org.slf4j.Logger logger,
String tablePrefix,
String schedName,
String instanceId,
org.quartz.spi.ClassLoadHelper classLoadHelper)
Create new PointbaseJDBCDelegate instance. |
|
PointbaseDelegate(org.slf4j.Logger logger,
String tablePrefix,
String schedName,
String instanceId,
org.quartz.spi.ClassLoadHelper classLoadHelper,
Boolean useProperties)
Create new PointbaseJDBCDelegate 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointbaseDelegate(org.slf4j.Logger logger, String tablePrefix, String schedName, String instanceId, org.quartz.spi.ClassLoadHelper classLoadHelper)
Create new PointbaseJDBCDelegate instance.
logger
- the logger to use during executiontablePrefix
- the prefix of all table namespublic PointbaseDelegate(org.slf4j.Logger logger, String tablePrefix, String schedName, String instanceId, org.quartz.spi.ClassLoadHelper classLoadHelper, Boolean useProperties)
Create new PointbaseJDBCDelegate instance.
logger
- the logger to use during executiontablePrefix
- the prefix of all table namesMethod Detail |
---|
public int insertJobDetail(Connection conn, JobDetail job) throws IOException, SQLException
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
public int updateJobDetail(Connection conn, JobDetail job) throws IOException, SQLException
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 updateJobData(Connection conn, JobDetail job) throws IOException, SQLException
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
public int insertCalendar(Connection conn, String calendarName, Calendar calendar) throws IOException, SQLException
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
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
protected Object getObjectFromBlob(ResultSet rs, String colName) throws ClassNotFoundException, IOException, SQLException
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
protected Object getJobDataFromBlob(ResultSet rs, String colName) throws ClassNotFoundException, IOException, SQLException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |