Class ExasolSchema
- java.lang.Object
-
- com.exasol.dbbuilder.dialects.AbstractDatabaseObject
-
- com.exasol.dbbuilder.dialects.AbstractSchema
-
- com.exasol.dbbuilder.dialects.exasol.ExasolSchema
-
- All Implemented Interfaces:
DatabaseObject,Schema
public class ExasolSchema extends AbstractSchema
Exasol database schema.
-
-
Field Summary
-
Fields inherited from class com.exasol.dbbuilder.dialects.AbstractSchema
tables
-
Fields inherited from class com.exasol.dbbuilder.dialects.AbstractDatabaseObject
name, owned
-
-
Constructor Summary
Constructors Constructor Description ExasolSchema(ExasolImmediateDatabaseObjectWriter writer, String name)Create a new database schema.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdapterScriptcreateAdapterScript(String name, AdapterScript.Language language, String content)Create an adapter script.AdapterScriptcreateAdapterScript(String name, AdapterScript.Language language, String content, String debuggerConnection)Create an adapter script with debugger connection.ScriptcreateScript(String name, String content, String... parameterNames)Create a script that does not return anything.ScriptcreateScript(String name, Path path, String... parameterNames)Create a script and load its implementation from a file.Script.BuildercreateScriptBuilder(String name)Create a builder for a database script.protected com.exasol.db.IdentifiergetIdentifier(String name)Get an instance ofIdentifier.ScriptgetScript(String name)Attach to a script that already exists in the database.DatabaseObjectWritergetWriter()Get aDatabaseObjectWriter.-
Methods inherited from class com.exasol.dbbuilder.dialects.AbstractSchema
createTable, createTable, createTable, createTable, createTableBuilder, drop, getTables
-
Methods inherited from class com.exasol.dbbuilder.dialects.AbstractDatabaseObject
getFullyQualifiedName, getName, isOwned
-
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
getFullyQualifiedName, getName, isOwned
-
-
-
-
Constructor Detail
-
ExasolSchema
public ExasolSchema(ExasolImmediateDatabaseObjectWriter writer, String name)
Create a new database schema.- Parameters:
writer- database object writername- name of the database schema
-
-
Method Detail
-
createAdapterScript
public AdapterScript createAdapterScript(String name, AdapterScript.Language language, String content)
Create an adapter script.- Parameters:
name- name of the adapter scriptlanguage- language the adapter script is implemented incontent- implementation of the script- Returns:
- adapter script
-
createAdapterScript
public AdapterScript createAdapterScript(String name, AdapterScript.Language language, String content, String debuggerConnection)
Create an adapter script with debugger connection.- Parameters:
name- name of the adapter scriptlanguage- language the adapter script is implemented incontent- implementation of the scriptdebuggerConnection- connection to a debugger- Returns:
- adapter script
-
createScript
public Script createScript(String name, String content, String... parameterNames)
Create a script that does not return anything.- Parameters:
name- name of the scriptcontent- implementation of the scriptparameterNames- names of the parameters of the script- Returns:
- script
-
createScript
public Script createScript(String name, Path path, String... parameterNames)
Create a script and load its implementation from a file.- Parameters:
name- name of the scriptpath- path to file containing the script implementationparameterNames- names of the parameters of the script- Returns:
- script
-
createScriptBuilder
public Script.Builder createScriptBuilder(String name)
Create a builder for a database script.- Parameters:
name- name of the script- Returns:
- builder
-
getScript
public Script getScript(String name)
Attach to a script that already exists in the database.- Parameters:
name- name of the script to attach to- Returns:
- control object for the existing script
-
getWriter
public DatabaseObjectWriter getWriter()
Description copied from class:AbstractSchemaGet aDatabaseObjectWriter.- Specified by:
getWriterin classAbstractSchema- Returns:
DatabaseObjectWriter
-
getIdentifier
protected com.exasol.db.Identifier getIdentifier(String name)
Description copied from class:AbstractSchemaGet an instance ofIdentifier.- Specified by:
getIdentifierin classAbstractSchema- Parameters:
name- identifier id- Returns:
- instance of
Identifier
-
-