ENTITY
- the entity typeD
- the database typepublic interface StringField<ENTITY,D> extends ComparableField<ENTITY,D,String>, HasStringOperators<ENTITY,D>, ToStringNullable<ENTITY>
ComparableField
,
HasStringOperators
Modifier and Type | Method and Description |
---|---|
default String |
apply(ENTITY object) |
static <ENTITY,D> StringField<ENTITY,D> |
create(ColumnIdentifier<ENTITY> identifier,
ReferenceGetter<ENTITY,String> getter,
ReferenceSetter<ENTITY,String> setter,
TypeMapper<D,String> typeMapper,
boolean unique)
Creates a new
StringField using the default implementation. |
default Predicate<ENTITY> |
isNotNull()
|
Predicate<ENTITY> |
isNull()
|
create
asBigDecimal, asBoolean, asByte, asChar, asDouble, asEnum, asFloat, asInt, asLong, asShort, asString, mapToBigDecimalIfPresent, mapToBooleanIfPresent, mapToByteIfPresent, mapToCharIfPresent, mapToDoubleIfPresent, mapToEnumIfPresent, mapToFloatIfPresent, mapToIntIfPresent, mapToLongIfPresent, mapToShortIfPresent, mapToStringIfPresent
get, getter, set, setter, setTo, typeMapper
findColumn, identifier
between, between, comparator, comparatorNullFieldsFirst, equal, greaterOrEqual, greaterThan, in, in, lessOrEqual, lessThan, notBetween, notBetween, notEqual, notIn, notIn
contains, containsIgnoreCase, endsWith, endsWithIgnoreCase, equalIgnoreCase, isEmpty, isNotEmpty, notContains, notContainsIgnoreCase, notEndsWith, notEndsWithIgnoreCase, notEqualIgnoreCase, notStartsWith, notStartsWithIgnoreCase, startsWith, startsWithIgnoreCase
compare, compose, expressionType, hash, of, orElse, orElseGet, orThrow
isNotNull, isNull
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
static <ENTITY,D> StringField<ENTITY,D> create(ColumnIdentifier<ENTITY> identifier, ReferenceGetter<ENTITY,String> getter, ReferenceSetter<ENTITY,String> setter, TypeMapper<D,String> typeMapper, boolean unique)
StringField
using the default implementation.ENTITY
- the entity typeD
- the database typeidentifier
- the column that this field representsgetter
- method reference to the getter in the entitysetter
- method reference to the setter in the entitytypeMapper
- the type mapper that is appliedunique
- represented column only contains unique valuesPredicate<ENTITY> isNull()
HasReferenceOperators
isNull
in interface HasReferenceOperators<ENTITY>
isNull
in interface ToNullable<ENTITY,String,ToString<ENTITY>>
true
, if and only if
this Field is null
default Predicate<ENTITY> isNotNull()
HasReferenceOperators
isNotNull
in interface HasReferenceOperators<ENTITY>
isNotNull
in interface ToNullable<ENTITY,String,ToString<ENTITY>>
true
, if and only if
this Field is not null
Copyright © 2018 Speedment, Inc.. All rights reserved.