Package com.exedio.cope
Class View<E>
- java.lang.Object
-
- com.exedio.cope.Feature
-
- com.exedio.cope.View<E>
-
- All Implemented Interfaces:
Function<E>
,Selectable<E>
,Serializable
- Direct Known Subclasses:
CoalesceView
,NumberView
,StringView
public abstract class View<E> extends Feature implements Function<E>
Aview
represents a value computed from the fields of aType
. The computation is available both in Java and SQL, so you can use views in search conditions.- Author:
- Ralf Wiebicke
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
appendSelect(com.exedio.cope.Statement bf, Join join)
Deprecated.For internal use within COPE only.void
check(com.exedio.cope.TC tc, Join join)
Deprecated.For internal use within COPE only.boolean
equals(Object other)
E
get(FieldValues item)
E
get(Item item)
Object
getObject(Item item)
Deprecated.useget(Item)
instead.List<Function<?>>
getSources()
Type<?>
getType()
Class<E>
getValueClass()
ReturnsSelectable.getValueType()
.getJavaClass()
int
hashCode()
protected abstract E
mapJava(Object[] sourceValues)
-
Methods inherited from class com.exedio.cope.Feature
afterModelCreated, getAbstractType, getAnnotation, getID, getLocalizationKeys, getName, getPattern, isAnnotationPresent, isSourceAlready, mount, readResolve, requireMounted, toString, toString, writeReplace
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.exedio.cope.Function
any, between, bind, equal, equal, equal, 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, getValueType, toString
-
-
-
-
Method Detail
-
check
@Deprecated public final void check(com.exedio.cope.TC tc, Join join)
Deprecated.For internal use within COPE only.- Specified by:
check
in interfaceSelectable<E>
-
get
public final E get(FieldValues item)
-
getObject
@Deprecated public final Object getObject(Item item)
Deprecated.useget(Item)
instead.
-
getValueClass
public final Class<E> getValueClass()
Description copied from interface:Selectable
ReturnsSelectable.getValueType()
.getJavaClass()
- Specified by:
getValueClass
in interfaceSelectable<E>
-
appendSelect
@Deprecated public final void appendSelect(com.exedio.cope.Statement bf, Join join)
Deprecated.For internal use within COPE only.- Specified by:
appendSelect
in interfaceSelectable<E>
-
getType
public final Type<?> getType()
- Specified by:
getType
in interfaceSelectable<E>
- Overrides:
getType
in classFeature
- See Also:
Feature.getAbstractType()
-
-