Package com.exasol.dbbuilder
Class AdapterScript
- java.lang.Object
-
- com.exasol.dbbuilder.AbstractDatabaseObject
-
- com.exasol.dbbuilder.AdapterScript
-
- All Implemented Interfaces:
DatabaseObject
public class AdapterScript extends AbstractDatabaseObject
Virtual Schema Adapter Script
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdapterScript.Language
-
Field Summary
-
Fields inherited from class com.exasol.dbbuilder.AbstractDatabaseObject
name, writer
-
-
Constructor Summary
Constructors Constructor Description AdapterScript(DatabaseObjectWriter writer, Schema parentSchema, String name, AdapterScript.Language language, String content)Create a new instance of anAdapterScript.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Get the actual script content.AdapterScript.LanguagegetLanguage()Get the implementation language.DatabaseObjectgetParent()Get the parent object.StringgetType()Get the type of the database object.booleanhasParent()Check if this object has a parent object that sets the scope within the database-
Methods inherited from class com.exasol.dbbuilder.AbstractDatabaseObject
getFullyQualifiedName, getName
-
-
-
-
Constructor Detail
-
AdapterScript
public AdapterScript(DatabaseObjectWriter writer, Schema parentSchema, String name, AdapterScript.Language language, String content)
Create a new instance of anAdapterScript.- Parameters:
writer- database object writerparentSchema- parent schemaname- name of the adapter scriptlanguage- language the the script is implemented incontent- the actual script
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:DatabaseObjectGet the type of the database object.- Returns:
- type of the database object
-
hasParent
public boolean hasParent()
Description copied from interface:DatabaseObjectCheck if this object has a parent object that sets the scope within the database- Returns:
trueif the object has a parent
-
getParent
public DatabaseObject getParent()
Description copied from interface:DatabaseObjectGet the parent object.- Returns:
- parent object
-
getLanguage
public AdapterScript.Language getLanguage()
Get the implementation language.- Returns:
- language in which the adapter script is implemented
-
getContent
public String getContent()
Get the actual script content.- Returns:
- script content
-
-