com.sleepycat.persist.impl
Class SimpleFormat.FDate

java.lang.Object
  extended by com.sleepycat.persist.impl.Format
      extended by com.sleepycat.persist.impl.SimpleFormat
          extended by com.sleepycat.persist.impl.SimpleFormat.FDate
All Implemented Interfaces:
RawType, java.io.Serializable
Enclosing class:
SimpleFormat

public static class SimpleFormat.FDate
extends SimpleFormat

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sleepycat.persist.impl.SimpleFormat
SimpleFormat.FBigInt, SimpleFormat.FBool, SimpleFormat.FByte, SimpleFormat.FChar, SimpleFormat.FDate, SimpleFormat.FDouble, SimpleFormat.FFloat, SimpleFormat.FInt, SimpleFormat.FLong, SimpleFormat.FShort, SimpleFormat.FString
 
Method Summary
 java.lang.Object newInstance(EntityInput input, boolean rawAccess)
          Creates a new instance of the target class using its default constructor.
 
Methods inherited from class com.sleepycat.persist.impl.SimpleFormat
isPrimitive, isSimple, readObject
 
Methods inherited from class com.sleepycat.persist.impl.Format
getClassName, getComponentType, getDimensions, getEnumConstants, getFields, getPreviousVersion, getSuperType, getVersion, initializeReader, isArray, isEnum, readPriKey, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newInstance

public java.lang.Object newInstance(EntityInput input,
                                    boolean rawAccess)
Description copied from class: Format
Creates a new instance of the target class using its default constructor. Normally this creates an empty object, and readObject() is called next to fill in the contents. This is done in two steps to allow the instance to be registered by EntityInput before reading the contents. This allows the fields in an object or a nested object to refer to the parent object in a graph. Alternatively, this method may read all or the first portion of the data, rather than that being done by readObject(). This is required for simple types and enums, where the object cannot be created without reading the data. In these cases, there is no possibility that the parent object will be referenced by the child object in the graph. It should not be done in other cases, or the graph references may not be maintained faithfully. Is public only in order to implement the Reader interface. Note that this method should only be called directly in raw conversion mode or during conversion of an old format. Normally it should be called via the getReader method and the Reader interface.

Specified by:
newInstance in class Format