| |
|
| java.lang.Object org.griphyn.vdl.annotation.Tuple org.griphyn.vdl.annotation.TupleDate
TupleDate | public class TupleDate extends Tuple (Code) | | This simple class defines the Date values for the values at the
heart of Yong's annotations.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ |
Method Summary | |
public Timestamp | getDate() Obtains the current value of the value part. | public int | getType() Returns the type of the value as SQL Type.
a constant from the set of SQL types. | public String | getTypeString() Returns the string representation of the type. | public Object | getValue() Return generically the value as a copy of the original. | public void | oldSetValue(Object value) Generic interface to set a value in an instance. | public static Date | parse(String s) | public void | setDate(Timestamp value) Overwrites the current value of the value part. | public void | setDate(Date value) Overwrites the current value of the value part. | public void | setDate(long value) Overwrites the current value of the value part. | public void | setValue(Object value) |
TupleDate | public TupleDate(String key, Timestamp value)(Code) | | Constructs an instance of a Date tuple.
Parameters: key - is the key to store annotations for. Parameters: value - is the Date value of the annotation. |
TupleDate | public TupleDate(String key, Date value)(Code) | | Constructs an instance of a Date tuple.
Parameters: key - is the key to store annotations for. Parameters: value - is the Date value of the annotation. |
TupleDate | public TupleDate(String key, long value)(Code) | | Constructs an instance of a Date tuple.
Parameters: key - is the key to store annotations for. Parameters: value - is the information in milliseconds since epoch. |
getType | public int getType()(Code) | | Returns the type of the value as SQL Type.
a constant from the set of SQL types. See Also: java.sql.Types |
getTypeString | public String getTypeString()(Code) | | Returns the string representation of the type.
|
oldSetValue | public void oldSetValue(Object value) throws ClassCastException(Code) | | Generic interface to set a value in an instance. Note
that this action may fail, if the instance is of an
incompatible type.
Parameters: value - is the data object to set. See Also: TupleDate.getValue() exception: ClassCastException - if the actual argument type of the valueis incompatible with the value maintained by the instance. |
|
|
|