exedio cope

com.exedio.cope
Class ItemField<E extends Item>

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.ItemField<E>
All Implemented Interfaces:
Function<E>, ItemFunction<E>, Selectable<E>, Settable<E>

public final class ItemField<E extends Item>
extends FunctionField<E>
implements ItemFunction<E>


Nested Class Summary
static class ItemField.DeletePolicy
           
 
Method Summary
 void appendSelect(com.exedio.cope.Statement bf, Join join, com.exedio.cope.Holder<com.exedio.cope.Column> columnHolder, com.exedio.cope.Holder<Type> typeHolder)
          Deprecated. For internal use within COPE only.
 void appendType(com.exedio.cope.Statement bf, Join join)
          Deprecated. For internal use within COPE only.
<X extends Item>
ItemField<X>
as(Class<X> clazz)
           
 BindItemFunction<E> bind(Join join)
           
<X extends Item>
ItemField<X>
cast(Class<X> clazz)
          Deprecated. Use as(Class) instead
 int checkTypeColumn()
           
 ItemField<E> copy()
           
 CompareFunctionCondition equalTarget()
           
 CompareFunctionCondition equalTarget(Join targetJoin)
           
 ItemField.DeletePolicy getDeletePolicy()
          Returns the delete policy of this field.
 String getTypeColumnName()
          Deprecated. Use SchemaInfo.getTypeColumnName(ItemField) instead
 Type<E> getValueType()
          Returns the type of items, this field accepts instances of.
 InstanceOfCondition<E> instanceOf(Type[] types)
           
 InstanceOfCondition<E> instanceOf(Type<? extends E> type1)
           
 InstanceOfCondition<E> instanceOf(Type<? extends E> type1, Type<? extends E> type2)
           
 InstanceOfCondition<E> instanceOf(Type<? extends E> type1, Type<? extends E> type2, Type<? extends E> type3)
           
 InstanceOfCondition<E> instanceOf(Type<? extends E> type1, Type<? extends E> type2, Type<? extends E> type3, Type<E> type4)
           
 boolean needsCheckTypeColumn()
           
 ItemField<E> nonUnique()
           
 InstanceOfCondition<E> notInstanceOf(Type[] types)
           
 InstanceOfCondition<E> notInstanceOf(Type<? extends E> type1)
           
 InstanceOfCondition<E> notInstanceOf(Type<? extends E> type1, Type<? extends E> type2)
           
 InstanceOfCondition<E> notInstanceOf(Type<? extends E> type1, Type<? extends E> type2, Type<? extends E> type3)
           
 InstanceOfCondition<E> notInstanceOf(Type<? extends E> type1, Type<? extends E> type2, Type<? extends E> type3, Type<E> type4)
           
 ItemField<E> optional()
          Returns a new Field, that differs from this Field by being optional.
 ItemField<E> toFinal()
          Returns a new Field, that differs from this Field by being final.
 InstanceOfCondition<E> typeIn(Type[] types)
          Deprecated. 
 InstanceOfCondition<E> typeIn(Type<? extends E> type1)
          Deprecated. 
 InstanceOfCondition<E> typeIn(Type<? extends E> type1, Type<? extends E> type2)
          Deprecated. 
 InstanceOfCondition<E> typeIn(Type<? extends E> type1, Type<? extends E> type2, Type<? extends E> type3)
          Deprecated. 
 InstanceOfCondition<E> typeIn(Type<? extends E> type1, Type<? extends E> type2, Type<? extends E> type3, Type<E> type4)
          Deprecated. 
 InstanceOfCondition<E> typeNotIn(Type[] types)
          Deprecated. 
 InstanceOfCondition<E> typeNotIn(Type<? extends E> type1)
          Deprecated. 
 InstanceOfCondition<E> typeNotIn(Type<? extends E> type1, Type<? extends E> type2)
          Deprecated. 
 InstanceOfCondition<E> typeNotIn(Type<? extends E> type1, Type<? extends E> type2, Type<? extends E> type3)
          Deprecated. 
 InstanceOfCondition<E> typeNotIn(Type<? extends E> type1, Type<? extends E> type2, Type<? extends E> type3, Type<E> type4)
          Deprecated. 
 ItemField<E> unique()
          Returns a new FunctionField, that differs from this FunctionField by being unique.
 
