org.apache.ibatis.ibator.internal.rules
Class FlatModelRules

java.lang.Object
  extended by org.apache.ibatis.ibator.internal.rules.IbatorRules
      extended by org.apache.ibatis.ibator.internal.rules.FlatModelRules

public class FlatModelRules
extends IbatorRules

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.apache.ibatis.ibator.internal.rules.IbatorRules
introspectedTable, tableConfiguration
 
Constructor Summary
FlatModelRules(TableConfiguration tableConfiguration, IntrospectedTable introspectedTable)
           
 
Method Summary
 boolean generateBaseRecordClass()
          We always generate a base record in the flat model.
 boolean generatePrimaryKeyClass()
          We never generate a primary key in the flat model.
 boolean generateRecordWithBLOBsClass()
          We never generate a record with BLOBs class in the flat model.
 
Methods inherited from class org.apache.ibatis.ibator.internal.rules.IbatorRules
calculateAllFieldsClass, generateBaseResultMap, generateCountByExample, generateDeleteByExample, generateDeleteByPrimaryKey, generateExampleClass, generateInsert, generateInsertSelective, generateResultMapWithBLOBs, generateSelectByExampleWithBLOBs, generateSelectByExampleWithoutBLOBs, generateSelectByPrimaryKey, generateSQLExampleWhereClause, generateUpdateByExampleSelective, generateUpdateByExampleWithBLOBs, generateUpdateByExampleWithoutBLOBs, generateUpdateByPrimaryKeySelective, generateUpdateByPrimaryKeyWithBLOBs, generateUpdateByPrimaryKeyWithoutBLOBs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatModelRules

public FlatModelRules(TableConfiguration tableConfiguration,
                      IntrospectedTable introspectedTable)
Method Detail

generatePrimaryKeyClass

public boolean generatePrimaryKeyClass()
We never generate a primary key in the flat model.

Specified by:
generatePrimaryKeyClass in class IbatorRules
Returns:
true if the primary key should be generated

generateBaseRecordClass

public boolean generateBaseRecordClass()
We always generate a base record in the flat model.

Specified by:
generateBaseRecordClass in class IbatorRules
Returns:
true if the class should be generated

generateRecordWithBLOBsClass

public boolean generateRecordWithBLOBsClass()
We never generate a record with BLOBs class in the flat model.

Specified by:
generateRecordWithBLOBsClass in class IbatorRules
Returns:
true if the record with BLOBs class should be generated