|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.quartz.impl.jdbcjobstore Class SybaseDelegate
java.lang.Objectorg.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.impl.jdbcjobstore.SybaseDelegate
- All Implemented Interfaces:
- Constants, DriverDelegate, StdJDBCConstants
public class SybaseDelegate
- extends StdJDBCDelegate
This is a driver delegate for the Sybase database.
- Author:
- Jeffrey Wescott, jhouse, Ray Case
| Field Summary |
|---|
| Fields inherited from class org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
|---|
classLoadHelper, instanceId, logger, schedName, tablePrefix, triggerPersistenceDelegates, useProperties |
| Constructor Summary | |
|---|---|
SybaseDelegate(org.slf4j.Logger log,
String tablePrefix,
String schedName,
String instanceId,
org.quartz.spi.ClassLoadHelper classLoadHelper)
Create new SybaseDelegate instance. |
|
SybaseDelegate(org.slf4j.Logger log,
String tablePrefix,
String schedName,
String instanceId,
org.quartz.spi.ClassLoadHelper classLoadHelper,
Boolean useProperties)
|
|
| 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. |
protected void |
setBytes(PreparedStatement ps,
int index,
ByteArrayOutputStream baos)
Sets the designated parameter to the byte array of the given ByteArrayOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SybaseDelegate
public SybaseDelegate(org.slf4j.Logger log,
String tablePrefix,
String schedName,
String instanceId,
org.quartz.spi.ClassLoadHelper classLoadHelper)
Create new SybaseDelegate instance.
- Parameters:
log- the logger to use during executiontablePrefix- the prefix of all table names
SybaseDelegate
public SybaseDelegate(org.slf4j.Logger log,
String tablePrefix,
String schedName,
String instanceId,
org.quartz.spi.ClassLoadHelper classLoadHelper,
Boolean useProperties)
| Method Detail |
|---|
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
- 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.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
setBytes
protected void setBytes(PreparedStatement ps, int index, ByteArrayOutputStream baos) throws SQLException
- Sets the designated parameter to the byte array of the given
ByteArrayOutputStream. Will set parameter value to null if theByteArrayOutputStreamis null. This just wrapsPreparedStatement.setBytes(int, byte[])by default, but it can be overloaded by subclass delegates for databases that don't explicitly support storing bytes in this way. - Overrides:
setBytesin classStdJDBCDelegate
- Throws:
SQLException
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2001-2011, Terracotta, Inc.
