Class Table
java.lang.Object
ch.nolix.system.objectschema.model.Table
- All Implemented Interfaces:
IFluentMutableNameHolder<ITable>, IIdHolder, INameHolder, IDatabaseComponent<IDatabase>, CloseStateRequestable, StateRequestable<DatabaseObjectState>, Deletable, IDatabaseObject, CreationRequestable, DatabaseConnectionRequestable, DeletionRequestable, EditingRequestable, LoadingRequestable, ITable
-
Method Summary
Modifier and TypeMethodDescriptionaddColumns(IContainer<IColumn> columns) addColumnWithNameAndContentModel(String name, FieldType fieldType, DataType dataType, IContainer<? extends ITable> referenceableTables, IContainer<? extends IColumn> backReferenceableColumns) booleanvoiddelete()getId()getName()final DatabaseObjectStategetState()IContainer<? extends IColumn> final booleanisClosed()booleanfinal booleanfinal booleanisEdited()final booleanisLoaded()final booleanisNew()Sets the name of the currentIFluentMutableNameHolder.static TablewithIdAndName(String id, String name) static TableMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseStateRequestable
isClosed, isOpenMethods inherited from interface CreationRequestable
isNewMethods inherited from interface DeletionRequestable
isDeletedMethods inherited from interface EditingRequestable
isEditedMethods inherited from interface IIdHolder
getIdInQuotes, hasIdMethods inherited from interface INameHolder
getNameInQuotes, hasName, hasSameNameAsMethods inherited from interface LoadingRequestable
isLoadedMethods inherited from interface StateRequestable
getState
-
Method Details
-
withIdAndName
-
withName
-
addColumn
-
addColumns
- Specified by:
addColumnsin interfaceITable
-
belongsToDatabase
public boolean belongsToDatabase()- Specified by:
belongsToDatabasein interfaceIDatabaseComponent<IDatabase>- Returns:
- true if the current
IDatabaseComponentbelongs to a database, false otherwise.
-
addColumnWithNameAndContentModel
public Table addColumnWithNameAndContentModel(String name, FieldType fieldType, DataType dataType, IContainer<? extends ITable> referenceableTables, IContainer<? extends IColumn> backReferenceableColumns) - Specified by:
addColumnWithNameAndContentModelin interfaceITable
-
delete
-
getId
-
getName
- Specified by:
getNamein interfaceINameHolder- Returns:
- the name of the current
INameHolder.
-
getStoredParentDatabase
- Specified by:
getStoredParentDatabasein interfaceIDatabaseComponent<IDatabase>- Returns:
- the database of the current
IDatabaseComponent.
-
getStoredColumns
- Specified by:
getStoredColumnsin interfaceITable
-
isConnectedWithRealDatabase
public boolean isConnectedWithRealDatabase()- Specified by:
isConnectedWithRealDatabasein interfaceDatabaseConnectionRequestable- Returns:
- true if the current
DatabaseConnectionRequestableis connected with a real database, false otherwise.
-
setName
Sets the name of the currentIFluentMutableNameHolder.- Specified by:
setNamein interfaceIFluentMutableNameHolder<ITable>- Parameters:
name-- Returns:
- the current
IFluentMutableNameHolder.
-
getState
- Specified by:
getStatein interfaceStateRequestable<DatabaseObjectState>- Returns:
- the state of the current
StateRequestable.
-
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
-
isLoaded
public final boolean isLoaded()- Specified by:
isLoadedin interfaceLoadingRequestable
-
isNew
public final boolean isNew()- Specified by:
isNewin interfaceCreationRequestable
-