ENTITY
- entity typeD
- database type@GeneratedCode(value="Speedment") public interface LongField<ENTITY,D> extends Field<ENTITY>, HasLongValue<ENTITY,D>, HasComparableOperators<ENTITY,Long>, ToLong<ENTITY>, LongFieldComparator<ENTITY,D>
long
value.
Generated by com.speedment.sources.pattern.FieldPattern.
Modifier and Type | Method and Description |
---|---|
default long |
applyAsLong(ENTITY entity) |
LongFieldComparator<ENTITY,D> |
comparator()
Returns a
Comparator that will compare to this field using this
fields natural order, null fields are sorted last. |
static <ENTITY,D> LongField<ENTITY,D> |
create(ColumnIdentifier<ENTITY> identifier,
LongGetter<ENTITY> getter,
LongSetter<ENTITY> setter,
TypeMapper<D,Long> typeMapper,
boolean unique)
Creates a new
LongField using the default implementation. |
default LongField<ENTITY,D> |
getField()
Gets the field that is being compared.
|
default LongFieldComparator<ENTITY,D> |
reversed()
Returns a new
FieldComparator that order entities in the opposite
orders compared to this comparator. |
LongField<ENTITY,D> |
tableAlias(String tableAlias)
Creates and returns a new Field with the provided
tableAlias . |
getAsLong, getter, set, setter, setTo, typeMapper
between, between, comparatorNullFieldsFirst, equal, greaterOrEqual, greaterThan, in, in, lessOrEqual, lessThan, notBetween, notBetween, notEqual, notIn, notIn, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
isUnique, tableAlias
findColumn, identifier
abs, asDouble, asInt, asLong, compare, compose, divide, divide, divide, divide, divide, divide, expressionType, hash, map, mapToDouble, minus, minus, minus, minus, minus, minus, minus, minus, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, negate, of, plus, plus, plus, plus, plus, plus, plus, plus, pow, pow, pow, pow, sign, sqrt
getNullOrder, isReversed
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reverseOrder
static <ENTITY,D> LongField<ENTITY,D> create(ColumnIdentifier<ENTITY> identifier, LongGetter<ENTITY> getter, LongSetter<ENTITY> setter, TypeMapper<D,Long> typeMapper, boolean unique)
LongField
using the default implementation.ENTITY
- entity typeD
- database typeidentifier
- column that this field representsgetter
- method reference to getter in entitysetter
- method reference to setter in entitytypeMapper
- type mapper that is appliedunique
- if column only contains unique valuesLongField<ENTITY,D> tableAlias(String tableAlias)
Field
tableAlias
. The new Field
will retain all other properties from this field except the tableAlias.tableAlias
in interface Field<ENTITY>
tableAlias
- the table alias to use in the new fieldtableAlias
default long applyAsLong(ENTITY entity)
applyAsLong
in interface ToLong<ENTITY>
applyAsLong
in interface ToLongFunction<ENTITY>
LongFieldComparator<ENTITY,D> comparator()
HasComparableOperators
Comparator
that will compare to this field using this
fields natural order, null fields are sorted last.comparator
in interface HasComparableOperators<ENTITY,Long>
Comparator
that will compare to this field using this
fields natural order, null fields are sorted last.default LongFieldComparator<ENTITY,D> reversed()
FieldComparator
FieldComparator
that order entities in the opposite
orders compared to this comparator. For an example, if this comparator
orders entities based on a column 'firstname' in descending order, then
the returned FieldComparator
will be ordering entities based on
'firstname' in ascending order.reversed
in interface Comparator<ENTITY>
reversed
in interface FieldComparator<ENTITY>
reversed
in interface HasComparableOperators<ENTITY,Long>
reversed
in interface LongFieldComparator<ENTITY,D>
default LongField<ENTITY,D> getField()
LongFieldComparator
getField
in interface FieldComparator<ENTITY>
getField
in interface LongFieldComparator<ENTITY,D>
Copyright © 2018 Speedment, Inc.. All rights reserved.