org.mybatis.generator.internal.rules.Rules |
![]() |
This interface centralizes all the rules related to code generation - including the methods and objects to create, and certain attributes related to those objects.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Calculates the class that contains all fields.
| |||||||||||
Implements the rule for generating the SQL base column list element.
| |||||||||||
Implements the rule for generating a base record.
| |||||||||||
Implements the rule for generating the result map without BLOBs.
| |||||||||||
Implements the rule for generating the SQL blob column list element.
| |||||||||||
Implements the rule for generating the delete by example SQL Map element
and DAO method.
| |||||||||||
Implements the rule for generating the delete by primary key SQL Map
element and DAO method.
| |||||||||||
Implements the rule for generating an example class.
| |||||||||||
Implements the rule for generating the insert SQL Map element and DAO
method.
| |||||||||||
Implements the rule for generating the insert selective SQL Map element
and DAO method.
| |||||||||||
Implements the rule for generating the SQL example where clause element
specifically for use in the update by example methods.
| |||||||||||
Implements the rule for determining whether to generate a primary key
class.
| |||||||||||
Implements the rule for generating a record with BLOBs.
| |||||||||||
Implements the rule for generating the result map with BLOBs.
| |||||||||||
Implements the rule for generating the SQL example where clause element.
| |||||||||||
Implements the rule for generating the select by example with BLOBs SQL
Map element and DAO method.
| |||||||||||
Implements the rule for generating the select by example without BLOBs
SQL Map element and DAO method.
| |||||||||||
Implements the rule for generating the select by primary key SQL Map
element and DAO method.
| |||||||||||
Implements the rule for generating the update by primary key selective
SQL Map element and DAO method.
| |||||||||||
Implements the rule for generating the update by primary key with BLOBs
SQL Map element and DAO method.
| |||||||||||
Implements the rule for generating the update by primary key without
BLOBs SQL Map element and DAO method.
| |||||||||||
Calculates the class that contains all fields. This class is used as the insert statement parameter, as well as the returned value from the select by primary key method. The actual class depends on how the domain model is generated.
Implements the rule for generating the SQL base column list element. Generate the element if any of the select methods are enabled.
Implements the rule for generating a base record.
Implements the rule for generating the result map without BLOBs. If either select method is allowed, then generate the result map.
Implements the rule for generating the SQL blob column list element. Generate the element if any of the select methods are enabled, and the table contains BLOB columns.
Implements the rule for generating the delete by example SQL Map element and DAO method. If the deleteByExample statement is allowed, then generate the element and method.
Implements the rule for generating the delete by primary key SQL Map element and DAO method. If the table has a primary key, and the deleteByPrimaryKey statement is allowed, then generate the element and method.
Implements the rule for generating an example class. The class should be generated if the selectByExample or deleteByExample or countByExample methods are allowed.
Implements the rule for generating the insert SQL Map element and DAO method. If the insert statement is allowed, then generate the element and method.
Implements the rule for generating the insert selective SQL Map element and DAO method. If the insert statement is allowed, then generate the element and method.
Implements the rule for generating the SQL example where clause element specifically for use in the update by example methods. In iBATIS2, do not generate the element. In MyBatis, generate the element if the updateByExample statements are allowed.
Implements the rule for determining whether to generate a primary key class. If you return false from this method, and the table has primary key columns, then the primary key columns will be added to the base class.
Implements the rule for generating a record with BLOBs. If you return false from this method, and the table had BLOB columns, then the BLOB columns will be added to the base class.
Implements the rule for generating the result map with BLOBs. If the table has BLOB columns, and either select method is allowed, then generate the result map.
Implements the rule for generating the SQL example where clause element. In iBATIS2, generate the element if the selectByExample, deleteByExample, updateByExample, or countByExample statements are allowed. In MyBatis3, generate the element if the selectByExample, deleteByExample, or countByExample statements are allowed.
Implements the rule for generating the select by example with BLOBs SQL Map element and DAO method. If the table has BLOB fields and the selectByExample statement is allowed, then generate the element and method.
Implements the rule for generating the select by example without BLOBs SQL Map element and DAO method. If the selectByExample statement is allowed, then generate the element and method.
Implements the rule for generating the select by primary key SQL Map element and DAO method. If the table has a primary key as well as other fields, and the selectByPrimaryKey statement is allowed, then generate the element and method.
Implements the rule for generating the update by primary key selective SQL Map element and DAO method. If the table has a primary key as well as other fields, and the updateByPrimaryKey statement is allowed, then generate the element and method.
Implements the rule for generating the update by primary key with BLOBs SQL Map element and DAO method. If the table has a primary key as well as other BLOB fields, and the updateByPrimaryKey statement is allowed, then generate the element and method.
Implements the rule for generating the update by primary key without BLOBs SQL Map element and DAO method. If the table has a primary key as well as other non-BLOB fields, and the updateByPrimaryKey statement is allowed, then generate the element and method.