public class IbatisDAOTemplate extends AbstractDAOTemplate
Constructor and Description |
---|
IbatisDAOTemplate() |
Modifier and Type | Method and Description |
---|---|
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 |
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 |
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.
|
addCheckedException, addField, addImplementationImport, addInterfaceImport, addMethod, configureCheckedExceptions, configureFields, configureInterfaceImports, configureMethods, getCheckedExceptions, getConstructorClone, getDeleteMethod, getFieldClones, getImplementationImports, getInsertMethod, getInterfaceImports, getMethodClones, getQueryForListMethod, getQueryForObjectMethod, getSuperClass, getUpdateMethod, setConstructorTemplate, setDeleteMethodTemplate, setInsertMethodTemplate, setQueryForListMethodTemplate, setQueryForObjectMethodTemplate, setSuperClass, setUpdateMethodTemplate
protected void configureConstructorTemplate()
AbstractDAOTemplate
setConstructorTemplate(Method)
to set the constructor
template.configureConstructorTemplate
in class AbstractDAOTemplate
protected void configureDeleteMethodTemplate()
AbstractDAOTemplate
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)
method to set the template.
configureDeleteMethodTemplate
in class AbstractDAOTemplate
protected void configureImplementationImports()
AbstractDAOTemplate
addImplementationImport(FullyQualifiedJavaType)
one or more
times to add import(s) to generated DAO implementation classes.configureImplementationImports
in class AbstractDAOTemplate
protected void configureInsertMethodTemplate()
AbstractDAOTemplate
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)
method to set the template.
configureInsertMethodTemplate
in class AbstractDAOTemplate
protected void configureQueryForListMethodTemplate()
AbstractDAOTemplate
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)
method to set the
template.
configureQueryForListMethodTemplate
in class AbstractDAOTemplate
protected void configureQueryForObjectMethodTemplate()
AbstractDAOTemplate
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)
method to set the
template.
configureQueryForObjectMethodTemplate
in class AbstractDAOTemplate
protected void configureSuperClass()
AbstractDAOTemplate
setSuperClass(FullyQualifiedJavaType)
to set the superclass
for generated DAO implementation classes.configureSuperClass
in class AbstractDAOTemplate
protected void configureUpdateMethodTemplate()
AbstractDAOTemplate
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)
method to set the template.
configureUpdateMethodTemplate
in class AbstractDAOTemplate
Copyright © 2006–2018 MyBatis.org. All rights reserved.