Class ValueField<V>
java.lang.Object
ch.nolix.system.objectdata.model.AbstractField
ch.nolix.system.objectdata.model.AbstractBaseValueField<V>
ch.nolix.system.objectdata.model.ValueField<V>
- Type Parameters:
V- is the type of the values of aValueField.
- All Implemented Interfaces:
INameHolder, IDatabaseComponent<IDatabase>, IEntityComponent<IEntity>, ITableComponent<ITable<? extends IEntity>>, MandatorynessRequestable, CloseStateRequestable, EmptinessRequestable, StateRequestable<DatabaseObjectState>, IDatabaseObject, CreationRequestable, DatabaseConnectionRequestable, DeletionRequestable, EditingRequestable, LoadingRequestable, IBaseValueField<V>, IField, IValueField<V>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptiongetType()voidinternalSetNullableValue(Object nullableValue, String nullableAdditionalValue) booleanisEmpty()booleanvoidvoidsetValueFromString(String string) static <V2> ValueField<V2> withInitialValue(V2 initialValue) static <V2> ValueField<V2> withValueType(Class<V2> valueType) Methods inherited from class AbstractBaseValueField
getStoredBackReferencedBaseReferences, getStoredBaseBackReferencesWhoReferencesBackThis, getValueType, referencesBackEntity, referencesBackEntityWithId, referencesBackField, referencesEntity, referencesUninsertedEntityMethods inherited from class AbstractField
belongsToDatabase, belongsToEntity, belongsToTable, getName, getState, getStoredParentColumn, getStoredParentDatabase, getStoredParentEntity, getStoredParentTable, isClosed, isConnectedWithRealDatabase, isDeleted, isEdited, isLoaded, isNew, knowsParentColumn, setUpdateActionMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseStateRequestable
isClosed, isOpenMethods inherited from interface CreationRequestable
isNewMethods inherited from interface DatabaseConnectionRequestable
isConnectedWithRealDatabaseMethods inherited from interface DeletionRequestable
isDeletedMethods inherited from interface EditingRequestable
isEditedMethods inherited from interface EmptinessRequestable
containsAnyMethods inherited from interface IBaseValueField
getValueTypeMethods inherited from interface IDatabaseComponent
belongsToDatabase, getStoredParentDatabaseMethods inherited from interface IEntityComponent
belongsToEntity, getStoredParentEntityMethods inherited from interface IField
getStoredBackReferencedBaseReferences, getStoredBaseBackReferencesWhoReferencesBackThis, getStoredParentColumn, knowsParentColumn, referencesBackEntity, referencesBackEntityWithId, referencesBackField, referencesEntity, referencesUninsertedEntity, setUpdateActionMethods inherited from interface INameHolder
getName, getNameInQuotes, hasName, hasSameNameAsMethods inherited from interface ITableComponent
belongsToTable, getStoredParentTableMethods inherited from interface LoadingRequestable
isLoadedMethods inherited from interface MandatorynessRequestable
isOptionalMethods inherited from interface StateRequestable
getState
-
Method Details
-
withInitialValue
-
withValueType
-
getStoredValue
- Specified by:
getStoredValuein interfaceIValueField<V>
-
getType
-
internalSetNullableValue
- Specified by:
internalSetNullableValuein interfaceIField
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceEmptinessRequestable- Returns:
- true if
EmptinessRequestabledoes not contain an element, false otherwise.
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin interfaceMandatorynessRequestable- Returns:
- true if the current
MandatorynessRequestableis mandatory, false otherwise.
-
setValue
- Specified by:
setValuein interfaceIValueField<V>
-
setValueFromString
- Specified by:
setValueFromStringin interfaceIValueField<V>
-