org.apache.ibatis.abator.internal.java
Class DAOGeneratorTemplate

java.lang.Object
  extended byorg.apache.ibatis.abator.internal.java.DAOGeneratorTemplate

public class DAOGeneratorTemplate
extends java.lang.Object

This class holds values that are used by the DAOGeneratorBaseImpl class to generate DAOs. The values in this class can be used to alter the generated DAOs.

Author:
Jeff Butler

Constructor Summary
DAOGeneratorTemplate()
           
 
Method Summary
 void addCheckedException(FullyQualifiedJavaType type)
           
 void addField(java.lang.String field)
           
 void addImplementationImport(FullyQualifiedJavaType type)
           
 void addInterfaceImport(FullyQualifiedJavaType type)
           
 void addMethod(java.lang.String method)
           
 java.util.List getCheckedExceptions()
           
 java.lang.String getConstructor(FullyQualifiedJavaType type)
           
 java.lang.String getConstructorTemplate()
           
 java.lang.String getDeleteMethod()
           
 java.util.List getFields()
           
 java.util.List getImplementationImports()
           
 java.lang.String getInsertMethod()
           
 java.util.List getInterfaceImports()
           
 java.util.List getMethods()
           
 java.lang.String getQueryForListMethod()
           
 java.lang.String getQueryForObjectMethod()
           
 FullyQualifiedJavaType getSuperClass()
           
 java.lang.String getUpdateMethod()
           
 void setConstructorTemplate(java.lang.String constructorTemplate)
           
 void setDeleteMethod(java.lang.String deleteMethod)
           
 void setInsertMethod(java.lang.String insertMethod)
           
 void setQueryForListMethod(java.lang.String queryForListMethod)
           
 void setQueryForObjectMethod(java.lang.String queryForObjectMethod)
           
 void setSuperClass(FullyQualifiedJavaType superClass)
           
 void setUpdateMethod(java.lang.String updateMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAOGeneratorTemplate

public DAOGeneratorTemplate()
Method Detail

getConstructor

public java.lang.String getConstructor(FullyQualifiedJavaType type)

getDeleteMethod

public java.lang.String getDeleteMethod()

getInterfaceImports

public java.util.List getInterfaceImports()

getImplementationImports

public java.util.List getImplementationImports()

getInsertMethod

public java.lang.String getInsertMethod()

getQueryForListMethod

public java.lang.String getQueryForListMethod()

getQueryForObjectMethod

public java.lang.String getQueryForObjectMethod()

getSuperClass

public FullyQualifiedJavaType getSuperClass()

getUpdateMethod

public java.lang.String getUpdateMethod()

getCheckedExceptions

public java.util.List getCheckedExceptions()

getFields

public java.util.List getFields()

getMethods

public java.util.List getMethods()

getConstructorTemplate

public java.lang.String getConstructorTemplate()

setConstructorTemplate

public void setConstructorTemplate(java.lang.String constructorTemplate)

setDeleteMethod

public void setDeleteMethod(java.lang.String deleteMethod)

addField

public void addField(java.lang.String field)

setInsertMethod

public void setInsertMethod(java.lang.String insertMethod)

addMethod

public void addMethod(java.lang.String method)

setQueryForListMethod

public void setQueryForListMethod(java.lang.String queryForListMethod)

setQueryForObjectMethod

public void setQueryForObjectMethod(java.lang.String queryForObjectMethod)

setSuperClass

public void setSuperClass(FullyQualifiedJavaType superClass)

setUpdateMethod

public void setUpdateMethod(java.lang.String updateMethod)

addInterfaceImport

public void addInterfaceImport(FullyQualifiedJavaType type)

addImplementationImport

public void addImplementationImport(FullyQualifiedJavaType type)

addCheckedException

public void addCheckedException(FullyQualifiedJavaType type)