Class Database
java.lang.Object
ch.nolix.system.objectdata.model.Database
- All Implemented Interfaces:
NameHolder, StateRequestable<DatabaseObjectState>, Closeable, GroupCloseable, OpennessRequestable, DatabaseObject, CreationRequestable, DatabaseConnectionRequestable, DeletionRequestable, EditingRequestable, LoadingRequestable, IDatabase, AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptiongetName()getState()<E extends IEntity>
ExtendedIterable<E> getStoredEntitiesByType(Class<E> type) getStoredTableByEntityType(Class<E> entityType) getStoredTableByName(String name) ExtendedIterable<? extends ITable<IEntity>> insertEntity(E entity) booleanisClosed()booleanbooleanbooleanisEdited()booleanisLoaded()booleanisNew()voidLets the currentGroupCloseablenote a close.static DatabasewithEntityTypeSetAndMidDataAdapterAndSchemaReader(IEntityTypeSet entityTypeSet, DataAdapterAndSchemaReader midDataAdapterAndSchemaReader) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GroupCloseable
close, createCloseDependencyToMethods inherited from interface NameHolder
getNameInSingleQuotes, hasName, hasSameNameAsMethods inherited from interface OpennessRequestable
isOpen
-
Method Details
-
withEntityTypeSetAndMidDataAdapterAndSchemaReader
public static Database withEntityTypeSetAndMidDataAdapterAndSchemaReader(IEntityTypeSet entityTypeSet, DataAdapterAndSchemaReader midDataAdapterAndSchemaReader) -
getEntityTypeSet
- Specified by:
getEntityTypeSetin interfaceIDatabase
-
getName
- Specified by:
getNamein interfaceNameHolder- Returns:
- the name of the current
NameHolder
-
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 interfaceGroupCloseable- Specified by:
isClosedin interfaceOpennessRequestable- Returns:
- true if the current
OpennessRequestableis 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
-