org.apache.ibatis.abator.internal.java.dao
Class BaseLegacyDAOGenerator

java.lang.Object
  extended by org.apache.ibatis.abator.internal.java.dao.BaseDAOGenerator
      extended by org.apache.ibatis.abator.internal.java.dao.BaseLegacyDAOGenerator
All Implemented Interfaces:
DAOGenerator
Direct Known Subclasses:
GenericCILegacyDAOGenerator, GenericSILegacyDAOGenerator, IbatisLegacyDAOGenerator, SpringLegacyDAOGenerator

public class BaseLegacyDAOGenerator
extends BaseDAOGenerator
implements DAOGenerator

This class overrides the base DAO generator class to provide the legacy implementarion of the "by example" methods. This class can be removed when we remove the Legacy generator set.

Author:
Jeff Butler

Field Summary
 
Fields inherited from class org.apache.ibatis.abator.internal.java.dao.BaseDAOGenerator
daoTemplate, exampleMethodVisibility, javaModelGenerator, methodNameCalculator, properties, sqlMapGenerator, targetPackage, targetProject, warnings
 
Constructor Summary
BaseLegacyDAOGenerator(AbstractDAOTemplate daoTemplate)
           
 
Method Summary
 void addContextProperties(java.util.Map properties)
          Adds properties for this instance from any properties configured in the current context.
protected  java.util.List getDeleteByExampleMethods(IntrospectedTable introspectedTable, boolean interfaceMethod, CompilationUnit compilationUnit)
           
protected  java.util.List getExtraImplementationMethods(IntrospectedTable introspectedTable, CompilationUnit compilationUnit)
          Override this method to provide any extra methods needed in the implementation class.
protected  java.util.List getSelectByExampleWithBLOBsMethods(IntrospectedTable introspectedTable, boolean interfaceMethod, CompilationUnit compilationUnit)
           
protected  java.util.List getSelectByExampleWithoutBLOBsMethods(IntrospectedTable introspectedTable, boolean interfaceMethod, CompilationUnit compilationUnit)
           
 
Methods inherited from class org.apache.ibatis.abator.internal.java.dao.BaseDAOGenerator
addConfigurationProperties, getDAOImplementation, getDAOImplementationType, getDAOInterface, getDAOInterfaceType, getDAOPackage, getDeleteByPrimaryKeyMethods, getGeneratedJavaFiles, getInsertMethods, getSelectByPrimaryKeyMethods, getUpdateByPrimaryKeySelectiveMethods, getUpdateByPrimaryKeyWithBLOBsMethods, getUpdateByPrimaryKeyWithoutBLOBsMethods, setJavaModelGenerator, setSqlMapGenerator, setTargetPackage, setTargetProject, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ibatis.abator.api.DAOGenerator
addConfigurationProperties, getGeneratedJavaFiles, setJavaModelGenerator, setSqlMapGenerator, setTargetPackage, setTargetProject, setWarnings
 

Constructor Detail

BaseLegacyDAOGenerator

public BaseLegacyDAOGenerator(AbstractDAOTemplate daoTemplate)
Method Detail

getSelectByExampleWithoutBLOBsMethods

protected java.util.List getSelectByExampleWithoutBLOBsMethods(IntrospectedTable introspectedTable,
                                                               boolean interfaceMethod,
                                                               CompilationUnit compilationUnit)
Overrides:
getSelectByExampleWithoutBLOBsMethods in class BaseDAOGenerator

getSelectByExampleWithBLOBsMethods

protected java.util.List getSelectByExampleWithBLOBsMethods(IntrospectedTable introspectedTable,
                                                            boolean interfaceMethod,
                                                            CompilationUnit compilationUnit)
Overrides:
getSelectByExampleWithBLOBsMethods in class BaseDAOGenerator

getDeleteByExampleMethods

protected java.util.List getDeleteByExampleMethods(IntrospectedTable introspectedTable,
                                                   boolean interfaceMethod,
                                                   CompilationUnit compilationUnit)
Overrides:
getDeleteByExampleMethods in class BaseDAOGenerator

getExtraImplementationMethods

protected java.util.List getExtraImplementationMethods(IntrospectedTable introspectedTable,
                                                       CompilationUnit compilationUnit)
Description copied from class: BaseDAOGenerator
Override this method to provide any extra methods needed in the implementation class.

Overrides:
getExtraImplementationMethods in class BaseDAOGenerator
Returns:
a list of Method objects that will be added to the implementation class. May be null.

addContextProperties

public void addContextProperties(java.util.Map properties)
Description copied from interface: DAOGenerator
Adds properties for this instance from any properties configured in the current context. This method will be called before any of the get methods.

Specified by:
addContextProperties in interface DAOGenerator
Overrides:
addContextProperties in class BaseDAOGenerator
Parameters:
properties - All properties from the configuration