org.apache.ibatis.abator.config
Class AbatorContext

java.lang.Object
  extended byorg.apache.ibatis.abator.config.AbatorContext

public class AbatorContext
extends java.lang.Object

Author:
Jeff Butler

Constructor Summary
AbatorContext()
           
 
Method Summary
 void addTableConfiguration(TableConfiguration tc)
           
 void generateFiles(ProgressCallback callback, java.util.List generatedJavaFiles, java.util.List generatedXmlFiles, java.util.List warnings)
          Generate iBATIS artifacts based on the configuration specified in the constructor.
 DAOGeneratorConfiguration getDaoGeneratorConfiguration()
           
 java.lang.String getId()
           
 JavaModelGeneratorConfiguration getJavaModelGeneratorConfiguration()
           
 JavaTypeResolverConfiguration getJavaTypeResolverConfiguration()
           
 JDBCConnectionConfiguration getJdbcConnectionConfiguration()
           
 SqlMapGeneratorConfiguration getSqlMapGeneratorConfiguration()
           
 int getTotalSteps()
           
 void setId(java.lang.String id)
           
 void validate(java.util.List errors)
          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

AbatorContext

public AbatorContext()
Method Detail

addTableConfiguration

public void addTableConfiguration(TableConfiguration tc)

getJdbcConnectionConfiguration

public JDBCConnectionConfiguration getJdbcConnectionConfiguration()

getDaoGeneratorConfiguration

public DAOGeneratorConfiguration getDaoGeneratorConfiguration()

getJavaModelGeneratorConfiguration

public JavaModelGeneratorConfiguration getJavaModelGeneratorConfiguration()

getJavaTypeResolverConfiguration

public JavaTypeResolverConfiguration getJavaTypeResolverConfiguration()

getSqlMapGeneratorConfiguration

public SqlMapGeneratorConfiguration getSqlMapGeneratorConfiguration()

validate

public void validate(java.util.List errors)
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


generateFiles

public void generateFiles(ProgressCallback callback,
                          java.util.List generatedJavaFiles,
                          java.util.List generatedXmlFiles,
                          java.util.List warnings)
                   throws InvalidConfigurationException,
                          java.sql.SQLException,
                          java.lang.InterruptedException
Generate iBATIS artifacts based on the configuration specified in the constructor. This method is long running.

Parameters:
callback - a progress callback if progress information is desired, or null
generatedJavaFiles - any Java file generated from this method will be added to the List The objects will be of type GeneratedJavaFile.
generatedXmlFiles - any XML file generated from this method will be added to the List. The objects will be of type GeneratedXMLFile.
warnings - any warning generated from this method will be added to the List. Warnings are always Strings.
Throws:
InvalidConfigurationException - if some configuration error prevents continuation
java.sql.SQLException - if some error arrises while introspecting the specified database tables.
java.lang.InterruptedException - if the progress callback reports a cancel

getTotalSteps

public int getTotalSteps()

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)