public class SpringDAOTemplate extends AbstractDAOTemplate
| Constructor and Description |
|---|
SpringDAOTemplate() |
| 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 |
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, configureImplementationImports, configureInterfaceImports, configureMethods, getCheckedExceptions, getConstructorClone, getDeleteMethod, getFieldClones, getImplementationImports, getInsertMethod, getInterfaceImports, getMethodClones, getQueryForListMethod, getQueryForObjectMethod, getSuperClass, getUpdateMethod, setConstructorTemplate, setDeleteMethodTemplate, setInsertMethodTemplate, setQueryForListMethodTemplate, setQueryForObjectMethodTemplate, setSuperClass, setUpdateMethodTemplateprotected void configureConstructorTemplate()
AbstractDAOTemplatesetConstructorTemplate(Method) to set the constructor
template.configureConstructorTemplate in class AbstractDAOTemplateprotected void configureDeleteMethodTemplate()
AbstractDAOTemplateFor 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 AbstractDAOTemplateprotected void configureInsertMethodTemplate()
AbstractDAOTemplateFor 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 AbstractDAOTemplateprotected void configureQueryForListMethodTemplate()
AbstractDAOTemplateFor 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 AbstractDAOTemplateprotected void configureQueryForObjectMethodTemplate()
AbstractDAOTemplateFor 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 AbstractDAOTemplateprotected void configureSuperClass()
AbstractDAOTemplatesetSuperClass(FullyQualifiedJavaType) to set the superclass
for generated DAO implementation classes.configureSuperClass in class AbstractDAOTemplateprotected void configureUpdateMethodTemplate()
AbstractDAOTemplateFor 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 AbstractDAOTemplateCopyright © 2006–2017 MyBatis.org. All rights reserved.