org.castor.ddlgen.schemaobject
Interface SchemaObject

All Known Implementing Classes:
AbstractSchemaObject

public interface SchemaObject

Interface for all schema objects.

Since:
1.1
Version:
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Le Duc Bao, Ralf Joachim

Method Summary
 DDLGenConfiguration getConfiguration()
          Get configuration of the schema object.
 java.lang.String getName()
          Get name of the schema object.
 void setConfiguration(DDLGenConfiguration config)
          Set configuration of the schema object.
 void setName(java.lang.String name)
          Set name of the schema object.
 java.lang.String toCreateDDL()
          Build create script for the schema object.
 java.lang.String toDropDDL()
          Build drop script for the schema object.
 

Method Detail

setConfiguration

public void setConfiguration(DDLGenConfiguration config)
Set configuration of the schema object.

Parameters:
config - Configuration to be used by the schema object.

getConfiguration

public DDLGenConfiguration getConfiguration()
Get configuration of the schema object.

Returns:
Configuration of the schema object.

setName

public void setName(java.lang.String name)
Set name of the schema object.

Parameters:
name - Name of the schema object.

getName

public java.lang.String getName()
Get name of the schema object.

Returns:
Name of the schema object.

toCreateDDL

public java.lang.String toCreateDDL()
                             throws GeneratorException
Build create script for the schema object.

Returns:
Create script for the schema object.
Throws:
GeneratorException - If generation of the script failed or is not supported.

toDropDDL

public java.lang.String toDropDDL()
                           throws GeneratorException
Build drop script for the schema object.

Returns:
Drop script for the schema object.
Throws:
GeneratorException - If generation of the script failed or is not supported.


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com