net.mlw.vlh.adapter.jdbc.util.setter
Class SasDateSetter

java.lang.Object
  extended bynet.mlw.vlh.adapter.jdbc.util.setter.AbstractSetter
      extended bynet.mlw.vlh.adapter.jdbc.util.setter.TimestampSetter
          extended bynet.mlw.vlh.adapter.jdbc.util.setter.SasDateSetter
All Implemented Interfaces:
Setter

public class SasDateSetter
extends TimestampSetter

This setter is a ahck to fix problems with the SAS JDBC driver...

Version:
$Revision: 1.2 $ $Date: 2005/12/19 10:56:41 $
Author:
Matthew L. Wilson

Field Summary
static String DEFAULT_SAS_FORMAT
           
protected  SimpleDateFormat formatter
           
protected  SimpleDateFormat sasFormatter
           
 
Fields inherited from class net.mlw.vlh.adapter.jdbc.util.setter.TimestampSetter
DEFAULT_FORMAT
 
Constructor Summary
SasDateSetter()
           
 
Method Summary
 int set(PreparedStatement query, int index, Object value)
          Set the object on the given query.
 void setSasDateFormat(String format)
           
 
Methods inherited from class net.mlw.vlh.adapter.jdbc.util.setter.TimestampSetter
setFormat
 
Methods inherited from class net.mlw.vlh.adapter.jdbc.util.setter.AbstractSetter
getReplacementString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

formatter

protected SimpleDateFormat formatter

DEFAULT_SAS_FORMAT

public static final String DEFAULT_SAS_FORMAT
See Also:
Constant Field Values

sasFormatter

protected SimpleDateFormat sasFormatter
Constructor Detail

SasDateSetter

public SasDateSetter()
Method Detail

set

public int set(PreparedStatement query,
               int index,
               Object value)
        throws SQLException,
               ParseException
Description copied from interface: Setter
Set the object on the given query.

Specified by:
set in interface Setter
Overrides:
set in class TimestampSetter
Throws:
SQLException
ParseException
See Also:
net.mlw.util.sql.StatementBuilder.Setter#set(java.sql.PreparedStatement, int, java.lang.Object)

setSasDateFormat

public void setSasDateFormat(String format)
Parameters:
format - The format to set.


Copyright © 2003-2006 mlavilson. All Rights Reserved.