Package com.exasol.dbbuilder.dialects
Class Table
- java.lang.Object
-
- com.exasol.dbbuilder.dialects.AbstractDatabaseObject
-
- com.exasol.dbbuilder.dialects.AbstractSchemaChild
-
- com.exasol.dbbuilder.dialects.Table
-
- All Implemented Interfaces:
DatabaseObject
public class Table extends AbstractSchemaChild
Database table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTable.BuilderBuilder for database tables.
-
Field Summary
-
Fields inherited from class com.exasol.dbbuilder.dialects.AbstractSchemaChild
parentSchema
-
Fields inherited from class com.exasol.dbbuilder.dialects.AbstractDatabaseObject
name, owned
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Table.Builderbuilder(DatabaseObjectWriter writer, Schema schema, com.exasol.db.Identifier tableName)Create a builder for aTable.voiddrop()Drop the database object and all contained objects.intgetColumnCount()Get the number of columns the table has.List<Column>getColumns()Get the columns of the table.List<List<Object>>getRows()Get the table's contents (aka.StringgetType()Get the type of the database object.Tableinsert(Object... values)Insert a row of values to the table.-
Methods inherited from class com.exasol.dbbuilder.dialects.AbstractSchemaChild
getParent, hasParent
-
Methods inherited from class com.exasol.dbbuilder.dialects.AbstractDatabaseObject
getFullyQualifiedName, getName, isOwned
-
-
-
-
Method Detail
-
builder
public static Table.Builder builder(DatabaseObjectWriter writer, Schema schema, com.exasol.db.Identifier tableName)
Create a builder for aTable.- Parameters:
writer- database object writerschema- parent schematableName- name of the database table- Returns:
- new
Tableinstance
-
getType
public String getType()
Description copied from interface:DatabaseObjectGet the type of the database object.- Returns:
- type of the database object
-
drop
public void drop()
Description copied from interface:DatabaseObjectDrop the database object and all contained objects.
-
getColumnCount
public int getColumnCount()
Get the number of columns the table has.- Returns:
- column count
-
getRows
public List<List<Object>> getRows()
Get the table's contents (aka. "rows")- Returns:
- rows in the table
-
-