- Type Parameters:
ENTITY- the entity type
- All Superinterfaces:
ComparableField<ENTITY,,String> Comparator<ENTITY>,com.speedment.runtime.compute.expression.Expression<ENTITY>,Field<ENTITY>,Function<ENTITY,,String> HasColumnName,HasComparableOperators<ENTITY,,String> com.speedment.runtime.compute.trait.HasCompare<ENTITY>,com.speedment.runtime.compute.trait.HasCompose<ENTITY>,HasGetter<ENTITY>,com.speedment.runtime.compute.trait.HasHash<ENTITY>,com.speedment.runtime.compute.trait.HasMapToDoubleIfPresent<ENTITY,,ToDoubleFunction<String>> HasReferenceOperators<ENTITY>,HasReferenceValue<ENTITY,,String> HasStringOperators<ENTITY>,HasTable<ENTITY>,ReferenceField<ENTITY,,String> com.speedment.runtime.compute.trait.ToNullable<ENTITY,,String, com.speedment.runtime.compute.ToString<ENTITY>> com.speedment.runtime.compute.ToStringNullable<ENTITY>
public interface StringField<ENTITY>
extends ComparableField<ENTITY,String>, HasStringOperators<ENTITY>, com.speedment.runtime.compute.ToStringNullable<ENTITY>
A field that represents a string column.
- Since:
- 2.2.0
- Author:
- Per Minborg, Emil Forslund
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringstatic <ENTITY> StringField<ENTITY>create(Class<ENTITY> table, String columnName, ReferenceGetter<ENTITY, String> getter, boolean unique) Creates a newStringFieldusing the default implementation.default FieldIsNotNullPredicate<ENTITY,String> isNull()Methods inherited from interface java.util.Comparator
equalsMethods inherited from interface com.speedment.jpastreamer.field.trait.HasColumnName
columnNameMethods inherited from interface com.speedment.jpastreamer.field.trait.HasComparableOperators
between, between, comparator, comparatorNullFieldsFirst, equal, greaterOrEqual, greaterThan, in, in, lessOrEqual, lessThan, notBetween, notBetween, notEqual, notIn, notIn, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface com.speedment.jpastreamer.field.trait.HasReferenceValue
get, getterMethods inherited from interface com.speedment.jpastreamer.field.trait.HasStringOperators
contains, containsIgnoreCase, endsWith, endsWithIgnoreCase, equalIgnoreCase, isEmpty, isNotEmpty, notContains, notContainsIgnoreCase, notEndsWith, notEndsWithIgnoreCase, notEqualIgnoreCase, notStartsWith, notStartsWithIgnoreCase, startsWith, startsWithIgnoreCaseMethods inherited from interface com.speedment.jpastreamer.field.ReferenceField
asBigDecimal, asBoolean, asByte, asChar, asDouble, asEnum, asFloat, asInt, asLong, asShort, asString, mapToBigDecimalIfPresent, mapToBooleanIfPresent, mapToByteIfPresent, mapToCharIfPresent, mapToDoubleIfPresent, mapToEnumIfPresent, mapToFloatIfPresent, mapToIntIfPresent, mapToLongIfPresent, mapToShortIfPresent, mapToStringIfPresentMethods inherited from interface com.speedment.runtime.compute.trait.ToNullable
isNotNull, isNullMethods inherited from interface com.speedment.runtime.compute.ToStringNullable
compare, compose, expressionType, hash, orElse, orElseGet, orThrow
-
Method Details
-
create
static <ENTITY> StringField<ENTITY> create(Class<ENTITY> table, String columnName, ReferenceGetter<ENTITY, String> getter, boolean unique) Creates a newStringFieldusing the default implementation.- Type Parameters:
ENTITY- the entity type- Parameters:
table- the table that the field belongs tocolumnName- the name of the database column the field representsgetter- method reference to the getter in the entityunique- represented column only contains unique values- Returns:
- the created field
-
isNull
FieldIsNullPredicate<ENTITY,String> isNull()Description copied from interface:HasReferenceOperators -
isNotNull
Description copied from interface:HasReferenceOperators -
apply
-