com.univocity.api.config.builders
Interface CreateTableExportOptions

All Superinterfaces:
ExportOutput

public interface CreateTableExportOptions
extends ExportOutput

Specific configuration options of a an export operation to create table scripts, as defined by Export.asCreateTableScript(com.univocity.api.entity.jdbc.DatabaseDialect). The configuration methods available here determine how the script output should be generated.

Author:
uniVocity Software Pty Ltd - dev@univocity.com

Method Summary
 CreateTableExportOptions noDefaults()
          The create table scripts in this export operation should not contain DEFAULT <value> on column definitions.
 CreateTableExportOptions noGeneratedIds()
          The create table scripts in this export operation should not contain generated (nor identity) primary keys.
 CreateTableExportOptions noNotNullConstraint()
          The create table scripts in this export operation should not contain NOT NULL constraints on column definitions.
 CreateTableExportOptions noPrimaryKeyConstraint()
          The create table scripts in this export operation should not contain PRIMARY KEY constraints on table definitions.
 String toObject()
          Exports the result of this create table Export operation as a String.
 String toScript()
          Exports the result of this create table Export operation as a script.
 
Methods inherited from interface com.univocity.api.config.builders.ExportOutput
toDirectory, toDirectory, toDirectory, toDirectory, toDirectory, toDirectory, toFile, toFile, toFile, toFile, toFile, toFile, toMap
 

Method Detail

noPrimaryKeyConstraint

CreateTableExportOptions noPrimaryKeyConstraint()
The create table scripts in this export operation should not contain PRIMARY KEY constraints on table definitions.

Returns:
further options to configure this export operation.

noNotNullConstraint

CreateTableExportOptions noNotNullConstraint()
The create table scripts in this export operation should not contain NOT NULL constraints on column definitions.

Returns:
further options to configure this export operation.

noDefaults

CreateTableExportOptions noDefaults()
The create table scripts in this export operation should not contain DEFAULT <value> on column definitions.

Returns:
further options to configure this export operation.

noGeneratedIds

CreateTableExportOptions noGeneratedIds()
The create table scripts in this export operation should not contain generated (nor identity) primary keys.

Returns:
further options to configure this export operation.

toObject

String toObject()
Exports the result of this create table Export operation as a String. Produces the same result as the toScript() method.

Specified by:
toObject in interface ExportOutput
Returns:
an object containing the result of the create table Export operation

toScript

String toScript()
Exports the result of this create table Export operation as a script.

Returns:
an script containing the result of the create table Export operation


Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.