org.apache.ibatis.abator.internal.java.model
Class JavaModelGeneratorJava5Impl

java.lang.Object
  extended by org.apache.ibatis.abator.internal.java.model.JavaModelGeneratorJava2Impl
      extended by org.apache.ibatis.abator.internal.java.model.JavaModelGeneratorJava5Impl
All Implemented Interfaces:
JavaModelGenerator

public class JavaModelGeneratorJava5Impl
extends JavaModelGeneratorJava2Impl

This class overrides methods in the Java2 implementation to provide Java5 support in the Example class - using typed collections.

Author:
Jeff Butler

Field Summary
 
Fields inherited from class org.apache.ibatis.abator.internal.java.model.JavaModelGeneratorJava2Impl
properties, targetPackage, targetProject, warnings
 
Constructor Summary
JavaModelGeneratorJava5Impl()
           
 
Method Summary
protected  InnerClass getCriteriaInnerClass(TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
           
protected  TopLevelClass getExample(IntrospectedTable introspectedTable)
           
protected  Method getSetInOrNotInMethod(ColumnDefinition cd, boolean inMethod)
           
 
Methods inherited from class org.apache.ibatis.abator.internal.java.model.JavaModelGeneratorJava2Impl
addConfigurationProperties, addContextProperties, generateClassParts, getBaseRecord, getBaseRecordType, getExampleType, getGeneratedJavaFiles, getJavaModelPackage, getNoValueMethod, getPrimaryKey, getPrimaryKeyType, getRecordWithBLOBs, getRecordWithBLOBsType, getSetBetweenOrNotBetweenMethod, getSetEqualMethod, getSetGreaterThanMethod, getSetGreaterThenOrEqualMethod, getSetLessThanMethod, getSetLessThanOrEqualMethod, getSetLikeMethod, getSetNotEqualMethod, getSetNotLikeMethod, getSetNotNullMethod, getSetNullMethod, getSingleValueMethod, setTargetPackage, setTargetProject, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaModelGeneratorJava5Impl

public JavaModelGeneratorJava5Impl()
Method Detail

getExample

protected TopLevelClass getExample(IntrospectedTable introspectedTable)
Overrides:
getExample in class JavaModelGeneratorJava2Impl

getCriteriaInnerClass

protected InnerClass getCriteriaInnerClass(TopLevelClass topLevelClass,
                                           IntrospectedTable introspectedTable)
Overrides:
getCriteriaInnerClass in class JavaModelGeneratorJava2Impl

getSetInOrNotInMethod

protected Method getSetInOrNotInMethod(ColumnDefinition cd,
                                       boolean inMethod)
Overrides:
getSetInOrNotInMethod in class JavaModelGeneratorJava2Impl
Parameters:
cd -
inMethod - if true generates an "in" method, else generates a "not in" method
Returns:
a generated method for the in or not in method