Class MySqlTable
- java.lang.Object
-
- com.exasol.dbbuilder.dialects.AbstractDatabaseObject
-
- com.exasol.dbbuilder.dialects.AbstractSchemaChild
-
- com.exasol.dbbuilder.dialects.Table
-
- com.exasol.dbbuilder.dialects.mysql.MySqlTable
-
- All Implemented Interfaces:
DatabaseObject,AutoCloseable
public class MySqlTable extends Table
A MySql table that allows specifying a character set.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMySqlTable.BuilderBuilder forMySqlTables.
-
Field Summary
-
Fields inherited from class com.exasol.dbbuilder.dialects.AbstractSchemaChild
parentSchema
-
Fields inherited from class com.exasol.dbbuilder.dialects.AbstractDatabaseObject
name, owned
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMySqlTable(MySqlTable.Builder builder)Create a new MySql table based on a given builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MySqlTable.Builderbuilder(DatabaseObjectWriter writer, Schema parentSchema, com.exasol.db.Identifier tableName)Create a builder for aMySqlTable.StringgetCharset()Get the table's character set.-
Methods inherited from class com.exasol.dbbuilder.dialects.Table
bulkInsert, dropInternally, getColumnCount, getColumns, getType, insert, truncate
-
Methods inherited from class com.exasol.dbbuilder.dialects.AbstractSchemaChild
getParent, hasParent
-
Methods inherited from class com.exasol.dbbuilder.dialects.AbstractDatabaseObject
drop, getFullyQualifiedName, getName, isOwned, markDeleted, verifyNotDeleted
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.exasol.dbbuilder.dialects.DatabaseObject
close
-
-
-
-
Constructor Detail
-
MySqlTable
protected MySqlTable(MySqlTable.Builder builder)
Create a new MySql table based on a given builder.- Parameters:
builder- builder from which to copy the values
-
-
Method Detail
-
getCharset
public String getCharset()
Get the table's character set.- Returns:
- charset or
nullfor the default charset
-
builder
public static MySqlTable.Builder builder(DatabaseObjectWriter writer, Schema parentSchema, com.exasol.db.Identifier tableName)
Create a builder for aMySqlTable.- Parameters:
writer- database object writerparentSchema- parent schematableName- name of the database table- Returns:
- new
MySqlTable.Builderinstance
-
-