Class AbstractField
java.lang.Object
ch.nolix.system.objectdata.model.AbstractField
- All Implemented Interfaces:
INameHolder, IDatabaseComponent<IDatabase>, IEntityComponent<IEntity>, ITableComponent<ITable<? extends IEntity>>, MandatorynessRequestable, CloseStateRequestable, EmptinessRequestable, StateRequestable<DatabaseObjectState>, IDatabaseObject, 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 INameHolder
getNameInQuotes, hasName, hasSameNameAsMethods inherited from interface MandatorynessRequestable
isMandatory, isOptional
-
Constructor Details
-
AbstractField
public AbstractField()
-
-
Method Details
-
belongsToDatabase
public final boolean belongsToDatabase()- Specified by:
belongsToDatabasein interfaceIDatabaseComponent<IDatabase>- Returns:
- true if the current
IDatabaseComponentbelongs to a database, false otherwise.
-
belongsToEntity
public final boolean belongsToEntity()- Specified by:
belongsToEntityin interfaceIEntityComponent<IEntity>- Returns:
- true if the current
IEntityComponentbelongs to an entity, false otherwise.
-
belongsToTable
public final boolean belongsToTable()- Specified by:
belongsToTablein interfaceITableComponent<ITable<? extends IEntity>>- Returns:
- true if the current
ITableComponentbelongs to a table, false otherwise.
-
getName
- Specified by:
getNamein interfaceINameHolder- Returns:
- the name of the current
INameHolder.
-
getState
- Specified by:
getStatein interfaceStateRequestable<DatabaseObjectState>- Returns:
- the state of the current
StateRequestable.
-
getStoredParentColumn
- Specified by:
getStoredParentColumnin interfaceIField
-
getStoredParentDatabase
- Specified by:
getStoredParentDatabasein interfaceIDatabaseComponent<IDatabase>- Returns:
- the database of the current
IDatabaseComponent.
-
getStoredParentEntity
- Specified by:
getStoredParentEntityin interfaceIEntityComponent<IEntity>- Returns:
- the entity of the current
IEntityComponent.
-
getStoredParentTable
- Specified by:
getStoredParentTablein interfaceITableComponent<ITable<? extends IEntity>>- Returns:
- the table of the current
ITableComponent.
-
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
-