wt.iba.value.litevalue
Class TimestampValueDefaultView

java.lang.Object
  extended bywt.lite.AbstractLiteObject
      extended bywt.iba.value.litevalue.AbstractValueView
          extended bywt.iba.value.litevalue.AbstractContextualValueDefaultView
              extended bywt.iba.value.litevalue.TimestampValueDefaultView
All Implemented Interfaces:
Cloneable, Externalizable, Liteable, LocalizedStringDisplayable, Serializable

public class TimestampValueDefaultView
extends AbstractContextualValueDefaultView
implements Externalizable

Lightweight version of TimestampValue class

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
protected static String FORMAT_RESOURCE
           
protected  ResourceBundle formatResource
           
protected static String formatString
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  TimestampDefView timestampDefinition
           
private  Timestamp value
           
 
Fields inherited from class wt.iba.value.litevalue.AbstractContextualValueDefaultView
 
Fields inherited from class wt.iba.value.litevalue.AbstractValueView
CHANGED_STATE, DELETED_STATE, NEW_STATE, UNCHANGED_STATE, UNINITIALIZED_STATE
 
Fields inherited from class wt.lite.AbstractLiteObject
ILLEGAL_ACCESS, SERVER
 
Fields inherited from interface wt.lite.Liteable
UPDATE_COUNT
 
Constructor Summary
TimestampValueDefaultView()
          

Supported API: false
TimestampValueDefaultView(TimestampDefView attributeDefinition)
          

Supported API: false
TimestampValueDefaultView(TimestampDefView attributeDefinition, ReferenceValueDefaultView referenceValue, Timestamp value, ObjectIdentifier objectID, int updateCount)
          

Supported API: false
TimestampValueDefaultView(TimestampDefView attributeDefinition, Timestamp value)
          

Supported API: false
 
Method Summary
 Object clone()
          

Supported API: false
 int compareTo(AbstractValueView valueView)
          Compare the value.
 AttributeDefDefaultView getDefinition()
          

Supported API: false
 String getLocalizedDisplayString()
          

Supported API: false
 String getLocalizedDisplayString(Locale locale)
           
 TimestampDefView getTimestampDefinition()
          Gets the value of the attribute: timestampDefinition.
 Timestamp getValue()
          Gets the value of the attribute: value.
 String getValueAsString()
          

Supported API: false
protected  void initResource()
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(TimestampValueDefaultView thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setTimestampDefinition(TimestampDefView a_TimestampDefinition)
          Sets the value of the attribute: timestampDefinition.
 void setValue(Timestamp a_Value)
          Sets the value of the attribute: value.
private  String timestampToString(Timestamp timestamp, Locale locale)
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class wt.iba.value.litevalue.AbstractContextualValueDefaultView
getReferenceValueDefaultView, readVersion, setReferenceValueDefaultView
 
Methods inherited from class wt.iba.value.litevalue.AbstractValueView
getKey, getState, readVersion, setKey, setState, setStateAsDeleted, setStateDirty
 
Methods inherited from class wt.lite.AbstractLiteObject
compareUpdateCount, getHeavyObjectClassname, getObjectID, getUpdateCount, isPersistedObjectEqual, readVersion, setLocalizedDisplayString, setObjectID, setUpdateCount
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

timestampDefinition

private TimestampDefView timestampDefinition

value

private Timestamp value

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

FORMAT_RESOURCE

protected static final String FORMAT_RESOURCE
See Also:
Constant Field Values

formatString

protected static String formatString

formatResource

protected ResourceBundle formatResource
Constructor Detail

TimestampValueDefaultView

public TimestampValueDefaultView()


Supported API: false


TimestampValueDefaultView

public TimestampValueDefaultView(TimestampDefView attributeDefinition)
                          throws IBAValueException


Supported API: false

Parameters:
attributeDefinition -
Throws:
IBAValueException

TimestampValueDefaultView

public TimestampValueDefaultView(TimestampDefView attributeDefinition,
                                 Timestamp value)
                          throws IBAValueException


Supported API: false

Parameters:
attributeDefinition -
value -
Throws:
IBAValueException

TimestampValueDefaultView

public TimestampValueDefaultView(TimestampDefView attributeDefinition,
                                 ReferenceValueDefaultView referenceValue,
                                 Timestamp value,
                                 ObjectIdentifier objectID,
                                 int updateCount)
                          throws IBAValueException


Supported API: false

Parameters:
attributeDefinition -
referenceValue -
value -
objectID -
updateCount -
Throws:
IBAValueException
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class AbstractContextualValueDefaultView
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class AbstractContextualValueDefaultView
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(TimestampValueDefaultView thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getTimestampDefinition

public TimestampDefView getTimestampDefinition()
Gets the value of the attribute: timestampDefinition.

Supported API: false

Returns:
TimestampDefView

setTimestampDefinition

public void setTimestampDefinition(TimestampDefView a_TimestampDefinition)
                            throws WTPropertyVetoException
Sets the value of the attribute: timestampDefinition.

Supported API: false

Parameters:
a_TimestampDefinition -
Throws:
WTPropertyVetoException

getValue

public Timestamp getValue()
Gets the value of the attribute: value.

Supported API: false

Returns:
Timestamp

setValue

public void setValue(Timestamp a_Value)
              throws WTPropertyVetoException
Sets the value of the attribute: value.

Supported API: false

Parameters:
a_Value -
Throws:
WTPropertyVetoException

compareTo

public int compareTo(AbstractValueView valueView)
              throws IBAValueException
Compare the value. If this timestamp value == valueView timestamp value returns 0 If this timestamp value before valueView timestamp value returns 1 If this timestamp value after valueView. timestamp value returns -1

Supported API: false

Specified by:
compareTo in class AbstractContextualValueDefaultView
Parameters:
valueView -
Returns:
int
Throws:
IBAValueException

clone

public Object clone()


Supported API: false

Overrides:
clone in class AbstractContextualValueDefaultView
Returns:
Object

getDefinition

public AttributeDefDefaultView getDefinition()


Supported API: false

Specified by:
getDefinition in class AbstractContextualValueDefaultView
Returns:
AttributeDefDefaultView

getLocalizedDisplayString

public String getLocalizedDisplayString()


Supported API: false

Specified by:
getLocalizedDisplayString in interface LocalizedStringDisplayable
Specified by:
getLocalizedDisplayString in class AbstractContextualValueDefaultView
Returns:
String

getValueAsString

public String getValueAsString()


Supported API: false

Specified by:
getValueAsString in class AbstractContextualValueDefaultView
Returns:
String

initResource

protected void initResource()

timestampToString

private String timestampToString(Timestamp timestamp,
                                 Locale locale)

getLocalizedDisplayString

public String getLocalizedDisplayString(Locale locale)
Overrides:
getLocalizedDisplayString in class AbstractValueView