net.sourceforge.jdbcimporter.ant
Class EntityDefElement

java.lang.Object
  extended bynet.sourceforge.jdbcimporter.ant.EntityDefElement
Direct Known Subclasses:
ExportEntityDefElement, ImportEntityDefElement

public class EntityDefElement
extends java.lang.Object

The EntityDefElement provides an Ant wrapper for setting a EntityDef object from Ant.

Version:
0.6
Author:
Chris Nagy

Field Summary
protected  EntityDef entityDef
          The wrapped entity definition.
 
Constructor Summary
EntityDefElement()
           
 
Method Summary
 void addConfiguredProperty(PropertyElement element)
          Adds a configured property element to the entity def.
 void setCatalog(java.lang.String name)
          Sets the name of the catalog that contains the table.
 void setSchema(java.lang.String name)
          Sets the name of the schema that owns the table.
 void setTable(java.lang.String name)
          Sets the name of the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityDef

protected EntityDef entityDef
The wrapped entity definition.

Constructor Detail

EntityDefElement

public EntityDefElement()
Method Detail

setSchema

public void setSchema(java.lang.String name)
Sets the name of the schema that owns the table.

Parameters:
name - name of the schema

setCatalog

public void setCatalog(java.lang.String name)
Sets the name of the catalog that contains the table.

Parameters:
name - name of the catalog

setTable

public void setTable(java.lang.String name)
Sets the name of the table.

Parameters:
name - name of the table

addConfiguredProperty

public void addConfiguredProperty(PropertyElement element)
Adds a configured property element to the entity def. The property element must have a non-null name and value.

Parameters:
element - the property element