Methods inherited from class com.exedio.cope.FunctionField
append, appendParameter, between, check, copyFunctionField, equal, equal, equal, get, getDefaultConstant, getImplicitUniqueConstraint, getInitialExceptions, getInitialType, 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, check, getType, toString
 

Method Detail

copy

public ItemField<E> copy()
Specified by:
copy in class FunctionField<E extends Item>

toFinal

public ItemField<E> 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<E extends Item>
See Also:
Field.isFinal()

optional

public ItemField<E> 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<E extends Item>
See Also:
Field.isMandatory()

unique

public ItemField<E> 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<E extends Item>
See Also:
FunctionField.getImplicitUniqueConstraint()

nonUnique

public ItemField<E> nonUnique()
Specified by:
nonUnique in class FunctionField<E extends Item>

getValueType

public Type<E> getValueType()
Returns the type of items, this field accepts instances of.

Specified by:
getValueType in interface ItemFunction<E extends Item>

as

public <X extends Item> ItemField<X> as(Class<X> clazz)
See Also:
EnumField.as(Class), Class.asSubclass(Class)

getDeletePolicy

public ItemField.DeletePolicy getDeletePolicy()
Returns the delete policy of this field.


appendSelect

@Deprecated
public final void appendSelect(com.exedio.cope.Statement bf,
                                          Join join,
                                          com.exedio.cope.Holder<com.exedio.cope.Column> columnHolder,
                                          com.exedio.cope.Holder<Type> typeHolder)
Deprecated. For internal use within COPE only.

Specified by:
appendSelect in interface Selectable<E extends Item>
Overrides:
appendSelect in class FunctionField<E extends Item>

appendType

@Deprecated
public void appendType(com.exedio.cope.Statement bf,
                                  Join join)
Deprecated. For internal use within COPE only.

Specified by:
appendType in interface ItemFunction<E extends Item>

needsCheckTypeColumn

public boolean needsCheckTypeColumn()
Specified by:
needsCheckTypeColumn in interface ItemFunction<E extends Item>
See Also:
ItemFunction.checkTypeColumn()

checkTypeColumn

public int checkTypeColumn()
Specified by:
checkTypeColumn in interface ItemFunction<E extends Item>
See Also:
ItemFunction.needsCheckTypeColumn()

equalTarget

public CompareFunctionCondition equalTarget()
Specified by:
equalTarget in interface ItemFunction<E extends Item>

equalTarget

public CompareFunctionCondition equalTarget(Join targetJoin)
Specified by:
equalTarget in interface ItemFunction<E extends Item>

bind

public BindItemFunction<E> bind(Join join)
Specified by:
bind in interface Function<E extends Item>
Specified by:
bind in interface ItemFunction<E extends Item>
Overrides:
bind in class FunctionField<E extends Item>

instanceOf

public InstanceOfCondition<E> instanceOf(Type<? extends E> type1)
Specified by:
instanceOf in interface ItemFunction<E extends Item>

instanceOf

public InstanceOfCondition<E> instanceOf(Type<? extends E> type1,
                                         Type<? extends E> type2)
Specified by:
instanceOf in interface ItemFunction<E extends Item>

instanceOf

public InstanceOfCondition<E> instanceOf(Type<? extends E> type1,
                                         Type<? extends E> type2,
                                         Type<? extends E> type3)
Specified by:
instanceOf in interface ItemFunction<E extends Item>

instanceOf

public InstanceOfCondition<E> instanceOf(Type<? extends E> type1,
                                         Type<? extends E> type2,
                                         Type<? extends E> type3,
                                         Type<E> type4)
Specified by:
instanceOf in interface ItemFunction<E extends Item>

instanceOf

