net.sf.farrago.type.runtime
Interface NullableValue

All Superinterfaces:
DataValue
All Known Implementing Classes:
EncodedSqlDecimal.AssignableDecimal, NullablePrimitive, NullablePrimitive.NullableBoolean, NullablePrimitive.NullableByte, NullablePrimitive.NullableDouble, NullablePrimitive.NullableFloat, NullablePrimitive.NullableInteger, NullablePrimitive.NullableLong, NullablePrimitive.NullableShort

public interface NullableValue
extends DataValue

NullableValue is an interface representing a runtime holder for a nullable object.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/type/runtime/NullableValue.java#12 $
Author:
John V. Sichi

Field Summary
static String NULL_IND_ACCESSOR_NAME
          Name of accessor method for null indicator.
static String NULL_IND_MUTATOR_NAME
          Name of accessor method for null indicator.
 
Method Summary
 boolean isNull()
           
 void setNull(boolean isNull)
          Sets whether or not the value is null.
 
Methods inherited from interface net.sf.farrago.type.runtime.DataValue
getNullableData
 

Field Detail

NULL_IND_ACCESSOR_NAME

static final String NULL_IND_ACCESSOR_NAME
Name of accessor method for null indicator.

See Also:
Constant Field Values

NULL_IND_MUTATOR_NAME

static final String NULL_IND_MUTATOR_NAME
Name of accessor method for null indicator.

See Also:
Constant Field Values
Method Detail

setNull

void setNull(boolean isNull)
Sets whether or not the value is null. Note that once a value has been set to null, its data should not be updated until the null state has been cleared with a call to setNull(false).

Parameters:
isNull - true to set a null value; false to indicate a non-null value

isNull

boolean isNull()
Returns:
whether the value has been set to null