|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.quartz.impl.jdbcjobstore Class PointbaseDelegate
java.lang.Objectorg.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:
insertJobDetailin interfaceDriverDelegate- Overrides:
insertJobDetailin 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:
updateJobDetailin interfaceDriverDelegate- Overrides:
updateJobDetailin 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:
insertTriggerin interfaceDriverDelegate- Overrides:
insertTriggerin 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:
SQLExceptionIOException
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:
updateTriggerin interfaceDriverDelegate- Overrides:
updateTriggerin 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:
SQLExceptionIOException
updateJobData
public int updateJobData(Connection conn, JobDetail job) throws IOException, SQLException
Update the job data map for the given job.
- Specified by:
updateJobDatain interfaceDriverDelegate- Overrides:
updateJobDatain 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:
insertCalendarin interfaceDriverDelegate- Overrides:
insertCalendarin 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:
updateCalendarin interfaceDriverDelegate- Overrides:
updateCalendarin 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.Bloboperations.- Overrides:
getObjectFromBlobin 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.Bloboperations.- Overrides:
getJobDataFromBlobin 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.
