Class Database
java.lang.Object
ch.nolix.system.objectdata.model.Database
- All Implemented Interfaces:
INameHolder, Closeable, CloseStateRequestable, GroupCloseable, StateRequestable<DatabaseObjectState>, IDatabaseObject, CreationRequestable, DatabaseConnectionRequestable, DeletionRequestable, EditingRequestable, LoadingRequestable, IDatabase, AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptiongetName()getState()<E extends IEntity>
IContainer<E> getStoredEntitiesByType(Class<E> type) getStoredTableByEntityType(Class<E> entityType) getStoredTableByName(String name) IContainer<? extends ITable<IEntity>> insertEntity(E entity) booleanisClosed()booleanbooleanbooleanisEdited()booleanisLoaded()booleanisNew()voidLets the currentGroupCloseablenote a close.static DatabasewithEntityTypeSetAndMidDataAdapterAndSchemaReader(IEntityTypeSet entityTypeSet, IDataAdapterAndSchemaReader midDataAdapterAndSchemaReader) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseStateRequestable
isOpenMethods inherited from interface GroupCloseable
close, createCloseDependencyToMethods inherited from interface INameHolder
getNameInQuotes, hasName, hasSameNameAs
-
Method Details
-
withEntityTypeSetAndMidDataAdapterAndSchemaReader
public static Database withEntityTypeSetAndMidDataAdapterAndSchemaReader(IEntityTypeSet entityTypeSet, IDataAdapterAndSchemaReader midDataAdapterAndSchemaReader) -
getEntityTypeSet
- Specified by:
getEntityTypeSetin interfaceIDatabase
-
getName
- Specified by:
getNamein interfaceINameHolder- Returns:
- the name of the current
INameHolder.
-
getSchemaTimestamp
- Specified by:
getSchemaTimestampin interfaceIDatabase
-
getState
- Specified by:
getStatein interfaceStateRequestable<DatabaseObjectState>- Returns:
- the state of the current
StateRequestable.
-
getStoredCloseController
- Specified by:
getStoredCloseControllerin interfaceGroupCloseable- Returns:
- the
ICloseControllerof the currentGroupCloseable.
-
getStoredEntitiesByType
- Specified by:
getStoredEntitiesByTypein interfaceIDatabase
-
getStoredTableByEntityType
- Specified by:
getStoredTableByEntityTypein interfaceIDatabase
-
getStoredTableByName
- Specified by:
getStoredTableByNamein interfaceIDatabase
-
getStoredTables
- Specified by:
getStoredTablesin interfaceIDatabase
-
insertEntity
- Specified by:
insertEntityin interfaceIDatabase
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceCloseStateRequestable- Specified by:
isClosedin interfaceGroupCloseable- Returns:
- true if the current
CloseStateRequestableis closed, false otherwise.
-
isConnectedWithRealDatabase
public boolean isConnectedWithRealDatabase()- Specified by:
isConnectedWithRealDatabasein interfaceDatabaseConnectionRequestable- Returns:
- true if the current
DatabaseConnectionRequestableis connected with a real database, false otherwise.
-
isDeleted
public boolean isDeleted()- Specified by:
isDeletedin interfaceDeletionRequestable
-
isEdited
public boolean isEdited()- Specified by:
isEditedin interfaceEditingRequestable
-
isLoaded
public boolean isLoaded()- Specified by:
isLoadedin interfaceLoadingRequestable
-
isNew
public boolean isNew()- Specified by:
isNewin interfaceCreationRequestable
-
noteClose
public void noteClose()Lets the currentGroupCloseablenote a close.- Specified by:
noteClosein interfaceGroupCloseable
-