Class FlatModelRules
java.lang.Object
org.mybatis.generator.internal.rules.BaseRules
org.mybatis.generator.internal.rules.FlatModelRules
- All Implemented Interfaces:
Rules
This class encapsulates all the code generation rules for a table using the
flat model.
- Author:
- Jeff Butler
-
Field Summary
Fields inherited from class org.mybatis.generator.internal.rules.BaseRules
introspectedTable, isModelOnly, tableConfiguration
-
Constructor Summary
ConstructorDescriptionFlatModelRules
(IntrospectedTable introspectedTable) Instantiates a new flat model rules. -
Method Summary
Modifier and TypeMethodDescriptionboolean
We always generate a base record in the flat model.boolean
We never generate a primary key in the flat model.boolean
We never generate a record with BLOBs class in the flat model.Methods inherited from class org.mybatis.generator.internal.rules.BaseRules
calculateAllFieldsClass, generateBaseColumnList, generateBaseResultMap, generateBlobColumnList, generateCountByExample, generateDeleteByExample, generateDeleteByPrimaryKey, generateExampleClass, generateInsert, generateInsertSelective, generateJavaClient, generateMyBatis3UpdateByExampleWhereClause, generateResultMapWithBLOBs, generateSelectByExampleWithBLOBs, generateSelectByExampleWithoutBLOBs, generateSelectByPrimaryKey, generateSQLExampleWhereClause, generateUpdateByExampleSelective, generateUpdateByExampleWithBLOBs, generateUpdateByExampleWithoutBLOBs, generateUpdateByPrimaryKeySelective, generateUpdateByPrimaryKeyWithBLOBs, generateUpdateByPrimaryKeyWithoutBLOBs, getIntrospectedTable
-
Constructor Details
-
FlatModelRules
Instantiates a new flat model rules.- Parameters:
introspectedTable
- the introspected table
-
-
Method Details
-
generatePrimaryKeyClass
public boolean generatePrimaryKeyClass()We never generate a primary key in the flat model.- Returns:
- true if the primary key should be generated
-
generateBaseRecordClass
public boolean generateBaseRecordClass()We always generate a base record in the flat model.- Returns:
- true if the class should be generated
-
generateRecordWithBLOBsClass
public boolean generateRecordWithBLOBsClass()We never generate a record with BLOBs class in the flat model.- Returns:
- true if the record with BLOBs class should be generated
-