org.nodal.util
Class LongSetterUtil

java.lang.Object
  extended byorg.nodal.util.GetterFilter
      extended byorg.nodal.util.AtomicSetterUtil
          extended byorg.nodal.util.LongSetterUtil
All Implemented Interfaces:
Getter, Setter, TxnMonitorable

public class LongSetterUtil
extends AtomicSetterUtil

Utility class for defining Setters of long values.


Nested Class Summary
static interface LongSetterUtil.LongSetter
          Implement this interface to use LongSetterUtil.
 
Field Summary
 
Fields inherited from class org.nodal.util.AtomicSetterUtil
typeName
 
Fields inherited from class org.nodal.util.GetterFilter
getter
 
Constructor Summary
LongSetterUtil(GetterUtil g, LongSetterUtil.LongSetter s)
           
 
Method Summary
 byte setByte(byte s)
          Set the value to a byte.
 int setInt(int s)
          Set the value to an integer.
 long setLong(long b)
           
protected  java.lang.Object setObject(java.lang.Object obj)
           
 short setShort(short s)
          Set the value to a short integer..
 java.lang.String setString(java.lang.String val)
          Set the value to that parsed from a String.
 
Methods inherited from class org.nodal.util.AtomicSetterUtil
path, set, setBoolean, setChar, setDouble, setFloat, setNode
 
Methods inherited from class org.nodal.util.GetterFilter
addTxnHandler, get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getNode, getShort, getString, removeTxnHandler, type, valueEquals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nodal.model.Getter
get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getNode, getShort, getString, type, valueEquals
 
Methods inherited from interface org.nodal.model.TxnMonitorable
addTxnHandler, removeTxnHandler
 

Constructor Detail

LongSetterUtil

public LongSetterUtil(GetterUtil g,
                      LongSetterUtil.LongSetter s)
Method Detail

setLong

public long setLong(long b)
             throws ConstraintFailure
Overrides:
setLong in class AtomicSetterUtil
Throws:
ConstraintFailure

setObject

protected java.lang.Object setObject(java.lang.Object obj)
                              throws ConstraintFailure
Specified by:
setObject in class AtomicSetterUtil
Throws:
ConstraintFailure

setString

public java.lang.String setString(java.lang.String val)
                           throws ConstraintFailure
Description copied from interface: Setter
Set the value to that parsed from a String.

Specified by:
setString in interface Setter
Specified by:
setString in class AtomicSetterUtil
Throws:
ConstraintFailure

setByte

public byte setByte(byte s)
             throws ConstraintFailure
Description copied from interface: Setter
Set the value to a byte.

Specified by:
setByte in interface Setter
Overrides:
setByte in class AtomicSetterUtil
Throws:
ConstraintFailure

setShort

public short setShort(short s)
               throws ConstraintFailure
Description copied from interface: Setter
Set the value to a short integer..

Specified by:
setShort in interface Setter
Overrides:
setShort in class AtomicSetterUtil
Throws:
ConstraintFailure

setInt

public int setInt(int s)
           throws ConstraintFailure
Description copied from interface: Setter
Set the value to an integer.

Specified by:
setInt in interface Setter
Overrides:
setInt in class AtomicSetterUtil
Throws:
ConstraintFailure