public InstanceOfCondition<E> instanceOf(Type[] types)
Specified by:
instanceOf in interface ItemFunction<E extends Item>

notInstanceOf

public InstanceOfCondition<E> notInstanceOf(Type<? extends E> type1)
Specified by:
notInstanceOf in interface ItemFunction<E extends Item>

notInstanceOf

public InstanceOfCondition<E> notInstanceOf(Type<? extends E> type1,
                                            Type<? extends E> type2)
Specified by:
notInstanceOf in interface ItemFunction<E extends Item>

notInstanceOf

public InstanceOfCondition<E> notInstanceOf(Type<? extends E> type1,
                                            Type<? extends E> type2,
                                            Type<? extends E> type3)
Specified by:
notInstanceOf in interface ItemFunction<E extends Item>

notInstanceOf

public InstanceOfCondition<E> notInstanceOf(Type<? extends E> type1,
                                            Type<? extends E> type2,
                                            Type<? extends E> type3,
                                            Type<E> type4)
Specified by:
notInstanceOf in interface ItemFunction<E extends Item>

notInstanceOf

public InstanceOfCondition<E> notInstanceOf(Type[] types)
Specified by:
notInstanceOf in interface ItemFunction<E extends Item>

cast

@Deprecated
public <X extends Item> ItemField<X> cast(Class<X> clazz)
Deprecated. Use as(Class) instead


getTypeColumnName

@Deprecated
public String getTypeColumnName()
Deprecated. Use SchemaInfo.getTypeColumnName(ItemField) instead


typeIn

@Deprecated
public InstanceOfCondition<E> typeIn(Type<? extends E> type1)
Deprecated. 

Specified by:
typeIn in interface ItemFunction<E extends Item>

typeIn

@Deprecated
public InstanceOfCondition<E> typeIn(Type<? extends E> type1,
                                                Type<? extends E> type2)
Deprecated. 

Specified by:
typeIn in interface ItemFunction<E extends Item>

typeIn

@Deprecated
public InstanceOfCondition<E> typeIn(Type<? extends E> type1,
                                                Type<? extends E> type2,
                                                Type<? extends E> type3)
Deprecated. 

Specified by:
typeIn in interface ItemFunction<E extends Item>

typeIn

@Deprecated
public InstanceOfCondition<E> typeIn(Type<? extends E> type1,
                                                Type<? extends E> type2,
                                                Type<? extends E> type3,
                                                Type<E> type4)
Deprecated. 

Specified by:
typeIn in interface ItemFunction<E extends Item>

typeIn

@Deprecated
public InstanceOfCondition<E> typeIn(Type[] types)
Deprecated. 

Specified by:
typeIn in interface ItemFunction<E extends Item>

typeNotIn

@Deprecated
public InstanceOfCondition<E> typeNotIn(Type<? extends E> type1)
Deprecated. 

Specified by:
typeNotIn in interface ItemFunction<E extends Item>

typeNotIn

@Deprecated
public InstanceOfCondition<E> typeNotIn(Type<? extends E> type1,
                                                   Type<? extends E> type2)
Deprecated. 

Specified by:
typeNotIn in interface ItemFunction<E extends Item>

typeNotIn

@Deprecated
public InstanceOfCondition<E> typeNotIn(Type<? extends E> type1,
                                                   Type<? extends E> type2,
                                                   Type<? extends E> type3)
Deprecated. 

Specified by:
typeNotIn in interface ItemFunction<E extends Item>

typeNotIn

@Deprecated
public InstanceOfCondition<E> typeNotIn(Type<? extends E> type1,
                                                   Type<? extends E> type2,
                                                   Type<? extends E> type3,
                                                   Type<E> type4)
Deprecated. 

Specified by:
typeNotIn in interface ItemFunction<E extends Item>

typeNotIn

@Deprecated
public InstanceOfCondition<E> typeNotIn(Type[] types)
Deprecated. 

Specified by:
typeNotIn in interface ItemFunction<E extends Item>

Cope with
Object
Persistence

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