com.objectwave.persist.broker
Class AccessObjectFormatter

java.lang.Object
  |
  +--com.objectwave.utility.ObjectFormatter
        |
        +--com.objectwave.persist.ObjectFormatter
              |
              +--com.objectwave.persist.broker.AccessObjectFormatter

public class AccessObjectFormatter
extends ObjectFormatter

Customize the formatting of dates for MS Access.

Version:
$Id: AccessObjectFormatter.java,v 1.1 2001/11/08 20:36:31 dave_hoag Exp $
Author:
dhoag

Nested Class Summary
static class AccessObjectFormatter.Test
           
 
Nested classes inherited from class com.objectwave.persist.ObjectFormatter
ObjectFormatter.Test
 
Field Summary
 
Fields inherited from class com.objectwave.utility.ObjectFormatter
Native_Array_Delimiter, outputStreams, zipBufferSize
 
Constructor Summary
AccessObjectFormatter()
          Constructor for the AccessObjectFormatter object
 
Method Summary
protected  void formatDate(java.util.Date value, java.lang.StringBuffer buf)
          Format for Access based dates.
 
Methods inherited from class com.objectwave.persist.ObjectFormatter
bindBlob, convertArrays, convertType, convertTypes, needsArrayConversion
 
Methods inherited from class com.objectwave.utility.ObjectFormatter
bytesToString, convertArray, convertPrimitive, convertString, convertType, createArray, createNumber, createScalarType, formatSerializable, formatValue, formatValue, readSerializable, replace1QuoteWith2, serializeObject, stringToBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessObjectFormatter

public AccessObjectFormatter()
Constructor for the AccessObjectFormatter object

Method Detail

formatDate

protected void formatDate(java.util.Date value,
                          java.lang.StringBuffer buf)
Format for Access based dates.

Timestamps look like 2001-11-02 10:56:46.923, but for access we need to remove everything after the final . so you keep 2001-11-02 10:56:46

Overrides:
formatDate in class ObjectFormatter
Parameters:
value - Date object to format.
buf - StringBuffer upon which to write the data.