|
exedio cope | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.exedio.cope.Feature
com.exedio.cope.Field<E>
com.exedio.cope.FunctionField<String>
com.exedio.cope.StringField
public final class StringField
Represents a field within a type,
that enables instances of that type to store a string.
| Field Summary | |
|---|---|
static int |
DEFAULT_LENGTH
|
| Constructor Summary | |
|---|---|
StringField()
Creates a new mandatory StringField. |
|
| Method Summary | |
|---|---|
BindStringFunction |
bind(Join join)
|
StringField |
characterSet(com.exedio.cope.util.CharacterSet characterSet)
Deprecated. Use charSet(CharSet) instead |
StringField |
charSet(com.exedio.cope.util.CharSet charSet)
|
LikeCondition |
contains(String value)
Returns a condition, that is true for all items, if and only if the value of this function for that item contains the given parameter. |
LikeCondition |
containsIgnoreCase(String value)
|
StringField |
copy()
|
StringField |
defaultTo(String defaultConstant)
|
LikeCondition |
endsWith(String value)
Returns a condition, that is true for all items, if and only if the value of this function for that item ends with the given parameter. |
LikeCondition |
endsWithIgnoreCase(String value)
|
Condition |
equalIgnoreCase(String value)
|
com.exedio.cope.util.CharacterSet |
getCharacterSet()
Deprecated. Use getCharSet() instead |
com.exedio.cope.util.CharSet |
getCharSet()
|
Set<Class<? extends Throwable>> |
getInitialExceptions()
Returns the exceptions possibly thrown, when setting a value for this settable. |
int |
getMaximumLength()
|
int |
getMinimumLength()
|
LengthView |
length()
|
StringField |
lengthExact(int exactLength)
|
StringField |
lengthMax(int maximumLength)
|
StringField |
lengthMaxUnchecked(int maximumLength)
Deprecated. use lengthMax(int). |
StringField |
lengthMin(int minimumLength)
|
StringField |
lengthRange(int minimumLength,
int maximumLength)
|
LikeCondition |
like(String value)
Returns a condition, that is true for all items, if and only if the value of this function for that item is matches the given parameter. |
LikeCondition |
likeIgnoreCase(String value)
|
StringField |
nonUnique()
|
StringField |
optional()
Returns a new Field, that differs from this Field by being optional. |
LikeCondition |
startsWith(String value)
Returns a condition, that is true for all items, if and only if the value of this function for that item starts with the given parameter. |
LikeCondition |
startsWithIgnoreCase(String value)
|
StringField |
toFinal()
Returns a new Field, that differs from this Field by being final. |
UppercaseView |
toUpperCase()
|
StringField |
unique()
Returns a new FunctionField, that differs from this FunctionField by being unique. |
UppercaseView |
uppercase()
Deprecated. renamed to toUpperCase() |
| Methods inherited from class com.exedio.cope.FunctionField |
|---|
append, appendParameter, appendSelect, between, check, copyFunctionField, equal, equal, equal, get, getDefaultConstant, getImplicitUniqueConstraint, getInitialType, getUniqueConstraints, getWrappers, greater, greater, greaterOrEqual, greaterOrEqual, in, in, isInitial, isNotNull, isNull, less, less, lessOrEqual, lessOrEqual, max, min, notEqual, notEqual, searchUnique, searchUnique, set |
| Methods inherited from class com.exedio.cope.Field |
|---|
castCollection, check, execute, getColumnName, getPattern, getPatterns, getValueClass, isFinal, isMandatory, map, mapNull |
| Methods inherited from class com.exedio.cope.Feature |
|---|
getAnnotation, getID, getName, getType, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.exedio.cope.Function |
|---|
appendParameter, between, equal, equal, equal, get, getValueClass, 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, appendSelect, check, getType, toString |
| Field Detail |
|---|
public static final int DEFAULT_LENGTH
| Constructor Detail |
|---|
public StringField()
| Method Detail |
|---|
public StringField copy()
copy in class FunctionField<String>public StringField toFinal()
Field
toFinal in class Field<String>Field.isFinal()public StringField optional()
Field
optional in class Field<String>Field.isMandatory()public StringField unique()
FunctionField
unique in class FunctionField<String>FunctionField.getImplicitUniqueConstraint()public StringField nonUnique()
nonUnique in class FunctionField<String>public StringField defaultTo(String defaultConstant)
public StringField lengthRange(int minimumLength,
int maximumLength)
public StringField lengthMin(int minimumLength)
public StringField lengthMax(int maximumLength)
public StringField lengthExact(int exactLength)
public StringField charSet(com.exedio.cope.util.CharSet charSet)
public final int getMinimumLength()
public final int getMaximumLength()
public final com.exedio.cope.util.CharSet getCharSet()
public Set<Class<? extends Throwable>> getInitialExceptions()
Settable
getInitialExceptions in interface Settable<String>getInitialExceptions in class FunctionField<String>public final LikeCondition like(String value)
StringFunction
like in interface StringFunctionpublic final LikeCondition startsWith(String value)
StringFunction
startsWith in interface StringFunctionpublic final LikeCondition endsWith(String value)
StringFunction
endsWith in interface StringFunctionpublic final LikeCondition contains(String value)
StringFunction
contains in interface StringFunctionpublic final LengthView length()
length in interface StringFunctionpublic final UppercaseView toUpperCase()
toUpperCase in interface StringFunctionpublic final Condition equalIgnoreCase(String value)
equalIgnoreCase in interface StringFunctionpublic final LikeCondition likeIgnoreCase(String value)
likeIgnoreCase in interface StringFunctionpublic final LikeCondition startsWithIgnoreCase(String value)
startsWithIgnoreCase in interface StringFunctionpublic final LikeCondition endsWithIgnoreCase(String value)
endsWithIgnoreCase in interface StringFunctionpublic final LikeCondition containsIgnoreCase(String value)
containsIgnoreCase in interface StringFunctionpublic BindStringFunction bind(Join join)
bind in interface Function<String>bind in interface StringFunctionbind in class FunctionField<String>@Deprecated public StringField lengthMaxUnchecked(int maximumLength)
lengthMax(int).
@Deprecated public final UppercaseView uppercase()
toUpperCase()
@Deprecated public StringField characterSet(com.exedio.cope.util.CharacterSet characterSet)
charSet(CharSet) instead
@Deprecated public com.exedio.cope.util.CharacterSet getCharacterSet()
getCharSet() instead
|
Cope with Object Persistence |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||