|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ibatis.abator.internal.rules.AbatorRules
public abstract class AbatorRules
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 ColumnDefinitions |
columnDefinitions
|
protected TableConfiguration |
tableConfiguration
|
Constructor Summary | |
---|---|
AbatorRules(TableConfiguration tableConfiguration,
ColumnDefinitions columnDefinitions)
|
Method Summary | |
---|---|
FullyQualifiedJavaType |
calculateAllFieldsClass(JavaModelGenerator javaModelGenerator,
FullyQualifiedTable table)
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 |
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 with no super class. |
boolean |
generateInsert()
Implements the rule for generating the insert 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 |
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 ColumnDefinitions columnDefinitions
Constructor Detail |
---|
public AbatorRules(TableConfiguration tableConfiguration, ColumnDefinitions columnDefinitions)
Method Detail |
---|
public boolean generateInsert()
public FullyQualifiedJavaType calculateAllFieldsClass(JavaModelGenerator javaModelGenerator, FullyQualifiedTable table)
javaModelGenerator
- table
-
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 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 |