|
||||||||||
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
public abstract class IbatorRules
This class centralizes all the rules related to code generation - including the methods and objects to create, and certain attributes related to those objects. See package JavaDoc for more information.
Field Summary | |
---|---|
protected IntrospectedTable |
introspectedTable
|
protected TableConfiguration |
tableConfiguration
|
Constructor Summary | |
---|---|
IbatorRules(TableConfiguration tableConfiguration,
IntrospectedTable introspectedTable)
|
Method Summary | |
---|---|
FullyQualifiedJavaType |
calculateAllFieldsClass()
Calculates the class that contains all fields. |
abstract boolean |
generateBaseRecordClass()
Implements the rule for generating a base record. |
boolean |
generateBaseResultMap()
Implements the rule for generating the result map without BLOBs. |
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. |
abstract boolean |
generatePrimaryKeyClass()
Implements the rule for determining whether to generate a primary key class. |
abstract 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TableConfiguration tableConfiguration
protected IntrospectedTable introspectedTable
Constructor Detail |
---|
public IbatorRules(TableConfiguration tableConfiguration, IntrospectedTable introspectedTable)
Method Detail |
---|
public boolean generateInsert()
public boolean generateInsertSelective()
public FullyQualifiedJavaType calculateAllFieldsClass()
public boolean generateUpdateByPrimaryKeyWithoutBLOBs()
public boolean generateUpdateByPrimaryKeyWithBLOBs()
public boolean generateUpdateByPrimaryKeySelective()
public boolean generateDeleteByPrimaryKey()
public boolean generateDeleteByExample()
public boolean generateBaseResultMap()
public boolean generateResultMapWithBLOBs()
public boolean generateSQLExampleWhereClause()
public boolean generateSelectByPrimaryKey()
public boolean generateSelectByExampleWithoutBLOBs()
public boolean generateSelectByExampleWithBLOBs()
public boolean generateExampleClass()
public boolean generateCountByExample()
public boolean generateUpdateByExampleSelective()
public boolean generateUpdateByExampleWithoutBLOBs()
public boolean generateUpdateByExampleWithBLOBs()
public abstract boolean generatePrimaryKeyClass()
public abstract boolean generateBaseRecordClass()
public abstract boolean generateRecordWithBLOBsClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |