|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ibatis.ibator.internal.rules.IbatorRules
org.apache.ibatis.ibator.internal.rules.ConditionalModelRules
public class ConditionalModelRules
This class encapsulates all the code generation rules for a table using the conditional model. In this model we do not generate primary key or record with BLOBs classes if the class would only hold one field.
| Field Summary |
|---|
| Fields inherited from class org.apache.ibatis.ibator.internal.rules.IbatorRules |
|---|
introspectedTable, tableConfiguration |
| Constructor Summary | |
|---|---|
ConditionalModelRules(TableConfiguration tableConfiguration,
IntrospectedTable introspectedTable)
|
|
| Method Summary | |
|---|---|
boolean |
generateBaseRecordClass()
Generate a base record if there are any base columns, or if there is only one primary key coulmn (in which case we will not generate a primary key class), or if there is only one BLOB column (in which case we will not generate a record with BLOBs class). |
boolean |
generatePrimaryKeyClass()
We generate a primary key if there is more than one primary key field. |
boolean |
generateRecordWithBLOBsClass()
We generate a record with BLOBs class if there is more than one BLOB column. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConditionalModelRules(TableConfiguration tableConfiguration,
IntrospectedTable introspectedTable)
| Method Detail |
|---|
public boolean generatePrimaryKeyClass()
generatePrimaryKeyClass in class IbatorRulespublic boolean generateBaseRecordClass()
generateBaseRecordClass in class IbatorRulespublic boolean generateRecordWithBLOBsClass()
generateRecordWithBLOBsClass in class IbatorRules
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||