org.mybatis.generator.config
Class Configuration
java.lang.Object
org.mybatis.generator.config.Configuration
public class Configuration
- extends Object
- Author:
- Jeff Butler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Configuration
public Configuration()
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.