net.sourceforge.jdbcimporter.config
Interface EntityConfigDelegate

All Known Implementing Classes:
ExportEntityConfigDelegate, GenerateEntityConfigDelegate, ImportEntityConfigDelegate

public interface EntityConfigDelegate

The EntityConfigDelegate interface is a delegate interface used by the EntityConfig to create EntityDef and ColumnDef objects.

Version:
0.6
Author:
Chris Nagy

Method Summary
 ColumnDef createColumnDef(org.w3c.dom.Node node)
          Create a ColumnDef from the given node and apply any custom attributes.
 EntityDef createEntityDef(org.w3c.dom.Node node)
          Create an EntityDef from the given node and apply any custom attributes.
 

Method Detail

createEntityDef

public EntityDef createEntityDef(org.w3c.dom.Node node)
                          throws org.w3c.dom.DOMException,
                                 InvalidCustomObjectDefException
Create an EntityDef from the given node and apply any custom attributes. The following are standard attributes that are applied by the EntityConfig: catalog, schema, table.

Parameters:
node - the element node with the name 'entity'
Returns:
the EntityDef
Throws:
org.w3c.dom.DOMException - if any custom attributes are missing or invalid
InvalidCustomObjectDefException - if the custom EntityDef could not be created

createColumnDef

public ColumnDef createColumnDef(org.w3c.dom.Node node)
                          throws org.w3c.dom.DOMException,
                                 InvalidCustomObjectDefException
Create a ColumnDef from the given node and apply any custom attributes. The following are standard attributes that are applied by the EntityConfig: name, SQLType, format, default.

Parameters:
node - the element node with the name 'column'
Returns:
the ColumnDef
Throws:
org.w3c.dom.DOMException - if any custom attributes are missing or invalid
InvalidCustomObjectDefException - if the custom ColumnDef could not be created