Class Table
java.lang.Object
ch.nolix.system.objectschema.model.Table
- All Implemented Interfaces:
FluentMutableNameHolder<ITable>, IdHolder, NameHolder, DatabaseComponent<IDatabase>, CloseStateRequestable, StateRequestable<DatabaseObjectState>, DatabaseObject, Deletable, CreationRequestable, DatabaseConnectionRequestable, DeletionRequestable, EditingRequestable, LoadingRequestable, ITable
-
Method Summary
Modifier and TypeMethodDescriptionaddColumns(ExtendedIterable<IColumn> columns) addColumnWithNameAndContentModel(String name, FieldType fieldType, DataType dataType, ExtendedIterable<? extends ITable> referenceableTables, ExtendedIterable<? extends IColumn> backReferenceableColumns) booleanvoiddelete()getId()getName()final DatabaseObjectStategetState()ExtendedIterable<? extends IColumn> final booleanisClosed()booleanfinal booleanfinal booleanisEdited()final booleanisLoaded()final booleanisNew()Sets the name of the currentFluentMutableNameHolder.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 IdHolder
getIdInSingleQuotes, hasIdMethods inherited from interface LoadingRequestable
isLoadedMethods inherited from interface NameHolder
getNameInSingleQuotes, hasName, hasSameNameAsMethods inherited from interface StateRequestable
getState
-
Method Details
-
withIdAndName
-
withName
-
addColumn
-
addColumns
- Specified by:
addColumnsin interfaceITable
-
belongsToDatabase
public boolean belongsToDatabase()- Specified by:
belongsToDatabasein interfaceDatabaseComponent<IDatabase>- Returns:
- true if the current
DatabaseComponentbelongs to a database, false otherwise.
-
addColumnWithNameAndContentModel
public Table addColumnWithNameAndContentModel(String name, FieldType fieldType, DataType dataType, ExtendedIterable<? extends ITable> referenceableTables, ExtendedIterable<? extends IColumn> backReferenceableColumns) - Specified by:
addColumnWithNameAndContentModelin interfaceITable
-
delete
-
getId
-
getName
- Specified by:
getNamein interfaceNameHolder- Returns:
- the name of the current
NameHolder
-
getStoredParentDatabase
- Specified by:
getStoredParentDatabasein interfaceDatabaseComponent<IDatabase>- Returns:
- the database of the current
DatabaseComponent.
-
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 currentFluentMutableNameHolder.- Specified by:
setNamein interfaceFluentMutableNameHolder<ITable>- Parameters:
name-- Returns:
- the current
FluentMutableNameHolder
-
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
-