bill.util.persist
Class LongElement

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

public class LongElement
extends ElementData

Persistent element of long type.


Fields inherited from class bill.util.persist.ElementData
_elementData, _logicalName, _physicalName, _required, _value
 
Constructor Summary
LongElement()
          Default creator, does not do anything special.
LongElement(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

LongElement

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

LongElement

public LongElement(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 long 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.