Package gudusoft.gsqlparser.sqlenv
Class TSQLTable
Object
gudusoft.gsqlparser.sqlenv.TSQLObject
gudusoft.gsqlparser.sqlenv.TSQLSchemaObject
gudusoft.gsqlparser.sqlenv.TSQLTable
SQL table, includes a list of columns.
-
Field Summary
Fields inherited from class gudusoft.gsqlparser.sqlenv.TSQLObject
dataObjectType, name, nameKeepCase, sqlEnv -
Constructor Summary
ConstructorsConstructorDescriptionTSQLTable(TSQLSchema sqlSchema, String tableName) create a new table belong to a schema -
Method Summary
Modifier and TypeMethodDescriptionvoidadd a new column to the tablevoidcolumn listgetColumns(boolean columnNameOnly) This is the script that used to create this view(isView()returns true).booleanisSealed()Check if this table is sealed (Phase 6).booleanisView()Used to check whether this is a view.voidseal()Seal this table to prevent further modifications (Phase 6).booleansearchColumn(String columnName) voidsetDefinition(String definition) voidsetView(boolean view) Methods inherited from class gudusoft.gsqlparser.sqlenv.TSQLSchemaObject
getPriority, getQualifiedName, getSchema, setPriorityMethods inherited from class gudusoft.gsqlparser.sqlenv.TSQLObject
compareTo, compareTo, compareTo, compareTo, getDataObjectType, getName, getNameKeepCase, getSqlEnv, isDelimitedIdentifier, isDelimitedIdentifier, normalizeIdentifier, setDataObjectType
-
Constructor Details
-
TSQLTable
create a new table belong to a schema- Parameters:
sqlSchema- schematableName- table name
-
-
Method Details
-
seal
Seal this table to prevent further modifications (Phase 6).See
TSQLEnv#seal()for detailed documentation. -
isSealed
Check if this table is sealed (Phase 6).- Returns:
- true if sealed, false otherwise
-
setView
-
isView
Used to check whether this is a view.- Returns:
- true if this is a view.
-
setDefinition
-
getDefinition
This is the script that used to create this view(isView()returns true).- Returns:
- sql script that used to create this view.
-
getColumnList
column list- Returns:
- a column list
-
addColumn
add a new column to the table- Parameters:
columnName- column name
-
addColumn
-
searchColumn
-
getColumn
-
getColumns
-