org.apache.ibatis.ibator.config
Class IbatorConfiguration

java.lang.Object
  extended by org.apache.ibatis.ibator.config.IbatorConfiguration

public class IbatorConfiguration
extends java.lang.Object

Author:
Jeff Butler

Constructor Summary
IbatorConfiguration()
           
 
Method Summary
 void addClasspathEntry(java.lang.String entry)
           
 void addIbatorContext(IbatorContext ibatorContext)
           
 java.util.List<java.lang.String> getClassPathEntries()
           
 IbatorContext getIbatorContext(java.lang.String id)
           
 java.util.List<IbatorContext> getIbatorContexts()
           
 Document toDocument()
          Builds an XML representation of this configuration.
 void validate()
          This method does a simple validate, it makes sure that all required fields have been filled in and that all implementation classes exist and are of the proper type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IbatorConfiguration

public IbatorConfiguration()
Method Detail

addClasspathEntry

public void addClasspathEntry(java.lang.String entry)

getClassPathEntries

public java.util.List<java.lang.String> getClassPathEntries()
Returns:
Returns the classPathEntries.

validate

public void validate()
              throws InvalidConfigurationException
This method does a simple validate, it makes sure that all required fields have been filled in and that all implementation classes exist and are of the proper type. It does not do any more complex operations such as: validating that database tables exist or validating that named columns exist

Throws:
InvalidConfigurationException

getIbatorContexts

public java.util.List<IbatorContext> getIbatorContexts()

addIbatorContext

public void addIbatorContext(IbatorContext ibatorContext)

getIbatorContext

public IbatorContext getIbatorContext(java.lang.String id)

toDocument

public Document toDocument()
Builds an XML representation of this configuration. This can be used to persist a programtically generated configuration.

Returns:
the XML representation of this configuration