|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.quartz.impl.jdbcjobstore Class PointbaseDelegate
java.lang.Object org.quartz.impl.jdbcjobstore.StdJDBCDelegate org.quartz.impl.jdbcjobstore.PointbaseDelegate
- All Implemented Interfaces:
- Constants, DriverDelegate, StdJDBCConstants
public class PointbaseDelegate
- extends StdJDBCDelegate
This is a driver delegate for the Pointbase JDBC driver.
- Author:
- Gregg Freeman
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 |
---|
PointbaseDelegate
public PointbaseDelegate(org.slf4j.Logger logger, String tablePrefix, String schedName, String instanceId, org.quartz.spi.ClassLoadHelper classLoadHelper)
Create new PointbaseJDBCDelegate instance.
- Parameters:
logger
- the logger to use during executiontablePrefix
- the prefix of all table names
PointbaseDelegate
public PointbaseDelegate(org.slf4j.Logger logger, String tablePrefix, String schedName, String instanceId, org.quartz.spi.ClassLoadHelper classLoadHelper, Boolean useProperties)
Create new PointbaseJDBCDelegate instance.
- Parameters:
logger
- the logger to use during executiontablePrefix
- the prefix of all table names
Method Detail |
---|
insertJobDetail
public int insertJobDetail(Connection conn, JobDetail job) throws IOException, SQLException
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
updateJobDetail
public int updateJobDetail(Connection conn, JobDetail job) throws IOException, SQLException
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
updateJobData
public int updateJobData(Connection conn, JobDetail job) throws IOException, SQLException
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
insertCalendar
public int insertCalendar(Connection conn, String calendarName, Calendar calendar) throws IOException, SQLException
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
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
getObjectFromBlob
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.- 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
getJobDataFromBlob
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.- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2001-2011, Terracotta, Inc.