public class

Configuration

extends Object
java.lang.Object
   ↳ org.mybatis.generator.config.Configuration

Summary

Public Constructors
Configuration()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Configuration ()

Public Methods

public void addClasspathEntry (String entry)

public void addContext (Context context)

public List<String> getClassPathEntries ()

Returns
  • Returns the classPathEntries.

public Context getContext (String id)

public List<Context> getContexts ()

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

public 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. It does not do any more complex operations such as: validating that database tables exist or validating that named columns exist