public class RulesDelegate extends Object implements Rules
public class MyPlugin extends PluginAdapter {
@Override
public void initialized(IntrospectedTable introspectedTable) {
MyRules myRules = new MyRules(introspectedTable.getRules());
introspectedTable.setRules(myRules);
}
}
public class MyRules extends RulesDelegate (
public MyRules(Rules rules) {
super(rules);
}
@Override
public boolean generateInsert() {
boolean rc = super.generateInsert();
if (rc) {
// Other plugins, and the default rules, enable generation
// of the insert method. We can decide to disable it here
// if needed.
}
return rc;
}
| Constructor and Description |
|---|
RulesDelegate(Rules rules) |
| Modifier and Type | Method and Description |
|---|---|
FullyQualifiedJavaType |
calculateAllFieldsClass()
Calculates the class that contains all fields.
|
boolean |
generateBaseColumnList()
Implements the rule for generating the SQL base column list element.
|
boolean |
generateBaseRecordClass()
Implements the rule for generating a base record.
|
boolean |
generateBaseResultMap()
Implements the rule for generating the result map without BLOBs.
|
boolean |
generateBlobColumnList()
Implements the rule for generating the SQL blob column list element.
|
boolean |
generateCountByExample() |
boolean |
generateDeleteByExample()
Implements the rule for generating the delete by example SQL Map element
and DAO method.
|
boolean |
generateDeleteByPrimaryKey()
Implements the rule for generating the delete by primary key SQL Map
element and DAO method.
|
boolean |
generateExampleClass()
Implements the rule for generating an example class.
|
boolean |
generateInsert()
Implements the rule for generating the insert SQL Map element and DAO
method.
|
boolean |
generateInsertSelective()
Implements the rule for generating the insert selective SQL Map element
and DAO method.
|
boolean |
generateJavaClient()
Implements the rule for generating a Java client.
|
boolean |
generateMyBatis3UpdateByExampleWhereClause()
Implements the rule for generating the SQL example where clause element
specifically for use in the update by example methods.
|
boolean |
generatePrimaryKeyClass()
Implements the rule for determining whether to generate a primary key
class.
|
boolean |
generateRecordWithBLOBsClass()
Implements the rule for generating a record with BLOBs.
|
boolean |
generateResultMapWithBLOBs()
Implements the rule for generating the result map with BLOBs.
|
boolean |
generateSelectByExampleWithBLOBs()
Implements the rule for generating the select by example with BLOBs SQL
Map element and DAO method.
|
boolean |
generateSelectByExampleWithoutBLOBs()
Implements the rule for generating the select by example without BLOBs
SQL Map element and DAO method.
|
boolean |
generateSelectByPrimaryKey()
Implements the rule for generating the select by primary key SQL Map
element and DAO method.
|
boolean |
generateSQLExampleWhereClause()
Implements the rule for generating the SQL example where clause element.
|
boolean |
generateUpdateByExampleSelective() |
boolean |
generateUpdateByExampleWithBLOBs() |
boolean |
generateUpdateByExampleWithoutBLOBs() |
boolean |
generateUpdateByPrimaryKeySelective()
Implements the rule for generating the update by primary key selective
SQL Map element and DAO method.
|
boolean |
generateUpdateByPrimaryKeyWithBLOBs()
Implements the rule for generating the update by primary key with BLOBs
SQL Map element and DAO method.
|
boolean |
generateUpdateByPrimaryKeyWithoutBLOBs()
Implements the rule for generating the update by primary key without
BLOBs SQL Map element and DAO method.
|
IntrospectedTable |
getIntrospectedTable() |
protected Rules rules
public RulesDelegate(Rules rules)
public FullyQualifiedJavaType calculateAllFieldsClass()
RulescalculateAllFieldsClass in interface Rulespublic boolean generateBaseRecordClass()
RulesgenerateBaseRecordClass in interface Rulespublic boolean generateBaseResultMap()
RulesgenerateBaseResultMap in interface Rulespublic boolean generateCountByExample()
generateCountByExample in interface Rulespublic boolean generateDeleteByExample()
RulesgenerateDeleteByExample in interface Rulespublic boolean generateDeleteByPrimaryKey()
RulesgenerateDeleteByPrimaryKey in interface Rulespublic boolean generateExampleClass()
RulesgenerateExampleClass in interface Rulespublic boolean generateInsert()
RulesgenerateInsert in interface Rulespublic boolean generateInsertSelective()
RulesgenerateInsertSelective in interface Rulespublic boolean generatePrimaryKeyClass()
RulesgeneratePrimaryKeyClass in interface Rulespublic boolean generateRecordWithBLOBsClass()
RulesgenerateRecordWithBLOBsClass in interface Rulespublic boolean generateResultMapWithBLOBs()
RulesgenerateResultMapWithBLOBs in interface Rulespublic boolean generateSelectByExampleWithBLOBs()
RulesgenerateSelectByExampleWithBLOBs in interface Rulespublic boolean generateSelectByExampleWithoutBLOBs()
RulesgenerateSelectByExampleWithoutBLOBs in interface Rulespublic boolean generateSelectByPrimaryKey()
RulesgenerateSelectByPrimaryKey in interface Rulespublic boolean generateSQLExampleWhereClause()
RulesgenerateSQLExampleWhereClause in interface Rulespublic boolean generateMyBatis3UpdateByExampleWhereClause()
RulesgenerateMyBatis3UpdateByExampleWhereClause in interface Rulespublic boolean generateUpdateByExampleSelective()
generateUpdateByExampleSelective in interface Rulespublic boolean generateUpdateByExampleWithBLOBs()
generateUpdateByExampleWithBLOBs in interface Rulespublic boolean generateUpdateByExampleWithoutBLOBs()
generateUpdateByExampleWithoutBLOBs in interface Rulespublic boolean generateUpdateByPrimaryKeySelective()
RulesgenerateUpdateByPrimaryKeySelective in interface Rulespublic boolean generateUpdateByPrimaryKeyWithBLOBs()
RulesgenerateUpdateByPrimaryKeyWithBLOBs in interface Rulespublic boolean generateUpdateByPrimaryKeyWithoutBLOBs()
RulesgenerateUpdateByPrimaryKeyWithoutBLOBs in interface Rulespublic IntrospectedTable getIntrospectedTable()
getIntrospectedTable in interface Rulespublic boolean generateBaseColumnList()
RulesgenerateBaseColumnList in interface Rulespublic boolean generateBlobColumnList()
RulesgenerateBlobColumnList in interface Rulespublic boolean generateJavaClient()
RulesgenerateJavaClient in interface RulesCopyright © 2006–2016 MyBatis.org. All rights reserved.