org.eobjects.metamodel.create
Interface TableCreatable

All Known Subinterfaces:
UpdateCallback
All Known Implementing Classes:
AbstractUpdateCallback

public interface TableCreatable

Interface for objects that support creating new tables.

Author:
Kasper Sørensen

Method Summary
 TableCreationBuilder createTable(Schema schema, String name)
          Initiates the building of a table creation operation.
 TableCreationBuilder createTable(String schemaName, String tableName)
          Initiates the building of a table creation operation.
 boolean isCreateTableSupported()
          Determines whether table creation is supported
 

Method Detail

isCreateTableSupported

boolean isCreateTableSupported()
Determines whether table creation is supported

Returns:
true if table creation is supported

createTable

TableCreationBuilder createTable(Schema schema,
                                 String name)
                                 throws IllegalArgumentException,
                                        IllegalStateException
Initiates the building of a table creation operation.

Parameters:
schema - the schema to create the table in
name - the name of the new table
Returns:
a builder object on which the details of the table can be specified and committed.
Throws:
IllegalArgumentException - if the table argument is null or invalid.
IllegalStateException - if the connection to the DataContext is read-only or another access restriction is preventing the operation.

createTable

TableCreationBuilder createTable(String schemaName,
                                 String tableName)
                                 throws IllegalArgumentException,
                                        IllegalStateException
Initiates the building of a table creation operation.

Parameters:
schemaName - the name of the schema to create the table in
tableName - the name of the new table
Returns:
a builder object on which the details of the table can be specified and committed.
Throws:
IllegalArgumentException - if the table argument is null or invalid.
IllegalStateException - if the connection to the DataContext is read-only or another access restriction is preventing the operation.


Copyright © 2007-2013. All Rights Reserved.