Class AbstractField
java.lang.Object
ch.nolix.system.objectdata.model.AbstractField
- All Implemented Interfaces:
NameHolder, DatabaseComponent<IDatabase>, EntityComponent<IEntity>, TableComponent<ITable<? extends IEntity>>, MandatorynessRequestable, CloseStateRequestable, EmptinessRequestable, StateRequestable<DatabaseObjectState>, DatabaseObject, CreationRequestable, DatabaseConnectionRequestable, DeletionRequestable, EditingRequestable, LoadingRequestable, IField
- Direct Known Subclasses:
AbstractBaseBackReference, AbstractBaseReference, AbstractBaseValueField
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal booleanfinal booleanfinal StringgetName()final DatabaseObjectStategetState()final IColumnfinal IDatabasefinal AbstractEntityfinal booleanisClosed()final booleanfinal booleanfinal booleanisEdited()final booleanisLoaded()final booleanisNew()final booleanfinal voidsetUpdateAction(Runnable updateAction) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseStateRequestable
isOpenMethods inherited from interface EmptinessRequestable
containsAny, isEmptyMethods inherited from interface IField
getStoredBackReferencedBaseReferences, getStoredBaseBackReferencesWhoReferencesBackThis, getType, internalSetNullableValue, referencesBackEntity, referencesBackEntityWithId, referencesBackField, referencesEntity, referencesUninsertedEntityMethods inherited from interface MandatorynessRequestable
isMandatory, isOptionalMethods inherited from interface NameHolder
getNameInSingleQuotes, hasName, hasSameNameAs
-
Constructor Details
-
AbstractField
public AbstractField()
-
-
Method Details
-
belongsToDatabase
public final boolean belongsToDatabase()- Specified by:
belongsToDatabasein interfaceDatabaseComponent<IDatabase>- Returns:
- true if the current
DatabaseComponentbelongs to a database, false otherwise.
-
belongsToEntity
public final boolean belongsToEntity()- Specified by:
belongsToEntityin interfaceEntityComponent<IEntity>- Returns:
- true if the current
EntityComponentbelongs to an entity, false otherwise.
-
belongsToTable
public final boolean belongsToTable()- Specified by:
belongsToTablein interfaceTableComponent<ITable<? extends IEntity>>- Returns:
- true if the current
TableComponentbelongs to a table, false otherwise.
-
getName
- Specified by:
getNamein interfaceNameHolder- Returns:
- the name of the current
NameHolder
-
getState
- Specified by:
getStatein interfaceStateRequestable<DatabaseObjectState>- Returns:
- the state of the current
StateRequestable.
-
getStoredParentColumn
- Specified by:
getStoredParentColumnin interfaceIField
-
getStoredParentDatabase
- Specified by:
getStoredParentDatabasein interfaceDatabaseComponent<IDatabase>- Returns:
- the database of the current
DatabaseComponent.
-
getStoredParentEntity
- Specified by:
getStoredParentEntityin interfaceEntityComponent<IEntity>- Returns:
- the entity of the current
EntityComponent.
-
getStoredParentTable
- Specified by:
getStoredParentTablein interfaceTableComponent<ITable<? extends IEntity>>- Returns:
- the table of the current
TableComponent.
-
isClosed
public final boolean isClosed()- Specified by:
isClosedin interfaceCloseStateRequestable- Returns:
- true if the current
CloseStateRequestableis closed, false otherwise.
-
isDeleted
public final boolean isDeleted()- Specified by:
isDeletedin interfaceDeletionRequestable
-
isEdited
public final boolean isEdited()- Specified by:
isEditedin interfaceEditingRequestable
-
isConnectedWithRealDatabase
public final boolean isConnectedWithRealDatabase()- Specified by:
isConnectedWithRealDatabasein interfaceDatabaseConnectionRequestable- Returns:
- true if the current
DatabaseConnectionRequestableis connected with a real database, false otherwise.
-
isLoaded
public final boolean isLoaded()- Specified by:
isLoadedin interfaceLoadingRequestable
-
isNew
public final boolean isNew()- Specified by:
isNewin interfaceCreationRequestable
-
knowsParentColumn
public final boolean knowsParentColumn()- Specified by:
knowsParentColumnin interfaceIField
-
setUpdateAction
- Specified by:
setUpdateActionin interfaceIField
-