|
||||||||||
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.DB2v7Delegate
public class DB2v7Delegate
Quartz JDBC delegate for DB2 v7 databases.
This differs from the StdJDBCDelegate
in that it stores
boolean
values in an varchar(1)
column, and saves
serialized data in a byte array using
rather than PreparedStatement.setObject(int, java.lang.Object, int)
.
PreparedStatement.setBytes(int, byte[])
Field Summary |
---|
Fields inherited from class org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
---|
instanceId, logger, tablePrefix, useProperties |
Constructor Summary | |
---|---|
DB2v7Delegate(org.slf4j.Logger logger,
java.lang.String tablePrefix,
java.lang.String instanceId)
|
|
DB2v7Delegate(org.slf4j.Logger log,
java.lang.String tablePrefix,
java.lang.String instanceId,
java.lang.Boolean useProperties)
|
Method Summary | |
---|---|
protected void |
setBoolean(java.sql.PreparedStatement ps,
int index,
boolean val)
Sets the designated parameter to the given Java boolean value. |
protected void |
setBytes(java.sql.PreparedStatement ps,
int index,
java.io.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 |
---|
public DB2v7Delegate(org.slf4j.Logger logger, java.lang.String tablePrefix, java.lang.String instanceId)
public DB2v7Delegate(org.slf4j.Logger log, java.lang.String tablePrefix, java.lang.String instanceId, java.lang.Boolean useProperties)
Method Detail |
---|
protected void setBytes(java.sql.PreparedStatement ps, int index, java.io.ByteArrayOutputStream baos) throws java.sql.SQLException
ByteArrayOutputStream
. Will set parameter value to null if the
ByteArrayOutputStream
is null.
Wraps PreparedStatement.setObject(int, java.lang.Object, int)
rather than
PreparedStatement.setBytes(int, byte[])
as required by the
DB2 v7 database.
setBytes
in class StdJDBCDelegate
java.sql.SQLException
protected void setBoolean(java.sql.PreparedStatement ps, int index, boolean val) throws java.sql.SQLException
boolean
value.
This translates the boolean to 1/0 for true/false.
setBoolean
in class StdJDBCDelegate
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |