| |
|
| java.lang.Object org.griphyn.vdl.annotation.Tuple org.griphyn.vdl.annotation.TupleInteger
TupleInteger | public class TupleInteger extends Tuple (Code) | | This simple class defines the long values for the values at the
heart of Yong's annotations.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ |
Constructor Summary | |
public | TupleInteger(String key, long value) Constructs an instance of a long tuple. |
Method Summary | |
public long | getLong() 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 wrapped into a Java class. | public void | setLong(long value) Overwrites the current value of the value part. | public void | setValue(Object value) Generic interface to set a value in an instance. |
TupleInteger | public TupleInteger(String key, long value)(Code) | | Constructs an instance of a long tuple.
Parameters: key - is the key to store annotations for. Parameters: value - is the long value of the annotation. |
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.
|
setLong | public void setLong(long value)(Code) | | Overwrites the current value of the value part.
Parameters: value - is the new value to use from now on. See Also: TupleInteger.getLong() |
setValue | public void setValue(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: TupleInteger.getValue() exception: ClassCastException - if the actual argument type of the valueis incompatible with the value maintained by the instance. |
|
|
|