net.sourceforge.jdbcimporter.ant
Class ConnectionDefElement

java.lang.Object
  extended bynet.sourceforge.jdbcimporter.ant.ConnectionDefElement

public class ConnectionDefElement
extends java.lang.Object

The ConnectionDefElement provides an Ant wrapper for setting a ConnectionDef object from Ant.

Version:
0.6
Author:
Chris Nagy

Field Summary
protected  ConnectionDef connectionDef
          The wrapped connection definition.
protected static java.lang.String DEFAULT_IMPL
          The default connection definition implementation.
protected static java.lang.String DEFAULT_TYPE
          The default connection definition type.
protected  java.util.Map plugins
          The mapping between connection definition types and implementations.
static java.lang.String PREFIX
          The prefix used in the properties to identify that this property is a connection definition mapping.
protected  java.lang.String type
          The connection definition type.
 
Constructor Summary
ConnectionDefElement(java.util.Map plugins)
          Constructs an empty ConnectionDefElement with the given mapping between connection definition types and implementations.
 
Method Summary
 void addConfiguredProperty(PropertyElement element)
          Add a property to the connection definition.
 ConnectionDef getConnectionDef()
          Returns the wrapped connection definition.
 void setType(java.lang.String type)
          Sets the connection definition type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TYPE

protected static java.lang.String DEFAULT_TYPE
The default connection definition type.


DEFAULT_IMPL

protected static java.lang.String DEFAULT_IMPL
The default connection definition implementation.


PREFIX

public static java.lang.String PREFIX
The prefix used in the properties to identify that this property is a connection definition mapping.


plugins

protected java.util.Map plugins
The mapping between connection definition types and implementations.


connectionDef

protected ConnectionDef connectionDef
The wrapped connection definition.


type

protected java.lang.String type
The connection definition type.

Constructor Detail

ConnectionDefElement

public ConnectionDefElement(java.util.Map plugins)
Constructs an empty ConnectionDefElement with the given mapping between connection definition types and implementations.

Parameters:
plugins - the plugin mappings
Method Detail

setType

public void setType(java.lang.String type)
Sets the connection definition type. The type should map to an implementation class.

Parameters:
type - the connection definition type

addConfiguredProperty

public void addConfiguredProperty(PropertyElement element)
Add a property to the connection definition.

Parameters:
element - the property element

getConnectionDef

public ConnectionDef getConnectionDef()
Returns the wrapped connection definition.

Returns:
the connection definition