Class NumericIdProperty<E extends Number>
java.lang.Object
org.apache.cayenne.exp.property.BaseProperty<E>
org.apache.cayenne.exp.property.NumericProperty<E>
org.apache.cayenne.exp.property.NumericIdProperty<E>
- All Implemented Interfaces:
ComparableProperty<E>, IdProperty<E>, Property<E>
public class NumericIdProperty<E extends Number>
extends NumericProperty<E>
implements IdProperty<E>
Property that represents numeric PK
- Since:
- 4.2
-
Field Summary
Fields inherited from class BaseProperty
expressionSupplier, path, typeModifier and TypeFieldDescriptionprotected final Supplier<Expression> Expression provider for the propertyprotected final CayennePathPath of this propertyExplicit type of the property -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNumericIdProperty(String attribute, CayennePath path, String entityName, Class<E> type) Constructs a new property with the given name and expression -
Method Summary
Methods inherited from class NumericProperty
abs, add, add, alias, avg, div, div, enclosing, max, min, mod, mod, mul, mul, neg, sqrt, sub, sub, sumModifier and TypeMethodDescriptionabs()add(NumericProperty<?> value) Creates alias with different name for this propertyavg()div(NumericProperty<?> value) This operator allows to access properties of the enclosing query from the subquery.max()min()mod(NumericProperty<?> number) mul(NumericProperty<?> value) neg()sqrt()sub(NumericProperty<?> value) sum()Methods inherited from class BaseProperty
aggregate, asc, ascInsensitive, ascInsensitives, ascs, count, countDistinct, desc, descInsensitive, descInsensitives, descs, eq, eq, equals, function, function, getAlias, getExpression, getFrom, getFromAll, getName, getPath, getType, hashCode, in, in, in, isFalse, isNotNull, isNull, isTrue, ne, ne, nin, nin, nin, operator, operator, setIn, setInAllModifier and TypeMethodDescription<T> BaseProperty<T> asc()ascs()count()desc()descs()eq(BaseProperty<?> value) boolean<T> BaseProperty<T> <T> BaseProperty<T> function(String functionName, Class<T> returnType, BaseProperty<?>... arguments) getAlias()This method returns fresh copy of the expression for each call.Extracts property value from an object using JavaBean-compatible introspection with one addition - a property can be a dot-separated property name path.getFromAll(Collection<?> beans) Extracts property value from a collection of objects using JavaBean-compatible introspection with one addition - a property can be a dot-separated property name path.getName()getPath()getType()inthashCode()in(Collection<E> values) in(ColumnSelect<? extends E> subquery) isFalse()isNull()isTrue()ne(BaseProperty<?> value) nin(Collection<E> values) nin(ColumnSelect<? extends E> subquery) <T> BaseProperty<T> <T> BaseProperty<T> operator(String operator, Class<T> returnType, BaseProperty<?>... arguments) voidSets a property value in 'obj' using JavaBean-compatible introspection with one addition - a property can be a dot-separated property name path.voidsetInAll(Collection<?> beans, E value) Sets a property value in a collection of objects using JavaBean-compatible introspection with one addition - a property can be a dot-separated property name path.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComparableProperty
between, between, gt, gt, gtAll, gtAny, gte, gte, gteAll, gteAny, lt, lt, ltAll, ltAny, lte, lte, lteAll, lteAnyModifier and TypeMethodDescriptiondefault Expressiondefault Expressionbetween(ComparableProperty<?> lower, ComparableProperty<?> upper) default Expressiondefault Expressiongt(ComparableProperty<?> value) default ExpressiongtAll(ColumnSelect<E> subquery) default ExpressiongtAny(ColumnSelect<E> subquery) default Expressiondefault Expressiongte(ComparableProperty<?> value) default ExpressiongteAll(ColumnSelect<E> subquery) default ExpressiongteAny(ColumnSelect<E> subquery) default Expressiondefault Expressionlt(ComparableProperty<?> value) default ExpressionltAll(ColumnSelect<E> subquery) default ExpressionltAny(ColumnSelect<E> subquery) default Expressiondefault Expressionlte(ComparableProperty<?> value) default ExpressionlteAll(ColumnSelect<E> subquery) default ExpressionlteAny(ColumnSelect<E> subquery) Methods inherited from interface IdProperty
eq
-
Constructor Details
-
NumericIdProperty
Constructs a new property with the given name and expression- Parameters:
attribute- PK attribute name (optional, can be omitted for single PK entity)path- cayenne path (optional, can be omitted for ID of the root)entityName- name of the entity (mandatory)type- of the property (mandatory)- See Also:
-
-
Method Details
-
getEntityName
- Specified by:
getEntityNamein interfaceIdProperty<E extends Number>
-
getAttributeName
- Specified by:
getAttributeNamein interfaceIdProperty<E extends Number>
-