org.apache.ibatis.ibator.generator.ibatis2.dao.templates
Class SpringDAOTemplate

java.lang.Object
  extended by org.apache.ibatis.ibator.generator.ibatis2.dao.templates.AbstractDAOTemplate
      extended by org.apache.ibatis.ibator.generator.ibatis2.dao.templates.SpringDAOTemplate

public class SpringDAOTemplate
extends AbstractDAOTemplate

Author:
Jeff Butler

Constructor Summary
SpringDAOTemplate()
           
 
Method Summary
protected  void configureConstructorTemplate()
          Override this method to configure a constructor for generated DAO implementation classes.
protected  void configureDeleteMethodTemplate()
          Override this method to configure a delete method template.
protected  void configureInsertMethodTemplate()
          Override this method to configure an insert method template.
protected  void configureQueryForListMethodTemplate()
          Override this method to configure a queryForList method template.
protected  void configureQueryForObjectMethodTemplate()
          Override this method to configure a queryForObject method template.
protected  void configureSuperClass()
          Override this method to set the superclass for any generated DAO implementation class.
protected  void configureUpdateMethodTemplate()
          Override this method to configure an update method template.
 
Methods inherited from class org.apache.ibatis.ibator.generator.ibatis2.dao.templates.AbstractDAOTemplate
addCheckedException, addField, addImplementationImport, addInterfaceImport, addMethod, configureCheckedExceptions, configureFields, configureImplementationImports, configureInterfaceImports, configureMethods, getCheckedExceptions, getConstructorClone, getDeleteMethod, getFieldClones, getImplementationImports, getInsertMethod, getInterfaceImports, getMethodClones, getQueryForListMethod, getQueryForObjectMethod, getSuperClass, getUpdateMethod, setConstructorTemplate, setDeleteMethodTemplate, setInsertMethodTemplate, setQueryForListMethodTemplate, setQueryForObjectMethodTemplate, setSuperClass, setUpdateMethodTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringDAOTemplate

public SpringDAOTemplate()
Method Detail

configureConstructorTemplate

protected void configureConstructorTemplate()
Description copied from class: AbstractDAOTemplate
Override this method to configure a constructor for generated DAO implementation classes. During code generation, ibator will build a new constructor using the visibility, parameters, body lines, and exceptions set on the constructor template. When overriding this method, call setConstructorTemplate(Method) to set the constructor template.

Specified by:
configureConstructorTemplate in class AbstractDAOTemplate

configureDeleteMethodTemplate

protected void configureDeleteMethodTemplate()
Description copied from class: AbstractDAOTemplate
Override this method to configure a delete method template. A method template is a string with three substitution markers that ibator will fill in when generating code. The substitution markers will be: For example, when calling methods in the SqlMapClient interface, the template would be: sqlMapClient.delete(\"{0}.{1}\", {2}); Overriding methods should call the setDeleteMethodTemplate(String)
Specified by:
configureDeleteMethodTemplate in class AbstractDAOTemplate

configureInsertMethodTemplate

protected void configureInsertMethodTemplate()
Description copied from class: AbstractDAOTemplate
Override this method to configure an insert method template. A method template is a string with three substitution markers that ibator will fill in when generating code. The substitution markers will be: For example, when calling methods in the SqlMapClient interface, the template would be: sqlMapClient.insert(\"{0}.{1}\", {2}); Overriding methods should call the setInsertMethodTemplate(String)
Specified by:
configureInsertMethodTemplate in class AbstractDAOTemplate

configureQueryForListMethodTemplate

protected void configureQueryForListMethodTemplate()
Description copied from class: AbstractDAOTemplate
Override this method to configure a queryForList method template. A method template is a string with three substitution markers that ibator will fill in when generating code. The substitution markers will be: For example, when calling methods in the SqlMapClient interface, the template would be: sqlMapClient.queryForList(\"{0}.{1}\", {2}); Overriding methods should call the setQueryForListMethodTemplate(String)
Specified by:
configureQueryForListMethodTemplate in class AbstractDAOTemplate

configureQueryForObjectMethodTemplate

protected void configureQueryForObjectMethodTemplate()
Description copied from class: AbstractDAOTemplate
Override this method to configure a queryForObject method template. A method template is a string with three substitution markers that ibator will fill in when generating code. The substitution markers will be: For example, when calling methods in the SqlMapClient interface, the template would be: sqlMapClient.queryForObject(\"{0}.{1}\", {2}); Overriding methods should call the setQueryForObjectMethodTemplate(String)
Specified by:
configureQueryForObjectMethodTemplate in class AbstractDAOTemplate

configureSuperClass

protected void configureSuperClass()
Description copied from class: AbstractDAOTemplate
Override this method to set the superclass for any generated DAO implementation class. When overriding this method call setSuperClass(FullyQualifiedJavaType) to set the superclass for generated DAO implementation classes.

Overrides:
configureSuperClass in class AbstractDAOTemplate

configureUpdateMethodTemplate

protected void configureUpdateMethodTemplate()
Description copied from class: AbstractDAOTemplate
Override this method to configure an update method template. A method template is a string with three substitution markers that ibator will fill in when generating code. The substitution markers will be: For example, when calling methods in the SqlMapClient interface, the template would be: sqlMapClient.update(\"{0}.{1}\", {2}); Overriding methods should call the setUpdateMethodTemplate(String)
Specified by:
configureUpdateMethodTemplate in class AbstractDAOTemplate