bill.util.persist
Class OIDElement

java.lang.Object
  |
  +--bill.util.persist.ElementData
        |
        +--bill.util.persist.OIDElement

public class OIDElement
extends ElementData

Persistent element of OID (object ID) type.


Fields inherited from class bill.util.persist.ElementData
_elementData, _logicalName, _physicalName, _required, _value
 
Constructor Summary
OIDElement()
          Default creator, does not do anything special.
OIDElement(String logicalName, String physicalName)
          Alternate creator that sets the element's logical and physical names.
 
Method Summary
 void setValue(long value)
          Set the element's value to to specified value.
 void setValue(Object value)
          Set the element's value to the specified value.
 
Methods inherited from class bill.util.persist.ElementData
addElementData, equals, formatValue, getElementData, getLogicalName, getPhysicalName, getValue, isRequired, removeElementData, setElementData, setLogicalName, setPhysicalName, setRequired, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OIDElement

public OIDElement()
Default creator, does not do anything special.

OIDElement

public OIDElement(String logicalName,
                  String physicalName)
Alternate creator that sets the element's logical and physical names.
Parameters:
logicalName - The new element's logical name
physicalName - The new element's physical name
Method Detail

setValue

public void setValue(Object value)
              throws PersistException
Set the element's value to the specified value. If a null or "empty" value is specified, a value of 0 is assigned.
Overrides:
setValue in class ElementData
Parameters:
value - The new value to assign to the element.
Throws:
PersistException - If the passed value cannot be converted into an integer value.

setValue

public void setValue(long value)
              throws PersistException
Set the element's value to to specified value.
Parameters:
value - The new value to assign to the element.