public abstract class AbstractDAOTemplate extends Object
Constructor and Description |
---|
AbstractDAOTemplate() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCheckedException(FullyQualifiedJavaType type) |
protected void |
addField(Field field) |
protected void |
addImplementationImport(FullyQualifiedJavaType type) |
protected void |
addInterfaceImport(FullyQualifiedJavaType type) |
protected void |
addMethod(Method method) |
protected void |
configureCheckedExceptions()
Override this method to add checked exceptions to the throws clause of
any generated DAO method.
|
protected abstract void |
configureConstructorTemplate()
Override this method to configure a constructor for generated DAO
implementation classes.
|
protected abstract 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 abstract void |
configureInsertMethodTemplate()
Override this method to configure an insert method template.
|
protected void |
configureInterfaceImports()
Override this method to add imports to generated DAO interface classes.
|
protected void |
configureMethods()
Override this method to add methods to generated DAO implementation
classes.
|
protected abstract void |
configureQueryForListMethodTemplate()
Override this method to configure a queryForList method template.
|
protected abstract 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 abstract void |
configureUpdateMethodTemplate()
Override this method to configure an update method template.
|
List<FullyQualifiedJavaType> |
getCheckedExceptions() |
Method |
getConstructorClone(CommentGenerator commentGenerator,
FullyQualifiedJavaType type,
IntrospectedTable introspectedTable) |
String |
getDeleteMethod(String sqlMapNamespace,
String statementId,
String parameter) |
List<Field> |
getFieldClones(CommentGenerator commentGenerator,
IntrospectedTable introspectedTable) |
List<FullyQualifiedJavaType> |
getImplementationImports() |
String |
getInsertMethod(String sqlMapNamespace,
String statementId,
String parameter) |
List<FullyQualifiedJavaType> |
getInterfaceImports() |
List<Method> |
getMethodClones(CommentGenerator commentGenerator,
IntrospectedTable introspectedTable) |
String |
getQueryForListMethod(String sqlMapNamespace,
String statementId,
String parameter) |
String |
getQueryForObjectMethod(String sqlMapNamespace,
String statementId,
String parameter) |
FullyQualifiedJavaType |
getSuperClass() |
String |
getUpdateMethod(String sqlMapNamespace,
String statementId,
String parameter) |
protected void |
setConstructorTemplate(Method constructorTemplate) |
protected void |
setDeleteMethodTemplate(String deleteMethodTemplate) |
protected void |
setInsertMethodTemplate(String insertMethodTemplate) |
protected void |
setQueryForListMethodTemplate(String queryForListMethodTemplate) |
protected void |
setQueryForObjectMethodTemplate(String queryForObjectMethodTemplate) |
protected void |
setSuperClass(FullyQualifiedJavaType superClass) |
protected void |
setUpdateMethodTemplate(String updateMethodTemplate) |
public final Method getConstructorClone(CommentGenerator commentGenerator, FullyQualifiedJavaType type, IntrospectedTable introspectedTable)
public final String getDeleteMethod(String sqlMapNamespace, String statementId, String parameter)
public final List<FullyQualifiedJavaType> getInterfaceImports()
public final List<FullyQualifiedJavaType> getImplementationImports()
public final String getInsertMethod(String sqlMapNamespace, String statementId, String parameter)
public final String getQueryForListMethod(String sqlMapNamespace, String statementId, String parameter)
public final String getQueryForObjectMethod(String sqlMapNamespace, String statementId, String parameter)
public final FullyQualifiedJavaType getSuperClass()
public final String getUpdateMethod(String sqlMapNamespace, String statementId, String parameter)
public final List<FullyQualifiedJavaType> getCheckedExceptions()
public final List<Field> getFieldClones(CommentGenerator commentGenerator, IntrospectedTable introspectedTable)
public final List<Method> getMethodClones(CommentGenerator commentGenerator, IntrospectedTable introspectedTable)
protected void setConstructorTemplate(Method constructorTemplate)
protected void setDeleteMethodTemplate(String deleteMethodTemplate)
protected void addField(Field field)
protected void setInsertMethodTemplate(String insertMethodTemplate)
protected void addMethod(Method method)
protected void setQueryForListMethodTemplate(String queryForListMethodTemplate)
protected void setQueryForObjectMethodTemplate(String queryForObjectMethodTemplate)
protected void setSuperClass(FullyQualifiedJavaType superClass)
protected void setUpdateMethodTemplate(String updateMethodTemplate)
protected void addInterfaceImport(FullyQualifiedJavaType type)
protected void addImplementationImport(FullyQualifiedJavaType type)
protected void addCheckedException(FullyQualifiedJavaType type)
protected void configureCheckedExceptions()
addCheckedException(FullyQualifiedJavaType)
one or more
times to add checked exception(s) to all generated DAO methods.protected void configureFields()
addField(Field)
one
or more times to add field(s) to the generated DAO implementation class.protected void configureImplementationImports()
addImplementationImport(FullyQualifiedJavaType)
one or more
times to add import(s) to generated DAO implementation classes.protected void configureInterfaceImports()
addInterfaceImport(FullyQualifiedJavaType)
one or more times
to add import(s) to generated DAO interface classes.protected void configureMethods()
addMethod(Method)
one or more times to add method(s) to generated DAO implementation
classes.protected void configureSuperClass()
setSuperClass(FullyQualifiedJavaType)
to set the superclass
for generated DAO implementation classes.protected abstract void configureConstructorTemplate()
setConstructorTemplate(Method)
to set the constructor
template.protected abstract void configureInsertMethodTemplate()
setInsertMethodTemplate(String)
protected abstract void configureQueryForListMethodTemplate()
setQueryForListMethodTemplate(String)
protected abstract void configureQueryForObjectMethodTemplate()
setQueryForObjectMethodTemplate(String)
protected abstract void configureUpdateMethodTemplate()
setUpdateMethodTemplate(String)
protected abstract void configureDeleteMethodTemplate()
setDeleteMethodTemplate(String)
Copyright © 2010–2018 MyBatis.org. All rights reserved.