wt.iba.value.litevalue
Class AbstractValueView

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

public abstract class AbstractValueView
extends AbstractLiteObject
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
static int CHANGED_STATE
          

Supported API: false
private static String CLASSNAME
           
static int DELETED_STATE
          

Supported API: false
static long EXTERNALIZATION_VERSION_UID
           
private  int key
           
static int NEW_STATE
          

Supported API: false
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  int state
           
static int UNCHANGED_STATE
          

Supported API: false
static int UNINITIALIZED_STATE
          

Supported API: false
 
Fields inherited from class wt.lite.AbstractLiteObject
ILLEGAL_ACCESS, SERVER
 
Fields inherited from interface wt.lite.Liteable
UPDATE_COUNT
 
Constructor Summary
AbstractValueView()
           
 
Method Summary
 Object clone()
          

Supported API: false
abstract  int compareTo(AbstractValueView valueView)
          

Supported API: false
abstract  AttributeDefDefaultView getDefinition()
          

Supported API: false
 int getKey()
          Gets the value of the attribute: key.
abstract  String getLocalizedDisplayString()
          

Supported API: false
 String getLocalizedDisplayString(Locale locale)
           
 int getState()
          Gets the value of the attribute: state.
 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(AbstractValueView thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setKey(int a_Key)
          Sets the value of the attribute: key.
 void setState(int a_State)
          Sets the value of the attribute: state.
 void setStateAsDeleted()
          set the state to DELETED_STATE

Supported API: false
 void setStateDirty()
          If state is UNITIALIZED, set to NEW.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
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

state

private int state

UNCHANGED_STATE

public static final int UNCHANGED_STATE


Supported API: false

See Also:
Constant Field Values

CHANGED_STATE

public static final int CHANGED_STATE


Supported API: false

See Also:
Constant Field Values

DELETED_STATE

public static final int DELETED_STATE


Supported API: false

See Also:
Constant Field Values

NEW_STATE

public static final int NEW_STATE


Supported API: false

See Also:
Constant Field Values

UNINITIALIZED_STATE

public static final int UNINITIALIZED_STATE


Supported API: false

See Also:
Constant Field Values

key

private int key

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
Constructor Detail

AbstractValueView

public AbstractValueView()
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 AbstractLiteObject
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 AbstractLiteObject
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(AbstractValueView 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

getState

public int getState()
Gets the value of the attribute: state.

Supported API: false

Returns:
int

setState

public void setState(int a_State)
              throws WTPropertyVetoException
Sets the value of the attribute: state.

Supported API: false

Parameters:
a_State -
Throws:
WTPropertyVetoException

getKey

public int getKey()
Gets the value of the attribute: key.

Supported API: false

Returns:
int

setKey

public void setKey(int a_Key)
            throws WTPropertyVetoException
Sets the value of the attribute: key.

Supported API: false

Parameters:
a_Key -
Throws:
WTPropertyVetoException

clone

public Object clone()


Supported API: false

Overrides:
clone in class AbstractLiteObject
Returns:
Object

setStateDirty

public void setStateDirty()
If state is UNITIALIZED, set to NEW. UNCHANGED => CHANGED

Supported API: false


compareTo

public abstract int compareTo(AbstractValueView valueView)
                       throws IBAValueException


Supported API: false

Parameters:
valueView -
Returns:
int
Throws:
IBAValueException

getDefinition

public abstract AttributeDefDefaultView getDefinition()


Supported API: false

Returns:
AttributeDefDefaultView

getLocalizedDisplayString

public abstract String getLocalizedDisplayString()


Supported API: false

Specified by:
getLocalizedDisplayString in interface LocalizedStringDisplayable
Overrides:
getLocalizedDisplayString in class AbstractLiteObject
Returns:
String

setStateAsDeleted

public void setStateAsDeleted()
set the state to DELETED_STATE

Supported API: false


getLocalizedDisplayString

public String getLocalizedDisplayString(Locale locale)