java.lang.Object | ||
↳ | org.mybatis.generator.codegen.ibatis2.dao.templates.AbstractDAOTemplate | |
↳ | org.mybatis.generator.codegen.ibatis2.dao.templates.GenericSIDAOTemplate |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Override this method to add checked exceptions to the throws clause of
any generated DAO method.
| |||||||||||
Override this method to configure a constructor for generated DAO
implementation classes.
| |||||||||||
Override this method to configure a delete method template.
| |||||||||||
Override this method to add fields to any generated DAO implementation
class.
| |||||||||||
Override this method to add imports to generated DAO implementation
classes.
| |||||||||||
Override this method to configure an insert method template.
| |||||||||||
Override this method to add methods to generated DAO implementation
classes.
| |||||||||||
Override this method to configure a queryForList method template.
| |||||||||||
Override this method to configure a queryForObject method template.
| |||||||||||
Override this method to configure an update method template.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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.
Override this method to configure a constructor for generated DAO
implementation classes. During code generation, we 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.
Override this method to configure a delete method template. A method template is a string with three substitution markers that we will fill in when generating code. The substitution markers will be:
setDeleteMethodTemplate(String)
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.
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.
Override this method to configure an insert method template. A method template is a string with three substitution markers that we will fill in when generating code. The substitution markers will be:
setInsertMethodTemplate(String)
Override this method to add methods to generated DAO implementation
classes. When overriding this method, call addMethod(Method)
one or more times to add method(s) to generated DAO implementation
classes.
Override this method to configure a queryForList method template. A method template is a string with three substitution markers that we will fill in when generating code. The substitution markers will be:
setQueryForListMethodTemplate(String)
Override this method to configure a queryForObject method template. A method template is a string with three substitution markers that we will fill in when generating code. The substitution markers will be:
setQueryForObjectMethodTemplate(String)
Override this method to configure an update method template. A method template is a string with three substitution markers that we will fill in when generating code. The substitution markers will be:
setUpdateMethodTemplate(String)