Class AbstractEntity
java.lang.Object
ch.nolix.system.objectdata.model.AbstractEntity
- All Implemented Interfaces:
IIdHolder, IShortDescriptionHolder, IOptionalSaveStampHolder, IDatabaseComponent<IDatabase>, ITableComponent<ITable<? extends IEntity>>, CloseStateRequestable, StateRequestable<DatabaseObjectState>, Deletable, IDatabaseObject, CreationRequestable, DatabaseConnectionRequestable, DeletionRequestable, EditingRequestable, LoadingRequestable, IEntity
- Direct Known Subclasses:
Entity, GeneralEntity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal booleanfinal voiddelete()final StringgetId()final Stringfinal Stringfinal DatabaseObjectStategetState()final IDatabasefinal booleanfinal IContainer<? extends IField> final voidinternalSetLoadedAndIdAndSaveStamp(String id, String saveStamp) final voidinternalSetParentTable(ITable<? extends IEntity> parentTable) final booleanisClosed()final booleanfinal booleanfinal booleanisEdited()final booleanisLoaded()final booleanisNew()final booleanfinal booleanisReferencedInPersistedDataIgnoringGivenEntities(IContainer<String> entitiesToIgnoreIds) toString()Methods inherited from interface CloseStateRequestable
isOpenMethods inherited from interface IEntity
getParentTableNameMethods inherited from interface IIdHolder
getIdInQuotes, hasIdMethods inherited from interface IShortDescriptionHolder
getShortDescriptionInQuotes
-
Constructor Details
-
AbstractEntity
public AbstractEntity()
-
-
Method Details
-
belongsToDatabase
public final boolean belongsToDatabase()- Specified by:
belongsToDatabasein interfaceIDatabaseComponent<IDatabase>- Returns:
- true if the current
IDatabaseComponentbelongs to a database, 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.
-
delete
-
getId
-
getStoredParentDatabase
- Specified by:
getStoredParentDatabasein interfaceIDatabaseComponent<IDatabase>- Returns:
- the database of the current
IDatabaseComponent.
-
getStoredParentTable
- Specified by:
getStoredParentTablein interfaceITableComponent<ITable<? extends IEntity>>- Returns:
- the table of the current
ITableComponent.
-
getSaveStamp
- Specified by:
getSaveStampin interfaceIOptionalSaveStampHolder- Returns:
- the save stamp of the current
IOptionalSaveStampHolder.
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceIShortDescriptionHolder- Returns:
- the short description of the current
IShortDescriptionHolder.
-
getState
- Specified by:
getStatein interfaceStateRequestable<DatabaseObjectState>- Returns:
- the state of the current
StateRequestable.
-
hasSaveStamp
public final boolean hasSaveStamp()- Specified by:
hasSaveStampin interfaceIOptionalSaveStampHolder- Returns:
- true if the current
IOptionalSaveStampHolderhas a save stamp, false otherwise.
-
internalGetStoredFields
- Specified by:
internalGetStoredFieldsin interfaceIEntity
-
internalSetLoadedAndIdAndSaveStamp
- Specified by:
internalSetLoadedAndIdAndSaveStampin interfaceIEntity
-
internalSetParentTable
- Specified by:
internalSetParentTablein interfaceIEntity
-
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
-
isReferencedInPersistedData
public final boolean isReferencedInPersistedData()- Specified by:
isReferencedInPersistedDatain interfaceIEntity
-
isReferencedInPersistedDataIgnoringGivenEntities
public final boolean isReferencedInPersistedDataIgnoringGivenEntities(IContainer<String> entitiesToIgnoreIds) - Specified by:
isReferencedInPersistedDataIgnoringGivenEntitiesin interfaceIEntity
-
toString
-