wt.eff
Class DateEffRange

java.lang.Object
  extended bywt.eff.DateEffRange
All Implemented Interfaces:
EffRange, Externalizable, NetFactor, ObjectMappable, Serializable

public class DateEffRange
extends Object
implements EffRange, Externalizable

A range using Timestamps.

Use the newDateEffRange static factory method(s), not the DateEffRange constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  Timestamp end
           
static String END
          Label for the attribute; The end value, constrained as a Timestamp.
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  Timestamp start
           
static String START
          Label for the attribute; The start value, constrained as a Timestamp.
 
Constructor Summary
DateEffRange()
           
 
Method Summary
private  void endValidate(Serializable a_End)
           
 ClassInfo getClassInfo()
          Returns the ClassInfo object for this class.
 String getConceptualClassname()
          Deprecated.  
 Serializable getEnd()
          Gets the value of the attribute: END.
 Serializable getStart()
          Gets the value of the attribute: START.
protected  void initialize(Timestamp startValue)
          Supports initialization, following construction of an instance.
protected  void initialize(Timestamp startValue, Timestamp endValue)
          Supports initialization, following construction of an instance.
static DateEffRange newDateEffRange()
          Null-arg factory.
static DateEffRange newDateEffRange(Timestamp startValue)
          Factory which sets the start value.
static DateEffRange newDateEffRange(Timestamp startValue, Timestamp endValue)
          Factory which sets the start and end value

Supported API: true
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
 void readExternal(PersistentRetrieveIfc input)
          Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.
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(DateEffRange thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setEnd(Serializable a_End)
          Sets the value of the attribute: END.
 void setStart(Serializable a_Start)
          Sets the value of the attribute: START.
private  void startValidate(Serializable a_Start)
           
 String toString()
          Returns the conceptual (modeled) name for the class.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 void writeExternal(PersistentStoreIfc output)
          Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

START

public static final String START
Label for the attribute; The start value, constrained as a Timestamp.

Supported API: true

See Also:
Constant Field Values

start

private Timestamp start

END

public static final String END
Label for the attribute; The end value, constrained as a Timestamp.

Supported API: true

See Also:
Constant Field Values

end

private Timestamp end

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

DateEffRange

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

readVersion

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

writeExternal

public void writeExternal(PersistentStoreIfc output)
                   throws SQLException,
                          DatastoreException
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
writeExternal in interface ObjectMappable
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
readExternal in interface ObjectMappable
Parameters:
input -
Throws:
SQLException
DatastoreException

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Returns:
String

toString

public String toString()
Returns the conceptual (modeled) name for the class.

Supported API: false

Returns:
String

getClassInfo

public ClassInfo getClassInfo()
                       throws WTIntrospectionException
Returns the ClassInfo object for this class.

Supported API: false

Specified by:
getClassInfo in interface NetFactor
Returns:
ClassInfo
Throws:
WTIntrospectionException

getStart

public Serializable getStart()
Gets the value of the attribute: START. The start value, constrained as a Timestamp.

Supported API: true

Specified by:
getStart in interface EffRange
Returns:
Serializable

setStart

public void setStart(Serializable a_Start)
              throws WTPropertyVetoException
Sets the value of the attribute: START. The start value, constrained as a Timestamp.

Supported API: true

Specified by:
setStart in interface EffRange
Parameters:
a_Start -
Throws:
WTPropertyVetoException

startValidate

private void startValidate(Serializable a_Start)
                    throws WTPropertyVetoException
Parameters:
a_Start -
Throws:
WTPropertyVetoException

getEnd

public Serializable getEnd()
Gets the value of the attribute: END. The end value, constrained as a Timestamp.

Supported API: true

Specified by:
getEnd in interface EffRange
Returns:
Serializable

setEnd

public void setEnd(Serializable a_End)
            throws WTPropertyVetoException
Sets the value of the attribute: END. The end value, constrained as a Timestamp.

Supported API: true

Specified by:
setEnd in interface EffRange
Parameters:
a_End -
Throws:
WTPropertyVetoException

endValidate

private void endValidate(Serializable a_End)
                  throws WTPropertyVetoException
Parameters:
a_End -
Throws:
WTPropertyVetoException

newDateEffRange

public static DateEffRange newDateEffRange(Timestamp startValue,
                                           Timestamp endValue)
                                    throws WTPropertyVetoException
Factory which sets the start and end value

Supported API: true

Parameters:
startValue -
endValue -
Returns:
DateEffRange
Throws:
WTPropertyVetoException

initialize

protected void initialize(Timestamp startValue,
                          Timestamp endValue)
                   throws WTPropertyVetoException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
startValue -
endValue -
Throws:
WTPropertyVetoException

newDateEffRange

public static DateEffRange newDateEffRange(Timestamp startValue)
                                    throws WTPropertyVetoException
Factory which sets the start value. The end is left null.

Supported API: true

Parameters:
startValue -
Returns:
DateEffRange
Throws:
WTPropertyVetoException

initialize

protected void initialize(Timestamp startValue)
                   throws WTPropertyVetoException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
startValue -
Throws:
WTPropertyVetoException

newDateEffRange

public static DateEffRange newDateEffRange()
Null-arg factory. Required by internal functionality. Modeled in this manner to avoid code generation's desire to make the factory throw a WTException, which is unnecessary.

Supported API: false

Returns:
DateEffRange