org.mybatis.generator.config
Class Configuration

java.lang.Object
  extended by org.mybatis.generator.config.Configuration

public class Configuration
extends Object

Author:
Jeff Butler

Constructor Summary
Configuration()
           
 
Method Summary
 void addClasspathEntry(String entry)
           
 void addContext(Context context)
           
 List<String> getClassPathEntries()
           
 Context getContext(String id)
           
 List<Context> getContexts()
           
 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

Configuration

public Configuration()
Method Detail

addClasspathEntry

public void addClasspathEntry(String entry)

getClassPathEntries

public List<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

getContexts

public List<Context> getContexts()

addContext

public void addContext(Context context)

getContext

public Context getContext(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


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.