net.sf.farrago.type.runtime
Class NullablePrimitive.NullableLong

java.lang.Object
  extended by net.sf.farrago.type.runtime.NullablePrimitive
      extended by net.sf.farrago.type.runtime.NullablePrimitive.NullableLong
All Implemented Interfaces:
AssignableValue, DataValue, NullableValue
Direct Known Subclasses:
EncodedSqlDecimal.AssignableDecimal
Enclosing class:
NullablePrimitive

public static class NullablePrimitive.NullableLong
extends NullablePrimitive

Nullable wrapper for long.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.farrago.type.runtime.NullablePrimitive
NullablePrimitive.NullableBoolean, NullablePrimitive.NullableByte, NullablePrimitive.NullableDouble, NullablePrimitive.NullableFloat, NullablePrimitive.NullableInteger, NullablePrimitive.NullableLong, NullablePrimitive.NullableShort
 
Field Summary
 long value
          Wrapped primitive
 
Fields inherited from class net.sf.farrago.type.runtime.NullablePrimitive
FALSE_LITERAL, isNull, NULL_IND_FIELD_NAME, TRUE_LITERAL, UNKNOWN_LITERAL, VALUE_FIELD_NAME
 
Fields inherited from interface net.sf.farrago.type.runtime.NullableValue
NULL_IND_ACCESSOR_NAME, NULL_IND_MUTATOR_NAME
 
Fields inherited from interface net.sf.farrago.type.runtime.AssignableValue
ASSIGNMENT_METHOD_NAME
 
Constructor Summary
NullablePrimitive.NullableLong()
           
 
Method Summary
 void assignFrom(Object o)
          Assigns value from an Object.
protected  void setLong(long n)
          Assignment from non-null long value.
protected  void setNumber(Number number)
          Assignment from abstract Number object.
 
Methods inherited from class net.sf.farrago.type.runtime.NullablePrimitive
getNullableData, isNull, setNull, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public long value
Wrapped primitive

Constructor Detail

NullablePrimitive.NullableLong

public NullablePrimitive.NullableLong()
Method Detail

setNumber

protected void setNumber(Number number)
Description copied from class: NullablePrimitive
Assignment from abstract Number object.

Specified by:
setNumber in class NullablePrimitive
Parameters:
number - a new non-null value to be assigned

setLong

protected void setLong(long n)
Description copied from class: NullablePrimitive
Assignment from non-null long value.

Specified by:
setLong in class NullablePrimitive
Parameters:
n - long value to assign

assignFrom

public void assignFrom(Object o)
Description copied from interface: AssignableValue
Assigns value from an Object.

Specified by:
assignFrom in interface AssignableValue
Overrides:
assignFrom in class NullablePrimitive
Parameters:
o - value to assign, or null to set null