|
|||||||||||
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
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.
Method Summary | |
static boolean |
generateBaseRecordExtendingPrimaryKey(ColumnDefinitions columnDefinitions)
Implements the rule for generating a base record that extends the primary key. |
static boolean |
generateBaseRecordWithNoSuperclass(ColumnDefinitions columnDefinitions)
Implements the rule for generating a base record with no super class. |
static boolean |
generateDeleteByExample(TableConfiguration tc)
Implements the rule for generating the delete by example SQL Map element and DAO method. |
static boolean |
generateDeleteByPrimaryKey(ColumnDefinitions columnDefinitions,
TableConfiguration tc)
Implements the rule for generating the delete by primary key SQL Map element and DAO method. |
static boolean |
generateExampleExtendingBaseRecord(ColumnDefinitions columnDefinitions,
TableConfiguration tc)
Implements the rule for generating an example class extending the base record. |
static boolean |
generateExampleExtendingPrimaryKey(ColumnDefinitions columnDefinitions,
TableConfiguration tc)
Implements the rule for generating an example class extending the primary key. |
static boolean |
generateInsert(TableConfiguration tc)
Implements the rule for generating the insert SQL Map element and DAO method. |
static boolean |
generatePrimaryKey(ColumnDefinitions columnDefinitions)
Implements the rule for determining whether to generate a primary key class. |
static boolean |
generateRecordWithBLOBsExtendingBaseRecord(ColumnDefinitions columnDefinitions)
Implements the rule for generating a record with BLOBs class extending the base record class. |
static boolean |
generateRecordWithBLOBsExtendingPrimaryKey(ColumnDefinitions columnDefinitions)
Implements the rule for generating a record with BLOBs class extending the primary key class. |
static boolean |
generateResultMapWithBLOBs(ColumnDefinitions columnDefinitions,
TableConfiguration tc)
Implements the rule for generating the result map with BLOBs. |
static boolean |
generateResultMapWithoutBLOBs(TableConfiguration tc)
Implements the rule for generating the result map without BLOBs. |
static boolean |
generateSelectByExampleWithBLOBs(ColumnDefinitions columnDefinitions,
TableConfiguration tc)
Implements the rule for generating the select by example with BLOBs SQL Map element and DAO method. |
static boolean |
generateSelectByExampleWithoutBLOBs(TableConfiguration tc)
Implements the rule for generating the select by example without BLOBs SQL Map element and DAO method. |
static boolean |
generateSelectByPrimaryKey(ColumnDefinitions columnDefinitions,
TableConfiguration tc)
Implements the rule for generating the select by primary key SQL Map element and DAO method. |
static boolean |
generateSQLExampleWhereClause(TableConfiguration tc)
Implements the rule for generating the SQL example where clause element. |
static boolean |
generateUpdateByPrimaryKeyWithBLOBs(ColumnDefinitions columnDefinitions,
TableConfiguration tc)
Implements the rule for generating the update by primary key with BLOBs SQL Map element and DAO method. |
static boolean |
generateUpdateByPrimaryKeyWithoutBLOBs(ColumnDefinitions columnDefinitions,
TableConfiguration tc)
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 |
Method Detail |
public static boolean generatePrimaryKey(ColumnDefinitions columnDefinitions)
columnDefinitions
- the introspected table columns
public static boolean generateBaseRecordExtendingPrimaryKey(ColumnDefinitions columnDefinitions)
columnDefinitions
- the introspected table columns
public static boolean generateBaseRecordWithNoSuperclass(ColumnDefinitions columnDefinitions)
columnDefinitions
- the introspected table columns
public static boolean generateRecordWithBLOBsExtendingPrimaryKey(ColumnDefinitions columnDefinitions)
columnDefinitions
- the introspected table columns
public static boolean generateRecordWithBLOBsExtendingBaseRecord(ColumnDefinitions columnDefinitions)
columnDefinitions
- the introspected table columns
public static boolean generateExampleExtendingPrimaryKey(ColumnDefinitions columnDefinitions, TableConfiguration tc)
columnDefinitions
- the introspected table columnstc
- the table configuration object
public static boolean generateExampleExtendingBaseRecord(ColumnDefinitions columnDefinitions, TableConfiguration tc)
columnDefinitions
- the introspected table columnstc
- the table configuration object
public static boolean generateResultMapWithoutBLOBs(TableConfiguration tc)
tc
- the table configuration object
public static boolean generateResultMapWithBLOBs(ColumnDefinitions columnDefinitions, TableConfiguration tc)
columnDefinitions
- the introspected table columnstc
- the table configuration object
public static boolean generateSQLExampleWhereClause(TableConfiguration tc)
tc
- the table configuration object
public static boolean generateSelectByExampleWithoutBLOBs(TableConfiguration tc)
tc
- the table configuration object
public static boolean generateSelectByExampleWithBLOBs(ColumnDefinitions columnDefinitions, TableConfiguration tc)
columnDefinitions
- the introspected table columnstc
- the table configuration object
public static boolean generateSelectByPrimaryKey(ColumnDefinitions columnDefinitions, TableConfiguration tc)
columnDefinitions
- the introspected table columnstc
- the table configuration object
public static boolean generateInsert(TableConfiguration tc)
tc
- the table configuration object
public static boolean generateUpdateByPrimaryKeyWithoutBLOBs(ColumnDefinitions columnDefinitions, TableConfiguration tc)
columnDefinitions
- the introspected table columnstc
- the table configuration object
public static boolean generateUpdateByPrimaryKeyWithBLOBs(ColumnDefinitions columnDefinitions, TableConfiguration tc)
columnDefinitions
- the introspected table columnstc
- the table configuration object
public static boolean generateDeleteByPrimaryKey(ColumnDefinitions columnDefinitions, TableConfiguration tc)
columnDefinitions
- the introspected table columnstc
- the table configuration object
public static boolean generateDeleteByExample(TableConfiguration tc)
tc
- the table configuration object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |