|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mybatis.generator.internal.rules.BaseRules
public abstract class BaseRules
This class centralizes all the rules related to code generation - including the methods and objects to create, and certain attributes related to those objects.
| Field Summary | |
|---|---|
protected IntrospectedTable |
introspectedTable
|
protected boolean |
isModelOnly
|
protected TableConfiguration |
tableConfiguration
|
| Constructor Summary | |
|---|---|
BaseRules(IntrospectedTable introspectedTable)
|
|
| Method Summary | |
|---|---|
FullyQualifiedJavaType |
calculateAllFieldsClass()
Calculates the class that contains all fields. |
boolean |
generateBaseColumnList()
Implements the rule for generating the SQL base column list element. |
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 |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mybatis.generator.internal.rules.Rules |
|---|
generateBaseRecordClass, generatePrimaryKeyClass, generateRecordWithBLOBsClass |
| Field Detail |
|---|
protected TableConfiguration tableConfiguration
protected IntrospectedTable introspectedTable
protected final boolean isModelOnly
| Constructor Detail |
|---|
public BaseRules(IntrospectedTable introspectedTable)
| Method Detail |
|---|
public boolean generateInsert()
generateInsert in interface Rulespublic boolean generateInsertSelective()
generateInsertSelective in interface Rulespublic FullyQualifiedJavaType calculateAllFieldsClass()
calculateAllFieldsClass in interface Rulespublic boolean generateUpdateByPrimaryKeyWithoutBLOBs()
generateUpdateByPrimaryKeyWithoutBLOBs in interface Rulespublic boolean generateUpdateByPrimaryKeyWithBLOBs()
generateUpdateByPrimaryKeyWithBLOBs in interface Rulespublic boolean generateUpdateByPrimaryKeySelective()
generateUpdateByPrimaryKeySelective in interface Rulespublic boolean generateDeleteByPrimaryKey()
generateDeleteByPrimaryKey in interface Rulespublic boolean generateDeleteByExample()
generateDeleteByExample in interface Rulespublic boolean generateBaseResultMap()
generateBaseResultMap in interface Rulespublic boolean generateResultMapWithBLOBs()
generateResultMapWithBLOBs in interface Rulespublic boolean generateSQLExampleWhereClause()
generateSQLExampleWhereClause in interface Rulespublic boolean generateMyBatis3UpdateByExampleWhereClause()
generateMyBatis3UpdateByExampleWhereClause in interface Rulespublic boolean generateSelectByPrimaryKey()
generateSelectByPrimaryKey in interface Rulespublic boolean generateSelectByExampleWithoutBLOBs()
generateSelectByExampleWithoutBLOBs in interface Rulespublic boolean generateSelectByExampleWithBLOBs()
generateSelectByExampleWithBLOBs in interface Rulespublic boolean generateExampleClass()
generateExampleClass in interface Rulespublic boolean generateCountByExample()
generateCountByExample in interface Rulespublic boolean generateUpdateByExampleSelective()
generateUpdateByExampleSelective in interface Rulespublic boolean generateUpdateByExampleWithoutBLOBs()
generateUpdateByExampleWithoutBLOBs in interface Rulespublic boolean generateUpdateByExampleWithBLOBs()
generateUpdateByExampleWithBLOBs in interface Rulespublic IntrospectedTable getIntrospectedTable()
getIntrospectedTable in interface Rulespublic boolean generateBaseColumnList()
Rules
generateBaseColumnList in interface Rulespublic boolean generateBlobColumnList()
Rules
generateBlobColumnList in interface Rulespublic boolean generateJavaClient()
Rules
generateJavaClient in interface Rules
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||