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

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

public class GenericCIDAOTemplate
extends AbstractDAOTemplate

Author:
Jeff Butler

Constructor Summary
GenericCIDAOTemplate()
           
 
Method Summary
protected  void configureCheckedExceptions()
          Override this method to add checked exceptions to the throws clause of any generated DAO method.
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 configureFields()
          Override this method to add fields to any generated DAO implementation class.
protected  void configureImplementationImports()
          Override this method to add imports to generated DAO implementation classes.
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 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, configureInterfaceImports, configureMethods, configureSuperClass, 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

GenericCIDAOTemplate

public GenericCIDAOTemplate()
Method Detail

configureCheckedExceptions

protected void configureCheckedExceptions()
Description copied from class: AbstractDAOTemplate
Override this method to add checked exceptions to the throws clause of any generated DAO method. When overriding this method, call addCheckedException(FullyQualifiedJavaType) one or more times to add checked exception(s) to all generated DAO methods.

Overrides:
configureCheckedExceptions in class AbstractDAOTemplate

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

configureFields

protected void configureFields()
Description copied from class: AbstractDAOTemplate
Override this method to add fields to any generated DAO implementation class. When overriding this method, call addField(Field) one or more times to add field(s) to the generated DAO implementation class.

Overrides:
configureFields in class AbstractDAOTemplate

configureImplementationImports

protected void configureImplementationImports()
Description copied from class: AbstractDAOTemplate
Override this method to add imports to generated DAO implementation classes. When overriding this method, call addImplementationImport(FullyQualifiedJavaType) one or more times to add import(s) to generated DAO implementation classes.

Overrides:
configureImplementationImports 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

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