java.lang.Object | ||
↳ | org.mybatis.generator.config.PropertyHolder | |
↳ | org.mybatis.generator.config.Context |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a Context object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a Context object.
defaultModelType | - may be null |
---|
InterruptedException |
---|
Introspect tables based on the configuration specified in the constructor. This method is long running.
callback | a progress callback if progress information is desired, or
null |
---|---|
warnings | any warning generated from this method will be added to the List. Warnings are always Strings. |
fullyQualifiedTableNames | a set of table names to generate. The elements of the set must be Strings that exactly match what's specified in the configuration. For example, if table name = "foo" and schema = "bar", then the fully qualified table name is "foo.bar". If the Set is null or empty, then all tables in the configuration will be used for code generation. |
SQLException | if some error arises while introspecting the specified database tables. |
---|---|
InterruptedException | if the progress callback reports a cancel |
Builds an XmlElement representation of this context. Note that the XML
may not necessarily validate if the context is invalid. Call the
validate
method to check validity of this context.
This method does a simple validate, it makes sure that all required fields have been filled in. It does not do any more complex operations such as validating that database tables exist or validating that named columns exist