exedio cope

com.exedio.cope
Class LongField

java.lang.Object
  extended by com.exedio.cope.Feature
      extended by com.exedio.cope.Field<E>
          extended by com.exedio.cope.FunctionField<E>
              extended by com.exedio.cope.NumberField<Long>
                  extended by com.exedio.cope.LongField
All Implemented Interfaces:
Function<Long>, NumberFunction<Long>, Selectable<Long>, Settable<Long>

public final class LongField
extends NumberField<Long>


Constructor Summary
LongField()
           
 
Method Summary
 LongField copy()
           
 LongField defaultTo(Long defaultConstant)
           
 Class getInitialType()
           
 long getMandatory(Item item)
           
 LongField nonUnique()
           
 LongField optional()
          Returns a new Field, that differs from this Field by being optional.
 void set(Item item, long value)
           
 LongField toFinal()
          Returns a new Field, that differs from this Field by being final.
 LongField unique()
          Returns a new FunctionField, that differs from this FunctionField by being unique.
 
Methods inherited from class com.exedio.cope.NumberField
bind, divide, multiply, multiply, plus, plus, sum, sum
 
Methods inherited from class com.exedio.cope.FunctionField
append, appendParameter, appendSelect, between, check, copyFunctionField, equal, equal, equal, get, getDefaultConstant, getImplicitUniqueConstraint, getInitialExceptions, getUniqueConstraints, getWrappers, greater, greater, greaterOrEqual, greaterOrEqual, in, in, isInitial, isNotNull, isNull, less, less, lessOrEqual, lessOrEqual, max, min, notEqual, notEqual, searchUnique, searchUnique, set
 
Methods inherited from class com.exedio.cope.Field
castCollection, check, execute, getColumnName, getPattern, getPatterns, getValueClass, isFinal, isMandatory, map, mapNull
 
Methods inherited from class com.exedio.cope.Feature
getAnnotation, getID, getName, getType, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.exedio.cope.Function
appendParameter, between, equal, equal, equal, get, getValueClass, greater, greater, greaterOrEqual, greaterOrEqual, in, in, isNotNull, isNull, less, less, lessOrEqual, lessOrEqual, max, min, notEqual, notEqual
 
Methods inherited from interface com.exedio.cope.Selectable
append, appendSelect, check, getType, toString
 

Constructor Detail

LongField

public LongField()
Method Detail

copy

public LongField copy()
Specified by:
copy in class FunctionField<Long>

toFinal

public LongField toFinal()
Description copied from class: Field
Returns a new Field, that differs from this Field by being final. If this Field is already final, the the result is equal to this Field.

Specified by:
toFinal in class Field<Long>
See Also:
Field.isFinal()

optional

public LongField optional()
Description copied from class: Field
Returns a new Field, that differs from this Field by being optional. If this Field is already optional, the the result is equal to this Field.

Specified by:
optional in class Field<Long>
See Also:
Field.isMandatory()

unique

public LongField unique()
Description copied from class: FunctionField
Returns a new FunctionField, that differs from this FunctionField by being unique. If this FunctionField is already unique, the the result is equal to this FunctionField.

Specified by:
unique in class FunctionField<Long>
See Also:
FunctionField.getImplicitUniqueConstraint()

nonUnique

public LongField nonUnique()
Specified by:
nonUnique in class FunctionField<Long>

defaultTo

public LongField defaultTo(Long defaultConstant)

getInitialType

public Class getInitialType()
Specified by:
getInitialType in interface Settable<Long>
Overrides:
getInitialType in class FunctionField<Long>

getMandatory

public final long getMandatory(Item item)
Throws:
IllegalArgumentException - if this field is not mandatory.

set

public final void set(Item item,
                      long value)
               throws UniqueViolationException,
                      FinalViolationException
Throws:
UniqueViolationException
FinalViolationException

Cope with
Object
Persistence

SourceForge.net LogoCopyright © 2004-2008 exedio Gesellschaft für Softwareentwicklung mbH. All rights reserved.
svn.12752 build.5319 20090312135114