Class MyBatisGeneratorConfigurationParser

java.lang.Object
org.mybatis.generator.config.xml.MyBatisGeneratorConfigurationParser

public class MyBatisGeneratorConfigurationParser extends Object
This class parses configuration files into the new Configuration API.
  • Field Details

    • extraProperties

      private final Properties extraProperties
    • configurationProperties

      private final Properties configurationProperties
  • Constructor Details

    • MyBatisGeneratorConfigurationParser

      public MyBatisGeneratorConfigurationParser(Properties extraProperties)
  • Method Details

    • parseConfiguration

      public Configuration parseConfiguration(Element rootNode) throws XMLParserException
      Throws:
      XMLParserException
    • parseProperties

      protected void parseProperties(Node node) throws XMLParserException
      Throws:
      XMLParserException
    • parseContext

      private void parseContext(Configuration configuration, Node node)
    • parseSqlMapGenerator

      protected void parseSqlMapGenerator(Context context, Node node)
    • parseTable

      protected void parseTable(Context context, Node node)
    • parseColumnOverride

      private void parseColumnOverride(TableConfiguration tc, Node node)
    • parseGeneratedKey

      private void parseGeneratedKey(TableConfiguration tc, Node node)
    • parseIgnoreColumn

      private void parseIgnoreColumn(TableConfiguration tc, Node node)
    • parseIgnoreColumnByRegex

      private void parseIgnoreColumnByRegex(TableConfiguration tc, Node node)
    • parseException

      private void parseException(IgnoredColumnPattern icPattern, Node node)
    • parseDomainObjectRenamingRule

      private void parseDomainObjectRenamingRule(TableConfiguration tc, Node node)
    • parseColumnRenamingRule

      private void parseColumnRenamingRule(TableConfiguration tc, Node node)
    • parseJavaTypeResolver

      protected void parseJavaTypeResolver(Context context, Node node)
    • parsePlugin

      private void parsePlugin(Context context, Node node)
    • parseJavaModelGenerator

      protected void parseJavaModelGenerator(Context context, Node node)
    • parseJavaClientGenerator

      private void parseJavaClientGenerator(Context context, Node node)
    • parseJdbcConnection

      protected void parseJdbcConnection(Context context, Node node)
    • parseClassPathEntry

      protected void parseClassPathEntry(Configuration configuration, Node node)
    • parseProperty

      protected void parseProperty(PropertyHolder propertyHolder, Node node)
    • parseAttributes

      protected Properties parseAttributes(Node node)
    • parsePropertyTokens

      String parsePropertyTokens(String s)
    • parseCommentGenerator

      protected void parseCommentGenerator(Context context, Node node)
    • parseConnectionFactory

      protected void parseConnectionFactory(Context context, Node node)
    • resolveProperty

      private String resolveProperty(String key)
      This method resolve a property from one of the three sources: system properties, properties loaded from the <properties> configuration element, and "extra" properties that may be supplied by the Maven or Ant environments.

      If there is a name collision, system properties take precedence, followed by configuration properties, followed by extra properties.

      Parameters:
      key - property key
      Returns:
      the resolved property. This method will return null if the property is undefined in any of the sources.