svnno****@sourc*****
svnno****@sourc*****
2008年 11月 13日 (木) 15:31:45 JST
Revision: 1343 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=1343 Author: shinsuke Date: 2008-11-13 15:31:44 +0900 (Thu, 13 Nov 2008) Log Message: ----------- added gender, birthdate,nickname to userinfo. Modified Paths: -------------- timecard/trunk/src/main/config/erd/timecard.erd timecard/trunk/src/main/config/sql/timecard.ddl timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/AccessContext.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/DBFluteConfig.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/AbstractBehaviorReadable.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/load/LoadReferrerOption.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/setup/EntityListSetupper.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/AbstractConditionBean.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ConditionBean.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ConditionBeanContext.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ListResultBean.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/PagingResultBean.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ResultBeanBuilder.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingOption.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowEndDeterminer.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowResource.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowSetupper.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlBasicExecutor.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlCursorExecutor.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlEntityExecutor.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlPagingExecutor.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/AbstractSqlClause.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/OrderByClause.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/OrderByElement.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/AbstractDBMeta.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/DBMeta.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/DBMetaInstanceHandler.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/helper/token/line/impl/LineTokenImpl.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/jdbc/CursorHandler.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoLatestSqlProvider.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoMetaDataExtension.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoMetaDataFactoryImpl.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/rshandler/InternalBeanListMetaDataResultSetHandler.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/sqlhandler/InternalBasicHandler.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/sqllog/InternalSqlLogRegistry.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsDailyReportBhv.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsEmployeeBhv.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsGroupInfoBhv.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsMonthlyReportBhv.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsRoleInfoBhv.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsUserInfoBhv.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsDailyReportDao.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsEmployeeDao.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsGroupInfoDao.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsMonthlyReportDao.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsRoleInfoDao.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsUserInfoDao.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsDailyReport.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsEmployee.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsGroupInfo.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsMonthlyReport.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsRoleInfo.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsUserInfo.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/DailyReportDbm.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/EmployeeDbm.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/GroupInfoDbm.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/MonthlyReportDbm.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/RoleInfoDbm.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/UserInfoDbm.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsGroupInfoCB.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsRoleInfoCB.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsUserInfoCB.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsDailyReportCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsEmployeeCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsGroupInfoCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsMonthlyReportCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsRoleInfoCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsUserInfoCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsGroupInfoCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsRoleInfoCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsUserInfoCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/GroupInfoCIQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/RoleInfoCIQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/UserInfoCIQ.java timecard/trunk/src/main/webapp/WEB-INF/db/timecard.1.log.db timecard/trunk/src/main/webapp/WEB-INF/db/timecard.data.db timecard/trunk/src/main/webapp/WEB-INF/db/timecard.index.db Added Paths: ----------- timecard/trunk/mydbflute/README.txt timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/CallbackContext.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/jdbc/SqlLogHandler.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/valuetype/ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/valuetype/InternalBytesOidType.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsGroupMappingBhv.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsRoleMappingBhv.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsGroupMappingDao.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsRoleMappingDao.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsGroupMapping.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsRoleMapping.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/GroupMappingDbm.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/RoleMappingDbm.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/GroupMappingCB.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/RoleMappingCB.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsGroupMappingCB.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsRoleMappingCB.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/GroupMappingCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/RoleMappingCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsGroupMappingCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsRoleMappingCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsGroupMappingCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsRoleMappingCQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/GroupMappingCIQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/RoleMappingCIQ.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/nss/GroupMappingNss.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/nss/RoleMappingNss.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exbhv/GroupMappingBhv.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exbhv/RoleMappingBhv.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exdao/GroupMappingDao.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exdao/RoleMappingDao.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exentity/GroupMapping.java timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exentity/RoleMapping.java -------------- next part -------------- Added: timecard/trunk/mydbflute/README.txt =================================================================== --- timecard/trunk/mydbflute/README.txt (rev 0) +++ timecard/trunk/mydbflute/README.txt 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,3 @@ +$ mkdir dbflute-0.8.2 +$ cd dbflute-0.8.2 +$ unzip ../dbflute-0.8.2.zip Property changes on: timecard/trunk/mydbflute/README.txt ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/config/erd/timecard.erd =================================================================== --- timecard/trunk/src/main/config/erd/timecard.erd 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/config/erd/timecard.erd 2008-11-13 06:31:44 UTC (rev 1343) @@ -271,8 +271,8 @@ </columns> <indices/> <constraint> - <x>48</x> - <y>465</y> + <x>280</x> + <y>484</y> <width>-1</width> <height>-1</height> </constraint> @@ -448,8 +448,8 @@ </columns> <indices/> <constraint> - <x>500</x> - <y>537</y> + <x>292</x> + <y>966</y> <width>-1</width> <height>-1</height> </constraint> @@ -547,6 +547,49 @@ <defaultValue></defaultValue> </net.java.amateras.db.visual.model.ColumnModel> <net.java.amateras.db.visual.model.ColumnModel> + <columnName>nickname</columnName> + <logicalName>Nickname</logicalName> + <columnType class="net.java.amateras.db.dialect.ColumnType"> + <name>VARCHAR</name> + <logicalName>String</logicalName> + <supportSize>true</supportSize> + <type>12</type> + </columnType> + <size>100</size> + <notNull>false</notNull> + <primaryKey>false</primaryKey> + <description></description> + <autoIncrement>false</autoIncrement> + <defaultValue></defaultValue> + </net.java.amateras.db.visual.model.ColumnModel> + <net.java.amateras.db.visual.model.ColumnModel> + <columnName>gender</columnName> + <logicalName>Gender</logicalName> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../net.java.amateras.db.visual.model.ColumnModel[7]/columnType"/> + <size>1</size> + <notNull>false</notNull> + <primaryKey>false</primaryKey> + <description></description> + <autoIncrement>false</autoIncrement> + <defaultValue></defaultValue> + </net.java.amateras.db.visual.model.ColumnModel> + <net.java.amateras.db.visual.model.ColumnModel> + <columnName>birth_date</columnName> + <logicalName>Birth Date</logicalName> + <columnType class="net.java.amateras.db.dialect.ColumnType"> + <name>DATE</name> + <logicalName>Date</logicalName> + <supportSize>false</supportSize> + <type>91</type> + </columnType> + <size>10</size> + <notNull>false</notNull> + <primaryKey>false</primaryKey> + <description></description> + <autoIncrement>false</autoIncrement> + <defaultValue></defaultValue> + </net.java.amateras.db.visual.model.ColumnModel> + <net.java.amateras.db.visual.model.ColumnModel> <columnName>email</columnName> <logicalName>Email</logicalName> <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../net.java.amateras.db.visual.model.ColumnModel[2]/columnType"/> @@ -636,7 +679,7 @@ <net.java.amateras.db.visual.model.ColumnModel> <columnName>updated_time</columnName> <logicalName>Updated Time</logicalName> - <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../net.java.amateras.db.visual.model.ColumnModel[12]/columnType"/> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../net.java.amateras.db.visual.model.ColumnModel[15]/columnType"/> <size>10</size> <notNull>true</notNull> <primaryKey>false</primaryKey> @@ -658,7 +701,7 @@ <net.java.amateras.db.visual.model.ColumnModel> <columnName>deleted_time</columnName> <logicalName>Deleted Time</logicalName> - <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../net.java.amateras.db.visual.model.ColumnModel[12]/columnType"/> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../net.java.amateras.db.visual.model.ColumnModel[15]/columnType"/> <size>10</size> <notNull>false</notNull> <primaryKey>false</primaryKey> @@ -696,8 +739,8 @@ </columns> <indices/> <constraint> - <x>507</x> - <y>106</y> + <x>276</x> + <y>1296</y> <width>-1</width> <height>-1</height> </constraint> @@ -717,7 +760,7 @@ <autoIncrement>false</autoIncrement> <defaultValue></defaultValue> </net.java.amateras.db.visual.model.ColumnModel> - <net.java.amateras.db.visual.model.ColumnModel reference="../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[11]"/> + <net.java.amateras.db.visual.model.ColumnModel reference="../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[14]"/> </entry> </references> <source class="net.java.amateras.db.visual.model.TableModel" reference="../../.."/> @@ -787,7 +830,7 @@ <net.java.amateras.db.visual.model.ColumnModel> <columnName>created_time</columnName> <logicalName>Created Time</logicalName> - <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[12]/columnType"/> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[15]/columnType"/> <size>10</size> <notNull>true</notNull> <primaryKey>false</primaryKey> @@ -809,7 +852,7 @@ <net.java.amateras.db.visual.model.ColumnModel> <columnName>updated_time</columnName> <logicalName>Updated Time</logicalName> - <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[12]/columnType"/> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[15]/columnType"/> <size>10</size> <notNull>true</notNull> <primaryKey>false</primaryKey> @@ -831,7 +874,7 @@ <net.java.amateras.db.visual.model.ColumnModel> <columnName>deleted_time</columnName> <logicalName>Deleted Time</logicalName> - <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[12]/columnType"/> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[15]/columnType"/> <size>10</size> <notNull>false</notNull> <primaryKey>false</primaryKey> @@ -853,7 +896,7 @@ <net.java.amateras.db.visual.model.ColumnModel> <columnName>versionNo</columnName> <logicalName>Version No.</logicalName> - <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[18]/columnType"/> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[21]/columnType"/> <size>10</size> <notNull>true</notNull> <primaryKey>false</primaryKey> @@ -864,14 +907,125 @@ </columns> <indices/> <constraint> - <x>854</x> - <y>79</y> + <x>40</x> + <y>1797</y> <width>-1</width> <height>-1</height> </constraint> <sourceConnections/> <targetConnections> <net.java.amateras.db.visual.model.ForeignKeyModel reference="../../.."/> + <net.java.amateras.db.visual.model.ForeignKeyModel> + <foreignKeyName>FK_from_mapping_to_group</foreignKeyName> + <references> + <entry> + <net.java.amateras.db.visual.model.ColumnModel reference="../../../../../../references/entry/net.java.amateras.db.visual.model.ColumnModel"/> + <net.java.amateras.db.visual.model.ColumnModel> + <columnName>group_id</columnName> + <logicalName>Group ID</logicalName> + <columnType class="net.java.amateras.db.dialect.ColumnType"> + <name>VARCHAR</name> + <logicalName>String</logicalName> + <supportSize>true</supportSize> + <type>12</type> + </columnType> + <size>255</size> + <notNull>true</notNull> + <primaryKey>false</primaryKey> + <description></description> + <autoIncrement>false</autoIncrement> + <defaultValue></defaultValue> + </net.java.amateras.db.visual.model.ColumnModel> + </entry> + </references> + <source class="net.java.amateras.db.visual.model.TableModel"> + <error></error> + <linkedPath></linkedPath> + <tableName>group_mapping</tableName> + <logicalName>Group Mapping</logicalName> + <description></description> + <columns> + <net.java.amateras.db.visual.model.ColumnModel> + <columnName>id</columnName> + <logicalName>ID</logicalName> + <columnType class="net.java.amateras.db.dialect.ColumnType"> + <name>INTEGER</name> + <logicalName>Integer</logicalName> + <supportSize>false</supportSize> + <type>4</type> + </columnType> + <size>10</size> + <notNull>true</notNull> + <primaryKey>true</primaryKey> + <description></description> + <autoIncrement>true</autoIncrement> + <defaultValue></defaultValue> + </net.java.amateras.db.visual.model.ColumnModel> + <net.java.amateras.db.visual.model.ColumnModel> + <columnName>user_id</columnName> + <logicalName>User ID</logicalName> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../references/entry/net.java.amateras.db.visual.model.ColumnModel[2]/columnType"/> + <size>255</size> + <notNull>true</notNull> + <primaryKey>false</primaryKey> + <description></description> + <autoIncrement>false</autoIncrement> + <defaultValue></defaultValue> + </net.java.amateras.db.visual.model.ColumnModel> + <net.java.amateras.db.visual.model.ColumnModel reference="../../../references/entry/net.java.amateras.db.visual.model.ColumnModel[2]"/> + </columns> + <indices/> + <constraint> + <x>56</x> + <y>966</y> + <width>-1</width> + <height>-1</height> + </constraint> + <sourceConnections> + <net.java.amateras.db.visual.model.ForeignKeyModel> + <foreignKeyName>FK_from_mapping_to_user</foreignKeyName> + <references> + <entry> + <net.java.amateras.db.visual.model.ColumnModel reference="../../../../../../../../../../../../references/entry/net.java.amateras.db.visual.model.ColumnModel"/> + <net.java.amateras.db.visual.model.ColumnModel reference="../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[2]"/> + </entry> + </references> + <source class="net.java.amateras.db.visual.model.TableModel" reference="../../.."/> + <target class="net.java.amateras.db.visual.model.TableModel" reference="../../../../../../../../.."/> + <listeners serialization="custom"> + <java.beans.PropertyChangeSupport> + <default> + <propertyChangeSupportSerializedDataVersion>2</propertyChangeSupportSerializedDataVersion> + <source class="net.java.amateras.db.visual.model.ForeignKeyModel" reference="../../../.."/> + </default> + <null/> + </java.beans.PropertyChangeSupport> + </listeners> + </net.java.amateras.db.visual.model.ForeignKeyModel> + <net.java.amateras.db.visual.model.ForeignKeyModel reference="../../.."/> + </sourceConnections> + <targetConnections/> + <listeners serialization="custom"> + <java.beans.PropertyChangeSupport> + <default> + <propertyChangeSupportSerializedDataVersion>2</propertyChangeSupportSerializedDataVersion> + <source class="net.java.amateras.db.visual.model.TableModel" reference="../../../.."/> + </default> + <null/> + </java.beans.PropertyChangeSupport> + </listeners> + </source> + <target class="net.java.amateras.db.visual.model.TableModel" reference="../../.."/> + <listeners serialization="custom"> + <java.beans.PropertyChangeSupport> + <default> + <propertyChangeSupportSerializedDataVersion>2</propertyChangeSupportSerializedDataVersion> + <source class="net.java.amateras.db.visual.model.ForeignKeyModel" reference="../../../.."/> + </default> + <null/> + </java.beans.PropertyChangeSupport> + </listeners> + </net.java.amateras.db.visual.model.ForeignKeyModel> </targetConnections> <listeners serialization="custom"> <java.beans.PropertyChangeSupport> @@ -908,7 +1062,7 @@ <autoIncrement>false</autoIncrement> <defaultValue></defaultValue> </net.java.amateras.db.visual.model.ColumnModel> - <net.java.amateras.db.visual.model.ColumnModel reference="../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[10]"/> + <net.java.amateras.db.visual.model.ColumnModel reference="../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[13]"/> </entry> </references> <source class="net.java.amateras.db.visual.model.TableModel" reference="../../.."/> @@ -978,7 +1132,7 @@ <net.java.amateras.db.visual.model.ColumnModel> <columnName>created_time</columnName> <logicalName>Created Time</logicalName> - <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[12]/columnType"/> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[15]/columnType"/> <size>10</size> <notNull>true</notNull> <primaryKey>false</primaryKey> @@ -1000,7 +1154,7 @@ <net.java.amateras.db.visual.model.ColumnModel> <columnName>updated_time</columnName> <logicalName>Updated Time</logicalName> - <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[12]/columnType"/> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[15]/columnType"/> <size>10</size> <notNull>true</notNull> <primaryKey>false</primaryKey> @@ -1022,7 +1176,7 @@ <net.java.amateras.db.visual.model.ColumnModel> <columnName>deleted_time</columnName> <logicalName>Deleted Time</logicalName> - <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[12]/columnType"/> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[15]/columnType"/> <size>10</size> <notNull>false</notNull> <primaryKey>false</primaryKey> @@ -1044,7 +1198,7 @@ <net.java.amateras.db.visual.model.ColumnModel> <columnName>versionNo</columnName> <logicalName>Version No.</logicalName> - <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[18]/columnType"/> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[21]/columnType"/> <size>10</size> <notNull>true</notNull> <primaryKey>false</primaryKey> @@ -1055,14 +1209,120 @@ </columns> <indices/> <constraint> - <x>851</x> - <y>449</y> + <x>542</x> + <y>1797</y> <width>-1</width> <height>-1</height> </constraint> <sourceConnections/> <targetConnections> <net.java.amateras.db.visual.model.ForeignKeyModel reference="../../.."/> + <net.java.amateras.db.visual.model.ForeignKeyModel> + <foreignKeyName>FK_from_mapping_to_role</foreignKeyName> + <references> + <entry> + <net.java.amateras.db.visual.model.ColumnModel reference="../../../../../../references/entry/net.java.amateras.db.visual.model.ColumnModel"/> + <net.java.amateras.db.visual.model.ColumnModel> + <columnName>role_id</columnName> + <logicalName>Role ID</logicalName> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../../../net.java.amateras.db.visual.model.ForeignKeyModel/target/targetConnections/net.java.amateras.db.visual.model.ForeignKeyModel[2]/references/entry/net.java.amateras.db.visual.model.ColumnModel[2]/columnType"/> + <size>255</size> + <notNull>true</notNull> + <primaryKey>false</primaryKey> + <description></description> + <autoIncrement>false</autoIncrement> + <defaultValue></defaultValue> + </net.java.amateras.db.visual.model.ColumnModel> + </entry> + </references> + <source class="net.java.amateras.db.visual.model.TableModel"> + <error></error> + <linkedPath></linkedPath> + <tableName>role_mapping</tableName> + <logicalName>Role Mapping</logicalName> + <description></description> + <columns> + <net.java.amateras.db.visual.model.ColumnModel> + <columnName>id</columnName> + <logicalName>ID</logicalName> + <columnType class="net.java.amateras.db.dialect.ColumnType"> + <name>INT</name> + <logicalName>Integer</logicalName> + <supportSize>false</supportSize> + <type>4</type> + </columnType> + <size>10</size> + <notNull>true</notNull> + <primaryKey>true</primaryKey> + <description></description> + <autoIncrement>true</autoIncrement> + <defaultValue></defaultValue> + </net.java.amateras.db.visual.model.ColumnModel> + <net.java.amateras.db.visual.model.ColumnModel> + <columnName>user_id</columnName> + <logicalName>User ID</logicalName> + <columnType class="net.java.amateras.db.dialect.ColumnType" reference="../../../../../../../../net.java.amateras.db.visual.model.ForeignKeyModel/target/targetConnections/net.java.amateras.db.visual.model.ForeignKeyModel[2]/references/entry/net.java.amateras.db.visual.model.ColumnModel[2]/columnType"/> + <size>255</size> + <notNull>true</notNull> + <primaryKey>false</primaryKey> + <description></description> + <autoIncrement>false</autoIncrement> + <defaultValue></defaultValue> + </net.java.amateras.db.visual.model.ColumnModel> + <net.java.amateras.db.visual.model.ColumnModel reference="../../../references/entry/net.java.amateras.db.visual.model.ColumnModel[2]"/> + </columns> + <indices/> + <constraint> + <x>563</x> + <y>966</y> + <width>-1</width> + <height>-1</height> + </constraint> + <sourceConnections> + <net.java.amateras.db.visual.model.ForeignKeyModel> + <foreignKeyName>FK_from_mapping_to_user</foreignKeyName> + <references> + <entry> + <net.java.amateras.db.visual.model.ColumnModel reference="../../../../../../../../../../../../references/entry/net.java.amateras.db.visual.model.ColumnModel"/> + <net.java.amateras.db.visual.model.ColumnModel reference="../../../../../columns/net.java.amateras.db.visual.model.ColumnModel[2]"/> + </entry> + </references> + <source class="net.java.amateras.db.visual.model.TableModel" reference="../../.."/> + <target class="net.java.amateras.db.visual.model.TableModel" reference="../../../../../../../../.."/> + <listeners serialization="custom"> + <java.beans.PropertyChangeSupport> + <default> + <propertyChangeSupportSerializedDataVersion>2</propertyChangeSupportSerializedDataVersion> + <source class="net.java.amateras.db.visual.model.ForeignKeyModel" reference="../../../.."/> + </default> + <null/> + </java.beans.PropertyChangeSupport> + </listeners> + </net.java.amateras.db.visual.model.ForeignKeyModel> + <net.java.amateras.db.visual.model.ForeignKeyModel reference="../../.."/> + </sourceConnections> + <targetConnections/> + <listeners serialization="custom"> + <java.beans.PropertyChangeSupport> + <default> + <propertyChangeSupportSerializedDataVersion>2</propertyChangeSupportSerializedDataVersion> + <source class="net.java.amateras.db.visual.model.TableModel" reference="../../../.."/> + </default> + <null/> + </java.beans.PropertyChangeSupport> + </listeners> + </source> + <target class="net.java.amateras.db.visual.model.TableModel" reference="../../.."/> + <listeners serialization="custom"> + <java.beans.PropertyChangeSupport> + <default> + <propertyChangeSupportSerializedDataVersion>2</propertyChangeSupportSerializedDataVersion> + <source class="net.java.amateras.db.visual.model.ForeignKeyModel" reference="../../../.."/> + </default> + <null/> + </java.beans.PropertyChangeSupport> + </listeners> + </net.java.amateras.db.visual.model.ForeignKeyModel> </targetConnections> <listeners serialization="custom"> <java.beans.PropertyChangeSupport> @@ -1107,6 +1367,8 @@ </java.beans.PropertyChangeSupport> </listeners> </net.java.amateras.db.visual.model.ForeignKeyModel> + <net.java.amateras.db.visual.model.ForeignKeyModel reference="../../sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel[2]/target/targetConnections/net.java.amateras.db.visual.model.ForeignKeyModel[2]/source/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel"/> + <net.java.amateras.db.visual.model.ForeignKeyModel reference="../../sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/targetConnections/net.java.amateras.db.visual.model.ForeignKeyModel[2]/source/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel"/> </targetConnections> <listeners serialization="custom"> <java.beans.PropertyChangeSupport> @@ -1396,7 +1658,7 @@ </columns> <indices/> <constraint> - <x>40</x> + <x>267</x> <y>40</y> <width>-1</width> <height>-1</height> @@ -1442,6 +1704,8 @@ <net.java.amateras.db.visual.model.TableModel reference="../net.java.amateras.db.visual.model.TableModel/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target"/> <net.java.amateras.db.visual.model.TableModel reference="../net.java.amateras.db.visual.model.TableModel/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target"/> <net.java.amateras.db.visual.model.TableModel reference="../net.java.amateras.db.visual.model.TableModel/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel[2]/target"/> + <net.java.amateras.db.visual.model.TableModel reference="../net.java.amateras.db.visual.model.TableModel/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/targetConnections/net.java.amateras.db.visual.model.ForeignKeyModel[2]/source"/> + <net.java.amateras.db.visual.model.TableModel reference="../net.java.amateras.db.visual.model.TableModel/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel/target/sourceConnections/net.java.amateras.db.visual.model.ForeignKeyModel[2]/target/targetConnections/net.java.amateras.db.visual.model.ForeignKeyModel[2]/source"/> </children> <dommains/> <dialectName>hsqldb</dialectName> @@ -1463,4 +1727,4 @@ <null/> </java.beans.PropertyChangeSupport> </listeners> -</net.java.amateras.db.visual.model.RootModel> \ No newline at end of file +</net.java.amateras.db.visual.model.RootModel> Modified: timecard/trunk/src/main/config/sql/timecard.ddl =================================================================== --- timecard/trunk/src/main/config/sql/timecard.ddl 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/config/sql/timecard.ddl 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,3 +1,5 @@ +DROP TABLE role_mapping; +DROP TABLE group_mapping; DROP TABLE daily_report; DROP TABLE monthly_report; DROP TABLE employee; @@ -53,6 +55,9 @@ middle_name VARCHAR(50), given_name_desc VARCHAR(100), family_name_desc VARCHAR(100), + nickname VARCHAR(100), + gender VARCHAR(1), + birth_date DATE, email VARCHAR(255), url VARCHAR(255), telephone VARCHAR(40), @@ -141,3 +146,25 @@ FOREIGN KEY (monthly_report_id) REFERENCES monthly_report (id) ); +/********************************** +Table Name: Group Mapping +**********************************/ +CREATE TABLE group_mapping( + id INTEGER NOT NULL IDENTITY PRIMARY KEY, + user_id VARCHAR(255) NOT NULL, + group_id VARCHAR(255) NOT NULL, + FOREIGN KEY (user_id) REFERENCES user_info (user_id), + FOREIGN KEY (group_id) REFERENCES group_info (group_id) +); + +/********************************** +Table Name: Role Mapping +**********************************/ +CREATE TABLE role_mapping( + id INT NOT NULL IDENTITY PRIMARY KEY, + user_id VARCHAR(255) NOT NULL, + role_id VARCHAR(255) NOT NULL, + FOREIGN KEY (user_id) REFERENCES user_info (user_id), + FOREIGN KEY (role_id) REFERENCES role_info (role_id) +); + Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/AccessContext.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/AccessContext.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/AccessContext.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -4,12 +4,7 @@ import java.util.Map; /** - * Access-Context. - * <p> - * This access-context on the thread should be initialized at the beginning of - * access. The access is various. Web-Access, Batch-Access, JUnit-Access and so - * on... - * </p> + * The context of DB access. * * @author DBFlute(AutoGenerator) */ @@ -20,28 +15,28 @@ // Thread Local // ============ /** The thread-local for this. */ - private static final ThreadLocal<AccessContext> threadLocal = new ThreadLocal<AccessContext>(); + private static final ThreadLocal<AccessContext> _threadLocal = new ThreadLocal<AccessContext>(); /** * Get access-context on thread. * - * @return Access-context. (Nullable) + * @return The context of DB access.. (Nullable) */ public static AccessContext getAccessContextOnThread() { - return (AccessContext) threadLocal.get(); + return (AccessContext) _threadLocal.get(); } /** * Set access-context on thread. * - * @param accessContext Access-context. (NotNull) + * @param accessContext The context of DB access.. (NotNull) */ public static void setAccessContextOnThread(AccessContext accessContext) { if (accessContext == null) { String msg = "The argument[accessContext] must not be null."; throw new IllegalArgumentException(msg); } - threadLocal.set(accessContext); + _threadLocal.set(accessContext); } /** @@ -50,14 +45,14 @@ * @return Determination. */ public static boolean isExistAccessContextOnThread() { - return (threadLocal.get() != null); + return (_threadLocal.get() != null); } /** * Clear access-context on thread. */ public static void clearAccessContextOnThread() { - threadLocal.set(null); + _threadLocal.set(null); } //========================================================================== Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/CallbackContext.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/CallbackContext.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/CallbackContext.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,75 @@ +package jp.sf.pal.timecard.db.allcommon; + +import jp.sf.pal.timecard.db.allcommon.jdbc.SqlLogHandler; + +/** + * The context of callback. + * + * @author DBFlute(AutoGenerator) + */ +public class CallbackContext { + + //========================================================================== + // ========= + // Thread Local + // ============ + /** The thread-local for this. */ + private static final ThreadLocal<CallbackContext> _threadLocal = new ThreadLocal<CallbackContext>(); + + /** + * Get callback-context on thread. + * + * @return The context of callback. (Nullable) + */ + public static CallbackContext getCallbackContextOnThread() { + return (CallbackContext) _threadLocal.get(); + } + + /** + * Set callback-context on thread. + * + * @param callbackContext The context of callback. (NotNull) + */ + public static void setCallbackContextOnThread( + CallbackContext callbackContext) { + if (callbackContext == null) { + String msg = "The argument[callbackContext] must not be null."; + throw new IllegalArgumentException(msg); + } + _threadLocal.set(callbackContext); + } + + /** + * Is existing callback-context on thread? + * + * @return Determination. + */ + public static boolean isExistCallbackContextOnThread() { + return (_threadLocal.get() != null); + } + + /** + * Clear callback-context on thread. + */ + public static void clearCallbackContextOnThread() { + _threadLocal.set(null); + } + + //========================================================================== + // ========= + // Attribute + // ========= + protected SqlLogHandler _sqlLogHandler; + + //========================================================================== + // ========= + // Accessor + // ======== + public SqlLogHandler getSqlLogHandler() { + return _sqlLogHandler; + } + + public void setSqlLogHandler(SqlLogHandler sqlLogHandler) { + this._sqlLogHandler = sqlLogHandler; + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/CallbackContext.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/DBFluteConfig.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/DBFluteConfig.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/DBFluteConfig.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -32,6 +32,8 @@ protected boolean _executeStatusLogLevelInfo; + protected boolean _useSqlLogRegistry; + protected UniqueConstraintDeterminator _uniqueConstraintDeterminator; protected boolean _sqlExceptionOldStyleHandling = false;// This is for @@ -142,6 +144,23 @@ _executeStatusLogLevelInfo = executeStatusLogLevelInfo; } + // [DBFlute-0.8.2] + //========================================================================== + // ========= + // Sql Log Registry + // ================ + public boolean isUseSqlLogRegistry() { + return _useSqlLogRegistry; + } + + public void setUseSqlLogRegistry(boolean useSqlLogRegistry) { + assertNotLocked(); + if (_log.isInfoEnabled()) { + _log.info("...Setting useSqlLogRegistry: " + useSqlLogRegistry); + } + _useSqlLogRegistry = useSqlLogRegistry; + } + // [DBFlute-0.7.7] //========================================================================== // ========= @@ -282,11 +301,12 @@ // ========= // Config Clear // ============ - public void clear() { + public void clear() { // the only properties that update OK while executing _defaultStatementConfig = null; - _conditionBeanFormatSql = true; + _conditionBeanFormatSql = true; // as default _queryLogLevelInfo = false; _executeStatusLogLevelInfo = false; + _useSqlLogRegistry = false; _logDateFormat = null; _logTimestampFormat = null; _internalDebug = false; Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/AbstractBehaviorReadable.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/AbstractBehaviorReadable.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/AbstractBehaviorReadable.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -32,6 +32,7 @@ import jp.sf.pal.timecard.db.allcommon.helper.token.file.FileMakingOption; import jp.sf.pal.timecard.db.allcommon.helper.token.file.FileMakingSimpleFacade; import jp.sf.pal.timecard.db.allcommon.helper.token.file.impl.FileMakingSimpleFacadeImpl; +import jp.sf.pal.timecard.db.allcommon.util.SimpleSystemUtil; /** * The abstract class of behavior-readable. @@ -416,7 +417,7 @@ } /** - * Help load referrer internally. About internal policy, the value of + * Do help load referrer internally. About internal policy, the value of * primary key(and others too) is treated as CaseInsensitive. * * @param <LOCAL_ENTITY> The type of base entity. @@ -445,14 +446,15 @@ // - - - - - - - - - - - - - - // Prepare temporary container // - - - - - - - - - - - - - - - final Map<PK, LOCAL_ENTITY> pkBaseEntityMap = new LinkedHashMap<PK, LOCAL_ENTITY>(); - final List<PK> pkList = new java.util.ArrayList<PK>(); + final Map<PK, LOCAL_ENTITY> pkLocalEntityMap = new LinkedHashMap<PK, LOCAL_ENTITY>(); + final List<PK> pkList = new ArrayList<PK>(); for (LOCAL_ENTITY localEntity : localEntityList) { final PK primaryKeyValue = callback .callbackBase_getPrimaryKeyValue(localEntity); pkList.add(callback.callbackBase_getPrimaryKeyValue(localEntity)); - pkBaseEntityMap.put(toLowerCasePrimaryKeyIfString(primaryKeyValue), - localEntity); + pkLocalEntityMap + .put(toLowerCasePrimaryKeyIfString(primaryKeyValue), + localEntity); } // - - - - - - - - - - - - - - - - @@ -484,7 +486,7 @@ // - - - - - - - - - - - - - - - - - - - - - - - - // Create the map of {primary key / referrer list} // - - - - - - - - - - - - - - - - - - - - - - - - - final Map<PK, List<REFERRER_ENTITY>> pkReffererListMap = new LinkedHashMap<PK, List<REFERRER_ENTITY>>(); + final Map<PK, List<REFERRER_ENTITY>> pkReferrerListMap = new LinkedHashMap<PK, List<REFERRER_ENTITY>>(); for (REFERRER_ENTITY referrerEntity : referrerList) { final PK referrerListKey; { @@ -492,14 +494,14 @@ .callbackReferrer_getForeignKeyValue(referrerEntity); referrerListKey = toLowerCasePrimaryKeyIfString(foreignKeyValue); } - if (!pkReffererListMap.containsKey(referrerListKey)) { - pkReffererListMap.put(referrerListKey, - new java.util.ArrayList<REFERRER_ENTITY>()); + if (!pkReferrerListMap.containsKey(referrerListKey)) { + pkReferrerListMap.put(referrerListKey, + new ArrayList<REFERRER_ENTITY>()); } - (pkReffererListMap.get(referrerListKey)).add(referrerEntity); + (pkReferrerListMap.get(referrerListKey)).add(referrerEntity); // for Reverse Reference. - final LOCAL_ENTITY localEntity = pkBaseEntityMap + final LOCAL_ENTITY localEntity = pkLocalEntityMap .get(referrerListKey); callback.callbackReferrer_setForeignEntity(referrerEntity, localEntity); @@ -515,12 +517,12 @@ .callbackBase_getPrimaryKeyValue(localEntity); referrerListKey = toLowerCasePrimaryKeyIfString(primaryKey); } - if (pkReffererListMap.containsKey(referrerListKey)) { + if (pkReferrerListMap.containsKey(referrerListKey)) { callback.callbackBase_setReferrerList(localEntity, - pkReffererListMap.get(referrerListKey)); + pkReferrerListMap.get(referrerListKey)); } else { callback.callbackBase_setReferrerList(localEntity, - new java.util.ArrayList<REFERRER_ENTITY>()); + new ArrayList<REFERRER_ENTITY>()); } } } @@ -539,17 +541,6 @@ /** * @param <LOCAL_ENTITY> The type of base entity. * @param <PK> The type of primary key. - * @param <REFERRER_CB> The type of referrer condition-bean. - * @param <REFERRER_ENTITY> The type of referrer entity. - */ - protected static interface InternalLoadRefererCallback<LOCAL_ENTITY extends Entity, PK, REFERRER_CB extends ConditionBean, REFERRER_ENTITY extends Entity> - extends - InternalLoadReferrerCallback<LOCAL_ENTITY, PK, REFERRER_CB, REFERRER_ENTITY> { - } - - /** - * @param <LOCAL_ENTITY> The type of base entity. - * @param <PK> The type of primary key. * @param <REFERRER_CB> The type of referrer conditionBean. * @param <REFERRER_ENTITY> The type of referrer entity. */ @@ -576,6 +567,12 @@ REFERRER_ENTITY referrerEntity, LOCAL_ENTITY localEntity); } + protected BehaviorSelector xgetBSFLR() { // getBehaviorSelectorForLoadReferrer + // () as Internal + assertBehaviorSelectorNotNull("loadReferrer"); + return getBehaviorSelector(); + } + private void assertBehaviorSelectorNotNull(String methodName) { if (_behaviorSelector == null) { String msg = "Look! Read the message below." + getLineSeparator(); @@ -693,10 +690,7 @@ * @return All count. */ protected int callGetCountAll() { - final java.lang.reflect.Method mtd = getMethod(getDaoReadable() - .getClass(), "getCountAll", new Class[] {}); - final Object result = invoke(mtd, getDaoReadable(), new Object[] {}); - return ((Integer) result).intValue(); + return readCount(newConditionBean()); } /** @@ -705,10 +699,7 @@ * @return All list. (NotNull) */ protected List<Entity> callGetListAll() { - final java.lang.reflect.Method mtd = getMethod(getDaoReadable() - .getClass(), "getListAll", new Class[] {}); - final Object result = invoke(mtd, getDaoReadable(), new Object[] {}); - return (List<Entity>) result; + return readList(newConditionBean()); } /** @@ -738,14 +729,13 @@ protected List<Entity> callReadList(ConditionBean cb) { assertConditionBeanNotNull(cb); final Class[] types = new Class[] { cb.getClass() }; - final java.lang.reflect.Method mtd = getMethod(getDaoReadable() - .getClass(), "selectList", types); + final Method mtd = getMethod(getDaoReadable().getClass(), "selectList", + types); final Object result = invoke(mtd, getDaoReadable(), new Object[] { cb }); return (List<Entity>) result; } - private java.lang.reflect.Method getMethod(Class clazz, String methodName, - Class[] argTypes) { + private Method getMethod(Class clazz, String methodName, Class[] argTypes) { try { return clazz.getMethod(methodName, argTypes); } catch (NoSuchMethodException ex) { @@ -755,8 +745,7 @@ } } - private Object invoke(java.lang.reflect.Method method, Object target, - Object[] args) { + private Object invoke(Method method, Object target, Object[] args) { try { return method.invoke(target, args); } catch (java.lang.reflect.InvocationTargetException ex) { @@ -787,8 +776,8 @@ //========================================================================== // ========= - // Helper - // ====== + // General Helper + // ============== /** * To lower case if the type is String. * @@ -808,7 +797,7 @@ * @return The value of line separator. (NotNull) */ protected String getLineSeparator() { - return System.getProperty("line.separator"); + return SimpleSystemUtil.getLineSeparator(); } protected <ENTITY extends Entity> ENTITY helpDowncastInternally( Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/load/LoadReferrerOption.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/load/LoadReferrerOption.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/load/LoadReferrerOption.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,5 +1,7 @@ package jp.sf.pal.timecard.db.allcommon.bhv.load; +import java.util.List; + import jp.sf.pal.timecard.db.allcommon.Entity; import jp.sf.pal.timecard.db.allcommon.bhv.setup.ConditionBeanSetupper; import jp.sf.pal.timecard.db.allcommon.bhv.setup.EntityListSetupper; @@ -97,8 +99,7 @@ } } - public void delegateEntitySettingUp( - java.util.List<REFERRER_ENTITY> entityList) {// Internal + public void delegateEntitySettingUp(List<REFERRER_ENTITY> entityList) {// Internal if (_entityListSetupper != null) { _entityListSetupper.setup(entityList); } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/setup/EntityListSetupper.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/setup/EntityListSetupper.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/bhv/setup/EntityListSetupper.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,5 +1,7 @@ package jp.sf.pal.timecard.db.allcommon.bhv.setup; +import java.util.List; + import jp.sf.pal.timecard.db.allcommon.Entity; /** @@ -11,9 +13,9 @@ public interface EntityListSetupper<ENTITY extends Entity> { /** - * Set up entity list. + * Set up the list of entity. * - * @param entityList Entity list. (NotNull) + * @param entityList The list of entity. (NotNull) */ - public void setup(java.util.List<ENTITY> entityList); + public void setup(List<ENTITY> entityList); } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/AbstractConditionBean.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/AbstractConditionBean.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/AbstractConditionBean.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1037,23 +1037,6 @@ //========================================================================== // ========= - // Format SQL - // ========== - /** @deprecated Sorry! ConditionBean must be formatted as default. */ - public void formatSql() { - getSqlClause().makeFormatClauseEffective(); - } - - /** - * @return Is the SQL formatted? - * @deprecated Sorry! ConditionBean must be formatted as default. - */ - public boolean isFormatSql() { - return getSqlClause().isFormatClauseEffective(); - } - - //========================================================================== - // ========= // Assist Helper // ============= protected void doSetupSelect(SsCall callback) { Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ConditionBean.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ConditionBean.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ConditionBean.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -135,7 +135,8 @@ // Limit Select // ============ /** - * Limit select PK only. + * Limit select PK only. This is OLD style. You can do the same thing by + * specify(). * * @return this. (NotNull) */ @@ -214,19 +215,6 @@ //========================================================================== // ========= - // Format SQL - // ========== - /** @deprecated Sorry! ConditionBean must be formatted as default. */ - public void formatSql(); - - /** - * @return Is the SQL formatted? - * @deprecated Sorry! ConditionBean must be formatted as default. - */ - public boolean isFormatSql(); - - //========================================================================== - // ========= // Display SQL // =========== /** Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ConditionBeanContext.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ConditionBeanContext.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ConditionBeanContext.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -21,7 +21,7 @@ import org.apache.commons.logging.LogFactory; /** - * Condition-Bean context. + * The context of condition-bean. * * @author DBFlute(AutoGenerator) */ @@ -95,7 +95,9 @@ } } { - Class<?> clazz = jp.sf.pal.timecard.db.allcommon.cbean.coption.FromToOption.class; + Class<?> clazz = jp.sf.pal.timecard.db.allcommon.AccessContext.class; + clazz = jp.sf.pal.timecard.db.allcommon.CallbackContext.class; + clazz = jp.sf.pal.timecard.db.allcommon.cbean.coption.FromToOption.class; clazz = jp.sf.pal.timecard.db.allcommon.cbean.coption.LikeSearchOption.class; clazz = jp.sf.pal.timecard.db.allcommon.cbean.coption.InScopeOption.class; clazz = jp.sf.pal.timecard.db.allcommon.cbean.grouping.GroupingOption.class; @@ -308,7 +310,7 @@ msg = msg + getLineSeparator(); if (searchKey4Log != null && searchKey4Log instanceof ConditionBean) { final ConditionBean cb = (ConditionBean) searchKey4Log; - msg = msg + "[Executed SQL for Display]" + getLineSeparator() + msg = msg + "[Display SQL]" + getLineSeparator() + cb.toDisplaySql() + getLineSeparator(); } else { msg = msg + "[Search Condition]" + getLineSeparator() @@ -339,7 +341,7 @@ msg = msg + getLineSeparator(); if (searchKey4Log != null && searchKey4Log instanceof ConditionBean) { final ConditionBean cb = (ConditionBean) searchKey4Log; - msg = msg + "[Executed SQL for Display]" + getLineSeparator() + msg = msg + "[Display SQL]" + getLineSeparator() + cb.toDisplaySql() + getLineSeparator(); } else { msg = msg + "[Search Condition]" + getLineSeparator() Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ListResultBean.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ListResultBean.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ListResultBean.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,7 +1,11 @@ package jp.sf.pal.timecard.db.allcommon.cbean; +import java.io.Serializable; import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.ListIterator; import jp.sf.pal.timecard.db.allcommon.cbean.grouping.GroupingOption; import jp.sf.pal.timecard.db.allcommon.cbean.grouping.GroupingRowEndDeterminer; @@ -11,13 +15,12 @@ import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.OrderByClause; /** - * The list-result-bean for ListResultBean. + * The result bean for list. * * @param <ENTITY> The type of entity for the element of selected list. * @author DBFlute(AutoGenerator) */ -public class ListResultBean<ENTITY> implements List<ENTITY>, - java.io.Serializable { +public class ListResultBean<ENTITY> implements List<ENTITY>, Serializable { //========================================================================== // ========= @@ -30,16 +33,19 @@ // ========= // Attribute // ========= - /** The value of table db-name. */ + /** + * The value of table db-name. (Nullable: If it's null, it means 'Not + * Selected Yet'.) + */ protected String _tableDbName; /** The value of all record count. */ protected int _allRecordCount; - /** Selected list. */ - protected List<ENTITY> _selectedList = new java.util.ArrayList<ENTITY>(); + /** The list of selected entity. (NotNull) */ + protected List<ENTITY> _selectedList = new ArrayList<ENTITY>(); - /** Order-by clause. */ + /** The clause of order-by. (NotNull) */ protected OrderByClause _orderByClause = new OrderByClause(); //========================================================================== @@ -56,6 +62,15 @@ // ========= // Grouping // ======== + /** + * Group the list. This method needs the property 'selectedList' only. + * + * @param <ROW> The type of row. + * @param groupingRowSetupper The setupper of grouping row. (NotNull) + * @param groupingOption The option of grouping. (NotNull and it requires + * the breakCount or the determiner) + * @return The grouped list. (NotNull) + */ public <ROW> List<ROW> groupingList( GroupingRowSetupper<ROW, ENTITY> groupingRowSetupper, GroupingOption<ENTITY> groupingOption) { @@ -64,23 +79,25 @@ .getGroupingRowEndDeterminer(); if (rowEndDeterminer == null) { rowEndDeterminer = new GroupingRowEndDeterminer<ENTITY>() { - public boolean determine(int columnIndex, int columnCount, + public boolean determine( GroupingRowResource<ENTITY> rowResource, ENTITY nextEntity) { - return columnIndex == (columnCount - 1); + return rowResource.isSizeUpBreakCount(); } - };// as Default + }; // as Default } GroupingRowResource<ENTITY> rowResource = new GroupingRowResource<ENTITY>(); - int columnCount = groupingOption.getColumnCount(); - int columnIndex = 0; - int rowIndex = 0; + int breakCount = groupingOption.getElementCount(); + int rowElementIndex = 0; + int allElementIndex = 0; for (ENTITY entity : _selectedList) { // Set up row resource. rowResource.addGroupingRowList(entity); + rowResource.setElementCurrentIndex(rowElementIndex); + rowResource.setBreakCount(breakCount); - if (_selectedList.size() == (rowIndex + 1)) {// Last Loop! - // Callback! + if (_selectedList.size() == (allElementIndex + 1)) { // Last Loop! + // Set up the object of grouping row! final ROW groupingRowObject = groupingRowSetupper .setup(rowResource); @@ -89,15 +106,15 @@ break; } - ENTITY nextElement = null; - if (_selectedList.size() > (rowIndex + 1)) { - nextElement = _selectedList.get(rowIndex); - } + // Not last loop so the nextElement must exist. + final ENTITY nextElement = _selectedList.get(allElementIndex + 1); // Do at row end. - if (rowEndDeterminer.determine(columnIndex, columnCount, - rowResource, nextElement)) { - // Callback! + if (rowEndDeterminer.determine(rowResource, nextElement)) { // Determine + // the + // row + // end! + // Set up the object of grouping row! final ROW groupingRowObject = groupingRowSetupper .setup(rowResource); @@ -106,12 +123,12 @@ // Initialize! rowResource = new GroupingRowResource<ENTITY>(); - columnIndex = 0; - ++rowIndex; + rowElementIndex = 0; + ++allElementIndex; continue; } - ++columnIndex; - ++rowIndex; + ++rowElementIndex; + ++allElementIndex; } return groupingList; } @@ -139,7 +156,7 @@ /** * Has this result selected? * - * @return Determination. + * @return Determination. {Whether table DB name is not null} */ public boolean isSelectedResult() { return _tableDbName != null; @@ -182,12 +199,13 @@ @Override public String toString() { final StringBuilder sb = new StringBuilder(); - - sb.append(" tableDbName=").append(_tableDbName); - sb.append(" allRecordCount=").append(_allRecordCount); - sb.append(" selectedList.size()=").append(_selectedList.size()); - sb.append(" orderByClause=").append(_orderByClause); - + sb.append("{").append(_tableDbName); + sb.append(",").append(_allRecordCount); + sb.append(",").append( + _orderByClause != null ? _orderByClause.getOrderByClause() + : null); + sb.append(",").append(_selectedList); + sb.append("}"); return sb.toString(); } @@ -199,7 +217,7 @@ return _selectedList.add(o); } - public boolean addAll(java.util.Collection<? extends ENTITY> c) { + public boolean addAll(Collection<? extends ENTITY> c) { return _selectedList.addAll(c); } @@ -211,7 +229,7 @@ return _selectedList.contains(o); } - public boolean containsAll(java.util.Collection<?> c) { + public boolean containsAll(Collection<?> c) { return _selectedList.containsAll(c); } @@ -219,7 +237,7 @@ return _selectedList.isEmpty(); } - public java.util.Iterator<ENTITY> iterator() { + public Iterator<ENTITY> iterator() { return _selectedList.iterator(); } @@ -227,11 +245,11 @@ return _selectedList.remove(o); } - public boolean removeAll(java.util.Collection<?> c) { + public boolean removeAll(Collection<?> c) { return _selectedList.removeAll(c); } - public boolean retainAll(java.util.Collection<?> c) { + public boolean retainAll(Collection<?> c) { return _selectedList.retainAll(c); } @@ -251,7 +269,7 @@ _selectedList.add(index, element); } - public boolean addAll(int index, java.util.Collection<? extends ENTITY> c) { + public boolean addAll(int index, Collection<? extends ENTITY> c) { return _selectedList.addAll(index, c); } @@ -267,11 +285,11 @@ return _selectedList.lastIndexOf(o); } - public java.util.ListIterator<ENTITY> listIterator() { + public ListIterator<ENTITY> listIterator() { return _selectedList.listIterator(); } - public java.util.ListIterator<ENTITY> listIterator(int index) { + public ListIterator<ENTITY> listIterator(int index) { return _selectedList.listIterator(index); } @@ -283,7 +301,7 @@ return _selectedList.set(index, element); } - public java.util.List<ENTITY> subList(int fromIndex, int toIndex) { + public List<ENTITY> subList(int fromIndex, int toIndex) { return _selectedList.subList(fromIndex, toIndex); } @@ -331,8 +349,7 @@ /** * Get the value of selectedList. * - * @return Selected list. (Nullable: If it's null, it means 'Not Selected - * Yet'.) + * @return Selected list. (NotNull) */ public List<ENTITY> getSelectedList() { return _selectedList; @@ -341,17 +358,20 @@ /** * Set the value of selectedList. * - * @param selectedList Selected list. (NotNull) + * @param selectedList Selected list. (NotNull: If you set null, it ignores + * it.) */ public void setSelectedList(List<ENTITY> selectedList) { + if (selectedList == null) { + return; + } // Not allowed to set null value to the selected list _selectedList = selectedList; } /** * Get the value of orderByClause. * - * @return The value of orderByClause. (Nullable: If it's null, it means - * 'Not Selected Yet'.) + * @return The value of orderByClause. (NotNull) */ public OrderByClause getOrderByClause() { return _orderByClause; @@ -360,9 +380,13 @@ /** * Set the value of orderByClause. * - * @param orderByClause The value of orderByClause. (NotNull) + * @param orderByClause The value of orderByClause. (NotNull: If you set + * null, it ignores it.) */ public void setOrderByClause(OrderByClause orderByClause) { + if (orderByClause == null) { + return; + } // Not allowed to set null value to the selected list _orderByClause = orderByClause; } } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/PagingResultBean.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/PagingResultBean.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/PagingResultBean.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -7,7 +7,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.pagenavi.range.PageRangeOption; /** - * The paging-result-bean for specified entity. + * The result bean of paging. * * @param <ENTITY> The type of entity for the element of selected list. * @author DBFlute(AutoGenerator) @@ -309,18 +309,27 @@ @Override public String toString() { final StringBuilder sb = new StringBuilder(); - - sb.append(getCurrentPageNumber()).append("/").append(getAllPageCount()); + sb.append("{").append(getCurrentPageNumber()).append("/").append( + getAllPageCount()); sb.append(" of ").append(getAllRecordCount()); - sb.append(" listSize=").append( - getSelectedList() != null ? new Integer(getSelectedList() + sb.append(" ").append(isExistPrePage()).append("/").append( + isExistNextPage()); + if (_pageGroupOption != null) { + sb.append(" group:{").append(getPageGroupSize()).append(",") + .append(pageGroup().createPageNumberList()).append("}"); + } + if (_pageRangeOption != null) { + sb.append(" range:{").append(getPageRangeSize()).append(",") + .append(_pageRangeOption.isFillLimit()); + sb.append(",").append(pageRange().createPageNumberList()).append( + "}"); + } + sb.append(" list=").append( + getSelectedList() != null ? Integer.valueOf(getSelectedList() .size()) : null); - sb.append(" pageSize=").append(getPageSize()); - sb.append(" page:{").append(isExistPrePage()).append("/").append( - isExistNextPage()).append("}"); - sb.append(" groupSize=").append(getPageGroupSize()); - sb.append(" rangeSize=").append(getPageRangeSize()); - + sb.append(" page=").append(getPageSize()); + sb.append("}"); + sb.append(":selectedList=").append(getSelectedList()); return sb.toString(); } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ResultBeanBuilder.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ResultBeanBuilder.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/ResultBeanBuilder.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -3,7 +3,7 @@ import java.util.List; /** - * The list-result-bean for ${myClassName}. + * The builder of result bean. * * @param <ENTITY> The type of entity. * @author DBFlute(AutoGenerator) @@ -29,24 +29,38 @@ // Builder // ======= /** - * Build the result bean of list. + * Build the result bean of list without order-by clause. {for Various} * - * @param ob The bean of orderBy. (NotNull) * @param selectedList Selected list. (NotNull) * @return The result bean of list. (NotNull) */ - public ListResultBean<ENTITY> buildListResultBean(ConditionBean ob, + public ListResultBean<ENTITY> buildListResultBean(List<ENTITY> selectedList) { + ListResultBean<ENTITY> rb = new ListResultBean<ENTITY>(); + rb.setTableDbName(_tableDbName); + rb.setAllRecordCount(selectedList.size()); + rb.setSelectedList(selectedList); + return rb; + } + + /** + * Build the result bean of list. {for CB} + * + * @param cb The condition-bean. (NotNull) + * @param selectedList Selected list. (NotNull) + * @return The result bean of list. (NotNull) + */ + public ListResultBean<ENTITY> buildListResultBean(ConditionBean cb, List<ENTITY> selectedList) { ListResultBean<ENTITY> rb = new ListResultBean<ENTITY>(); rb.setTableDbName(_tableDbName); rb.setAllRecordCount(selectedList.size()); rb.setSelectedList(selectedList); - rb.setOrderByClause(ob.getSqlComponentOfOrderByClause()); + rb.setOrderByClause(cb.getSqlComponentOfOrderByClause()); return rb; } /** - * Build the result bean of paging. + * Build the result bean of paging. {for Paging} * * @param pb The bean of paging. (NotNull) * @param allRecordCount All record count. Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingOption.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingOption.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingOption.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,7 +1,7 @@ package jp.sf.pal.timecard.db.allcommon.cbean.grouping; /** - * The class of option for grouping making. + * The class of option for grouping. * * @param <ENTITY> The type of entity. * @author DBFlute(AutoGenerator) @@ -12,7 +12,7 @@ // =========== // Attribute // ========= - protected int _columnCount; + protected int _elementCount; protected GroupingRowEndDeterminer<ENTITY> _groupingRowEndDeterminer; @@ -20,21 +20,28 @@ // =========== // Constructor // =========== - public GroupingOption(int columnCount) { - _columnCount = columnCount; + /** + * Constructor. You should set the determiner of grouping row end after you + * create the instance. + */ + public GroupingOption() { } - //========================================================================== - // =========== - // Easy-to-Use - // =========== + /** + * Constructor. + * + * @param elementCount The count of row element in a group. + */ + public GroupingOption(int elementCount) { + _elementCount = elementCount; + } //========================================================================== // =========== // Accessor // ======== - public int getColumnCount() { - return this._columnCount; + public int getElementCount() { + return this._elementCount; } public GroupingRowEndDeterminer<ENTITY> getGroupingRowEndDeterminer() { Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowEndDeterminer.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowEndDeterminer.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowEndDeterminer.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,13 +1,24 @@ package jp.sf.pal.timecard.db.allcommon.cbean.grouping; /** - * The interface of grouping switch point determiner. + * The interface of grouping end(switch point) determiner. * * @param <ENTITY> The type of entity. * @author DBFlute(AutoGenerator) */ public interface GroupingRowEndDeterminer<ENTITY> { - public boolean determine(int columnIndex, int columnCount, - GroupingRowResource<ENTITY> rowResource, ENTITY nextEntity); + /** + * Determine whether the grouping row is end. + * + * @param rowResource The resource of grouping row. (NotNull and the + * property 'groupingRowList' is not empty and the property + * 'currentEntity' is not null) + * @param nextEntity The entity of next element. (NotNull and the + * rowResource does not contain yet) + * @return Whether the grouping row is end. (If the value is true, break + * grouping row and the nextEntity is registered to next row) + */ + public boolean determine(GroupingRowResource<ENTITY> rowResource, + ENTITY nextEntity); } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowResource.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowResource.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowResource.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,5 +1,8 @@ package jp.sf.pal.timecard.db.allcommon.cbean.grouping; +import java.util.ArrayList; +import java.util.List; + /** * The class of row resource for grouping making. * @@ -12,22 +15,79 @@ // =========== // Attribute // ========= - protected java.util.List<ENTITY> _groupingRowList = new java.util.ArrayList<ENTITY>(); + protected List<ENTITY> _groupingRowList = new ArrayList<ENTITY>(); + protected int _elementCurrentIndex; + + protected int _breakCount; + //========================================================================== // =========== // Easy-to-Use // =========== + /** + * @return Does the list of grouping row size up the break count? + */ + public boolean isSizeUpBreakCount() { + return _elementCurrentIndex == (_breakCount - 1); + } //========================================================================== // =========== // Accessor // ======== - public java.util.List<ENTITY> getGroupingRowList() { + /** + * @return The list of grouping row. (NotNull and NotEmpty) + */ + public List<ENTITY> getGroupingRowList() { return this._groupingRowList; } + /** + * Add the element entity to the list of grouping row. {INTERNAL METHOD} + * + * @param groupingRow The element entity to the list of grouping row. + */ public void addGroupingRowList(ENTITY groupingRow) { this._groupingRowList.add(groupingRow); } + + /** + * @return The entity of element current index. (NotNull) + */ + public ENTITY getCurrentEntity() { + return _groupingRowList.get(_elementCurrentIndex); + } + + /** + * @return The index of current element. + */ + public int getElementCurrentIndex() { + return this._elementCurrentIndex; + } + + /** + * Set the index of current element. {INTERNAL METHOD} + * + * @param elementCurrentIndex The index of current element. + */ + public void setElementCurrentIndex(int elementCurrentIndex) { + this._elementCurrentIndex = elementCurrentIndex; + } + + /** + * @return The count of break loop. + */ + public int getBreakCount() { + return this._breakCount; + } + + /** + * Set the count of break loop. {INTERNAL METHOD} + * + * @param breakCount The count of break loop. + */ + public void setBreakCount(int breakCount) { + this._breakCount = breakCount; + } } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowSetupper.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowSetupper.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/grouping/GroupingRowSetupper.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,7 +1,7 @@ package jp.sf.pal.timecard.db.allcommon.cbean.grouping; /** - * The interface of grouping row setupper. + * The setupper of grouping row. * * @param <ROW> The type of row. * @param <ENTITY> The type of entity. @@ -10,10 +10,10 @@ public interface GroupingRowSetupper<ROW, ENTITY> { /** - * Set up grouping row object. + * Set up the instance of grouping row. * * @param groupingRowResource Grouping row resource. (NotNull) - * @return Grouping row object. (NotNull) + * @return The instance of grouping row. (NotNull) */ public ROW setup(GroupingRowResource<ENTITY> groupingRowResource); } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlBasicExecutor.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlBasicExecutor.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlBasicExecutor.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -2,6 +2,8 @@ import java.util.List; +import jp.sf.pal.timecard.db.allcommon.cbean.ListResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder; import jp.sf.pal.timecard.db.allcommon.cbean.outsidesql.OutsideSqlDao; import jp.sf.pal.timecard.db.allcommon.cbean.outsidesql.OutsideSqlOption; import jp.sf.pal.timecard.db.allcommon.cbean.outsidesql.ProcedurePmb; @@ -76,14 +78,16 @@ * @param pmb The parameter-bean. Allowed types are Bean object and Map * object. (Nullable) * @param entityType The element type of entity. (NotNull) - * @return The list of selected entity. (NotNull) + * @return The result bean of selected list. (NotNull) * @exception jp.sf.pal.timecard.db.allcommon.exception.OutsideSqlNotFoundException - * When the sql is not found. + * When the outside-sql is not found. */ - public <ENTITY> List<ENTITY> selectList(String path, Object pmb, + public <ENTITY> ListResultBean<ENTITY> selectList(String path, Object pmb, Class<ENTITY> entityType) { - return _outsideSqlDao.selectList(path, pmb, createOutsideSqlOption(), - entityType); + List<ENTITY> resultList = _outsideSqlDao.selectList(path, pmb, + createOutsideSqlOption(), entityType); + return new ResultBeanBuilder<ENTITY>(_tableDbName) + .buildListResultBean(resultList); } //========================================================================== @@ -98,7 +102,7 @@ * object. (Nullable) * @return The count of execution. * @exception jp.sf.pal.timecard.db.allcommon.exception.OutsideSqlNotFoundException - * When the sql is not found. + * When the outside-sql is not found. */ public int execute(String path, Object pmb) { return _outsideSqlDao.execute(path, pmb, createOutsideSqlOption()); Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlCursorExecutor.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlCursorExecutor.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlCursorExecutor.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -35,6 +35,17 @@ // ========= // Select // ====== + /** + * Select the cursor of the entity. + * + * @param path The path of SQL file. (NotNull) + * @param pmb The parameter-bean. Allowed types are Bean object and Map + * object. (Nullable) + * @param handler The handler of cursor. (NotNull) + * @return The result object that the cursor handler returns. (Nullable) + * @exception jp.sf.pal.timecard.db.allcommon.exception.OutsideSqlNotFoundException + * When the outside-sql is not found. + */ public Object selectCursor(String path, PARAMETER_BEAN pmb, CursorHandler handler) { return _outsideSqlDao.selectCursor(path, pmb, _outsideSqlOption, @@ -45,14 +56,14 @@ // ========= // Option // ====== + public OutsideSqlCursorExecutor<PARAMETER_BEAN> dynamicBinding() { + _outsideSqlOption.dynamicBinding(); + return this; + } + public OutsideSqlCursorExecutor<PARAMETER_BEAN> configure( StatementConfig statementConfig) { _outsideSqlOption.setStatementConfig(statementConfig); return this; } - - public OutsideSqlCursorExecutor<PARAMETER_BEAN> dynamicBinding() { - _outsideSqlOption.dynamicBinding(); - return this; - } } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlEntityExecutor.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlEntityExecutor.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlEntityExecutor.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -48,8 +48,9 @@ * @param entityType The type of entity. (NotNull) * @return The selected entity. (Nullable) * @exception jp.sf.pal.timecard.db.allcommon.exception.OutsideSqlNotFoundException - * When the sql is not found. + * When the outside-sql is not found. * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity is duplicated. */ public <ENTITY> ENTITY selectEntity(String path, PARAMETER_BEAN pmb, Class<ENTITY> entityType) { @@ -75,7 +76,7 @@ * @param entityType The type of entity. (NotNull) * @return The selected entity. (Nullable) * @exception jp.sf.pal.timecard.db.allcommon.exception.OutsideSqlNotFoundException - * When the sql is not found. + * When the outside-sql is not found. * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException * When the entity has already been deleted(not found). * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlPagingExecutor.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlPagingExecutor.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/outsidesql/executor/OutsideSqlPagingExecutor.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -3,10 +3,12 @@ import java.util.List; import jp.sf.pal.timecard.db.allcommon.DBFluteConfig; +import jp.sf.pal.timecard.db.allcommon.cbean.ListResultBean; import jp.sf.pal.timecard.db.allcommon.cbean.PagingBean; import jp.sf.pal.timecard.db.allcommon.cbean.PagingHandler; import jp.sf.pal.timecard.db.allcommon.cbean.PagingInvoker; import jp.sf.pal.timecard.db.allcommon.cbean.PagingResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder; import jp.sf.pal.timecard.db.allcommon.cbean.outsidesql.OutsideSqlDao; import jp.sf.pal.timecard.db.allcommon.cbean.outsidesql.OutsideSqlOption; import jp.sf.pal.timecard.db.allcommon.jdbc.StatementConfig; @@ -46,20 +48,57 @@ // ========= // Select // ====== - public <ENTITY> List<ENTITY> selectList(String path, PagingBean pmb, - Class<ENTITY> entityType) { + /** + * Select list with paging. + * <p> + * The SQL should have Paging without Count. <br /> You do not need to use + * pagingBean's isPaging() method on your 'Parameter Comment'. <br /> + * + * <pre> + * - - - - - - - - - - - - - - - - - - - - - - - + * ex) Your Correct SQL {MySQL and manualPaging} + * - - - - - - - - - - - - - - - - - - - - - - - + * # select member.MEMBER_ID + * # , member.MEMBER_NAME + * # , memberStatus.MEMBER_STATUS_NAME + * # from MEMBER member + * # left outer join MEMBER_STATUS memberStatus + * # on member.MEMBER_STATUS_CODE = memberStatus.MEMBER_STATUS_CODE + * # /[*]BEGIN[*]/where + * # /[*]IF pmb.memberId != null[*]/member.MEMBER_ID = /[*]pmb.memberId[*]/'123'/[*]END[*]/ + * # /[*]IF pmb.memberName != null[*]/and member.MEMBER_NAME like /[*]pmb.memberName[*]/'Billy' || '%'/[*]END[*]/ + * # /[*]END[*]/ + * # order by member.UPDATE_DATETIME desc + * # limit /[*]$pmb.pageStartIndex[*]/80, /[*]$pmb.fetchSize[*]/20 + * # + * o [*] is easy escape to Java Doc Comment. + * o If it's autoPaging, the line of 'limit 80, 20' is unnecessary! + * </pre> + * + * @param <ENTITY> The type of entity. + * @param path The path of SQL that executes count and paging. (NotNull) + * @param pmb The bean of paging parameter. (NotNull) + * @param entityType The type of result entity. (NotNull) + * @return The result bean of paged list. (NotNull) + * @exception com.example.dbflute.basic.dbflute.allcommon.exception.OutsideSqlNotFoundException + * When the outside-sql is not found. + */ + public <ENTITY> ListResultBean<ENTITY> selectList(String path, + PagingBean pmb, Class<ENTITY> entityType) { setupScrollableCursorIfNeeds(); - return _outsideSqlDao.selectList(path, pmb, _outsideSqlOption, - entityType); + List<ENTITY> resultList = _outsideSqlDao.selectList(path, pmb, + _outsideSqlOption, entityType); + return new ResultBeanBuilder<ENTITY>(_tableDbName) + .buildListResultBean(resultList); } /** * Select page. * <p> * The SQL should have Count and Paging. <br /> You can realize by - * pagingBean's isPaging() method on your 'SQL Comment'. For example, 'IF - * Comment'. <br /> It returns false when it executes Count. And it returns - * true when it executes Paging. <br /> + * pagingBean's isPaging() method on your 'Parameter Comment'. For example, + * 'IF Comment'. <br /> It returns false when it executes Count. And it + * returns true when it executes Paging. <br /> * * <pre> * - - - - - - - - - - - - - - - - - - - - - - - @@ -107,10 +146,11 @@ * * @param <ENTITY> The type of entity. * @param path The path of SQL that executes count and paging. (NotNull) - * @param pagingPath The path of paging SQL. (NotNull) * @param pmb The bean of paging parameter. (NotNull) * @param entityType The type of result entity. (NotNull) * @return The result bean of paging. (NotNull) + * @exception jp.sf.pal.timecard.db.allcommon.exception.OutsideSqlNotFoundException + * When the outside-sql is not found. */ public <ENTITY> PagingResultBean<ENTITY> selectPage(final String path, final PagingBean pmb, final Class<ENTITY> entityType) { Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/AbstractSqlClause.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/AbstractSqlClause.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/AbstractSqlClause.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1300,7 +1300,7 @@ /** * The implementation. * - * @return Determiantion. + * @return Determination. */ public boolean isFetchNarrowingEffective() { return _isFetchScopeEffective; Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/OrderByClause.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/OrderByClause.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/OrderByClause.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,5 +1,6 @@ package jp.sf.pal.timecard.db.allcommon.cbean.sqlclause; +import java.io.Serializable; import java.util.ArrayList; import java.util.Iterator; import java.util.List; @@ -9,7 +10,7 @@ /** * @author DBFlute(AutoGenerator) */ -public class OrderByClause implements java.io.Serializable { +public class OrderByClause implements Serializable { /** Serial version UID. (Default) */ private static final long serialVersionUID = 1L; @@ -32,8 +33,8 @@ //========================================================================== // =========== - // Behavior - // ======== + // Manipulation + // ============ /** * Add order-by element. * @@ -91,6 +92,10 @@ boolean nullsFirst); } + //========================================================================== + // =========== + // Order-By Expression + // =================== public List<OrderByElement> getOrderByList() { return _orderByList; } @@ -250,7 +255,7 @@ * * @return Determination. */ - public java.util.Iterator<OrderByElement> iterator() { + public Iterator<OrderByElement> iterator() { return _orderByList.iterator(); } @@ -263,12 +268,12 @@ //========================================================================== // =========== - // Basic-Override Method - // ===================== + // Basic Override + // ============== /** * This method overrides the method that is declared at super. * - * @return View-string of all-columns value. + * @return The view string of all-columns value. (NotNUll) */ public String toString() { return _orderByList.toString(); Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/OrderByElement.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/OrderByElement.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/cbean/sqlclause/OrderByElement.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,5 +1,6 @@ package jp.sf.pal.timecard.db.allcommon.cbean.sqlclause; +import java.io.Serializable; import java.util.Map; import jp.sf.pal.timecard.db.allcommon.util.SimpleSystemUtil; @@ -7,7 +8,7 @@ /** * @author DBFlute(AutoGenerator) */ -public class OrderByElement implements java.io.Serializable { +public class OrderByElement implements Serializable { /** Serial version UID. (Default) */ private static final long serialVersionUID = 1L; @@ -39,58 +40,8 @@ //========================================================================== // =========== - // Accessor - // ======== - public String getAliasName() { - return _aliasName; - } - - public String getColumnName() { - return _columnName; - } - - public String getRegisteredAliasName() { - return _registeredAliasName; - } - - public String getRegisteredColumnName() { - return _registeredColumnName; - } - - public String getAscDesc() { - return _ascDesc; - } - - public void setAliasName(String value) { - _aliasName = value; - } - - public void setColumnName(String value) { - _columnName = value; - } - - public void setRegisteredAliasName(String value) { - _registeredAliasName = value; - } - - public void setRegisteredColumnName(String value) { - _registeredColumnName = value; - } - - public void setAscDesc(String value) { - _ascDesc = value; - } - - public void setOrderByNullsSetupper( - OrderByClause.OrderByNullsSetupper value, boolean nullsFirst) { - _orderByNullsSetupper = value; - _nullsFirst = nullsFirst; - } - - //========================================================================== - // =========== - // Behavior - // ======== + // Manipulation + // ============ public void setupAsc() { _ascDesc = "asc"; } @@ -115,6 +66,10 @@ } } + //========================================================================== + // =========== + // Order-By Expression + // =================== public boolean isAsc() { if (_ascDesc == null) { String msg = "The attribute[ascDesc] should not be null."; @@ -254,15 +209,65 @@ /** * This method overrides the method that is declared at super. * - * @return View-string of all-columns value. + * @return The view-string of all-columns value. (NotNull) */ public String toString() { final StringBuilder sb = new StringBuilder(); - sb.append("[OrderByElement] aliasName=").append(_aliasName); + sb.append("{aliasName=").append(_aliasName); sb.append(" columnName=").append(_columnName); sb.append(" registeredAliasName=").append(_registeredAliasName); sb.append(" registeredColumnName=").append(_registeredColumnName); - sb.append(" ascDesc=").append(_ascDesc); + sb.append(" ascDesc=").append(_ascDesc).append("}"); return sb.toString(); } + + //========================================================================== + // =========== + // Accessor + // ======== + public String getAliasName() { + return _aliasName; + } + + public String getColumnName() { + return _columnName; + } + + public String getRegisteredAliasName() { + return _registeredAliasName; + } + + public String getRegisteredColumnName() { + return _registeredColumnName; + } + + public String getAscDesc() { + return _ascDesc; + } + + public void setAliasName(String value) { + _aliasName = value; + } + + public void setColumnName(String value) { + _columnName = value; + } + + public void setRegisteredAliasName(String value) { + _registeredAliasName = value; + } + + public void setRegisteredColumnName(String value) { + _registeredColumnName = value; + } + + public void setAscDesc(String value) { + _ascDesc = value; + } + + public void setOrderByNullsSetupper( + OrderByClause.OrderByNullsSetupper value, boolean nullsFirst) { + _orderByNullsSetupper = value; + _nullsFirst = nullsFirst; + } } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/AbstractDBMeta.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/AbstractDBMeta.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/AbstractDBMeta.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -550,6 +550,10 @@ return false; } + public String getSequenceNextValSql() { + return null; + } + public boolean hasVersionNo() { return false; } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/DBMeta.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/DBMeta.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/DBMeta.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -54,12 +54,19 @@ public String getTableDbName(); /** - * Get table prop-name(JavaBeansRule). + * Get table property-name(JavaBeansRule). * * @return Table property-name(JavaBeansRule). (NotNull) */ public String getTablePropertyName(); + /** + * Get table SQL-name. + * + * @return Table SQL-name. (NotNull) + */ + public String getTableSqlName(); + //========================================================================== // ========= // Name Handling @@ -335,6 +342,14 @@ */ public boolean hasSequence(); + /** + * Get the SQL string for getting next value of sequence. + * + * @return The SQL string for getting next value of sequence. (Nullable: If + * it does not have sequence, returns null.) + */ + public String getSequenceNextValSql(); + //========================================================================== // ========= // Optimistic Lock Info Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/DBMetaInstanceHandler.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/DBMetaInstanceHandler.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/dbmeta/DBMetaInstanceHandler.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -33,10 +33,14 @@ "jp.sf.pal.timecard.db.bsentity.dbmeta.EmployeeDbm"); tmpMap.put("GROUP_INFO", "jp.sf.pal.timecard.db.bsentity.dbmeta.GroupInfoDbm"); + tmpMap.put("GROUP_MAPPING", + "jp.sf.pal.timecard.db.bsentity.dbmeta.GroupMappingDbm"); tmpMap.put("MONTHLY_REPORT", "jp.sf.pal.timecard.db.bsentity.dbmeta.MonthlyReportDbm"); tmpMap.put("ROLE_INFO", "jp.sf.pal.timecard.db.bsentity.dbmeta.RoleInfoDbm"); + tmpMap.put("ROLE_MAPPING", + "jp.sf.pal.timecard.db.bsentity.dbmeta.RoleMappingDbm"); tmpMap.put("USER_INFO", "jp.sf.pal.timecard.db.bsentity.dbmeta.UserInfoDbm"); @@ -51,8 +55,10 @@ tmpMap.put("DAILY_REPORT".toLowerCase(), "dailyReport"); tmpMap.put("EMPLOYEE".toLowerCase(), "employee"); tmpMap.put("GROUP_INFO".toLowerCase(), "groupInfo"); + tmpMap.put("GROUP_MAPPING".toLowerCase(), "groupMapping"); tmpMap.put("MONTHLY_REPORT".toLowerCase(), "monthlyReport"); tmpMap.put("ROLE_INFO".toLowerCase(), "roleInfo"); + tmpMap.put("ROLE_MAPPING".toLowerCase(), "roleMapping"); tmpMap.put("USER_INFO".toLowerCase(), "userInfo"); _tableDbNamePropertyNameKeyToLowerMap = Collections @@ -67,8 +73,10 @@ tmpMap.put("dailyReport".toLowerCase(), "DAILY_REPORT"); tmpMap.put("employee".toLowerCase(), "EMPLOYEE"); tmpMap.put("groupInfo".toLowerCase(), "GROUP_INFO"); + tmpMap.put("groupMapping".toLowerCase(), "GROUP_MAPPING"); tmpMap.put("monthlyReport".toLowerCase(), "MONTHLY_REPORT"); tmpMap.put("roleInfo".toLowerCase(), "ROLE_INFO"); + tmpMap.put("roleMapping".toLowerCase(), "ROLE_MAPPING"); tmpMap.put("userInfo".toLowerCase(), "USER_INFO"); _tablePropertyNameDbNameKeyToLowerMap = Collections Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/helper/token/line/impl/LineTokenImpl.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/helper/token/line/impl/LineTokenImpl.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/helper/token/line/impl/LineTokenImpl.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -13,6 +13,10 @@ */ public class LineTokenImpl implements LineToken { + //========================================================================== + // ========= + // Tokenize Line + // ============= public List<String> tokenize(String lineString, LineTokenizingOption lineTokenizingOption) { final String delimiter = lineTokenizingOption.getDelimiter(); @@ -37,7 +41,7 @@ list.add(filterHandlingEmptyAsNull(pureValue, lineTokenizingOption)); } - i = j + 1; + i = j + delimiter.length(); j = lineString.indexOf(delimiter, i); } list.add(filterHandlingEmptyAsNull(lineString.substring(i), @@ -56,6 +60,10 @@ return target; } + //========================================================================== + // ========= + // Make Line + // ========= public String make(java.util.List<String> valueList, LineMakingOption lineMakingOption) { assertObjectNotNull("valueList", valueList); @@ -85,9 +93,10 @@ return sb.toString(); } - // ---------------------------------------------------------------- - // Assert Object - // ------------- + //========================================================================== + // ========= + // General Helper + // ============== /** * Assert that the object is not null. * @@ -108,9 +117,6 @@ } } - // ---------------------------------------------------------------- - // Assert String - // ------------- /** * Assert that the entity is not null and not trimmed empty. * Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/jdbc/CursorHandler.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/jdbc/CursorHandler.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/jdbc/CursorHandler.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -1,7 +1,10 @@ package jp.sf.pal.timecard.db.allcommon.jdbc; +import java.sql.ResultSet; +import java.sql.SQLException; + /** - * The interface of statement history witness. + * The handler of cursor. * * @author DBFlute(AutoGenerator) */ @@ -12,5 +15,5 @@ * @return Result * @throws java.sql.SQLException */ - Object handle(java.sql.ResultSet resultSet) throws java.sql.SQLException; + Object handle(ResultSet resultSet) throws SQLException; } Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/jdbc/SqlLogHandler.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/jdbc/SqlLogHandler.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/jdbc/SqlLogHandler.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,18 @@ +package jp.sf.pal.timecard.db.allcommon.jdbc; + +/** + * The handler of SQL log. + * + * @author DBFlute(AutoGenerator) + */ +public interface SqlLogHandler { + + /** + * @param executedSql The executed SQL. (NotNull) + * @param displaySql The SQL for display. (NotNull) + * @param args The arguments of the SQL. (Nullable) + * @param argTypes The argument types of the SQL. (Nullable) + */ + void handle(String executedSql, String displaySql, Object[] args, + Class<?>[] argTypes); +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/jdbc/SqlLogHandler.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoLatestSqlProvider.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoLatestSqlProvider.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoLatestSqlProvider.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -4,30 +4,17 @@ import jp.sf.pal.timecard.db.allcommon.s2dao.internal.sqllog.InternalSqlLogRegistry; /** - * The provider of latest SQL as S2Dao. <br /> This instance should be - * singleton. <br /> + * The provider of latest SQL as S2Dao. This instance should be singleton. * * @author DBFlute(AutoGenerator) */ public class S2DaoLatestSqlProvider implements LatestSqlProvider { - /** - * The implementation. - * - * @return Display SQL. (Nullable: If it was not found, returns null.) - */ public String getDisplaySql() { - return getLastCompleteSql(); + return InternalSqlLogRegistry.peekCompleteSql(); } - protected String getLastCompleteSql() { - try { - return InternalSqlLogRegistry.peekCompleteSql(); - } catch (RuntimeException ignored) { - return null; - } - } - public void clearSqlCache() { + InternalSqlLogRegistry.clearSqlLogRegistry(); } } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoMetaDataExtension.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoMetaDataExtension.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoMetaDataExtension.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -15,10 +15,12 @@ import javax.sql.DataSource; import jp.sf.pal.timecard.db.allcommon.BehaviorSelector; +import jp.sf.pal.timecard.db.allcommon.Entity; import jp.sf.pal.timecard.db.allcommon.annotation.OutsideSql; import jp.sf.pal.timecard.db.allcommon.cbean.ConditionBean; import jp.sf.pal.timecard.db.allcommon.cbean.ConditionBeanContext; import jp.sf.pal.timecard.db.allcommon.cbean.outsidesql.OutsideSqlContext; +import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; import jp.sf.pal.timecard.db.allcommon.exception.BatchEntityAlreadyUpdatedException; import jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException; import jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException; @@ -43,6 +45,7 @@ import jp.sf.pal.timecard.db.allcommon.s2dao.internal.various.InternalProcedureMetaDataFactory; import jp.sf.pal.timecard.db.allcommon.s2dao.internal.various.InternalRelationRowCreator; import jp.sf.pal.timecard.db.allcommon.s2dao.internal.various.InternalRowCreator; +import jp.sf.pal.timecard.db.allcommon.util.SimpleSystemUtil; import org.seasar.dao.BeanEnhancer; import org.seasar.dao.BeanMetaData; @@ -241,9 +244,57 @@ //========================================================================== // ========= - // Setup Method by Auto - // ==================== + // Assert Override + // =============== @Override + protected void setupMethodByAnnotation(Class daoInterface, Method method) { + final String sql = daoAnnotationReader.getSQL(method, dbms.getSuffix()); + assertSQLAnnotationUnsupported(method, sql); + super.setupMethodByAnnotation(daoInterface, method); + } + + protected void assertSQLAnnotationUnsupported(final Method method, + String sql) { + if (sql != null) { + throwS2DaoSQLAnnotationUnsupportedException(method, sql); + } + } + + protected void throwS2DaoSQLAnnotationUnsupportedException( + final Method method, String sql) { + String msg = "Look! Read the message below." + getLineSeparator(); + msg = msg + + "/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" + + getLineSeparator(); + msg = msg + + "Sorry, the SQL annotation of S2Dao is unsupported on DBFlute!" + + getLineSeparator(); + msg = msg + getLineSeparator(); + msg = msg + "[Advice]" + getLineSeparator(); + msg = msg + "Please use outside-sql of behavior." + getLineSeparator(); + msg = msg + " For example:" + getLineSeparator(); + msg = msg + " memberBhv.outsideSql().selectList(...)" + + getLineSeparator(); + msg = msg + getLineSeparator(); + msg = msg + "If you've got to use it, you can set the property:" + + getLineSeparator(); + msg = msg + "{torque.isCompatibleS2DaoSQLAnnotationValid = true}" + + getLineSeparator(); + msg = msg + "But pay attention to version up of DBFlute" + + getLineSeparator(); + msg = msg + + " because the property will not always supported at the future." + + getLineSeparator(); + msg = msg + getLineSeparator(); + msg = msg + "[Method]" + getLineSeparator() + method + + getLineSeparator(); + msg = msg + getLineSeparator(); + msg = msg + "[SQL]" + getLineSeparator() + sql + getLineSeparator(); + msg = msg + "* * * * * * * * * */"; + throw new UnsupportedOperationException(msg); + } + + @Override protected void setupMethodByAuto(Method method) { final OutsideSql outsideSql = method.getAnnotation(OutsideSql.class); if (outsideSql != null) { @@ -259,68 +310,115 @@ //========================================================================== // ========= - // ConditionBean Setup - // =================== + // ConditionBean Override + // ====================== @Override protected void setupSelectMethodByAuto(final Method method) { + if (setupInternalSelectMethodSequenceNextVal(method)) { // For sequence + return; + } + if (setupInternalSelectMethodEntityByIdsForBuri(method)) { // For Buri + return; + } + + // Assert unsupported + final String query = daoAnnotationReader.getQuery(method); + assertQueryAnnotationUnsupported(method, query); + final String[] argNames = daoAnnotationReader.getArgNames(method); + assertAutoQueryByArgsAnnotationUnsupported(method, argNames); + + // Here it is the only method that the argument is DTO. final ResultSetHandler handler = createResultSetHandler(method); + final SqlCommand cmd = setupInternalNonQuerySelectMethodByDto(method, + handler); + + putSqlCommand(method.getName(), cmd); + } + + protected boolean setupInternalSelectMethodSequenceNextVal( + final Method method) { // For sequence + if (!"selectNextVal".equals(method.getName())) { + return false; + } + final DBMeta dbmeta = findDBMeta(); + if (!dbmeta.hasSequence()) { + String msg = "If the method 'selectNextVal()' exists, DBMeta.hasSequence() should return true:"; + msg = msg + " dbmeta.hasSequence()=" + dbmeta.hasSequence() + + " method=" + method; + throw new IllegalStateException(msg); + } + final String nextValSql = dbmeta.getSequenceNextValSql(); + if (nextValSql == null) { + String msg = "If the method 'selectNextVal()' exists, DBMeta.getSequenceNextValSql() should not return null:"; + msg = msg + " dbmeta.getSequenceNextValSql()=" + + dbmeta.getSequenceNextValSql() + " method=" + method; + throw new IllegalStateException(msg); + } + setupSelectMethodByManual(method, nextValSql); + return true; + } + + protected boolean setupInternalSelectMethodEntityByIdsForBuri( + final Method method) { // For Buri + if (!"getEntityByIds".equals(method.getName())) { + return false; + } + final ResultSetHandler handler = createResultSetHandler(method); final String[] argNames = daoAnnotationReader.getArgNames(method); final String query = daoAnnotationReader.getQuery(method); - final SqlCommand cmd; - if (query != null && !startsWithOrderBy(query)) { - // For Pure S2Dao *Deprecated at the future... - cmd = setupInternalQuerySelectMethodByAuto(method, handler, - argNames, query); - } else { - cmd = setupInternalNonQuerySelectMethodByAuto(method, handler, - argNames, query); + if (query == null) { + String msg = "The method 'getEntityByIds()' should have QUERY annotation:"; + msg = msg + " method=" + method; + throw new IllegalStateException(msg); } - putSqlCommand(method.getName(), cmd); - } - - // For Pure S2Dao *Deprecated at the future... - protected SelectDynamicCommand setupInternalQuerySelectMethodByAuto( - final Method method, final ResultSetHandler handler, - final String[] argNames, final String query) { final Class[] types = method.getParameterTypes(); final SelectDynamicCommand cmd = createSelectDynamicCommand(handler, query); cmd.setArgNames(argNames); cmd.setArgTypes(types); - return cmd; + putSqlCommand(method.getName(), cmd); + return true; } - protected SqlCommand setupInternalNonQuerySelectMethodByAuto( - final Method method, final ResultSetHandler handler, - final String[] argNames, final String query) { - if (isAutoSelectSqlByDto(method, argNames)) { - return setupInternalNonQuerySelectMethodByDto(method, handler, - argNames, query); - } else { - // For Pure S2Dao *Deprecated at the future... - return setupNonQuerySelectMethodByArgs(method, handler, argNames, - query); + protected void assertQueryAnnotationUnsupported(final Method method, + String query) { + if (query != null) { + String msg = "Sorry! The QUERY annotation of S2Dao is unsupported on DBFlute:"; + msg = msg + " query=" + query + " method=" + method; + throw new UnsupportedOperationException(msg); } } + protected void assertAutoQueryByArgsAnnotationUnsupported( + final Method method, String[] argNames) { + if (!isAutoSelectSqlByDto(method, argNames)) { + String msg = "Sorry! The auto query by ARGS annotation of S2Dao is unsupported on DBFlute:"; + msg = msg + " argNames=" + argNames + " method=" + method; + throw new UnsupportedOperationException(msg); + } + } + // For condition-bean! protected SqlCommand setupInternalNonQuerySelectMethodByDto(Method method, - ResultSetHandler handler, String[] argNames, String query) { - Class[] types = method.getParameterTypes(); - Class clazz = types[0]; - // /----------------------------------------------------- [MyExtension] - if (!ConditionBeanContext.isTheTypeConditionBean(clazz)) { - return super.setupNonQuerySelectMethodByDto(method, handler, - argNames, query); - } - argNames = new String[] { "dto" }; + ResultSetHandler handler) { + final Class[] argTypes = method.getParameterTypes(); + assertAutoQueryByDtoUnsupported(method, argTypes); final S2DaoSelectDynamicCommand cmd = createCustomizeSelectDynamicCommand(handler); - cmd.setArgNames(argNames); - cmd.setArgTypes(types); - // -----------/ + cmd.setArgNames(new String[] { "dto" }); + cmd.setArgTypes(argTypes); return cmd; } + protected void assertAutoQueryByDtoUnsupported(final Method method, + Class[] argTypes) { + final Class firstArgType = argTypes[0]; + if (!ConditionBeanContext.isTheTypeConditionBean(firstArgType)) { + String msg = "Sorry! The auto query by DTO of S2Dao is unsupported on DBFlute:"; + msg = msg + " dto=" + firstArgType + " method=" + method; + throw new UnsupportedOperationException(msg); + } + } + //========================================================================== // ========= // Insert and Update and Delete By Auto Override @@ -691,9 +789,7 @@ // Normal OutsideSql // ----------------- @Override - protected void setupSelectMethodByManual(Method method, String sql) {// Contains - // SQL- - // Annotation + protected void setupSelectMethodByManual(Method method, String sql) { final Class<?>[] pmbTypes = method.getParameterTypes(); final String[] argNames = this.daoAnnotationReader.getArgNames(method); final Class<?>[] argTypes; @@ -722,29 +818,16 @@ .createBeanMetaData(getOutsideSqlDefaultBeanClass(method)); } - // @jflute -- This override causes exception, it's pending... - // This is for to use QLog about SQL-Annotation. But the priority is very - // low. - // - // @Override - // protected void setupUpdateMethodByManual(Method method, final String sql) - // {// Contains SQL-Annotation - // final InternalUpdateDynamicCommand cmd = new - // InternalUpdateDynamicCommand(dataSource, statementFactory); - // cmd.setSql(sql); - // String[] argNames = daoAnnotationReader.getArgNames(method); - // if (argNames.length == 0 && isUpdateSignatureForBean(method)) { - // argNames = new String[] { - // StringUtil.decapitalize(ClassUtil.getShortClassName(beanClass)) }; - // } - // - // // It is unnecessary for DBFlute! - // // cmd.setNotSingleRowUpdatedExceptionClass( - // getNotSingleRowUpdatedExceptionClass(method)); - // - // registerSqlCommand(method.getName(), method, sql, argNames, - // method.getParameterTypes(), cmd); - // } + @Override + protected void setupUpdateMethodByManual(Method method, final String sql) { + // DBFlute Extesion does not exist. Because DBFlute methods don't use + // this! + // The insert/update/delete methods on DAO interface as outside SQL are + // target. + // And especially NonPrimaryInsertMethod uses this for using S2Dao's + // BindVariableNode. + super.setupUpdateMethodByManual(method, sql); + } // ----------------------------------------------------- // Specified OutsideSql @@ -1260,6 +1343,37 @@ //========================================================================== // ========= + // Assist Helper + // ============= + protected DBMeta findDBMeta() { + final Class<?> beanType = getBeanClass(); + if (beanType == null) { + return null; + } + if (!Entity.class.isAssignableFrom(beanType)) { + return null; + } + final Entity entity; + try { + entity = (Entity) beanType.newInstance(); + } catch (InstantiationException e) { + throw new IllegalStateException(e); + } catch (IllegalAccessException e) { + throw new IllegalStateException(e); + } + return entity.getDBMeta(); + } + + //========================================================================== + // ========= + // General Helper + // ============== + protected String getLineSeparator() { + return SimpleSystemUtil.getLineSeparator(); + } + + //========================================================================== + // ========= // Accessor // ======== // ----------------------------------------------------- Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoMetaDataFactoryImpl.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoMetaDataFactoryImpl.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/S2DaoMetaDataFactoryImpl.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -160,24 +160,7 @@ initializeDatabaseProductNameOfContext(xaDataSource); - final StringBuilder sb = new StringBuilder(); - sb.append("{SqlLog Information}").append(getLineSeparator()); - sb.append(" [SqlLogRegistry]").append(getLineSeparator()); - final Object sqlLogRegistry = InternalSqlLogRegistry - .findContainerSqlLogRegistry(); - if (sqlLogRegistry != null) { - InternalSqlLogRegistry.closeRegistration(); - sb - .append( - " SqlLogRegistry(org.seasar.extension.jdbc) is close! It's default for DBFlute.") - .append(getLineSeparator()); - sb - .append(" If you want to use this, set SqlLogRegistry to SqlLogRegistryLocator at yourself."); - } else { - sb - .append(" SqlLogRegistry(org.seasar.extension.jdbc) was not found!"); - } - _log.info(sb); + handleSqlLogRegistry(); DBFluteConfig.getInstance().lock(); _log.info("* * * * */"); @@ -202,6 +185,41 @@ _log.info("{Injection Information}" + getLineSeparator() + sb); } + protected void handleSqlLogRegistry() { + final StringBuilder sb = new StringBuilder(); + sb.append("{SqlLog Information}").append(getLineSeparator()); + sb.append(" [SqlLogRegistry]").append(getLineSeparator()); + if (DBFluteConfig.getInstance().isUseSqlLogRegistry()) { + if (InternalSqlLogRegistry.setupSqlLogRegistry()) { + sb + .append( + " ...Setting up SqlLogRegistry(org.seasar.extension.jdbc)!") + .append(getLineSeparator()); + sb + .append(" Because the property 'useSqlLogRegistry' of the config of DBFlute is true."); + } else { + sb + .append(" SqlLogRegistry(org.seasar.extension.jdbc) is not supported at the version!"); + } + } else { + final Object sqlLogRegistry = InternalSqlLogRegistry + .findContainerSqlLogRegistry(); + if (sqlLogRegistry != null) { + InternalSqlLogRegistry.closeRegistration(); + sb + .append( + " SqlLogRegistry(org.seasar.extension.jdbc) is close! It's default for DBFlute.") + .append(getLineSeparator()); + sb + .append(" If you want to use this, set SqlLogRegistry to SqlLogRegistryLocator at yourself."); + } else { + sb + .append(" SqlLogRegistry(org.seasar.extension.jdbc) is not available!"); + } + } + _log.info(sb); + } + // ----------------------------------------------------- // Database Product Name // --------------------- Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/rshandler/InternalBeanListMetaDataResultSetHandler.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/rshandler/InternalBeanListMetaDataResultSetHandler.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/rshandler/InternalBeanListMetaDataResultSetHandler.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -10,6 +10,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.ConditionBean; import jp.sf.pal.timecard.db.allcommon.cbean.ConditionBeanContext; +import jp.sf.pal.timecard.db.allcommon.cbean.outsidesql.OutsideSqlContext; import org.seasar.dao.BeanMetaData; import org.seasar.dao.RelationPropertyType; @@ -47,42 +48,57 @@ // Handle // ====== public Object handle(ResultSet rs) throws SQLException { - // Set<String(columnName)> - Set columnNames = null; + // Lazy initialization because if the result is zero, the resources are + // unused. + Set columnNames = null; // Set<String(columnName)> + Map propertyCache = null; // Map<String(columnName), PropertyType> + Map relationPropertyCache = null; // Map<String(relationNoSuffix), + // Map<String(columnName), + // PropertyType>> + RelationRowCache relRowCache = null; - // Map<String(columnName), PropertyType> - Map propertyCache = null; // [DAO-118] (2007/08/26) - - // Map<String(relationNoSuffix), Map<String(columnName), PropertyType>> - Map relationPropertyCache = null; // [DAO-118] (2007/08/25) - final List list = new ArrayList(); final int relSize = getBeanMetaData().getRelationPropertyTypeSize(); - final RelationRowCache relRowCache = new RelationRowCache(relSize); final boolean hasCB = hasConditionBean(); - final boolean emptyRelation = isSelectedForeignInfoEmpty(); + final boolean skipRelationLoop; + { + final boolean emptyRelation = isSelectedForeignInfoEmpty(); + final boolean hasOSC = hasOutsideSqlContext(); + final boolean specifiedOutsideSql = isSpecifiedOutsideSql(); + // If it has condition-bean that has no relation to get + // or it has outside-sql context that is specified-outside-sql, + // they are unnecessary to do relation loop! + skipRelationLoop = (hasCB && emptyRelation) + || (hasOSC && specifiedOutsideSql); + } + while (rs.next()) { - // Lazy initialization because if the result is zero, the resources - // are unused. if (columnNames == null) { columnNames = createColumnNames(rs.getMetaData()); } if (propertyCache == null) { propertyCache = createPropertyCache(columnNames); } - if (relationPropertyCache == null) { - relationPropertyCache = createRelationPropertyCache(columnNames); - } // Create row instance of base table by row property cache. final Object row = createRow(rs, propertyCache); - if (hasCB && emptyRelation) { + // If it has condition-bean that has no relation to get + // or it has outside-sql context that is specified-outside-sql, + // they are unnecessary to do relation loop! + if (skipRelationLoop) { postCreateRow(row); list.add(row); continue; } + + if (relationPropertyCache == null) { + relationPropertyCache = createRelationPropertyCache(columnNames); + } + if (relRowCache == null) { + relRowCache = new RelationRowCache(relSize); + } for (int i = 0; i < relSize; ++i) { final RelationPropertyType rpt = getBeanMetaData() .getRelationPropertyType(i); @@ -195,7 +211,26 @@ return false; } + /** + * Build the string of relation No suffix. + * + * @param rpt The property type of relation. (NotNull) + * @return The string of relation No suffix. (NotNull) + */ protected String buildRelationNoSuffix(RelationPropertyType rpt) { return "_" + rpt.getRelationNo(); } + + protected boolean hasOutsideSqlContext() { + return OutsideSqlContext.isExistOutsideSqlContextOnThread(); + } + + protected boolean isSpecifiedOutsideSql() { + if (!hasOutsideSqlContext()) { + return false; + } + final OutsideSqlContext context = OutsideSqlContext + .getOutsideSqlContextOnThread(); + return context.isSpecifiedOutsideSql(); + } } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/sqlhandler/InternalBasicHandler.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/sqlhandler/InternalBasicHandler.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/sqlhandler/InternalBasicHandler.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -8,6 +8,7 @@ import javax.sql.DataSource; +import jp.sf.pal.timecard.db.allcommon.CallbackContext; import jp.sf.pal.timecard.db.allcommon.DBFluteConfig; import jp.sf.pal.timecard.db.allcommon.InternalMapContext; import jp.sf.pal.timecard.db.allcommon.QLog; @@ -16,6 +17,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.outsidesql.OutsideSqlContext; import jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyExistsException; import jp.sf.pal.timecard.db.allcommon.exception.SQLFailureException; +import jp.sf.pal.timecard.db.allcommon.jdbc.SqlLogHandler; import jp.sf.pal.timecard.db.allcommon.s2dao.internal.sqllog.InternalSqlLogRegistry; import jp.sf.pal.timecard.db.allcommon.s2dao.internal.util.InternalBindVariableUtil; import jp.sf.pal.timecard.db.allcommon.util.SimpleSystemUtil; @@ -60,8 +62,11 @@ //========================================================================== // ========= - // Basic Method for SubClass - // ========================= + // Common Logic + // ============ + // ----------------------------------------------------- + // Args Handling + // ------------- protected void bindArgs(PreparedStatement ps, Object[] args, Class<?>[] argTypes) { if (args == null) { @@ -91,42 +96,65 @@ return argTypes; } - protected String getCompleteSql(Object[] args) { - return InternalBindVariableUtil.getCompleteSql(sql, args); + // ----------------------------------------------------- + // SQL Logging + // ----------- + protected void logSql(Object[] args, Class<?>[] argTypes) { + final SqlLogHandler sqlLogHandler = getSqlLogHander(); + final boolean existsSqlLogHandler = sqlLogHandler != null; + final Object sqlLogRegistry = InternalSqlLogRegistry + .findContainerSqlLogRegistry(); + final boolean existsSqlLogRegistry = sqlLogRegistry != null; + if (isLogEnabled() || existsSqlLogHandler || existsSqlLogRegistry) { + final String completeSql = getCompleteSql(args); + if (isLogEnabled()) { + log((isContainsLineSeparatorInSql() ? getLineSeparator() : "") + + completeSql); + } + if (existsSqlLogHandler) { // DBFlute provides + sqlLogHandler.handle(getSql(), completeSql, args, argTypes); + } + if (existsSqlLogRegistry) { // S2Container provides + InternalSqlLogRegistry.push(getSql(), completeSql, args, + argTypes, sqlLogRegistry); + } + } } - protected String getBindVariableText(Object bindVariable) { - return InternalBindVariableUtil.getBindVariableText(bindVariable); + protected boolean isLogEnabled() { + return QLog.isLogEnabled(); } - protected ValueType getValueType(Class<?> clazz) { - return ValueTypes.getValueType(clazz); + protected void log(String msg) { + QLog.log(msg); } - protected void logSql(Object[] args, Class<?>[] argTypes) { - if (QLog.isLogEnabled() - || InternalSqlLogRegistry.existsSqlLogRegistry()) { - final String completeSql = getCompleteSql(args); - if (isContainsLineSeparatorInSql()) { - QLog.log(getLineSeparator() + completeSql); - } else { - QLog.log(completeSql); - } - if (InternalSqlLogRegistry.existsSqlLogRegistry()) { - final Object sqlLogRegistry = InternalSqlLogRegistry - .findContainerSqlLogRegistry(); - if (sqlLogRegistry != null) { - InternalSqlLogRegistry.push(getSql(), completeSql, args, - argTypes, sqlLogRegistry); - } - } + protected String getCompleteSql(Object[] args) { + return InternalBindVariableUtil.getCompleteSql(sql, args); + } + + protected SqlLogHandler getSqlLogHander() { + if (!CallbackContext.isExistCallbackContextOnThread()) { + return null; } + return CallbackContext.getCallbackContextOnThread().getSqlLogHandler(); } protected boolean isContainsLineSeparatorInSql() { return sql != null ? sql.contains(getLineSeparator()) : false; } + // ----------------------------------------------------- + // Various + // ------- + protected String getBindVariableText(Object bindVariable) { + return InternalBindVariableUtil.getBindVariableText(bindVariable); + } + + protected ValueType getValueType(Class<?> clazz) { + return ValueTypes.getValueType(clazz); + } + //========================================================================== // ========= // Exception Handler @@ -530,6 +558,31 @@ //========================================================================== // ========= + // Assist Helper + // ============= + // It needs this method if the target database doest not support line + // comment. + protected String removeLineComment(final String sql) { // With removing CR! + if (sql == null || sql.trim().length() == 0) { + return sql; + } + final StringBuilder sb = new StringBuilder(); + final String[] lines = sql.split("\n"); + for (String line : lines) { + if (line == null) { + continue; + } + line = line.replaceAll("\r", ""); // Remove CR! + if (line.startsWith("--")) { + continue; + } + sb.append(line).append("\n"); + } + return sb.toString(); + } + + //========================================================================== + // ========= // General Helper // ============== protected String getLineSeparator() { Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/sqllog/InternalSqlLogRegistry.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/sqllog/InternalSqlLogRegistry.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/sqllog/InternalSqlLogRegistry.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -28,11 +28,11 @@ protected static final String NAME_SqlLogRegistry = "org.seasar.extension.jdbc.SqlLogRegistry"; + protected static final String NAME_SqlLogRegistryImpl = "org.seasar.extension.jdbc.impl.SqlLogRegistryImpl"; + protected static final String NAME_SqlLog = "org.seasar.extension.jdbc.SqlLog"; protected static final String NAME_SqlLogImpl = "org.seasar.extension.jdbc.impl.SqlLogImpl"; - - protected static boolean STATUS_SqlLogExists = false; static { forNameContainerSqlLogRegistryLocator(); } @@ -41,10 +41,56 @@ // ========= // Public Entry // ============ - public static boolean existsSqlLogRegistry() { - return STATUS_SqlLogExists; + public static boolean setupSqlLogRegistry() { + final Class<?> sqlLogRegistryLocatorType = forNameContainerSqlLogRegistryLocator(); + if (sqlLogRegistryLocatorType == null) { + return false; + } + final Class<?> sqlLogRegistryType = forNameContainerSqlLogRegistry(); + if (sqlLogRegistryType == null) { + return false; + } + final Object sqlLogRegistryImpl = createContainerSqlLogRegistryImpl(); + if (sqlLogRegistryImpl == null) { + return false; + } + try { + final Method method = sqlLogRegistryLocatorType.getMethod( + NAME_setInstance, new Class[] { sqlLogRegistryType }); + _log.info("...Setting the registry of sqlLog to the locator."); + method.invoke(null, new Object[] { sqlLogRegistryImpl }); + return true; + } catch (Exception e) { + String msg = "InternalSqlLogRegistry.setupSqlLogRegistry() threw the exception:"; + msg = msg + " sqlLogRegistryLocatorType=" + + sqlLogRegistryLocatorType; + msg = msg + " NAME_setInstance=" + NAME_setInstance; + throw new IllegalStateException(msg, e); + } } + public static void clearSqlLogRegistry() { + final Class<?> sqlLogRegistryLocatorType = forNameContainerSqlLogRegistryLocator(); + if (sqlLogRegistryLocatorType == null) { + return; + } + final Object sqlLogRegistry = findContainerSqlLogRegistry(); + if (sqlLogRegistry == null) { + return; + } + Class<? extends Object> sqlLogRegistryType = sqlLogRegistry.getClass(); + try { + final Method method = sqlLogRegistryType.getMethod("clear", + new Class[] {}); + method.invoke(sqlLogRegistry, new Object[] {}); + } catch (Exception e) { + String msg = "InternalSqlLogRegistry.clearSqlLogRegistry() threw the exception:"; + msg = msg + " sqlLogRegistryLocatorType=" + + sqlLogRegistryLocatorType; + throw new IllegalStateException(msg, e); + } + } + public static Object findContainerSqlLogRegistry() { final Class<?> sqlLogRegistryLocatorType = forNameContainerSqlLogRegistryLocator(); if (sqlLogRegistryLocatorType == null) { @@ -75,7 +121,7 @@ try { final Method method = sqlLogRegistryLocatorType.getMethod( NAME_setInstance, new Class[] { sqlLogRegistryType }); - _log.info("...Closing the registration of sqlLog."); + _log.info("...Closing the registry of sqlLog."); method.invoke(null, new Object[] { null }); } catch (Exception e) { String msg = "InternalSqlLogRegistry.closeRegistration() threw the exception:"; @@ -113,6 +159,22 @@ // ========= // Container Reflection // ==================== + protected static Object createContainerSqlLogRegistryImpl() { + try { + final Class<?> clazz = forNameContainerSqlLogRegistryImpl(); + if (clazz == null) { + return null; + } + final Constructor<?> constructor = clazz.getConstructor(int.class); + return constructor.newInstance(new Object[] { 3 }); + } catch (Exception e) { + String msg = NAME_SqlLogRegistry + + ".class.newInstance threw the exception:"; + msg = msg + " NAME_SqlLogRegistry=" + NAME_SqlLogRegistry; + throw new IllegalStateException(msg, e); + } + } + protected static Object createContainerSqlLogImpl(String rawSql, String completeSql, Object[] bindArgs, Class<?>[] bindArgTypes) { try { @@ -187,9 +249,7 @@ Class<?> clazz = null; try { clazz = Class.forName(NAME_SqlLogRegistryLocator); - STATUS_SqlLogExists = true; } catch (Exception ignored) { - STATUS_SqlLogExists = false; return null; } return clazz; @@ -204,4 +264,14 @@ } return clazz; } + + protected static Class<?> forNameContainerSqlLogRegistryImpl() { + Class<?> clazz = null; + try { + clazz = Class.forName(NAME_SqlLogRegistryImpl); + } catch (Exception ignored) { + return null; + } + return clazz; + } } Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/valuetype/InternalBytesOidType.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/valuetype/InternalBytesOidType.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/valuetype/InternalBytesOidType.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,137 @@ +package jp.sf.pal.timecard.db.allcommon.s2dao.internal.valuetype; + +import java.io.ByteArrayInputStream; +import java.io.InputStream; +import java.io.OutputStream; +import java.sql.Blob; +import java.sql.CallableStatement; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Types; + +import org.seasar.extension.jdbc.types.BytesType; + +/** + * The value type of bytes OID. (for PostgreSQL) + * + * @author DBFlute(AutoGenerator) + */ +public class InternalBytesOidType extends BytesType { + + //========================================================================== + // ========= + // Constructor + // =========== + public InternalBytesOidType() { + super(new InternalBytesOidTrait()); + } + + //========================================================================== + // ========= + // Blob Trait + // ========== + protected static class InternalBytesOidTrait implements Trait { + + public int getSqlType() { + return Types.BLOB; + } + + public void set(PreparedStatement ps, int parameterIndex, byte[] bytes) + throws SQLException { + ps.setBlob(parameterIndex, createBytesOidImpl(bytes)); + } + + protected Blob createBytesOidImpl(byte[] bytes) { + return new InternalBytesOidImpl(bytes); + } + + public void set(CallableStatement cs, String parameterName, byte[] bytes) + throws SQLException { + cs.setBytes(parameterName, bytes); + } + + public byte[] get(ResultSet rs, int columnIndex) throws SQLException { + return BytesType.toBytes(rs.getBlob(columnIndex)); + } + + public byte[] get(ResultSet rs, String columnName) throws SQLException { + return BytesType.toBytes(rs.getBlob(columnName)); + } + + public byte[] get(CallableStatement cs, int columnIndex) + throws SQLException { + return BytesType.toBytes(cs.getBlob(columnIndex)); + } + + public byte[] get(CallableStatement cs, String columnName) + throws SQLException { + return BytesType.toBytes(cs.getBlob(columnName)); + } + } + + //========================================================================== + // ========= + // Blob Implementation + // =================== + protected static class InternalBytesOidImpl implements Blob { + + protected byte[] bytes; + + public InternalBytesOidImpl(byte[] bytes) { + this.bytes = bytes; + } + + public void free() throws SQLException { // for JDK-6.0 + throw new UnsupportedOperationException("free()"); + } + + public InputStream getBinaryStream() throws SQLException { + return new ByteArrayInputStream(bytes); + } + + public InputStream getBinaryStream(long pos, long length) + throws SQLException { // for JDK-6.0 + throw new UnsupportedOperationException( + "getBinaryStream(pos, length)"); + } + + public byte[] getBytes(long pos, int length) throws SQLException { + if (length == bytes.length) { + return bytes; + } + byte[] result = new byte[length]; + System.arraycopy(bytes, 0, result, 0, length); + return result; + } + + public long length() throws SQLException { + return bytes.length; + } + + public long position(Blob pattern, long start) throws SQLException { + throw new UnsupportedOperationException("position"); + } + + public long position(byte[] pattern, long start) throws SQLException { + throw new UnsupportedOperationException("position"); + } + + public OutputStream setBinaryStream(long pos) throws SQLException { + throw new UnsupportedOperationException("setBinaryStream"); + } + + public int setBytes(long pos, byte[] bytes, int offset, int len) + throws SQLException { + throw new UnsupportedOperationException("setBytes"); + } + + public int setBytes(long pos, byte[] bytes) throws SQLException { + throw new UnsupportedOperationException("setBytes"); + } + + public void truncate(long len) throws SQLException { + throw new UnsupportedOperationException("truncate"); + } + } +} \ No newline at end of file Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/allcommon/s2dao/internal/valuetype/InternalBytesOidType.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsDailyReportBhv.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsDailyReportBhv.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsDailyReportBhv.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -12,6 +12,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.PagingHandler; import jp.sf.pal.timecard.db.allcommon.cbean.PagingInvoker; import jp.sf.pal.timecard.db.allcommon.cbean.PagingResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder; import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; import jp.sf.pal.timecard.db.bsentity.dbmeta.DailyReportDbm; import jp.sf.pal.timecard.db.cbean.DailyReportCB; @@ -53,7 +54,6 @@ * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public abstract class BsDailyReportBhv extends jp.sf.pal.timecard.db.allcommon.bhv.AbstractBehaviorWritable { @@ -216,16 +216,15 @@ // List Select // =========== /** - * Select the list as result-bean. + * Select the list as result bean. * * @param cb The condition-bean of DailyReport. (NotNull) - * @return The result-bean of selected list. (NotNull) + * @return The result bean of selected list. (NotNull) */ public ListResultBean<DailyReport> selectList(DailyReportCB cb) { assertConditionBeanNotNull(cb); - return new jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder<DailyReport>( - getTableDbName()).buildListResultBean(cb, - delegateSelectList(cb)); + return new ResultBeanBuilder<DailyReport>(getTableDbName()) + .buildListResultBean(cb, delegateSelectList(cb)); } //========================================================================== @@ -233,10 +232,10 @@ // Page Select // =========== /** - * Select the page as result-bean. + * Select the page as result bean. * * @param cb The condition-bean of DailyReport. (NotNull) - * @return The result-bean of selected page. (NotNull) + * @return The result bean of selected page. (NotNull) */ public PagingResultBean<DailyReport> selectPage(final DailyReportCB cb) { assertConditionBeanNotNull(cb); @@ -281,9 +280,8 @@ //========================================================================== // ========= - // Pull Out Foreign - // ================ - + // Pullout Foreign + // =============== /** * Pull out the list of foreign table 'MonthlyReport'. * @@ -632,18 +630,6 @@ // ----------------------------------------------------- // Select // ------ - protected int delegateGetCountAll() { - return getMyDao().getCountAll(); - } - - protected List<DailyReport> delegateGetListAll() { - return getMyDao().getListAll(); - } - - protected DailyReport delegateGetEntity(Long id) { - return getMyDao().getEntity(id); - } - protected int delegateSelectCount(DailyReportCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsEmployeeBhv.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsEmployeeBhv.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsEmployeeBhv.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -14,6 +14,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.PagingHandler; import jp.sf.pal.timecard.db.allcommon.cbean.PagingInvoker; import jp.sf.pal.timecard.db.allcommon.cbean.PagingResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder; import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; import jp.sf.pal.timecard.db.bsentity.dbmeta.EmployeeDbm; import jp.sf.pal.timecard.db.cbean.EmployeeCB; @@ -58,7 +59,6 @@ * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public abstract class BsEmployeeBhv extends jp.sf.pal.timecard.db.allcommon.bhv.AbstractBehaviorWritable { @@ -221,16 +221,15 @@ // List Select // =========== /** - * Select the list as result-bean. + * Select the list as result bean. * * @param cb The condition-bean of Employee. (NotNull) - * @return The result-bean of selected list. (NotNull) + * @return The result bean of selected list. (NotNull) */ public ListResultBean<Employee> selectList(EmployeeCB cb) { assertConditionBeanNotNull(cb); - return new jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder<Employee>( - getTableDbName()).buildListResultBean(cb, - delegateSelectList(cb)); + return new ResultBeanBuilder<Employee>(getTableDbName()) + .buildListResultBean(cb, delegateSelectList(cb)); } //========================================================================== @@ -238,10 +237,10 @@ // Page Select // =========== /** - * Select the page as result-bean. + * Select the page as result bean. * * @param cb The condition-bean of Employee. (NotNull) - * @return The result-bean of selected page. (NotNull) + * @return The result bean of selected page. (NotNull) */ public PagingResultBean<Employee> selectPage(final EmployeeCB cb) { assertConditionBeanNotNull(cb); @@ -286,8 +285,8 @@ /** * Load referrer of monthlyReportList with the setupper for condition-bean * of referrer. <br /> About internal policy, the value of primary key(and - * others too) is treated as case-insensitive. <br /> The conditionBean that - * the setupper provides have settings before you touch it. It is as + * others too) is treated as case-insensitive. <br /> The condition-bean + * that the setupper provides have settings before you touch it. It is as * follows: * * <pre> @@ -296,8 +295,8 @@ * </pre> * * @param employeeList The entity list of employee. (NotNull) - * @param conditionBeanSetupper Referrer condition setupper instance for - * registering referrer condition. (NotNull) + * @param conditionBeanSetupper The instance of referrer condition-bean + * setupper for registering referrer condition. (NotNull) */ public void loadMonthlyReportList(List<Employee> employeeList, ConditionBeanSetupper<MonthlyReportCB> conditionBeanSetupper) { @@ -317,7 +316,7 @@ * setupper.} * * @param employeeList The entity list of employee. (NotNull) - * @param loadReferrerOption the option of load-referrer. (NotNull) + * @param loadReferrerOption The option of load-referrer. (NotNull) */ public void loadMonthlyReportList( List<Employee> employeeList, @@ -329,7 +328,7 @@ if (employeeList.isEmpty()) { return; } - final MonthlyReportBhv referrerBhv = getBehaviorSelector().select( + final MonthlyReportBhv referrerBhv = xgetBSFLR().select( MonthlyReportBhv.class); helpLoadReferrerInternally( employeeList, @@ -378,9 +377,8 @@ //========================================================================== // ========= - // Pull Out Foreign - // ================ - + // Pullout Foreign + // =============== /** * Pull out the list of foreign table 'UserInfo'. * @@ -735,18 +733,6 @@ // ----------------------------------------------------- // Select // ------ - protected int delegateGetCountAll() { - return getMyDao().getCountAll(); - } - - protected List<Employee> delegateGetListAll() { - return getMyDao().getListAll(); - } - - protected Employee delegateGetEntity(Integer id) { - return getMyDao().getEntity(id); - } - protected int delegateSelectCount(EmployeeCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsGroupInfoBhv.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsGroupInfoBhv.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsGroupInfoBhv.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -14,13 +14,17 @@ import jp.sf.pal.timecard.db.allcommon.cbean.PagingHandler; import jp.sf.pal.timecard.db.allcommon.cbean.PagingInvoker; import jp.sf.pal.timecard.db.allcommon.cbean.PagingResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder; import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; import jp.sf.pal.timecard.db.bsentity.dbmeta.GroupInfoDbm; import jp.sf.pal.timecard.db.cbean.GroupInfoCB; +import jp.sf.pal.timecard.db.cbean.GroupMappingCB; import jp.sf.pal.timecard.db.cbean.UserInfoCB; +import jp.sf.pal.timecard.db.exbhv.GroupMappingBhv; import jp.sf.pal.timecard.db.exbhv.UserInfoBhv; import jp.sf.pal.timecard.db.exdao.GroupInfoDao; import jp.sf.pal.timecard.db.exentity.GroupInfo; +import jp.sf.pal.timecard.db.exentity.GroupMapping; import jp.sf.pal.timecard.db.exentity.UserInfo; /** @@ -46,18 +50,17 @@ * * * [referrer-table] - * USER_INFO + * GROUP_MAPPING, USER_INFO * * [foreign-property] * * * [referrer-property] - * userInfoList + * groupMappingList, userInfoList * </pre> * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public abstract class BsGroupInfoBhv extends jp.sf.pal.timecard.db.allcommon.bhv.AbstractBehaviorWritable { @@ -220,16 +223,15 @@ // List Select // =========== /** - * Select the list as result-bean. + * Select the list as result bean. * * @param cb The condition-bean of GroupInfo. (NotNull) - * @return The result-bean of selected list. (NotNull) + * @return The result bean of selected list. (NotNull) */ public ListResultBean<GroupInfo> selectList(GroupInfoCB cb) { assertConditionBeanNotNull(cb); - return new jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder<GroupInfo>( - getTableDbName()).buildListResultBean(cb, - delegateSelectList(cb)); + return new ResultBeanBuilder<GroupInfo>(getTableDbName()) + .buildListResultBean(cb, delegateSelectList(cb)); } //========================================================================== @@ -237,10 +239,10 @@ // Page Select // =========== /** - * Select the page as result-bean. + * Select the page as result bean. * * @param cb The condition-bean of GroupInfo. (NotNull) - * @return The result-bean of selected page. (NotNull) + * @return The result bean of selected page. (NotNull) */ public PagingResultBean<GroupInfo> selectPage(final GroupInfoCB cb) { assertConditionBeanNotNull(cb); @@ -283,10 +285,101 @@ // Load Referrer // ============= /** + * Load referrer of groupMappingList with the setupper for condition-bean of + * referrer. <br /> About internal policy, the value of primary key(and + * others too) is treated as case-insensitive. <br /> The condition-bean + * that the setupper provides have settings before you touch it. It is as + * follows: + * + * <pre> + * cb.query().setGroupId_InScope(pkList); + * cb.query().addOrderBy_GroupId_Asc(); + * </pre> + * + * @param groupInfoList The entity list of groupInfo. (NotNull) + * @param conditionBeanSetupper The instance of referrer condition-bean + * setupper for registering referrer condition. (NotNull) + */ + public void loadGroupMappingList(List<GroupInfo> groupInfoList, + ConditionBeanSetupper<GroupMappingCB> conditionBeanSetupper) { + assertObjectNotNull("groupInfoList<GroupInfo>", groupInfoList); + assertObjectNotNull("conditionBeanSetupper<GroupMappingCB>", + conditionBeanSetupper); + if (groupInfoList.isEmpty()) { + return; + } + loadGroupMappingList(groupInfoList, + new LoadReferrerOption<GroupMappingCB, GroupMapping>( + conditionBeanSetupper)); + } + + /** + * {Refer to overload method that has an argument of condition-bean + * setupper.} + * + * @param groupInfoList The entity list of groupInfo. (NotNull) + * @param loadReferrerOption The option of load-referrer. (NotNull) + */ + public void loadGroupMappingList(List<GroupInfo> groupInfoList, + LoadReferrerOption<GroupMappingCB, GroupMapping> loadReferrerOption) { + assertObjectNotNull("groupInfoList<GroupInfo>", groupInfoList); + assertObjectNotNull("loadReferrerOption<GroupMapping, GroupMappingCB>", + loadReferrerOption); + if (groupInfoList.isEmpty()) { + return; + } + final GroupMappingBhv referrerBhv = xgetBSFLR().select( + GroupMappingBhv.class); + helpLoadReferrerInternally( + groupInfoList, + loadReferrerOption, + new InternalLoadReferrerCallback<GroupInfo, String, GroupMappingCB, GroupMapping>() { + public String callbackBase_getPrimaryKeyValue( + GroupInfo entity) { + return entity.getGroupId(); + } + + public void callbackBase_setReferrerList(GroupInfo entity, + List<GroupMapping> referrerList) { + entity.setGroupMappingList(referrerList); + } + + public GroupMappingCB callbackReferrer_newMyConditionBean() { + return referrerBhv.newMyConditionBean(); + } + + public void callbackReferrer_queryForeignKeyInScope( + GroupMappingCB cb, List<String> pkList) { + cb.query().setGroupId_InScope(pkList); + } + + public void callbackReferrer_queryAddOrderByForeignKeyAsc( + GroupMappingCB cb) { + cb.query().addOrderBy_GroupId_Asc(); + } + + public List<GroupMapping> callbackReferrer_selectList( + GroupMappingCB cb) { + return referrerBhv.selectList(cb); + } + + public String callbackReferrer_getForeignKeyValue( + GroupMapping entity) { + return entity.getGroupId(); + } + + public void callbackReferrer_setForeignEntity( + GroupMapping referrerEntity, GroupInfo baseEntity) { + referrerEntity.setGroupInfo(baseEntity); + } + }); + } + + /** * Load referrer of userInfoList with the setupper for condition-bean of * referrer. <br /> About internal policy, the value of primary key(and - * others too) is treated as case-insensitive. <br /> The conditionBean that - * the setupper provides have settings before you touch it. It is as + * others too) is treated as case-insensitive. <br /> The condition-bean + * that the setupper provides have settings before you touch it. It is as * follows: * * <pre> @@ -295,8 +388,8 @@ * </pre> * * @param groupInfoList The entity list of groupInfo. (NotNull) - * @param conditionBeanSetupper Referrer condition setupper instance for - * registering referrer condition. (NotNull) + * @param conditionBeanSetupper The instance of referrer condition-bean + * setupper for registering referrer condition. (NotNull) */ public void loadUserInfoList(List<GroupInfo> groupInfoList, ConditionBeanSetupper<UserInfoCB> conditionBeanSetupper) { @@ -316,7 +409,7 @@ * setupper.} * * @param groupInfoList The entity list of groupInfo. (NotNull) - * @param loadReferrerOption the option of load-referrer. (NotNull) + * @param loadReferrerOption The option of load-referrer. (NotNull) */ public void loadUserInfoList(List<GroupInfo> groupInfoList, LoadReferrerOption<UserInfoCB, UserInfo> loadReferrerOption) { @@ -326,8 +419,7 @@ if (groupInfoList.isEmpty()) { return; } - final UserInfoBhv referrerBhv = getBehaviorSelector().select( - UserInfoBhv.class); + final UserInfoBhv referrerBhv = xgetBSFLR().select(UserInfoBhv.class); helpLoadReferrerInternally( groupInfoList, loadReferrerOption, @@ -375,8 +467,8 @@ //========================================================================== // ========= - // Pull Out Foreign - // ================ + // Pullout Foreign + // =============== //========================================================================== // ========= @@ -704,18 +796,6 @@ // ----------------------------------------------------- // Select // ------ - protected int delegateGetCountAll() { - return getMyDao().getCountAll(); - } - - protected List<GroupInfo> delegateGetListAll() { - return getMyDao().getListAll(); - } - - protected GroupInfo delegateGetEntity(String groupId) { - return getMyDao().getEntity(groupId); - } - protected int delegateSelectCount(GroupInfoCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsGroupMappingBhv.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsGroupMappingBhv.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsGroupMappingBhv.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,602 @@ +package jp.sf.pal.timecard.db.bsbhv; + +import java.util.List; + +import jp.sf.pal.timecard.db.allcommon.DaoReadable; +import jp.sf.pal.timecard.db.allcommon.DaoWritable; +import jp.sf.pal.timecard.db.allcommon.Entity; +import jp.sf.pal.timecard.db.allcommon.bhv.setup.ValueLabelSetupper; +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ListResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.PagingBean; +import jp.sf.pal.timecard.db.allcommon.cbean.PagingHandler; +import jp.sf.pal.timecard.db.allcommon.cbean.PagingInvoker; +import jp.sf.pal.timecard.db.allcommon.cbean.PagingResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder; +import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; +import jp.sf.pal.timecard.db.bsentity.dbmeta.GroupMappingDbm; +import jp.sf.pal.timecard.db.cbean.GroupMappingCB; +import jp.sf.pal.timecard.db.exdao.GroupMappingDao; +import jp.sf.pal.timecard.db.exentity.GroupInfo; +import jp.sf.pal.timecard.db.exentity.GroupMapping; +import jp.sf.pal.timecard.db.exentity.UserInfo; + +/** + * The behavior of GROUP_MAPPING. + * + * <pre> + * [primary-key] + * ID + * + * [column] + * ID, USER_ID, GROUP_ID + * + * [sequence] + * + * + * [identity] + * ID + * + * [version-no] + * + * + * [foreign-table] + * GROUP_INFO, USER_INFO + * + * [referrer-table] + * + * + * [foreign-property] + * groupInfo, userInfo + * + * [referrer-property] + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public abstract class BsGroupMappingBhv extends + jp.sf.pal.timecard.db.allcommon.bhv.AbstractBehaviorWritable { + + //========================================================================== + // ========= + // Definition + // ========== + /* df:BehaviorQueryPathBegin */ + /* df:BehaviorQueryPathEnd */ + + //========================================================================== + // ========= + // Attribute + // ========= + protected GroupMappingDao _dao; + + //========================================================================== + // ========= + // Table name + // ========== + /** @return The name on database of table. (NotNull) */ + public String getTableDbName() { + return "GROUP_MAPPING"; + } + + //========================================================================== + // ========= + // DBMeta + // ====== + /** @return The meta data of the database. (NotNull) */ + public DBMeta getDBMeta() { + return GroupMappingDbm.getInstance(); + } + + /** @return The meta data of the database as my table type. (NotNull) */ + public GroupMappingDbm getMyDBMeta() { + return GroupMappingDbm.getInstance(); + } + + //========================================================================== + // ========= + // Dao Accessor + // ============ + public GroupMappingDao getMyDao() { + return _dao; + } + + public void setMyDao(GroupMappingDao dao) { + assertObjectNotNull("dao", dao); + _dao = dao; + } + + public DaoReadable getDaoReadable() { + return getMyDao(); + } + + public DaoWritable getDaoWritable() { + return getMyDao(); + } + + //========================================================================== + // ========= + // New Instance + // ============ + public Entity newEntity() { + return newMyEntity(); + } + + public ConditionBean newConditionBean() { + return newMyConditionBean(); + } + + public GroupMapping newMyEntity() { + return new GroupMapping(); + } + + public GroupMappingCB newMyConditionBean() { + return new GroupMappingCB(); + } + + //========================================================================== + // ========= + // Count Select + // ============ + /** + * Select the count of the condition-bean. {IgnorePagingCondition} + * + * @param cb The condition-bean of GroupMapping. (NotNull) + * @return The selected count. + */ + public int selectCount(GroupMappingCB cb) { + assertConditionBeanNotNull(cb); + return delegateSelectCount(cb); + } + + //========================================================================== + // ========= + // Entity Select + // ============= + /** + * Select the entity by the condition-bean. + * + * @param cb The condition-bean of GroupMapping. (NotNull) + * @return The selected entity. (Nullalble) + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity has been duplicated. + */ + public GroupMapping selectEntity(final GroupMappingCB cb) { + return helpSelectEntityInternally( + cb, + new InternalSelectEntityCallback<GroupMapping, GroupMappingCB>() { + public List<GroupMapping> callbackSelectList( + GroupMappingCB cb) { + return selectList(cb); + } + }); + } + + /** + * Select the entity by the condition-bean with deleted check. + * + * @param cb The condition-bean of GroupMapping. (NotNull) + * @return The selected entity. (NotNull) + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity has been duplicated. + */ + public GroupMapping selectEntityWithDeletedCheck(final GroupMappingCB cb) { + return helpSelectEntityWithDeletedCheckInternally( + cb, + new InternalSelectEntityWithDeletedCheckCallback<GroupMapping, GroupMappingCB>() { + public List<GroupMapping> callbackSelectList( + GroupMappingCB cb) { + return selectList(cb); + } + }); + } + + /* + * (non-javadoc) Select the entity with deleted check. {by primary-key + * value} + * @param primaryKey The keys of primary. + * @return The selected entity. (NotNull) + * @exception + * jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + * @exception + * jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException When + * the entity has been duplicated. + */ + public GroupMapping selectByPKValueWithDeletedCheck(Integer id) { + GroupMapping entity = new GroupMapping(); + entity.setId(id); + final GroupMappingCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString( + entity)); + return selectEntityWithDeletedCheck(cb); + } + + //========================================================================== + // ========= + // List Select + // =========== + /** + * Select the list as result bean. + * + * @param cb The condition-bean of GroupMapping. (NotNull) + * @return The result bean of selected list. (NotNull) + */ + public ListResultBean<GroupMapping> selectList(GroupMappingCB cb) { + assertConditionBeanNotNull(cb); + return new ResultBeanBuilder<GroupMapping>(getTableDbName()) + .buildListResultBean(cb, delegateSelectList(cb)); + } + + //========================================================================== + // ========= + // Page Select + // =========== + /** + * Select the page as result bean. + * + * @param cb The condition-bean of GroupMapping. (NotNull) + * @return The result bean of selected page. (NotNull) + */ + public PagingResultBean<GroupMapping> selectPage(final GroupMappingCB cb) { + assertConditionBeanNotNull(cb); + final PagingInvoker<GroupMapping> invoker = new PagingInvoker<GroupMapping>( + getTableDbName()); + final PagingHandler<GroupMapping> handler = new PagingHandler<GroupMapping>() { + public PagingBean getPagingBean() { + return cb; + } + + public int count() { + return selectCount(cb); + } + + public List<GroupMapping> paging() { + return selectList(cb); + } + }; + return invoker.invokePaging(handler); + } + + //========================================================================== + // ========= + // Various Select + // ============== + /** + * Select the list of value-label. + * + * @param cb The condition-bean of GroupMapping. (NotNull) + * @param valueLabelSetupper The setupper of value-label. (NotNull) + * @return The list of value-label. (NotNull) + */ + public List<java.util.Map<String, Object>> selectValueLabelList( + GroupMappingCB cb, + ValueLabelSetupper<GroupMapping> valueLabelSetupper) { + return createValueLabelList(selectList(cb), valueLabelSetupper); + } + + //========================================================================== + // ========= + // Load Referrer + // ============= + + //========================================================================== + // ========= + // Pullout Foreign + // =============== + /** + * Pull out the list of foreign table 'GroupInfo'. + * + * @param groupMappingList The list of groupMapping. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public List<GroupInfo> pulloutGroupInfo(List<GroupMapping> groupMappingList) { + return helpPulloutInternally(groupMappingList, + new InternalPulloutCallback<GroupMapping, GroupInfo>() { + public GroupInfo callbackGetForeignEntity( + GroupMapping entity) { + return entity.getGroupInfo(); + } + }); + } + + /** + * Pull out the list of foreign table 'UserInfo'. + * + * @param groupMappingList The list of groupMapping. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public List<UserInfo> pulloutUserInfo(List<GroupMapping> groupMappingList) { + return helpPulloutInternally(groupMappingList, + new InternalPulloutCallback<GroupMapping, UserInfo>() { + public UserInfo callbackGetForeignEntity(GroupMapping entity) { + return entity.getUserInfo(); + } + }); + } + + //========================================================================== + // ========= + // Entity Update + // ============= + /** + * Insert the entity. + * + * @param groupMapping The entity of insert target. (NotNull) + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyExistsException + * When the entity already exists. (Unique Constraint + * Violation) + */ + public void insert(GroupMapping groupMapping) { + assertEntityNotNull(groupMapping); + delegateInsert(groupMapping); + } + + @Override + protected void doCreate(Entity groupMapping) { + insert((GroupMapping) groupMapping); + } + + /** + * Update the entity modified-only. {UpdateCountZeroException, + * ConcurrencyControl} + * + * @param groupMapping The entity of update target. (NotNull) + * {PrimaryKeyRequired, ConcurrencyColumnRequired} + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity has been duplicated. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyExistsException + * When the entity already exists. (Unique Constraint + * Violation) + */ + public void update(final GroupMapping groupMapping) { + helpUpdateInternally(groupMapping, + new InternalUpdateCallback<GroupMapping>() { + public int callbackDelegateUpdate(GroupMapping entity) { + return delegateUpdate(entity); + } + }); + } + + @Override + protected void doModify(Entity entity) { + update((GroupMapping) entity); + } + + @Override + protected void doModifyNonstrict(Entity entity) { + update((GroupMapping) entity); + } + + /** + * Insert or update the entity modified-only. {ConcurrencyControl(when + * update)} + * + * @param groupMapping The entity of insert or update target. (NotNull) + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity has been duplicated. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyExistsException + * When the entity already exists. (Unique Constraint + * Violation) + */ + public void insertOrUpdate(final GroupMapping groupMapping) { + helpInsertOrUpdateInternally( + groupMapping, + new InternalInsertOrUpdateCallback<GroupMapping, GroupMappingCB>() { + public void callbackInsert(GroupMapping entity) { + insert(entity); + } + + public void callbackUpdate(GroupMapping entity) { + update(entity); + } + + public GroupMappingCB callbackNewMyConditionBean() { + return newMyConditionBean(); + } + + public int callbackSelectCount(GroupMappingCB cb) { + return selectCount(cb); + } + }); + } + + @Override + protected void doCreateOrUpdate(Entity groupMapping) { + insertOrUpdate((GroupMapping) groupMapping); + } + + @Override + protected void doCreateOrUpdateNonstrict(Entity entity) { + insertOrUpdate((GroupMapping) entity); + } + + /** + * Delete the entity. {UpdateCountZeroException, ConcurrencyControl} + * + * @param groupMapping The entity of delete target. (NotNull) + * {PrimaryKeyRequired, ConcurrencyColumnRequired} + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity has been duplicated. + */ + public void delete(GroupMapping groupMapping) { + helpDeleteInternally(groupMapping, + new InternalDeleteCallback<GroupMapping>() { + public int callbackDelegateDelete(GroupMapping entity) { + return delegateDelete(entity); + } + }); + } + + @Override + protected void doRemove(Entity groupMapping) { + delete((GroupMapping) groupMapping); + } + + //========================================================================== + // ========= + // Batch Update + // ============ + /** + * Batch insert the list. This method use 'Batch Update' of + * java.sql.PreparedStatement. + * + * @param groupMappingList The list of the entity. (NotNull) + * @return The array of inserted count. + */ + public int[] batchInsert(List<GroupMapping> groupMappingList) { + assertObjectNotNull("groupMappingList", groupMappingList); + return delegateInsertList(groupMappingList); + } + + /** + * Batch update the list. All columns are update target. {NOT modified only} + * <br /> This method use 'Batch Update' of java.sql.PreparedStatement. + * + * @param groupMappingList The list of the entity. (NotNull) + * @return The array of updated count. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + */ + public int[] batchUpdate(List<GroupMapping> groupMappingList) { + assertObjectNotNull("groupMappingList", groupMappingList); + return delegateUpdateList(groupMappingList); + } + + /** + * Batch delete the list. <br /> This method use 'Batch Update' of + * java.sql.PreparedStatement. + * + * @param groupMappingList The list of the entity. (NotNull) + * @return The array of deleted count. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + */ + public int[] batchDelete(List<GroupMapping> groupMappingList) { + assertObjectNotNull("groupMappingList", groupMappingList); + return delegateDeleteList(groupMappingList); + } + + //========================================================================== + // ========= + // Query Update + // ============ + /** + * Query update the several entities. {NoConcurrencyControl} + * + * @param groupMapping Entity. (NotNull) {PrimaryKeyNotRequired} + * @param cb Condition-bean. (NotNull) + * @return The updated count. + */ + public int queryUpdate(GroupMapping groupMapping, GroupMappingCB cb) { + assertObjectNotNull("groupMapping", groupMapping); + assertConditionBeanNotNull(cb); + setupCommonColumnOfUpdateIfNeeds(groupMapping); + filterEntityOfUpdate(groupMapping); + assertEntityOfUpdate(groupMapping); + return getMyDao().updateByQuery(cb, groupMapping); + } + + /** + * Query delete the several entities. {NoConcurrencyControl} + * + * @param cb Condition-bean. (NotNull) + * @return The deleted count. + */ + public int queryDelete(GroupMappingCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().deleteByQuery(cb); + } + + //========================================================================== + // ========= + // Various Update + // ============== + + //========================================================================== + // ========= + // Delegate Method + // =============== + // ----------------------------------------------------- + // Select + // ------ + protected int delegateSelectCount(GroupMappingCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().selectCount(cb); + } + + protected List<GroupMapping> delegateSelectList(GroupMappingCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().selectList(cb); + } + + // ----------------------------------------------------- + // Update + // ------ + protected int delegateInsert(GroupMapping e) { + if (!processBeforeInsert(e)) { + return 1; + } + return getMyDao().insert(e); + } + + protected int delegateUpdate(GroupMapping e) { + if (!processBeforeUpdate(e)) { + return 1; + } + return getMyDao().updateModifiedOnly(e); + } + + protected int delegateDelete(GroupMapping e) { + if (!processBeforeDelete(e)) { + return 1; + } + return getMyDao().delete(e); + } + + protected int[] delegateInsertList(List<GroupMapping> ls) { + assertObjectNotNull("groupMappingList", ls); + return getMyDao().insertList(helpFilterBeforeInsertInternally(ls)); + } + + protected int[] delegateUpdateList(List<GroupMapping> ls) { + assertObjectNotNull("groupMappingList", ls); + return getMyDao().updateList(helpFilterBeforeUpdateInternally(ls)); + } + + protected int[] delegateDeleteList(List<GroupMapping> ls) { + assertObjectNotNull("groupMappingList", ls); + return getMyDao().deleteList(helpFilterBeforeDeleteInternally(ls)); + } + + //========================================================================== + // ========= + // Optimistic Lock Info + // ==================== + @Override + protected boolean hasVersionNoValue(Entity entity) { + return false; + } + + @Override + protected boolean hasUpdateDateValue(Entity entity) { + return false; + } + + //========================================================================== + // ========= + // Helper + // ====== + protected GroupMapping downcast(Entity entity) { + return helpDowncastInternally(entity, GroupMapping.class); + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsGroupMappingBhv.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsMonthlyReportBhv.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsMonthlyReportBhv.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsMonthlyReportBhv.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -14,6 +14,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.PagingHandler; import jp.sf.pal.timecard.db.allcommon.cbean.PagingInvoker; import jp.sf.pal.timecard.db.allcommon.cbean.PagingResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder; import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; import jp.sf.pal.timecard.db.bsentity.dbmeta.MonthlyReportDbm; import jp.sf.pal.timecard.db.cbean.DailyReportCB; @@ -58,7 +59,6 @@ * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public abstract class BsMonthlyReportBhv extends jp.sf.pal.timecard.db.allcommon.bhv.AbstractBehaviorWritable { @@ -224,16 +224,15 @@ // List Select // =========== /** - * Select the list as result-bean. + * Select the list as result bean. * * @param cb The condition-bean of MonthlyReport. (NotNull) - * @return The result-bean of selected list. (NotNull) + * @return The result bean of selected list. (NotNull) */ public ListResultBean<MonthlyReport> selectList(MonthlyReportCB cb) { assertConditionBeanNotNull(cb); - return new jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder<MonthlyReport>( - getTableDbName()).buildListResultBean(cb, - delegateSelectList(cb)); + return new ResultBeanBuilder<MonthlyReport>(getTableDbName()) + .buildListResultBean(cb, delegateSelectList(cb)); } //========================================================================== @@ -241,10 +240,10 @@ // Page Select // =========== /** - * Select the page as result-bean. + * Select the page as result bean. * * @param cb The condition-bean of MonthlyReport. (NotNull) - * @return The result-bean of selected page. (NotNull) + * @return The result bean of selected page. (NotNull) */ public PagingResultBean<MonthlyReport> selectPage(final MonthlyReportCB cb) { assertConditionBeanNotNull(cb); @@ -290,8 +289,8 @@ /** * Load referrer of dailyReportList with the setupper for condition-bean of * referrer. <br /> About internal policy, the value of primary key(and - * others too) is treated as case-insensitive. <br /> The conditionBean that - * the setupper provides have settings before you touch it. It is as + * others too) is treated as case-insensitive. <br /> The condition-bean + * that the setupper provides have settings before you touch it. It is as * follows: * * <pre> @@ -300,8 +299,8 @@ * </pre> * * @param monthlyReportList The entity list of monthlyReport. (NotNull) - * @param conditionBeanSetupper Referrer condition setupper instance for - * registering referrer condition. (NotNull) + * @param conditionBeanSetupper The instance of referrer condition-bean + * setupper for registering referrer condition. (NotNull) */ public void loadDailyReportList(List<MonthlyReport> monthlyReportList, ConditionBeanSetupper<DailyReportCB> conditionBeanSetupper) { @@ -322,7 +321,7 @@ * setupper.} * * @param monthlyReportList The entity list of monthlyReport. (NotNull) - * @param loadReferrerOption the option of load-referrer. (NotNull) + * @param loadReferrerOption The option of load-referrer. (NotNull) */ public void loadDailyReportList(List<MonthlyReport> monthlyReportList, LoadReferrerOption<DailyReportCB, DailyReport> loadReferrerOption) { @@ -333,7 +332,7 @@ if (monthlyReportList.isEmpty()) { return; } - final DailyReportBhv referrerBhv = getBehaviorSelector().select( + final DailyReportBhv referrerBhv = xgetBSFLR().select( DailyReportBhv.class); helpLoadReferrerInternally( monthlyReportList, @@ -382,9 +381,8 @@ //========================================================================== // ========= - // Pull Out Foreign - // ================ - + // Pullout Foreign + // =============== /** * Pull out the list of foreign table 'Employee'. * @@ -732,18 +730,6 @@ // ----------------------------------------------------- // Select // ------ - protected int delegateGetCountAll() { - return getMyDao().getCountAll(); - } - - protected List<MonthlyReport> delegateGetListAll() { - return getMyDao().getListAll(); - } - - protected MonthlyReport delegateGetEntity(Long id) { - return getMyDao().getEntity(id); - } - protected int delegateSelectCount(MonthlyReportCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsRoleInfoBhv.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsRoleInfoBhv.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsRoleInfoBhv.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -14,13 +14,17 @@ import jp.sf.pal.timecard.db.allcommon.cbean.PagingHandler; import jp.sf.pal.timecard.db.allcommon.cbean.PagingInvoker; import jp.sf.pal.timecard.db.allcommon.cbean.PagingResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder; import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; import jp.sf.pal.timecard.db.bsentity.dbmeta.RoleInfoDbm; import jp.sf.pal.timecard.db.cbean.RoleInfoCB; +import jp.sf.pal.timecard.db.cbean.RoleMappingCB; import jp.sf.pal.timecard.db.cbean.UserInfoCB; +import jp.sf.pal.timecard.db.exbhv.RoleMappingBhv; import jp.sf.pal.timecard.db.exbhv.UserInfoBhv; import jp.sf.pal.timecard.db.exdao.RoleInfoDao; import jp.sf.pal.timecard.db.exentity.RoleInfo; +import jp.sf.pal.timecard.db.exentity.RoleMapping; import jp.sf.pal.timecard.db.exentity.UserInfo; /** @@ -46,18 +50,17 @@ * * * [referrer-table] - * USER_INFO + * ROLE_MAPPING, USER_INFO * * [foreign-property] * * * [referrer-property] - * userInfoList + * roleMappingList, userInfoList * </pre> * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public abstract class BsRoleInfoBhv extends jp.sf.pal.timecard.db.allcommon.bhv.AbstractBehaviorWritable { @@ -220,16 +223,15 @@ // List Select // =========== /** - * Select the list as result-bean. + * Select the list as result bean. * * @param cb The condition-bean of RoleInfo. (NotNull) - * @return The result-bean of selected list. (NotNull) + * @return The result bean of selected list. (NotNull) */ public ListResultBean<RoleInfo> selectList(RoleInfoCB cb) { assertConditionBeanNotNull(cb); - return new jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder<RoleInfo>( - getTableDbName()).buildListResultBean(cb, - delegateSelectList(cb)); + return new ResultBeanBuilder<RoleInfo>(getTableDbName()) + .buildListResultBean(cb, delegateSelectList(cb)); } //========================================================================== @@ -237,10 +239,10 @@ // Page Select // =========== /** - * Select the page as result-bean. + * Select the page as result bean. * * @param cb The condition-bean of RoleInfo. (NotNull) - * @return The result-bean of selected page. (NotNull) + * @return The result bean of selected page. (NotNull) */ public PagingResultBean<RoleInfo> selectPage(final RoleInfoCB cb) { assertConditionBeanNotNull(cb); @@ -283,10 +285,101 @@ // Load Referrer // ============= /** + * Load referrer of roleMappingList with the setupper for condition-bean of + * referrer. <br /> About internal policy, the value of primary key(and + * others too) is treated as case-insensitive. <br /> The condition-bean + * that the setupper provides have settings before you touch it. It is as + * follows: + * + * <pre> + * cb.query().setRoleId_InScope(pkList); + * cb.query().addOrderBy_RoleId_Asc(); + * </pre> + * + * @param roleInfoList The entity list of roleInfo. (NotNull) + * @param conditionBeanSetupper The instance of referrer condition-bean + * setupper for registering referrer condition. (NotNull) + */ + public void loadRoleMappingList(List<RoleInfo> roleInfoList, + ConditionBeanSetupper<RoleMappingCB> conditionBeanSetupper) { + assertObjectNotNull("roleInfoList<RoleInfo>", roleInfoList); + assertObjectNotNull("conditionBeanSetupper<RoleMappingCB>", + conditionBeanSetupper); + if (roleInfoList.isEmpty()) { + return; + } + loadRoleMappingList(roleInfoList, + new LoadReferrerOption<RoleMappingCB, RoleMapping>( + conditionBeanSetupper)); + } + + /** + * {Refer to overload method that has an argument of condition-bean + * setupper.} + * + * @param roleInfoList The entity list of roleInfo. (NotNull) + * @param loadReferrerOption The option of load-referrer. (NotNull) + */ + public void loadRoleMappingList(List<RoleInfo> roleInfoList, + LoadReferrerOption<RoleMappingCB, RoleMapping> loadReferrerOption) { + assertObjectNotNull("roleInfoList<RoleInfo>", roleInfoList); + assertObjectNotNull("loadReferrerOption<RoleMapping, RoleMappingCB>", + loadReferrerOption); + if (roleInfoList.isEmpty()) { + return; + } + final RoleMappingBhv referrerBhv = xgetBSFLR().select( + RoleMappingBhv.class); + helpLoadReferrerInternally( + roleInfoList, + loadReferrerOption, + new InternalLoadReferrerCallback<RoleInfo, String, RoleMappingCB, RoleMapping>() { + public String callbackBase_getPrimaryKeyValue( + RoleInfo entity) { + return entity.getRoleId(); + } + + public void callbackBase_setReferrerList(RoleInfo entity, + List<RoleMapping> referrerList) { + entity.setRoleMappingList(referrerList); + } + + public RoleMappingCB callbackReferrer_newMyConditionBean() { + return referrerBhv.newMyConditionBean(); + } + + public void callbackReferrer_queryForeignKeyInScope( + RoleMappingCB cb, List<String> pkList) { + cb.query().setRoleId_InScope(pkList); + } + + public void callbackReferrer_queryAddOrderByForeignKeyAsc( + RoleMappingCB cb) { + cb.query().addOrderBy_RoleId_Asc(); + } + + public List<RoleMapping> callbackReferrer_selectList( + RoleMappingCB cb) { + return referrerBhv.selectList(cb); + } + + public String callbackReferrer_getForeignKeyValue( + RoleMapping entity) { + return entity.getRoleId(); + } + + public void callbackReferrer_setForeignEntity( + RoleMapping referrerEntity, RoleInfo baseEntity) { + referrerEntity.setRoleInfo(baseEntity); + } + }); + } + + /** * Load referrer of userInfoList with the setupper for condition-bean of * referrer. <br /> About internal policy, the value of primary key(and - * others too) is treated as case-insensitive. <br /> The conditionBean that - * the setupper provides have settings before you touch it. It is as + * others too) is treated as case-insensitive. <br /> The condition-bean + * that the setupper provides have settings before you touch it. It is as * follows: * * <pre> @@ -295,8 +388,8 @@ * </pre> * * @param roleInfoList The entity list of roleInfo. (NotNull) - * @param conditionBeanSetupper Referrer condition setupper instance for - * registering referrer condition. (NotNull) + * @param conditionBeanSetupper The instance of referrer condition-bean + * setupper for registering referrer condition. (NotNull) */ public void loadUserInfoList(List<RoleInfo> roleInfoList, ConditionBeanSetupper<UserInfoCB> conditionBeanSetupper) { @@ -316,7 +409,7 @@ * setupper.} * * @param roleInfoList The entity list of roleInfo. (NotNull) - * @param loadReferrerOption the option of load-referrer. (NotNull) + * @param loadReferrerOption The option of load-referrer. (NotNull) */ public void loadUserInfoList(List<RoleInfo> roleInfoList, LoadReferrerOption<UserInfoCB, UserInfo> loadReferrerOption) { @@ -326,8 +419,7 @@ if (roleInfoList.isEmpty()) { return; } - final UserInfoBhv referrerBhv = getBehaviorSelector().select( - UserInfoBhv.class); + final UserInfoBhv referrerBhv = xgetBSFLR().select(UserInfoBhv.class); helpLoadReferrerInternally( roleInfoList, loadReferrerOption, @@ -375,8 +467,8 @@ //========================================================================== // ========= - // Pull Out Foreign - // ================ + // Pullout Foreign + // =============== //========================================================================== // ========= @@ -702,18 +794,6 @@ // ----------------------------------------------------- // Select // ------ - protected int delegateGetCountAll() { - return getMyDao().getCountAll(); - } - - protected List<RoleInfo> delegateGetListAll() { - return getMyDao().getListAll(); - } - - protected RoleInfo delegateGetEntity(String roleId) { - return getMyDao().getEntity(roleId); - } - protected int delegateSelectCount(RoleInfoCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsRoleMappingBhv.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsRoleMappingBhv.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsRoleMappingBhv.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,597 @@ +package jp.sf.pal.timecard.db.bsbhv; + +import java.util.List; + +import jp.sf.pal.timecard.db.allcommon.DaoReadable; +import jp.sf.pal.timecard.db.allcommon.DaoWritable; +import jp.sf.pal.timecard.db.allcommon.Entity; +import jp.sf.pal.timecard.db.allcommon.bhv.setup.ValueLabelSetupper; +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ListResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.PagingBean; +import jp.sf.pal.timecard.db.allcommon.cbean.PagingHandler; +import jp.sf.pal.timecard.db.allcommon.cbean.PagingInvoker; +import jp.sf.pal.timecard.db.allcommon.cbean.PagingResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder; +import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; +import jp.sf.pal.timecard.db.bsentity.dbmeta.RoleMappingDbm; +import jp.sf.pal.timecard.db.cbean.RoleMappingCB; +import jp.sf.pal.timecard.db.exdao.RoleMappingDao; +import jp.sf.pal.timecard.db.exentity.RoleInfo; +import jp.sf.pal.timecard.db.exentity.RoleMapping; +import jp.sf.pal.timecard.db.exentity.UserInfo; + +/** + * The behavior of ROLE_MAPPING. + * + * <pre> + * [primary-key] + * ID + * + * [column] + * ID, USER_ID, ROLE_ID + * + * [sequence] + * + * + * [identity] + * ID + * + * [version-no] + * + * + * [foreign-table] + * ROLE_INFO, USER_INFO + * + * [referrer-table] + * + * + * [foreign-property] + * roleInfo, userInfo + * + * [referrer-property] + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public abstract class BsRoleMappingBhv extends + jp.sf.pal.timecard.db.allcommon.bhv.AbstractBehaviorWritable { + + //========================================================================== + // ========= + // Definition + // ========== + /* df:BehaviorQueryPathBegin */ + /* df:BehaviorQueryPathEnd */ + + //========================================================================== + // ========= + // Attribute + // ========= + protected RoleMappingDao _dao; + + //========================================================================== + // ========= + // Table name + // ========== + /** @return The name on database of table. (NotNull) */ + public String getTableDbName() { + return "ROLE_MAPPING"; + } + + //========================================================================== + // ========= + // DBMeta + // ====== + /** @return The meta data of the database. (NotNull) */ + public DBMeta getDBMeta() { + return RoleMappingDbm.getInstance(); + } + + /** @return The meta data of the database as my table type. (NotNull) */ + public RoleMappingDbm getMyDBMeta() { + return RoleMappingDbm.getInstance(); + } + + //========================================================================== + // ========= + // Dao Accessor + // ============ + public RoleMappingDao getMyDao() { + return _dao; + } + + public void setMyDao(RoleMappingDao dao) { + assertObjectNotNull("dao", dao); + _dao = dao; + } + + public DaoReadable getDaoReadable() { + return getMyDao(); + } + + public DaoWritable getDaoWritable() { + return getMyDao(); + } + + //========================================================================== + // ========= + // New Instance + // ============ + public Entity newEntity() { + return newMyEntity(); + } + + public ConditionBean newConditionBean() { + return newMyConditionBean(); + } + + public RoleMapping newMyEntity() { + return new RoleMapping(); + } + + public RoleMappingCB newMyConditionBean() { + return new RoleMappingCB(); + } + + //========================================================================== + // ========= + // Count Select + // ============ + /** + * Select the count of the condition-bean. {IgnorePagingCondition} + * + * @param cb The condition-bean of RoleMapping. (NotNull) + * @return The selected count. + */ + public int selectCount(RoleMappingCB cb) { + assertConditionBeanNotNull(cb); + return delegateSelectCount(cb); + } + + //========================================================================== + // ========= + // Entity Select + // ============= + /** + * Select the entity by the condition-bean. + * + * @param cb The condition-bean of RoleMapping. (NotNull) + * @return The selected entity. (Nullalble) + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity has been duplicated. + */ + public RoleMapping selectEntity(final RoleMappingCB cb) { + return helpSelectEntityInternally(cb, + new InternalSelectEntityCallback<RoleMapping, RoleMappingCB>() { + public List<RoleMapping> callbackSelectList(RoleMappingCB cb) { + return selectList(cb); + } + }); + } + + /** + * Select the entity by the condition-bean with deleted check. + * + * @param cb The condition-bean of RoleMapping. (NotNull) + * @return The selected entity. (NotNull) + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity has been duplicated. + */ + public RoleMapping selectEntityWithDeletedCheck(final RoleMappingCB cb) { + return helpSelectEntityWithDeletedCheckInternally( + cb, + new InternalSelectEntityWithDeletedCheckCallback<RoleMapping, RoleMappingCB>() { + public List<RoleMapping> callbackSelectList(RoleMappingCB cb) { + return selectList(cb); + } + }); + } + + /* + * (non-javadoc) Select the entity with deleted check. {by primary-key + * value} + * @param primaryKey The keys of primary. + * @return The selected entity. (NotNull) + * @exception + * jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + * @exception + * jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException When + * the entity has been duplicated. + */ + public RoleMapping selectByPKValueWithDeletedCheck(Integer id) { + RoleMapping entity = new RoleMapping(); + entity.setId(id); + final RoleMappingCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString( + entity)); + return selectEntityWithDeletedCheck(cb); + } + + //========================================================================== + // ========= + // List Select + // =========== + /** + * Select the list as result bean. + * + * @param cb The condition-bean of RoleMapping. (NotNull) + * @return The result bean of selected list. (NotNull) + */ + public ListResultBean<RoleMapping> selectList(RoleMappingCB cb) { + assertConditionBeanNotNull(cb); + return new ResultBeanBuilder<RoleMapping>(getTableDbName()) + .buildListResultBean(cb, delegateSelectList(cb)); + } + + //========================================================================== + // ========= + // Page Select + // =========== + /** + * Select the page as result bean. + * + * @param cb The condition-bean of RoleMapping. (NotNull) + * @return The result bean of selected page. (NotNull) + */ + public PagingResultBean<RoleMapping> selectPage(final RoleMappingCB cb) { + assertConditionBeanNotNull(cb); + final PagingInvoker<RoleMapping> invoker = new PagingInvoker<RoleMapping>( + getTableDbName()); + final PagingHandler<RoleMapping> handler = new PagingHandler<RoleMapping>() { + public PagingBean getPagingBean() { + return cb; + } + + public int count() { + return selectCount(cb); + } + + public List<RoleMapping> paging() { + return selectList(cb); + } + }; + return invoker.invokePaging(handler); + } + + //========================================================================== + // ========= + // Various Select + // ============== + /** + * Select the list of value-label. + * + * @param cb The condition-bean of RoleMapping. (NotNull) + * @param valueLabelSetupper The setupper of value-label. (NotNull) + * @return The list of value-label. (NotNull) + */ + public List<java.util.Map<String, Object>> selectValueLabelList( + RoleMappingCB cb, ValueLabelSetupper<RoleMapping> valueLabelSetupper) { + return createValueLabelList(selectList(cb), valueLabelSetupper); + } + + //========================================================================== + // ========= + // Load Referrer + // ============= + + //========================================================================== + // ========= + // Pullout Foreign + // =============== + /** + * Pull out the list of foreign table 'RoleInfo'. + * + * @param roleMappingList The list of roleMapping. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public List<RoleInfo> pulloutRoleInfo(List<RoleMapping> roleMappingList) { + return helpPulloutInternally(roleMappingList, + new InternalPulloutCallback<RoleMapping, RoleInfo>() { + public RoleInfo callbackGetForeignEntity(RoleMapping entity) { + return entity.getRoleInfo(); + } + }); + } + + /** + * Pull out the list of foreign table 'UserInfo'. + * + * @param roleMappingList The list of roleMapping. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public List<UserInfo> pulloutUserInfo(List<RoleMapping> roleMappingList) { + return helpPulloutInternally(roleMappingList, + new InternalPulloutCallback<RoleMapping, UserInfo>() { + public UserInfo callbackGetForeignEntity(RoleMapping entity) { + return entity.getUserInfo(); + } + }); + } + + //========================================================================== + // ========= + // Entity Update + // ============= + /** + * Insert the entity. + * + * @param roleMapping The entity of insert target. (NotNull) + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyExistsException + * When the entity already exists. (Unique Constraint + * Violation) + */ + public void insert(RoleMapping roleMapping) { + assertEntityNotNull(roleMapping); + delegateInsert(roleMapping); + } + + @Override + protected void doCreate(Entity roleMapping) { + insert((RoleMapping) roleMapping); + } + + /** + * Update the entity modified-only. {UpdateCountZeroException, + * ConcurrencyControl} + * + * @param roleMapping The entity of update target. (NotNull) + * {PrimaryKeyRequired, ConcurrencyColumnRequired} + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity has been duplicated. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyExistsException + * When the entity already exists. (Unique Constraint + * Violation) + */ + public void update(final RoleMapping roleMapping) { + helpUpdateInternally(roleMapping, + new InternalUpdateCallback<RoleMapping>() { + public int callbackDelegateUpdate(RoleMapping entity) { + return delegateUpdate(entity); + } + }); + } + + @Override + protected void doModify(Entity entity) { + update((RoleMapping) entity); + } + + @Override + protected void doModifyNonstrict(Entity entity) { + update((RoleMapping) entity); + } + + /** + * Insert or update the entity modified-only. {ConcurrencyControl(when + * update)} + * + * @param roleMapping The entity of insert or update target. (NotNull) + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity has been duplicated. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyExistsException + * When the entity already exists. (Unique Constraint + * Violation) + */ + public void insertOrUpdate(final RoleMapping roleMapping) { + helpInsertOrUpdateInternally( + roleMapping, + new InternalInsertOrUpdateCallback<RoleMapping, RoleMappingCB>() { + public void callbackInsert(RoleMapping entity) { + insert(entity); + } + + public void callbackUpdate(RoleMapping entity) { + update(entity); + } + + public RoleMappingCB callbackNewMyConditionBean() { + return newMyConditionBean(); + } + + public int callbackSelectCount(RoleMappingCB cb) { + return selectCount(cb); + } + }); + } + + @Override + protected void doCreateOrUpdate(Entity roleMapping) { + insertOrUpdate((RoleMapping) roleMapping); + } + + @Override + protected void doCreateOrUpdateNonstrict(Entity entity) { + insertOrUpdate((RoleMapping) entity); + } + + /** + * Delete the entity. {UpdateCountZeroException, ConcurrencyControl} + * + * @param roleMapping The entity of delete target. (NotNull) + * {PrimaryKeyRequired, ConcurrencyColumnRequired} + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityDuplicatedException + * When the entity has been duplicated. + */ + public void delete(RoleMapping roleMapping) { + helpDeleteInternally(roleMapping, + new InternalDeleteCallback<RoleMapping>() { + public int callbackDelegateDelete(RoleMapping entity) { + return delegateDelete(entity); + } + }); + } + + @Override + protected void doRemove(Entity roleMapping) { + delete((RoleMapping) roleMapping); + } + + //========================================================================== + // ========= + // Batch Update + // ============ + /** + * Batch insert the list. This method use 'Batch Update' of + * java.sql.PreparedStatement. + * + * @param roleMappingList The list of the entity. (NotNull) + * @return The array of inserted count. + */ + public int[] batchInsert(List<RoleMapping> roleMappingList) { + assertObjectNotNull("roleMappingList", roleMappingList); + return delegateInsertList(roleMappingList); + } + + /** + * Batch update the list. All columns are update target. {NOT modified only} + * <br /> This method use 'Batch Update' of java.sql.PreparedStatement. + * + * @param roleMappingList The list of the entity. (NotNull) + * @return The array of updated count. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + */ + public int[] batchUpdate(List<RoleMapping> roleMappingList) { + assertObjectNotNull("roleMappingList", roleMappingList); + return delegateUpdateList(roleMappingList); + } + + /** + * Batch delete the list. <br /> This method use 'Batch Update' of + * java.sql.PreparedStatement. + * + * @param roleMappingList The list of the entity. (NotNull) + * @return The array of deleted count. + * @exception jp.sf.pal.timecard.db.allcommon.exception.EntityAlreadyDeletedException + * When the entity has already been deleted. + */ + public int[] batchDelete(List<RoleMapping> roleMappingList) { + assertObjectNotNull("roleMappingList", roleMappingList); + return delegateDeleteList(roleMappingList); + } + + //========================================================================== + // ========= + // Query Update + // ============ + /** + * Query update the several entities. {NoConcurrencyControl} + * + * @param roleMapping Entity. (NotNull) {PrimaryKeyNotRequired} + * @param cb Condition-bean. (NotNull) + * @return The updated count. + */ + public int queryUpdate(RoleMapping roleMapping, RoleMappingCB cb) { + assertObjectNotNull("roleMapping", roleMapping); + assertConditionBeanNotNull(cb); + setupCommonColumnOfUpdateIfNeeds(roleMapping); + filterEntityOfUpdate(roleMapping); + assertEntityOfUpdate(roleMapping); + return getMyDao().updateByQuery(cb, roleMapping); + } + + /** + * Query delete the several entities. {NoConcurrencyControl} + * + * @param cb Condition-bean. (NotNull) + * @return The deleted count. + */ + public int queryDelete(RoleMappingCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().deleteByQuery(cb); + } + + //========================================================================== + // ========= + // Various Update + // ============== + + //========================================================================== + // ========= + // Delegate Method + // =============== + // ----------------------------------------------------- + // Select + // ------ + protected int delegateSelectCount(RoleMappingCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().selectCount(cb); + } + + protected List<RoleMapping> delegateSelectList(RoleMappingCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().selectList(cb); + } + + // ----------------------------------------------------- + // Update + // ------ + protected int delegateInsert(RoleMapping e) { + if (!processBeforeInsert(e)) { + return 1; + } + return getMyDao().insert(e); + } + + protected int delegateUpdate(RoleMapping e) { + if (!processBeforeUpdate(e)) { + return 1; + } + return getMyDao().updateModifiedOnly(e); + } + + protected int delegateDelete(RoleMapping e) { + if (!processBeforeDelete(e)) { + return 1; + } + return getMyDao().delete(e); + } + + protected int[] delegateInsertList(List<RoleMapping> ls) { + assertObjectNotNull("roleMappingList", ls); + return getMyDao().insertList(helpFilterBeforeInsertInternally(ls)); + } + + protected int[] delegateUpdateList(List<RoleMapping> ls) { + assertObjectNotNull("roleMappingList", ls); + return getMyDao().updateList(helpFilterBeforeUpdateInternally(ls)); + } + + protected int[] delegateDeleteList(List<RoleMapping> ls) { + assertObjectNotNull("roleMappingList", ls); + return getMyDao().deleteList(helpFilterBeforeDeleteInternally(ls)); + } + + //========================================================================== + // ========= + // Optimistic Lock Info + // ==================== + @Override + protected boolean hasVersionNoValue(Entity entity) { + return false; + } + + @Override + protected boolean hasUpdateDateValue(Entity entity) { + return false; + } + + //========================================================================== + // ========= + // Helper + // ====== + protected RoleMapping downcast(Entity entity) { + return helpDowncastInternally(entity, RoleMapping.class); + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsRoleMappingBhv.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsUserInfoBhv.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsUserInfoBhv.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsbhv/BsUserInfoBhv.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -14,15 +14,22 @@ import jp.sf.pal.timecard.db.allcommon.cbean.PagingHandler; import jp.sf.pal.timecard.db.allcommon.cbean.PagingInvoker; import jp.sf.pal.timecard.db.allcommon.cbean.PagingResultBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder; import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; import jp.sf.pal.timecard.db.bsentity.dbmeta.UserInfoDbm; import jp.sf.pal.timecard.db.cbean.EmployeeCB; +import jp.sf.pal.timecard.db.cbean.GroupMappingCB; +import jp.sf.pal.timecard.db.cbean.RoleMappingCB; import jp.sf.pal.timecard.db.cbean.UserInfoCB; import jp.sf.pal.timecard.db.exbhv.EmployeeBhv; +import jp.sf.pal.timecard.db.exbhv.GroupMappingBhv; +import jp.sf.pal.timecard.db.exbhv.RoleMappingBhv; import jp.sf.pal.timecard.db.exdao.UserInfoDao; import jp.sf.pal.timecard.db.exentity.Employee; import jp.sf.pal.timecard.db.exentity.GroupInfo; +import jp.sf.pal.timecard.db.exentity.GroupMapping; import jp.sf.pal.timecard.db.exentity.RoleInfo; +import jp.sf.pal.timecard.db.exentity.RoleMapping; import jp.sf.pal.timecard.db.exentity.UserInfo; /** @@ -33,7 +40,7 @@ * USER_ID * * [column] - * USER_ID, GIVEN_NAME, FAMILY_NAME, MIDDLE_NAME, GIVEN_NAME_DESC, FAMILY_NAME_DESC, EMAIL, URL, TELEPHONE, ROLE_ID, GROUP_ID, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO + * USER_ID, GIVEN_NAME, FAMILY_NAME, MIDDLE_NAME, GIVEN_NAME_DESC, FAMILY_NAME_DESC, NICKNAME, GENDER, BIRTH_DATE, EMAIL, URL, TELEPHONE, ROLE_ID, GROUP_ID, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO * * [sequence] * @@ -48,18 +55,17 @@ * GROUP_INFO, ROLE_INFO * * [referrer-table] - * EMPLOYEE + * EMPLOYEE, GROUP_MAPPING, ROLE_MAPPING * * [foreign-property] * groupInfo, roleInfo * * [referrer-property] - * employeeByUsernameList, employeeByManagerList + * employeeByUsernameList, employeeByManagerList, groupMappingList, roleMappingList * </pre> * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public abstract class BsUserInfoBhv extends jp.sf.pal.timecard.db.allcommon.bhv.AbstractBehaviorWritable { @@ -222,16 +228,15 @@ // List Select // =========== /** - * Select the list as result-bean. + * Select the list as result bean. * * @param cb The condition-bean of UserInfo. (NotNull) - * @return The result-bean of selected list. (NotNull) + * @return The result bean of selected list. (NotNull) */ public ListResultBean<UserInfo> selectList(UserInfoCB cb) { assertConditionBeanNotNull(cb); - return new jp.sf.pal.timecard.db.allcommon.cbean.ResultBeanBuilder<UserInfo>( - getTableDbName()).buildListResultBean(cb, - delegateSelectList(cb)); + return new ResultBeanBuilder<UserInfo>(getTableDbName()) + .buildListResultBean(cb, delegateSelectList(cb)); } //========================================================================== @@ -239,10 +244,10 @@ // Page Select // =========== /** - * Select the page as result-bean. + * Select the page as result bean. * * @param cb The condition-bean of UserInfo. (NotNull) - * @return The result-bean of selected page. (NotNull) + * @return The result bean of selected page. (NotNull) */ public PagingResultBean<UserInfo> selectPage(final UserInfoCB cb) { assertConditionBeanNotNull(cb); @@ -288,7 +293,7 @@ * Load referrer of employeeByUsernameList with the setupper for * condition-bean of referrer. <br /> About internal policy, the value of * primary key(and others too) is treated as case-insensitive. <br /> The - * conditionBean that the setupper provides have settings before you touch + * condition-bean that the setupper provides have settings before you touch * it. It is as follows: * * <pre> @@ -297,8 +302,8 @@ * </pre> * * @param userInfoList The entity list of userInfo. (NotNull) - * @param conditionBeanSetupper Referrer condition setupper instance for - * registering referrer condition. (NotNull) + * @param conditionBeanSetupper The instance of referrer condition-bean + * setupper for registering referrer condition. (NotNull) */ public void loadEmployeeByUsernameList(List<UserInfo> userInfoList, ConditionBeanSetupper<EmployeeCB> conditionBeanSetupper) { @@ -318,7 +323,7 @@ * setupper.} * * @param userInfoList The entity list of userInfo. (NotNull) - * @param loadReferrerOption the option of load-referrer. (NotNull) + * @param loadReferrerOption The option of load-referrer. (NotNull) */ public void loadEmployeeByUsernameList(List<UserInfo> userInfoList, LoadReferrerOption<EmployeeCB, Employee> loadReferrerOption) { @@ -328,8 +333,7 @@ if (userInfoList.isEmpty()) { return; } - final EmployeeBhv referrerBhv = getBehaviorSelector().select( - EmployeeBhv.class); + final EmployeeBhv referrerBhv = xgetBSFLR().select(EmployeeBhv.class); helpLoadReferrerInternally( userInfoList, loadReferrerOption, @@ -379,7 +383,7 @@ * Load referrer of employeeByManagerList with the setupper for * condition-bean of referrer. <br /> About internal policy, the value of * primary key(and others too) is treated as case-insensitive. <br /> The - * conditionBean that the setupper provides have settings before you touch + * condition-bean that the setupper provides have settings before you touch * it. It is as follows: * * <pre> @@ -388,8 +392,8 @@ * </pre> * * @param userInfoList The entity list of userInfo. (NotNull) - * @param conditionBeanSetupper Referrer condition setupper instance for - * registering referrer condition. (NotNull) + * @param conditionBeanSetupper The instance of referrer condition-bean + * setupper for registering referrer condition. (NotNull) */ public void loadEmployeeByManagerList(List<UserInfo> userInfoList, ConditionBeanSetupper<EmployeeCB> conditionBeanSetupper) { @@ -409,7 +413,7 @@ * setupper.} * * @param userInfoList The entity list of userInfo. (NotNull) - * @param loadReferrerOption the option of load-referrer. (NotNull) + * @param loadReferrerOption The option of load-referrer. (NotNull) */ public void loadEmployeeByManagerList(List<UserInfo> userInfoList, LoadReferrerOption<EmployeeCB, Employee> loadReferrerOption) { @@ -419,8 +423,7 @@ if (userInfoList.isEmpty()) { return; } - final EmployeeBhv referrerBhv = getBehaviorSelector().select( - EmployeeBhv.class); + final EmployeeBhv referrerBhv = xgetBSFLR().select(EmployeeBhv.class); helpLoadReferrerInternally( userInfoList, loadReferrerOption, @@ -466,11 +469,192 @@ }); } + /** + * Load referrer of groupMappingList with the setupper for condition-bean of + * referrer. <br /> About internal policy, the value of primary key(and + * others too) is treated as case-insensitive. <br /> The condition-bean + * that the setupper provides have settings before you touch it. It is as + * follows: + * + * <pre> + * cb.query().setUserId_InScope(pkList); + * cb.query().addOrderBy_UserId_Asc(); + * </pre> + * + * @param userInfoList The entity list of userInfo. (NotNull) + * @param conditionBeanSetupper The instance of referrer condition-bean + * setupper for registering referrer condition. (NotNull) + */ + public void loadGroupMappingList(List<UserInfo> userInfoList, + ConditionBeanSetupper<GroupMappingCB> conditionBeanSetupper) { + assertObjectNotNull("userInfoList<UserInfo>", userInfoList); + assertObjectNotNull("conditionBeanSetupper<GroupMappingCB>", + conditionBeanSetupper); + if (userInfoList.isEmpty()) { + return; + } + loadGroupMappingList(userInfoList, + new LoadReferrerOption<GroupMappingCB, GroupMapping>( + conditionBeanSetupper)); + } + + /** + * {Refer to overload method that has an argument of condition-bean + * setupper.} + * + * @param userInfoList The entity list of userInfo. (NotNull) + * @param loadReferrerOption The option of load-referrer. (NotNull) + */ + public void loadGroupMappingList(List<UserInfo> userInfoList, + LoadReferrerOption<GroupMappingCB, GroupMapping> loadReferrerOption) { + assertObjectNotNull("userInfoList<UserInfo>", userInfoList); + assertObjectNotNull("loadReferrerOption<GroupMapping, GroupMappingCB>", + loadReferrerOption); + if (userInfoList.isEmpty()) { + return; + } + final GroupMappingBhv referrerBhv = xgetBSFLR().select( + GroupMappingBhv.class); + helpLoadReferrerInternally( + userInfoList, + loadReferrerOption, + new InternalLoadReferrerCallback<UserInfo, String, GroupMappingCB, GroupMapping>() { + public String callbackBase_getPrimaryKeyValue( + UserInfo entity) { + return entity.getUserId(); + } + + public void callbackBase_setReferrerList(UserInfo entity, + List<GroupMapping> referrerList) { + entity.setGroupMappingList(referrerList); + } + + public GroupMappingCB callbackReferrer_newMyConditionBean() { + return referrerBhv.newMyConditionBean(); + } + + public void callbackReferrer_queryForeignKeyInScope( + GroupMappingCB cb, List<String> pkList) { + cb.query().setUserId_InScope(pkList); + } + + public void callbackReferrer_queryAddOrderByForeignKeyAsc( + GroupMappingCB cb) { + cb.query().addOrderBy_UserId_Asc(); + } + + public List<GroupMapping> callbackReferrer_selectList( + GroupMappingCB cb) { + return referrerBhv.selectList(cb); + } + + public String callbackReferrer_getForeignKeyValue( + GroupMapping entity) { + return entity.getUserId(); + } + + public void callbackReferrer_setForeignEntity( + GroupMapping referrerEntity, UserInfo baseEntity) { + referrerEntity.setUserInfo(baseEntity); + } + }); + } + + /** + * Load referrer of roleMappingList with the setupper for condition-bean of + * referrer. <br /> About internal policy, the value of primary key(and + * others too) is treated as case-insensitive. <br /> The condition-bean + * that the setupper provides have settings before you touch it. It is as + * follows: + * + * <pre> + * cb.query().setUserId_InScope(pkList); + * cb.query().addOrderBy_UserId_Asc(); + * </pre> + * + * @param userInfoList The entity list of userInfo. (NotNull) + * @param conditionBeanSetupper The instance of referrer condition-bean + * setupper for registering referrer condition. (NotNull) + */ + public void loadRoleMappingList(List<UserInfo> userInfoList, + ConditionBeanSetupper<RoleMappingCB> conditionBeanSetupper) { + assertObjectNotNull("userInfoList<UserInfo>", userInfoList); + assertObjectNotNull("conditionBeanSetupper<RoleMappingCB>", + conditionBeanSetupper); + if (userInfoList.isEmpty()) { + return; + } + loadRoleMappingList(userInfoList, + new LoadReferrerOption<RoleMappingCB, RoleMapping>( + conditionBeanSetupper)); + } + + /** + * {Refer to overload method that has an argument of condition-bean + * setupper.} + * + * @param userInfoList The entity list of userInfo. (NotNull) + * @param loadReferrerOption The option of load-referrer. (NotNull) + */ + public void loadRoleMappingList(List<UserInfo> userInfoList, + LoadReferrerOption<RoleMappingCB, RoleMapping> loadReferrerOption) { + assertObjectNotNull("userInfoList<UserInfo>", userInfoList); + assertObjectNotNull("loadReferrerOption<RoleMapping, RoleMappingCB>", + loadReferrerOption); + if (userInfoList.isEmpty()) { + return; + } + final RoleMappingBhv referrerBhv = xgetBSFLR().select( + RoleMappingBhv.class); + helpLoadReferrerInternally( + userInfoList, + loadReferrerOption, + new InternalLoadReferrerCallback<UserInfo, String, RoleMappingCB, RoleMapping>() { + public String callbackBase_getPrimaryKeyValue( + UserInfo entity) { + return entity.getUserId(); + } + + public void callbackBase_setReferrerList(UserInfo entity, + List<RoleMapping> referrerList) { + entity.setRoleMappingList(referrerList); + } + + public RoleMappingCB callbackReferrer_newMyConditionBean() { + return referrerBhv.newMyConditionBean(); + } + + public void callbackReferrer_queryForeignKeyInScope( + RoleMappingCB cb, List<String> pkList) { + cb.query().setUserId_InScope(pkList); + } + + public void callbackReferrer_queryAddOrderByForeignKeyAsc( + RoleMappingCB cb) { + cb.query().addOrderBy_UserId_Asc(); + } + + public List<RoleMapping> callbackReferrer_selectList( + RoleMappingCB cb) { + return referrerBhv.selectList(cb); + } + + public String callbackReferrer_getForeignKeyValue( + RoleMapping entity) { + return entity.getUserId(); + } + + public void callbackReferrer_setForeignEntity( + RoleMapping referrerEntity, UserInfo baseEntity) { + referrerEntity.setUserInfo(baseEntity); + } + }); + } + //========================================================================== // ========= - // Pull Out Foreign - // ================ - + // Pullout Foreign + // =============== /** * Pull out the list of foreign table 'GroupInfo'. * @@ -825,18 +1009,6 @@ // ----------------------------------------------------- // Select // ------ - protected int delegateGetCountAll() { - return getMyDao().getCountAll(); - } - - protected List<UserInfo> delegateGetListAll() { - return getMyDao().getListAll(); - } - - protected UserInfo delegateGetEntity(String userId) { - return getMyDao().getEntity(userId); - } - protected int delegateSelectCount(UserInfoCB cb) { assertConditionBeanNotNull(cb); return getMyDao().selectCount(cb); Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsDailyReportDao.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsDailyReportDao.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsDailyReportDao.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -6,57 +6,40 @@ import jp.sf.pal.timecard.db.exentity.DailyReport; /** - * The dao interface of DAILY_REPORT. + * The DAO interface of DAILY_REPORT. * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public interface BsDailyReportDao extends jp.sf.pal.timecard.db.allcommon.DaoWritable { - public Class BEAN = DailyReport.class;// For S2Dao + public Class<?> BEAN = DailyReport.class; // For S2Dao - public static final String getCountAll_SQL = "select count(*) from DAILY_REPORT"; - - public int getCountAll(); - - public static final String getListAll_SQL = "select ID, DATE, DAY_OF_WEEK, DATE_TYPE, WORKING_TYPE, STATUS, START_TIME, END_TIME, BREAK_TIME, OTJ_TIME, WORKING_TIME, MEMO, MONTHLY_REPORT_ID, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, VERSIONNO from DAILY_REPORT"; - - public java.util.List<DailyReport> getListAll(); - - public static final String getEntity_SQL = "select ID, DATE, DAY_OF_WEEK, DATE_TYPE, WORKING_TYPE, STATUS, START_TIME, END_TIME, BREAK_TIME, OTJ_TIME, WORKING_TIME, MEMO, MONTHLY_REPORT_ID, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, VERSIONNO from DAILY_REPORT where DAILY_REPORT.ID = /*id*/null"; - - public static final String getEntity_ARGS = "id"; - - public DailyReport getEntity(Long id); - public int selectCount(DailyReportCB cb); public List<DailyReport> selectList(DailyReportCB cb); - public int insert(DailyReport entity); + int insert(DailyReport entity); - public int updateModifiedOnly(DailyReport entity); + int updateModifiedOnly(DailyReport entity); - public int updateNonstrictModifiedOnly(DailyReport entity); + int updateNonstrictModifiedOnly(DailyReport entity); - public int delete(DailyReport entity); + int delete(DailyReport entity); - public int deleteNonstrict(DailyReport entity); + int deleteNonstrict(DailyReport entity); - public int[] insertList(List<DailyReport> entityList); + int[] insertList(List<DailyReport> entityList); - public int[] updateList(List<DailyReport> entityList); + int[] updateList(List<DailyReport> entityList); - public int[] updateListNonstrict(List<DailyReport> entityList); + int[] updateListNonstrict(List<DailyReport> entityList); - public int updateByQuery(DailyReportCB cb, DailyReport entity);//{DBFlute-0.7 + int updateByQuery(DailyReportCB cb, DailyReport entity); - // .5} + int[] deleteList(List<DailyReport> entityList); - public int[] deleteList(List<DailyReport> entityList); + int[] deleteListNonstrict(List<DailyReport> entityList); - public int[] deleteListNonstrict(List<DailyReport> entityList); - - public int deleteByQuery(DailyReportCB cb); + int deleteByQuery(DailyReportCB cb); } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsEmployeeDao.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsEmployeeDao.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsEmployeeDao.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -6,55 +6,40 @@ import jp.sf.pal.timecard.db.exentity.Employee; /** - * The dao interface of EMPLOYEE. + * The DAO interface of EMPLOYEE. * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public interface BsEmployeeDao extends jp.sf.pal.timecard.db.allcommon.DaoWritable { - public Class BEAN = Employee.class;// For S2Dao + public Class<?> BEAN = Employee.class; // For S2Dao - public static final String getCountAll_SQL = "select count(*) from EMPLOYEE"; - - public int getCountAll(); - - public static final String getListAll_SQL = "select ID, USERNAME, MANAGER, PAID_HOLIDAYS, IS_AVAILABLE, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO from EMPLOYEE"; - - public java.util.List<Employee> getListAll(); - - public static final String getEntity_SQL = "select ID, USERNAME, MANAGER, PAID_HOLIDAYS, IS_AVAILABLE, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO from EMPLOYEE where EMPLOYEE.ID = /*id*/null"; - - public static final String getEntity_ARGS = "id"; - - public Employee getEntity(Integer id); - public int selectCount(EmployeeCB cb); public List<Employee> selectList(EmployeeCB cb); - public int insert(Employee entity); + int insert(Employee entity); - public int updateModifiedOnly(Employee entity); + int updateModifiedOnly(Employee entity); - public int updateNonstrictModifiedOnly(Employee entity); + int updateNonstrictModifiedOnly(Employee entity); - public int delete(Employee entity); + int delete(Employee entity); - public int deleteNonstrict(Employee entity); + int deleteNonstrict(Employee entity); - public int[] insertList(List<Employee> entityList); + int[] insertList(List<Employee> entityList); - public int[] updateList(List<Employee> entityList); + int[] updateList(List<Employee> entityList); - public int[] updateListNonstrict(List<Employee> entityList); + int[] updateListNonstrict(List<Employee> entityList); - public int updateByQuery(EmployeeCB cb, Employee entity);// {DBFlute-0.7.5} + int updateByQuery(EmployeeCB cb, Employee entity); - public int[] deleteList(List<Employee> entityList); + int[] deleteList(List<Employee> entityList); - public int[] deleteListNonstrict(List<Employee> entityList); + int[] deleteListNonstrict(List<Employee> entityList); - public int deleteByQuery(EmployeeCB cb); + int deleteByQuery(EmployeeCB cb); } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsGroupInfoDao.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsGroupInfoDao.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsGroupInfoDao.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -6,55 +6,40 @@ import jp.sf.pal.timecard.db.exentity.GroupInfo; /** - * The dao interface of GROUP_INFO. + * The DAO interface of GROUP_INFO. * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public interface BsGroupInfoDao extends jp.sf.pal.timecard.db.allcommon.DaoWritable { - public Class BEAN = GroupInfo.class;// For S2Dao + public Class<?> BEAN = GroupInfo.class; // For S2Dao - public static final String getCountAll_SQL = "select count(*) from GROUP_INFO"; - - public int getCountAll(); - - public static final String getListAll_SQL = "select GROUP_ID, NAME, DESCRIPTION, EMAIL, URL, TELEPHONE, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO from GROUP_INFO"; - - public java.util.List<GroupInfo> getListAll(); - - public static final String getEntity_SQL = "select GROUP_ID, NAME, DESCRIPTION, EMAIL, URL, TELEPHONE, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO from GROUP_INFO where GROUP_INFO.GROUP_ID = /*groupId*/null"; - - public static final String getEntity_ARGS = "groupId"; - - public GroupInfo getEntity(String groupId); - public int selectCount(GroupInfoCB cb); public List<GroupInfo> selectList(GroupInfoCB cb); - public int insert(GroupInfo entity); + int insert(GroupInfo entity); - public int updateModifiedOnly(GroupInfo entity); + int updateModifiedOnly(GroupInfo entity); - public int updateNonstrictModifiedOnly(GroupInfo entity); + int updateNonstrictModifiedOnly(GroupInfo entity); - public int delete(GroupInfo entity); + int delete(GroupInfo entity); - public int deleteNonstrict(GroupInfo entity); + int deleteNonstrict(GroupInfo entity); - public int[] insertList(List<GroupInfo> entityList); + int[] insertList(List<GroupInfo> entityList); - public int[] updateList(List<GroupInfo> entityList); + int[] updateList(List<GroupInfo> entityList); - public int[] updateListNonstrict(List<GroupInfo> entityList); + int[] updateListNonstrict(List<GroupInfo> entityList); - public int updateByQuery(GroupInfoCB cb, GroupInfo entity);//{DBFlute-0.7.5} + int updateByQuery(GroupInfoCB cb, GroupInfo entity); - public int[] deleteList(List<GroupInfo> entityList); + int[] deleteList(List<GroupInfo> entityList); - public int[] deleteListNonstrict(List<GroupInfo> entityList); + int[] deleteListNonstrict(List<GroupInfo> entityList); - public int deleteByQuery(GroupInfoCB cb); + int deleteByQuery(GroupInfoCB cb); } Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsGroupMappingDao.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsGroupMappingDao.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsGroupMappingDao.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,37 @@ +package jp.sf.pal.timecard.db.bsdao; + +import java.util.List; + +import jp.sf.pal.timecard.db.cbean.GroupMappingCB; +import jp.sf.pal.timecard.db.exentity.GroupMapping; + +/** + * The DAO interface of GROUP_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ +public interface BsGroupMappingDao extends + jp.sf.pal.timecard.db.allcommon.DaoWritable { + + public Class<?> BEAN = GroupMapping.class; // For S2Dao + + public int selectCount(GroupMappingCB cb); + + public List<GroupMapping> selectList(GroupMappingCB cb); + + int insert(GroupMapping entity); + + int updateModifiedOnly(GroupMapping entity); + + int delete(GroupMapping entity); + + int[] insertList(List<GroupMapping> entityList); + + int[] updateList(List<GroupMapping> entityList); + + int updateByQuery(GroupMappingCB cb, GroupMapping entity); + + int[] deleteList(List<GroupMapping> entityList); + + int deleteByQuery(GroupMappingCB cb); +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsGroupMappingDao.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsMonthlyReportDao.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsMonthlyReportDao.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsMonthlyReportDao.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -6,58 +6,40 @@ import jp.sf.pal.timecard.db.exentity.MonthlyReport; /** - * The dao interface of MONTHLY_REPORT. + * The DAO interface of MONTHLY_REPORT. * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public interface BsMonthlyReportDao extends jp.sf.pal.timecard.db.allcommon.DaoWritable { - public Class BEAN = MonthlyReport.class;// For S2Dao + public Class<?> BEAN = MonthlyReport.class; // For S2Dao - public static final String getCountAll_SQL = "select count(*) from MONTHLY_REPORT"; - - public int getCountAll(); - - public static final String getListAll_SQL = "select ID, YEAR, MONTH, STATUS, WORKING_DAYS, STD_WORKING_DAYS, HOLIDAYS, PAID_HOLIDAYS, WORKING_TIME, STD_WORKING_TIME, OVER_TIME, MNT_OVER_TIME, EMPLOYEE_ID, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO from MONTHLY_REPORT"; - - public java.util.List<MonthlyReport> getListAll(); - - public static final String getEntity_SQL = "select ID, YEAR, MONTH, STATUS, WORKING_DAYS, STD_WORKING_DAYS, HOLIDAYS, PAID_HOLIDAYS, WORKING_TIME, STD_WORKING_TIME, OVER_TIME, MNT_OVER_TIME, EMPLOYEE_ID, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO from MONTHLY_REPORT where MONTHLY_REPORT.ID = /*id*/null"; - - public static final String getEntity_ARGS = "id"; - - public MonthlyReport getEntity(Long id); - public int selectCount(MonthlyReportCB cb); public List<MonthlyReport> selectList(MonthlyReportCB cb); - public int insert(MonthlyReport entity); + int insert(MonthlyReport entity); - public int updateModifiedOnly(MonthlyReport entity); + int updateModifiedOnly(MonthlyReport entity); - public int updateNonstrictModifiedOnly(MonthlyReport entity); + int updateNonstrictModifiedOnly(MonthlyReport entity); - public int delete(MonthlyReport entity); + int delete(MonthlyReport entity); - public int deleteNonstrict(MonthlyReport entity); + int deleteNonstrict(MonthlyReport entity); - public int[] insertList(List<MonthlyReport> entityList); + int[] insertList(List<MonthlyReport> entityList); - public int[] updateList(List<MonthlyReport> entityList); + int[] updateList(List<MonthlyReport> entityList); - public int[] updateListNonstrict(List<MonthlyReport> entityList); + int[] updateListNonstrict(List<MonthlyReport> entityList); - public int updateByQuery(MonthlyReportCB cb, MonthlyReport entity);//{DBFlute + int updateByQuery(MonthlyReportCB cb, MonthlyReport entity); - // - - // 0.7.5} + int[] deleteList(List<MonthlyReport> entityList); - public int[] deleteList(List<MonthlyReport> entityList); + int[] deleteListNonstrict(List<MonthlyReport> entityList); - public int[] deleteListNonstrict(List<MonthlyReport> entityList); - - public int deleteByQuery(MonthlyReportCB cb); + int deleteByQuery(MonthlyReportCB cb); } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsRoleInfoDao.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsRoleInfoDao.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsRoleInfoDao.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -6,55 +6,40 @@ import jp.sf.pal.timecard.db.exentity.RoleInfo; /** - * The dao interface of ROLE_INFO. + * The DAO interface of ROLE_INFO. * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public interface BsRoleInfoDao extends jp.sf.pal.timecard.db.allcommon.DaoWritable { - public Class BEAN = RoleInfo.class;// For S2Dao + public Class<?> BEAN = RoleInfo.class; // For S2Dao - public static final String getCountAll_SQL = "select count(*) from ROLE_INFO"; - - public int getCountAll(); - - public static final String getListAll_SQL = "select ROLE_ID, NAME, DESCRIPTION, EMAIL, URL, TELEPHONE, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO from ROLE_INFO"; - - public java.util.List<RoleInfo> getListAll(); - - public static final String getEntity_SQL = "select ROLE_ID, NAME, DESCRIPTION, EMAIL, URL, TELEPHONE, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO from ROLE_INFO where ROLE_INFO.ROLE_ID = /*roleId*/null"; - - public static final String getEntity_ARGS = "roleId"; - - public RoleInfo getEntity(String roleId); - public int selectCount(RoleInfoCB cb); public List<RoleInfo> selectList(RoleInfoCB cb); - public int insert(RoleInfo entity); + int insert(RoleInfo entity); - public int updateModifiedOnly(RoleInfo entity); + int updateModifiedOnly(RoleInfo entity); - public int updateNonstrictModifiedOnly(RoleInfo entity); + int updateNonstrictModifiedOnly(RoleInfo entity); - public int delete(RoleInfo entity); + int delete(RoleInfo entity); - public int deleteNonstrict(RoleInfo entity); + int deleteNonstrict(RoleInfo entity); - public int[] insertList(List<RoleInfo> entityList); + int[] insertList(List<RoleInfo> entityList); - public int[] updateList(List<RoleInfo> entityList); + int[] updateList(List<RoleInfo> entityList); - public int[] updateListNonstrict(List<RoleInfo> entityList); + int[] updateListNonstrict(List<RoleInfo> entityList); - public int updateByQuery(RoleInfoCB cb, RoleInfo entity);// {DBFlute-0.7.5} + int updateByQuery(RoleInfoCB cb, RoleInfo entity); - public int[] deleteList(List<RoleInfo> entityList); + int[] deleteList(List<RoleInfo> entityList); - public int[] deleteListNonstrict(List<RoleInfo> entityList); + int[] deleteListNonstrict(List<RoleInfo> entityList); - public int deleteByQuery(RoleInfoCB cb); + int deleteByQuery(RoleInfoCB cb); } Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsRoleMappingDao.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsRoleMappingDao.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsRoleMappingDao.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,37 @@ +package jp.sf.pal.timecard.db.bsdao; + +import java.util.List; + +import jp.sf.pal.timecard.db.cbean.RoleMappingCB; +import jp.sf.pal.timecard.db.exentity.RoleMapping; + +/** + * The DAO interface of ROLE_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ +public interface BsRoleMappingDao extends + jp.sf.pal.timecard.db.allcommon.DaoWritable { + + public Class<?> BEAN = RoleMapping.class; // For S2Dao + + public int selectCount(RoleMappingCB cb); + + public List<RoleMapping> selectList(RoleMappingCB cb); + + int insert(RoleMapping entity); + + int updateModifiedOnly(RoleMapping entity); + + int delete(RoleMapping entity); + + int[] insertList(List<RoleMapping> entityList); + + int[] updateList(List<RoleMapping> entityList); + + int updateByQuery(RoleMappingCB cb, RoleMapping entity); + + int[] deleteList(List<RoleMapping> entityList); + + int deleteByQuery(RoleMappingCB cb); +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsRoleMappingDao.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsUserInfoDao.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsUserInfoDao.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsdao/BsUserInfoDao.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -6,55 +6,40 @@ import jp.sf.pal.timecard.db.exentity.UserInfo; /** - * The dao interface of USER_INFO. + * The DAO interface of USER_INFO. * * @author DBFlute(AutoGenerator) */ - @ SuppressWarnings("unchecked") public interface BsUserInfoDao extends jp.sf.pal.timecard.db.allcommon.DaoWritable { - public Class BEAN = UserInfo.class;// For S2Dao + public Class<?> BEAN = UserInfo.class; // For S2Dao - public static final String getCountAll_SQL = "select count(*) from USER_INFO"; - - public int getCountAll(); - - public static final String getListAll_SQL = "select USER_ID, GIVEN_NAME, FAMILY_NAME, MIDDLE_NAME, GIVEN_NAME_DESC, FAMILY_NAME_DESC, EMAIL, URL, TELEPHONE, ROLE_ID, GROUP_ID, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO from USER_INFO"; - - public java.util.List<UserInfo> getListAll(); - - public static final String getEntity_SQL = "select USER_ID, GIVEN_NAME, FAMILY_NAME, MIDDLE_NAME, GIVEN_NAME_DESC, FAMILY_NAME_DESC, EMAIL, URL, TELEPHONE, ROLE_ID, GROUP_ID, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO from USER_INFO where USER_INFO.USER_ID = /*userId*/null"; - - public static final String getEntity_ARGS = "userId"; - - public UserInfo getEntity(String userId); - public int selectCount(UserInfoCB cb); public List<UserInfo> selectList(UserInfoCB cb); - public int insert(UserInfo entity); + int insert(UserInfo entity); - public int updateModifiedOnly(UserInfo entity); + int updateModifiedOnly(UserInfo entity); - public int updateNonstrictModifiedOnly(UserInfo entity); + int updateNonstrictModifiedOnly(UserInfo entity); - public int delete(UserInfo entity); + int delete(UserInfo entity); - public int deleteNonstrict(UserInfo entity); + int deleteNonstrict(UserInfo entity); - public int[] insertList(List<UserInfo> entityList); + int[] insertList(List<UserInfo> entityList); - public int[] updateList(List<UserInfo> entityList); + int[] updateList(List<UserInfo> entityList); - public int[] updateListNonstrict(List<UserInfo> entityList); + int[] updateListNonstrict(List<UserInfo> entityList); - public int updateByQuery(UserInfoCB cb, UserInfo entity);// {DBFlute-0.7.5} + int updateByQuery(UserInfoCB cb, UserInfo entity); - public int[] deleteList(List<UserInfo> entityList); + int[] deleteList(List<UserInfo> entityList); - public int[] deleteListNonstrict(List<UserInfo> entityList); + int[] deleteListNonstrict(List<UserInfo> entityList); - public int deleteByQuery(UserInfoCB cb); + int deleteByQuery(UserInfoCB cb); } Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsDailyReport.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsDailyReport.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsDailyReport.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -8,7 +8,7 @@ import jp.sf.pal.timecard.db.exentity.MonthlyReport; /** - * The entity of DAILY_REPORT(TABLE). + * The entity of DAILY_REPORT that the type is TABLE. <br /> * * <pre> * [primary-key] @@ -67,71 +67,61 @@ // ----------------------------------------------------- // Column // ------ - /** - * The attribute of the column 'ID'. {PK : INC : BIGINT : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_50C4B525_E9F4_4DAA_B23A_A4E3F22E225B]} - */ + /** ID: {PK : ID : NotNull : BIGINT} */ protected Long _id; - /** The attribute of the column 'DATE'. {INTEGER : NotNull} */ + /** DATE: {NotNull : INTEGER} */ protected Integer _date; - /** The attribute of the column 'DAY_OF_WEEK'. {INTEGER : NotNull} */ + /** DAY_OF_WEEK: {NotNull : INTEGER} */ protected Integer _dayOfWeek; - /** The attribute of the column 'DATE_TYPE'. {INTEGER : NotNull} */ + /** DATE_TYPE: {NotNull : INTEGER} */ protected Integer _dateType; - /** - * The attribute of the column 'WORKING_TYPE'. {INTEGER : NotNull : - * Default=[1]} - */ + /** WORKING_TYPE: {NotNull : INTEGER : Default=[1]} */ protected Integer _workingType; - /** The attribute of the column 'STATUS'. {INTEGER : NotNull : Default=[1]} */ + /** STATUS: {NotNull : INTEGER : Default=[1]} */ protected Integer _status; - /** The attribute of the column 'START_TIME'. {TIME} */ + /** START_TIME: {TIME} */ protected java.sql.Time _startTime; - /** The attribute of the column 'END_TIME'. {TIME} */ + /** END_TIME: {TIME} */ protected java.sql.Time _endTime; - /** The attribute of the column 'BREAK_TIME'. {TIME} */ + /** BREAK_TIME: {TIME} */ protected java.sql.Time _breakTime; - /** The attribute of the column 'OTJ_TIME'. {TIME} */ + /** OTJ_TIME: {TIME} */ protected java.sql.Time _otjTime; - /** The attribute of the column 'WORKING_TIME'. {BIGINT} */ + /** WORKING_TIME: {BIGINT} */ protected Long _workingTime; - /** The attribute of the column 'MEMO'. {VARCHAR(200)} */ + /** MEMO: {VARCHAR(200)} */ protected String _memo; /** - * The attribute of the column 'MONTHLY_REPORT_ID'. {BIGINT : NotNull : - * Default=[0] : FK to MONTHLY_REPORT} + * MONTHLY_REPORT_ID: {NotNull : BIGINT : Default=[0] : FK to + * MONTHLY_REPORT} */ protected Long _monthlyReportId; - /** The attribute of the column 'CREATED_TIME'. {TIMESTAMP : NotNull} */ + /** CREATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _createdTime; - /** The attribute of the column 'CREATED_BY'. {VARCHAR(255) : NotNull} */ + /** CREATED_BY: {NotNull : VARCHAR(255)} */ protected String _createdBy; - /** The attribute of the column 'UPDATED_TIME'. {TIMESTAMP : NotNull} */ + /** UPDATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _updatedTime; - /** The attribute of the column 'UPDATED_BY'. {VARCHAR(255) : NotNull} */ + /** UPDATED_BY: {NotNull : VARCHAR(255)} */ protected String _updatedBy; - /** - * The attribute of the column 'VERSIONNO'. {INTEGER : NotNull : - * Default=[0]} - */ + /** VERSIONNO: {NotNull : INTEGER : Default=[0]} */ protected Integer _versionno; // ----------------------------------------------------- @@ -190,11 +180,11 @@ public static final String monthlyReport_RELKEYS = "MONTHLY_REPORT_ID:ID"; - /** The entity of foreign property 'monthlyReport'. */ + /** MONTHLY_REPORT as 'monthlyReport'. */ protected MonthlyReport _parentMonthlyReport; /** - * Get the entity of foreign property 'monthlyReport'. {without lazy-load} + * MONTHLY_REPORT as 'monthlyReport'. {without lazy-load} * * @return The entity of foreign property 'monthlyReport'. (Nullable: If the * foreign key does not have 'NotNull' constraint, please check @@ -205,7 +195,7 @@ } /** - * Set the entity of foreign property 'monthlyReport'. + * MONTHLY_REPORT as 'monthlyReport'. * * @param monthlyReport The entity of foreign property 'monthlyReport'. * (Nullable) @@ -327,17 +317,11 @@ // Accessor // ======== - /** - * The column annotation for S2Dao. {PK : INC : BIGINT : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_50C4B525_E9F4_4DAA_B23A_A4E3F22E225B]} - */ + /** The column annotation for S2Dao. {PK : ID : NotNull : BIGINT} */ public static final String id_COLUMN = "ID"; /** - * Get the value of the column 'ID'. <br /> {PK : INC : BIGINT : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_50C4B525_E9F4_4DAA_B23A_A4E3F22E225B]} + * ID: {PK : ID : NotNull : BIGINT} <br /> * * @return The value of the column 'ID'. (Nullable) */ @@ -346,9 +330,7 @@ } /** - * Set the value of the column 'ID'. <br /> {PK : INC : BIGINT : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_50C4B525_E9F4_4DAA_B23A_A4E3F22E225B]} + * ID: {PK : ID : NotNull : BIGINT} <br /> * * @param id The value of the column 'ID'. (Nullable) */ @@ -357,11 +339,11 @@ this._id = id; } - /** The column annotation for S2Dao. {INTEGER : NotNull} */ + /** The column annotation for S2Dao. {NotNull : INTEGER} */ public static final String date_COLUMN = "DATE"; /** - * Get the value of the column 'DATE'. <br /> {INTEGER : NotNull} + * DATE: {NotNull : INTEGER} <br /> * * @return The value of the column 'DATE'. (Nullable) */ @@ -370,7 +352,7 @@ } /** - * Set the value of the column 'DATE'. <br /> {INTEGER : NotNull} + * DATE: {NotNull : INTEGER} <br /> * * @param date The value of the column 'DATE'. (Nullable) */ @@ -379,11 +361,11 @@ this._date = date; } - /** The column annotation for S2Dao. {INTEGER : NotNull} */ + /** The column annotation for S2Dao. {NotNull : INTEGER} */ public static final String dayOfWeek_COLUMN = "DAY_OF_WEEK"; /** - * Get the value of the column 'DAY_OF_WEEK'. <br /> {INTEGER : NotNull} + * DAY_OF_WEEK: {NotNull : INTEGER} <br /> * * @return The value of the column 'DAY_OF_WEEK'. (Nullable) */ @@ -392,7 +374,7 @@ } /** - * Set the value of the column 'DAY_OF_WEEK'. <br /> {INTEGER : NotNull} + * DAY_OF_WEEK: {NotNull : INTEGER} <br /> * * @param dayOfWeek The value of the column 'DAY_OF_WEEK'. (Nullable) */ @@ -401,11 +383,11 @@ this._dayOfWeek = dayOfWeek; } - /** The column annotation for S2Dao. {INTEGER : NotNull} */ + /** The column annotation for S2Dao. {NotNull : INTEGER} */ public static final String dateType_COLUMN = "DATE_TYPE"; /** - * Get the value of the column 'DATE_TYPE'. <br /> {INTEGER : NotNull} + * DATE_TYPE: {NotNull : INTEGER} <br /> * * @return The value of the column 'DATE_TYPE'. (Nullable) */ @@ -414,7 +396,7 @@ } /** - * Set the value of the column 'DATE_TYPE'. <br /> {INTEGER : NotNull} + * DATE_TYPE: {NotNull : INTEGER} <br /> * * @param dateType The value of the column 'DATE_TYPE'. (Nullable) */ @@ -423,12 +405,11 @@ this._dateType = dateType; } - /** The column annotation for S2Dao. {INTEGER : NotNull : Default=[1]} */ + /** The column annotation for S2Dao. {NotNull : INTEGER : Default=[1]} */ public static final String workingType_COLUMN = "WORKING_TYPE"; /** - * Get the value of the column 'WORKING_TYPE'. <br /> {INTEGER : NotNull : - * Default=[1]} + * WORKING_TYPE: {NotNull : INTEGER : Default=[1]} <br /> * * @return The value of the column 'WORKING_TYPE'. (Nullable) */ @@ -437,8 +418,7 @@ } /** - * Set the value of the column 'WORKING_TYPE'. <br /> {INTEGER : NotNull : - * Default=[1]} + * WORKING_TYPE: {NotNull : INTEGER : Default=[1]} <br /> * * @param workingType The value of the column 'WORKING_TYPE'. (Nullable) */ @@ -447,12 +427,11 @@ this._workingType = workingType; } - /** The column annotation for S2Dao. {INTEGER : NotNull : Default=[1]} */ + /** The column annotation for S2Dao. {NotNull : INTEGER : Default=[1]} */ public static final String status_COLUMN = "STATUS"; /** - * Get the value of the column 'STATUS'. <br /> {INTEGER : NotNull : - * Default=[1]} + * STATUS: {NotNull : INTEGER : Default=[1]} <br /> * * @return The value of the column 'STATUS'. (Nullable) */ @@ -461,8 +440,7 @@ } /** - * Set the value of the column 'STATUS'. <br /> {INTEGER : NotNull : - * Default=[1]} + * STATUS: {NotNull : INTEGER : Default=[1]} <br /> * * @param status The value of the column 'STATUS'. (Nullable) */ @@ -475,7 +453,7 @@ public static final String startTime_COLUMN = "START_TIME"; /** - * Get the value of the column 'START_TIME'. <br /> {TIME} + * START_TIME: {TIME} <br /> * * @return The value of the column 'START_TIME'. (Nullable) */ @@ -484,7 +462,7 @@ } /** - * Set the value of the column 'START_TIME'. <br /> {TIME} + * START_TIME: {TIME} <br /> * * @param startTime The value of the column 'START_TIME'. (Nullable) */ @@ -497,7 +475,7 @@ public static final String endTime_COLUMN = "END_TIME"; /** - * Get the value of the column 'END_TIME'. <br /> {TIME} + * END_TIME: {TIME} <br /> * * @return The value of the column 'END_TIME'. (Nullable) */ @@ -506,7 +484,7 @@ } /** - * Set the value of the column 'END_TIME'. <br /> {TIME} + * END_TIME: {TIME} <br /> * * @param endTime The value of the column 'END_TIME'. (Nullable) */ @@ -519,7 +497,7 @@ public static final String breakTime_COLUMN = "BREAK_TIME"; /** - * Get the value of the column 'BREAK_TIME'. <br /> {TIME} + * BREAK_TIME: {TIME} <br /> * * @return The value of the column 'BREAK_TIME'. (Nullable) */ @@ -528,7 +506,7 @@ } /** - * Set the value of the column 'BREAK_TIME'. <br /> {TIME} + * BREAK_TIME: {TIME} <br /> * * @param breakTime The value of the column 'BREAK_TIME'. (Nullable) */ @@ -541,7 +519,7 @@ public static final String otjTime_COLUMN = "OTJ_TIME"; /** - * Get the value of the column 'OTJ_TIME'. <br /> {TIME} + * OTJ_TIME: {TIME} <br /> * * @return The value of the column 'OTJ_TIME'. (Nullable) */ @@ -550,7 +528,7 @@ } /** - * Set the value of the column 'OTJ_TIME'. <br /> {TIME} + * OTJ_TIME: {TIME} <br /> * * @param otjTime The value of the column 'OTJ_TIME'. (Nullable) */ @@ -563,7 +541,7 @@ public static final String workingTime_COLUMN = "WORKING_TIME"; /** - * Get the value of the column 'WORKING_TIME'. <br /> {BIGINT} + * WORKING_TIME: {BIGINT} <br /> * * @return The value of the column 'WORKING_TIME'. (Nullable) */ @@ -572,7 +550,7 @@ } /** - * Set the value of the column 'WORKING_TIME'. <br /> {BIGINT} + * WORKING_TIME: {BIGINT} <br /> * * @param workingTime The value of the column 'WORKING_TIME'. (Nullable) */ @@ -585,7 +563,7 @@ public static final String memo_COLUMN = "MEMO"; /** - * Get the value of the column 'MEMO'. <br /> {VARCHAR(200)} + * MEMO: {VARCHAR(200)} <br /> * * @return The value of the column 'MEMO'. (Nullable) */ @@ -594,7 +572,7 @@ } /** - * Set the value of the column 'MEMO'. <br /> {VARCHAR(200)} + * MEMO: {VARCHAR(200)} <br /> * * @param memo The value of the column 'MEMO'. (Nullable) */ @@ -604,14 +582,14 @@ } /** - * The column annotation for S2Dao. {BIGINT : NotNull : Default=[0] : FK to + * The column annotation for S2Dao. {NotNull : BIGINT : Default=[0] : FK to * MONTHLY_REPORT} */ public static final String monthlyReportId_COLUMN = "MONTHLY_REPORT_ID"; /** - * Get the value of the column 'MONTHLY_REPORT_ID'. <br /> {BIGINT : NotNull - * : Default=[0] : FK to MONTHLY_REPORT} + * MONTHLY_REPORT_ID: {NotNull : BIGINT : Default=[0] : FK to + * MONTHLY_REPORT} <br /> * * @return The value of the column 'MONTHLY_REPORT_ID'. (Nullable) */ @@ -620,8 +598,8 @@ } /** - * Set the value of the column 'MONTHLY_REPORT_ID'. <br /> {BIGINT : NotNull - * : Default=[0] : FK to MONTHLY_REPORT} + * MONTHLY_REPORT_ID: {NotNull : BIGINT : Default=[0] : FK to + * MONTHLY_REPORT} <br /> * * @param monthlyReportId The value of the column 'MONTHLY_REPORT_ID'. * (Nullable) @@ -631,11 +609,11 @@ this._monthlyReportId = monthlyReportId; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String createdTime_COLUMN = "CREATED_TIME"; /** - * Get the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'CREATED_TIME'. (Nullable) */ @@ -644,7 +622,7 @@ } /** - * Set the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param createdTime The value of the column 'CREATED_TIME'. (Nullable) */ @@ -653,11 +631,11 @@ this._createdTime = createdTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String createdBy_COLUMN = "CREATED_BY"; /** - * Get the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'CREATED_BY'. (Nullable) */ @@ -666,7 +644,7 @@ } /** - * Set the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param createdBy The value of the column 'CREATED_BY'. (Nullable) */ @@ -675,11 +653,11 @@ this._createdBy = createdBy; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String updatedTime_COLUMN = "UPDATED_TIME"; /** - * Get the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -688,7 +666,7 @@ } /** - * Set the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param updatedTime The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -697,11 +675,11 @@ this._updatedTime = updatedTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String updatedBy_COLUMN = "UPDATED_BY"; /** - * Get the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'UPDATED_BY'. (Nullable) */ @@ -710,7 +688,7 @@ } /** - * Set the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param updatedBy The value of the column 'UPDATED_BY'. (Nullable) */ @@ -719,12 +697,11 @@ this._updatedBy = updatedBy; } - /** The column annotation for S2Dao. {INTEGER : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : INTEGER : Default=[0]} */ public static final String versionno_COLUMN = "VERSIONNO"; /** - * Get the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull : - * Default=[0]} + * VERSIONNO: {NotNull : INTEGER : Default=[0]} <br /> * * @return The value of the column 'VERSIONNO'. (Nullable) */ @@ -733,8 +710,7 @@ } /** - * Set the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull : - * Default=[0]} + * VERSIONNO: {NotNull : INTEGER : Default=[0]} <br /> * * @param versionno The value of the column 'VERSIONNO'. (Nullable) */ Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsEmployee.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsEmployee.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsEmployee.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -11,7 +11,7 @@ import jp.sf.pal.timecard.db.exentity.UserInfo; /** - * The entity of EMPLOYEE(TABLE). + * The entity of EMPLOYEE that the type is TABLE. <br /> * * <pre> * [primary-key] @@ -70,59 +70,40 @@ // ----------------------------------------------------- // Column // ------ - /** - * The attribute of the column 'ID'. {PK : INC : INTEGER : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_642A126C_91F0_49FA_A8A2_4B1D8067271C]} - */ + /** ID: {PK : ID : NotNull : INTEGER} */ protected Integer _id; - /** - * The attribute of the column 'USERNAME'. {VARCHAR(255) : NotNull : FK to - * USER_INFO} - */ + /** USERNAME: {NotNull : VARCHAR(255) : FK to USER_INFO} */ protected String _username; - /** - * The attribute of the column 'MANAGER'. {VARCHAR(255) : NotNull : FK to - * USER_INFO} - */ + /** MANAGER: {NotNull : VARCHAR(255) : FK to USER_INFO} */ protected String _manager; - /** - * The attribute of the column 'PAID_HOLIDAYS'. {DOUBLE : NotNull : - * Default=[0]} - */ + /** PAID_HOLIDAYS: {NotNull : DOUBLE : Default=[0]} */ protected java.math.BigDecimal _paidHolidays; - /** - * The attribute of the column 'IS_AVAILABLE'. {VARCHAR(1) : NotNull : - * Default=[T]} - */ + /** IS_AVAILABLE: {NotNull : VARCHAR(1) : Default=[T]} */ protected String _isAvailable; - /** The attribute of the column 'CREATED_TIME'. {TIMESTAMP : NotNull} */ + /** CREATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _createdTime; - /** The attribute of the column 'CREATED_BY'. {VARCHAR(255) : NotNull} */ + /** CREATED_BY: {NotNull : VARCHAR(255)} */ protected String _createdBy; - /** The attribute of the column 'UPDATED_TIME'. {TIMESTAMP : NotNull} */ + /** UPDATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _updatedTime; - /** The attribute of the column 'UPDATED_BY'. {VARCHAR(255) : NotNull} */ + /** UPDATED_BY: {NotNull : VARCHAR(255)} */ protected String _updatedBy; - /** The attribute of the column 'DELETED_TIME'. {TIMESTAMP} */ + /** DELETED_TIME: {TIMESTAMP} */ protected java.sql.Timestamp _deletedTime; - /** The attribute of the column 'DELETED_BY'. {VARCHAR(255)} */ + /** DELETED_BY: {VARCHAR(255)} */ protected String _deletedBy; - /** - * The attribute of the column 'VERSIONNO'. {INTEGER : NotNull : - * Default=[0]} - */ + /** VERSIONNO: {NotNull : INTEGER : Default=[0]} */ protected Integer _versionno; // ----------------------------------------------------- @@ -181,12 +162,11 @@ public static final String userInfoByUsername_RELKEYS = "USERNAME:USER_ID"; - /** The entity of foreign property 'userInfoByUsername'. */ + /** USER_INFO as 'userInfoByUsername'. */ protected UserInfo _parentUserInfoByUsername; /** - * Get the entity of foreign property 'userInfoByUsername'. {without - * lazy-load} + * USER_INFO as 'userInfoByUsername'. {without lazy-load} * * @return The entity of foreign property 'userInfoByUsername'. (Nullable: * If the foreign key does not have 'NotNull' constraint, please @@ -197,7 +177,7 @@ } /** - * Set the entity of foreign property 'userInfoByUsername'. + * USER_INFO as 'userInfoByUsername'. * * @param userInfoByUsername The entity of foreign property * 'userInfoByUsername'. (Nullable) @@ -213,12 +193,11 @@ public static final String userInfoByManager_RELKEYS = "MANAGER:USER_ID"; - /** The entity of foreign property 'userInfoByManager'. */ + /** USER_INFO as 'userInfoByManager'. */ protected UserInfo _parentUserInfoByManager; /** - * Get the entity of foreign property 'userInfoByManager'. {without - * lazy-load} + * USER_INFO as 'userInfoByManager'. {without lazy-load} * * @return The entity of foreign property 'userInfoByManager'. (Nullable: If * the foreign key does not have 'NotNull' constraint, please check @@ -229,7 +208,7 @@ } /** - * Set the entity of foreign property 'userInfoByManager'. + * USER_INFO as 'userInfoByManager'. * * @param userInfoByManager The entity of foreign property * 'userInfoByManager'. (Nullable) @@ -245,13 +224,11 @@ // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Referrer Property = [monthlyReportList] // * * * * * * * * */ - - /** The entity list of referrer property 'monthlyReportList'. */ + /** MONTHLY_REPORT as 'monthlyReportList'. */ protected List<MonthlyReport> _childrenMonthlyReportList; /** - * Get the entity list of referrer property 'monthlyReportList'. {without - * lazy-load} <br /> + * MONTHLY_REPORT as 'monthlyReportList'. {without lazy-load} <br /> * * @return The entity list of referrer property 'monthlyReportList'. * (NotNull: If it's not loaded yet, initializes the list instance @@ -265,7 +242,7 @@ } /** - * Set the entity list of referrer property 'monthlyReportList'. + * MONTHLY_REPORT as 'monthlyReportList'. * * @param monthlyReportList The entity list of referrer property * 'monthlyReportList'. (Nullable) @@ -376,17 +353,11 @@ // Accessor // ======== - /** - * The column annotation for S2Dao. {PK : INC : INTEGER : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_642A126C_91F0_49FA_A8A2_4B1D8067271C]} - */ + /** The column annotation for S2Dao. {PK : ID : NotNull : INTEGER} */ public static final String id_COLUMN = "ID"; /** - * Get the value of the column 'ID'. <br /> {PK : INC : INTEGER : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_642A126C_91F0_49FA_A8A2_4B1D8067271C]} + * ID: {PK : ID : NotNull : INTEGER} <br /> * * @return The value of the column 'ID'. (Nullable) */ @@ -395,9 +366,7 @@ } /** - * Set the value of the column 'ID'. <br /> {PK : INC : INTEGER : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_642A126C_91F0_49FA_A8A2_4B1D8067271C]} + * ID: {PK : ID : NotNull : INTEGER} <br /> * * @param id The value of the column 'ID'. (Nullable) */ @@ -407,14 +376,13 @@ } /** - * The column annotation for S2Dao. {VARCHAR(255) : NotNull : FK to + * The column annotation for S2Dao. {NotNull : VARCHAR(255) : FK to * USER_INFO} */ public static final String username_COLUMN = "USERNAME"; /** - * Get the value of the column 'USERNAME'. <br /> {VARCHAR(255) : NotNull : - * FK to USER_INFO} + * USERNAME: {NotNull : VARCHAR(255) : FK to USER_INFO} <br /> * * @return The value of the column 'USERNAME'. (Nullable) */ @@ -423,8 +391,7 @@ } /** - * Set the value of the column 'USERNAME'. <br /> {VARCHAR(255) : NotNull : - * FK to USER_INFO} + * USERNAME: {NotNull : VARCHAR(255) : FK to USER_INFO} <br /> * * @param username The value of the column 'USERNAME'. (Nullable) */ @@ -434,14 +401,13 @@ } /** - * The column annotation for S2Dao. {VARCHAR(255) : NotNull : FK to + * The column annotation for S2Dao. {NotNull : VARCHAR(255) : FK to * USER_INFO} */ public static final String manager_COLUMN = "MANAGER"; /** - * Get the value of the column 'MANAGER'. <br /> {VARCHAR(255) : NotNull : - * FK to USER_INFO} + * MANAGER: {NotNull : VARCHAR(255) : FK to USER_INFO} <br /> * * @return The value of the column 'MANAGER'. (Nullable) */ @@ -450,8 +416,7 @@ } /** - * Set the value of the column 'MANAGER'. <br /> {VARCHAR(255) : NotNull : - * FK to USER_INFO} + * MANAGER: {NotNull : VARCHAR(255) : FK to USER_INFO} <br /> * * @param manager The value of the column 'MANAGER'. (Nullable) */ @@ -460,12 +425,11 @@ this._manager = manager; } - /** The column annotation for S2Dao. {DOUBLE : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : DOUBLE : Default=[0]} */ public static final String paidHolidays_COLUMN = "PAID_HOLIDAYS"; /** - * Get the value of the column 'PAID_HOLIDAYS'. <br /> {DOUBLE : NotNull : - * Default=[0]} + * PAID_HOLIDAYS: {NotNull : DOUBLE : Default=[0]} <br /> * * @return The value of the column 'PAID_HOLIDAYS'. (Nullable) */ @@ -474,8 +438,7 @@ } /** - * Set the value of the column 'PAID_HOLIDAYS'. <br /> {DOUBLE : NotNull : - * Default=[0]} + * PAID_HOLIDAYS: {NotNull : DOUBLE : Default=[0]} <br /> * * @param paidHolidays The value of the column 'PAID_HOLIDAYS'. (Nullable) */ @@ -484,12 +447,11 @@ this._paidHolidays = paidHolidays; } - /** The column annotation for S2Dao. {VARCHAR(1) : NotNull : Default=[T]} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(1) : Default=[T]} */ public static final String isAvailable_COLUMN = "IS_AVAILABLE"; /** - * Get the value of the column 'IS_AVAILABLE'. <br /> {VARCHAR(1) : NotNull - * : Default=[T]} + * IS_AVAILABLE: {NotNull : VARCHAR(1) : Default=[T]} <br /> * * @return The value of the column 'IS_AVAILABLE'. (Nullable) */ @@ -498,8 +460,7 @@ } /** - * Set the value of the column 'IS_AVAILABLE'. <br /> {VARCHAR(1) : NotNull - * : Default=[T]} + * IS_AVAILABLE: {NotNull : VARCHAR(1) : Default=[T]} <br /> * * @param isAvailable The value of the column 'IS_AVAILABLE'. (Nullable) */ @@ -508,11 +469,11 @@ this._isAvailable = isAvailable; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String createdTime_COLUMN = "CREATED_TIME"; /** - * Get the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'CREATED_TIME'. (Nullable) */ @@ -521,7 +482,7 @@ } /** - * Set the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param createdTime The value of the column 'CREATED_TIME'. (Nullable) */ @@ -530,11 +491,11 @@ this._createdTime = createdTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String createdBy_COLUMN = "CREATED_BY"; /** - * Get the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'CREATED_BY'. (Nullable) */ @@ -543,7 +504,7 @@ } /** - * Set the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param createdBy The value of the column 'CREATED_BY'. (Nullable) */ @@ -552,11 +513,11 @@ this._createdBy = createdBy; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String updatedTime_COLUMN = "UPDATED_TIME"; /** - * Get the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -565,7 +526,7 @@ } /** - * Set the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param updatedTime The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -574,11 +535,11 @@ this._updatedTime = updatedTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String updatedBy_COLUMN = "UPDATED_BY"; /** - * Get the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'UPDATED_BY'. (Nullable) */ @@ -587,7 +548,7 @@ } /** - * Set the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param updatedBy The value of the column 'UPDATED_BY'. (Nullable) */ @@ -600,7 +561,7 @@ public static final String deletedTime_COLUMN = "DELETED_TIME"; /** - * Get the value of the column 'DELETED_TIME'. <br /> {TIMESTAMP} + * DELETED_TIME: {TIMESTAMP} <br /> * * @return The value of the column 'DELETED_TIME'. (Nullable) */ @@ -609,7 +570,7 @@ } /** - * Set the value of the column 'DELETED_TIME'. <br /> {TIMESTAMP} + * DELETED_TIME: {TIMESTAMP} <br /> * * @param deletedTime The value of the column 'DELETED_TIME'. (Nullable) */ @@ -622,7 +583,7 @@ public static final String deletedBy_COLUMN = "DELETED_BY"; /** - * Get the value of the column 'DELETED_BY'. <br /> {VARCHAR(255)} + * DELETED_BY: {VARCHAR(255)} <br /> * * @return The value of the column 'DELETED_BY'. (Nullable) */ @@ -631,7 +592,7 @@ } /** - * Set the value of the column 'DELETED_BY'. <br /> {VARCHAR(255)} + * DELETED_BY: {VARCHAR(255)} <br /> * * @param deletedBy The value of the column 'DELETED_BY'. (Nullable) */ @@ -640,12 +601,11 @@ this._deletedBy = deletedBy; } - /** The column annotation for S2Dao. {INTEGER : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : INTEGER : Default=[0]} */ public static final String versionno_COLUMN = "VERSIONNO"; /** - * Get the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull : - * Default=[0]} + * VERSIONNO: {NotNull : INTEGER : Default=[0]} <br /> * * @return The value of the column 'VERSIONNO'. (Nullable) */ @@ -654,8 +614,7 @@ } /** - * Set the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull : - * Default=[0]} + * VERSIONNO: {NotNull : INTEGER : Default=[0]} <br /> * * @param versionno The value of the column 'VERSIONNO'. (Nullable) */ Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsGroupInfo.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsGroupInfo.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsGroupInfo.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -7,10 +7,11 @@ import jp.sf.pal.timecard.db.allcommon.Entity; import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMetaInstanceHandler; +import jp.sf.pal.timecard.db.exentity.GroupMapping; import jp.sf.pal.timecard.db.exentity.UserInfo; /** - * The entity of GROUP_INFO(TABLE). + * The entity of GROUP_INFO that the type is TABLE. <br /> * * <pre> * [primary-key] @@ -32,13 +33,13 @@ * * * [referrer-table] - * USER_INFO + * GROUP_MAPPING, USER_INFO * * [foreign-property] * * * [referrer-property] - * userInfoList + * groupMappingList, userInfoList * </pre> * * @author DBFlute(AutoGenerator) @@ -66,43 +67,43 @@ // ----------------------------------------------------- // Column // ------ - /** The attribute of the column 'GROUP_ID'. {PK : VARCHAR(255) : NotNull} */ + /** GROUP_ID: {PK : NotNull : VARCHAR(255)} */ protected String _groupId; - /** The attribute of the column 'NAME'. {VARCHAR(100)} */ + /** NAME: {VARCHAR(100)} */ protected String _name; - /** The attribute of the column 'DESCRIPTION'. {VARCHAR(255)} */ + /** DESCRIPTION: {VARCHAR(255)} */ protected String _description; - /** The attribute of the column 'EMAIL'. {VARCHAR(255)} */ + /** EMAIL: {VARCHAR(255)} */ protected String _email; - /** The attribute of the column 'URL'. {VARCHAR(255)} */ + /** URL: {VARCHAR(255)} */ protected String _url; - /** The attribute of the column 'TELEPHONE'. {VARCHAR(40)} */ + /** TELEPHONE: {VARCHAR(40)} */ protected String _telephone; - /** The attribute of the column 'CREATED_TIME'. {TIMESTAMP : NotNull} */ + /** CREATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _createdTime; - /** The attribute of the column 'CREATED_BY'. {VARCHAR(255) : NotNull} */ + /** CREATED_BY: {NotNull : VARCHAR(255)} */ protected String _createdBy; - /** The attribute of the column 'UPDATED_TIME'. {TIMESTAMP : NotNull} */ + /** UPDATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _updatedTime; - /** The attribute of the column 'UPDATED_BY'. {VARCHAR(255) : NotNull} */ + /** UPDATED_BY: {NotNull : VARCHAR(255)} */ protected String _updatedBy; - /** The attribute of the column 'DELETED_TIME'. {TIMESTAMP} */ + /** DELETED_TIME: {TIMESTAMP} */ protected java.sql.Timestamp _deletedTime; - /** The attribute of the column 'DELETED_BY'. {VARCHAR(255)} */ + /** DELETED_BY: {VARCHAR(255)} */ protected String _deletedBy; - /** The attribute of the column 'VERSIONNO'. {INTEGER : NotNull} */ + /** VERSIONNO: {NotNull : INTEGER} */ protected Integer _versionno; // ----------------------------------------------------- @@ -159,15 +160,43 @@ // Referrer Property // ================= // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // Referrer Property = [groupMappingList] + // * * * * * * * * */ + /** GROUP_MAPPING as 'groupMappingList'. */ + protected List<GroupMapping> _childrenGroupMappingList; + + /** + * GROUP_MAPPING as 'groupMappingList'. {without lazy-load} <br /> + * + * @return The entity list of referrer property 'groupMappingList'. + * (NotNull: If it's not loaded yet, initializes the list instance + * of referrer as empty and returns it.) + */ + public List<GroupMapping> getGroupMappingList() { + if (_childrenGroupMappingList == null) { + _childrenGroupMappingList = new ArrayList<GroupMapping>(); + } + return _childrenGroupMappingList; + } + + /** + * GROUP_MAPPING as 'groupMappingList'. + * + * @param groupMappingList The entity list of referrer property + * 'groupMappingList'. (Nullable) + */ + public void setGroupMappingList(List<GroupMapping> groupMappingList) { + _childrenGroupMappingList = groupMappingList; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Referrer Property = [userInfoList] // * * * * * * * * */ - - /** The entity list of referrer property 'userInfoList'. */ + /** USER_INFO as 'userInfoList'. */ protected List<UserInfo> _childrenUserInfoList; /** - * Get the entity list of referrer property 'userInfoList'. {without - * lazy-load} <br /> + * USER_INFO as 'userInfoList'. {without lazy-load} <br /> * * @return The entity list of referrer property 'userInfoList'. (NotNull: If * it's not loaded yet, initializes the list instance of referrer as @@ -181,7 +210,7 @@ } /** - * Set the entity list of referrer property 'userInfoList'. + * USER_INFO as 'userInfoList'. * * @param userInfoList The entity list of referrer property 'userInfoList'. * (Nullable) @@ -293,12 +322,11 @@ // Accessor // ======== - /** The column annotation for S2Dao. {PK : VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {PK : NotNull : VARCHAR(255)} */ public static final String groupId_COLUMN = "GROUP_ID"; /** - * Get the value of the column 'GROUP_ID'. <br /> {PK : VARCHAR(255) : - * NotNull} + * GROUP_ID: {PK : NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'GROUP_ID'. (Nullable) */ @@ -307,8 +335,7 @@ } /** - * Set the value of the column 'GROUP_ID'. <br /> {PK : VARCHAR(255) : - * NotNull} + * GROUP_ID: {PK : NotNull : VARCHAR(255)} <br /> * * @param groupId The value of the column 'GROUP_ID'. (Nullable) */ @@ -321,7 +348,7 @@ public static final String name_COLUMN = "NAME"; /** - * Get the value of the column 'NAME'. <br /> {VARCHAR(100)} + * NAME: {VARCHAR(100)} <br /> * * @return The value of the column 'NAME'. (Nullable) */ @@ -330,7 +357,7 @@ } /** - * Set the value of the column 'NAME'. <br /> {VARCHAR(100)} + * NAME: {VARCHAR(100)} <br /> * * @param name The value of the column 'NAME'. (Nullable) */ @@ -343,7 +370,7 @@ public static final String description_COLUMN = "DESCRIPTION"; /** - * Get the value of the column 'DESCRIPTION'. <br /> {VARCHAR(255)} + * DESCRIPTION: {VARCHAR(255)} <br /> * * @return The value of the column 'DESCRIPTION'. (Nullable) */ @@ -352,7 +379,7 @@ } /** - * Set the value of the column 'DESCRIPTION'. <br /> {VARCHAR(255)} + * DESCRIPTION: {VARCHAR(255)} <br /> * * @param description The value of the column 'DESCRIPTION'. (Nullable) */ @@ -365,7 +392,7 @@ public static final String email_COLUMN = "EMAIL"; /** - * Get the value of the column 'EMAIL'. <br /> {VARCHAR(255)} + * EMAIL: {VARCHAR(255)} <br /> * * @return The value of the column 'EMAIL'. (Nullable) */ @@ -374,7 +401,7 @@ } /** - * Set the value of the column 'EMAIL'. <br /> {VARCHAR(255)} + * EMAIL: {VARCHAR(255)} <br /> * * @param email The value of the column 'EMAIL'. (Nullable) */ @@ -387,7 +414,7 @@ public static final String url_COLUMN = "URL"; /** - * Get the value of the column 'URL'. <br /> {VARCHAR(255)} + * URL: {VARCHAR(255)} <br /> * * @return The value of the column 'URL'. (Nullable) */ @@ -396,7 +423,7 @@ } /** - * Set the value of the column 'URL'. <br /> {VARCHAR(255)} + * URL: {VARCHAR(255)} <br /> * * @param url The value of the column 'URL'. (Nullable) */ @@ -409,7 +436,7 @@ public static final String telephone_COLUMN = "TELEPHONE"; /** - * Get the value of the column 'TELEPHONE'. <br /> {VARCHAR(40)} + * TELEPHONE: {VARCHAR(40)} <br /> * * @return The value of the column 'TELEPHONE'. (Nullable) */ @@ -418,7 +445,7 @@ } /** - * Set the value of the column 'TELEPHONE'. <br /> {VARCHAR(40)} + * TELEPHONE: {VARCHAR(40)} <br /> * * @param telephone The value of the column 'TELEPHONE'. (Nullable) */ @@ -427,11 +454,11 @@ this._telephone = telephone; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String createdTime_COLUMN = "CREATED_TIME"; /** - * Get the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'CREATED_TIME'. (Nullable) */ @@ -440,7 +467,7 @@ } /** - * Set the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param createdTime The value of the column 'CREATED_TIME'. (Nullable) */ @@ -449,11 +476,11 @@ this._createdTime = createdTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String createdBy_COLUMN = "CREATED_BY"; /** - * Get the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'CREATED_BY'. (Nullable) */ @@ -462,7 +489,7 @@ } /** - * Set the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param createdBy The value of the column 'CREATED_BY'. (Nullable) */ @@ -471,11 +498,11 @@ this._createdBy = createdBy; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String updatedTime_COLUMN = "UPDATED_TIME"; /** - * Get the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -484,7 +511,7 @@ } /** - * Set the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param updatedTime The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -493,11 +520,11 @@ this._updatedTime = updatedTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String updatedBy_COLUMN = "UPDATED_BY"; /** - * Get the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'UPDATED_BY'. (Nullable) */ @@ -506,7 +533,7 @@ } /** - * Set the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param updatedBy The value of the column 'UPDATED_BY'. (Nullable) */ @@ -519,7 +546,7 @@ public static final String deletedTime_COLUMN = "DELETED_TIME"; /** - * Get the value of the column 'DELETED_TIME'. <br /> {TIMESTAMP} + * DELETED_TIME: {TIMESTAMP} <br /> * * @return The value of the column 'DELETED_TIME'. (Nullable) */ @@ -528,7 +555,7 @@ } /** - * Set the value of the column 'DELETED_TIME'. <br /> {TIMESTAMP} + * DELETED_TIME: {TIMESTAMP} <br /> * * @param deletedTime The value of the column 'DELETED_TIME'. (Nullable) */ @@ -541,7 +568,7 @@ public static final String deletedBy_COLUMN = "DELETED_BY"; /** - * Get the value of the column 'DELETED_BY'. <br /> {VARCHAR(255)} + * DELETED_BY: {VARCHAR(255)} <br /> * * @return The value of the column 'DELETED_BY'. (Nullable) */ @@ -550,7 +577,7 @@ } /** - * Set the value of the column 'DELETED_BY'. <br /> {VARCHAR(255)} + * DELETED_BY: {VARCHAR(255)} <br /> * * @param deletedBy The value of the column 'DELETED_BY'. (Nullable) */ @@ -559,11 +586,11 @@ this._deletedBy = deletedBy; } - /** The column annotation for S2Dao. {INTEGER : NotNull} */ + /** The column annotation for S2Dao. {NotNull : INTEGER} */ public static final String versionno_COLUMN = "VERSIONNO"; /** - * Get the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull} + * VERSIONNO: {NotNull : INTEGER} <br /> * * @return The value of the column 'VERSIONNO'. (Nullable) */ @@ -572,7 +599,7 @@ } /** - * Set the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull} + * VERSIONNO: {NotNull : INTEGER} <br /> * * @param versionno The value of the column 'VERSIONNO'. (Nullable) */ Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsGroupMapping.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsGroupMapping.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsGroupMapping.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,356 @@ +package jp.sf.pal.timecard.db.bsentity; + +import java.util.Set; + +import jp.sf.pal.timecard.db.allcommon.Entity; +import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; +import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMetaInstanceHandler; +import jp.sf.pal.timecard.db.exentity.GroupInfo; +import jp.sf.pal.timecard.db.exentity.UserInfo; + +/** + * The entity of GROUP_MAPPING that the type is TABLE. <br /> + * + * <pre> + * [primary-key] + * ID + * + * [column] + * ID, USER_ID, GROUP_ID + * + * [sequence] + * + * + * [identity] + * ID + * + * [version-no] + * + * + * [foreign-table] + * GROUP_INFO, USER_INFO + * + * [referrer-table] + * + * + * [foreign-property] + * groupInfo, userInfo + * + * [referrer-property] + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsGroupMapping implements Entity, java.io.Serializable { + + //========================================================================== + // ========= + // Definition + // ========== + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; + + /** TABLE-Annotation for S2Dao. The value is GROUP_MAPPING. */ + public static final String TABLE = "GROUP_MAPPING"; + + /** ID-Annotation */ + public static final String id_ID = "identity"; + + //========================================================================== + // ========= + // Attribute + // ========= + // ----------------------------------------------------- + // Column + // ------ + /** ID: {PK : ID : NotNull : INTEGER} */ + protected Integer _id; + + /** USER_ID: {NotNull : VARCHAR(255) : FK to USER_INFO} */ + protected String _userId; + + /** GROUP_ID: {NotNull : VARCHAR(255) : FK to GROUP_INFO} */ + protected String _groupId; + + // ----------------------------------------------------- + // Internal + // -------- + /** The attribute of entity modified properties. (for S2Dao) */ + protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties(); + + //========================================================================== + // ========= + // Constructor + // =========== + public BsGroupMapping() { + } + + //========================================================================== + // ========= + // Table Name + // ========== + public String getTableDbName() { + return "GROUP_MAPPING"; + } + + public String getTablePropertyName() {// as JavaBeansRule + return "groupMapping"; + } + + //========================================================================== + // ========= + // DBMeta + // ====== + public DBMeta getDBMeta() { + return DBMetaInstanceHandler.findDBMeta(getTableDbName()); + } + + //========================================================================== + // ========= + // Classification Classifying + // ========================== + //========================================================================== + // ========= + // Classification Determination + // ============================ + //========================================================================== + // ========= + // Classification Name/Alias + // ========================= + //========================================================================== + // ========= + // Foreign Property + // ================ + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // Foreign Property = [groupInfo] + // * * * * * * * * */ + public static final int groupInfo_RELNO = 0; + + public static final String groupInfo_RELKEYS = "GROUP_ID:GROUP_ID"; + + /** GROUP_INFO as 'groupInfo'. */ + protected GroupInfo _parentGroupInfo; + + /** + * GROUP_INFO as 'groupInfo'. {without lazy-load} + * + * @return The entity of foreign property 'groupInfo'. (Nullable: If the + * foreign key does not have 'NotNull' constraint, please check + * null.) + */ + public GroupInfo getGroupInfo() { + return _parentGroupInfo; + } + + /** + * GROUP_INFO as 'groupInfo'. + * + * @param groupInfo The entity of foreign property 'groupInfo'. (Nullable) + */ + public void setGroupInfo(GroupInfo groupInfo) { + _parentGroupInfo = groupInfo; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // Foreign Property = [userInfo] + // * * * * * * * * */ + public static final int userInfo_RELNO = 1; + + public static final String userInfo_RELKEYS = "USER_ID:USER_ID"; + + /** USER_INFO as 'userInfo'. */ + protected UserInfo _parentUserInfo; + + /** + * USER_INFO as 'userInfo'. {without lazy-load} + * + * @return The entity of foreign property 'userInfo'. (Nullable: If the + * foreign key does not have 'NotNull' constraint, please check + * null.) + */ + public UserInfo getUserInfo() { + return _parentUserInfo; + } + + /** + * USER_INFO as 'userInfo'. + * + * @param userInfo The entity of foreign property 'userInfo'. (Nullable) + */ + public void setUserInfo(UserInfo userInfo) { + _parentUserInfo = userInfo; + } + + //========================================================================== + // ========= + // Referrer Property + // ================= + + //========================================================================== + // ========= + // Determination + // ============= + public boolean hasPrimaryKeyValue() { + if (_id == null) { + return false; + } + return true; + } + + //========================================================================== + // ========= + // Modified Properties + // =================== + public Set<String> getModifiedPropertyNames() { + return _modifiedProperties.getPropertyNames(); + } + + protected EntityModifiedProperties newEntityModifiedProperties() { + return new EntityModifiedProperties(); + } + + public void clearModifiedPropertyNames() { + _modifiedProperties.clear(); + } + + public boolean hasModification() { + return !_modifiedProperties.isEmpty(); + } + + //========================================================================== + // ========= + // Basic Override + // ============== + /** + * If the primary-key of the other is same as this one, returns true. + * + * @param other Other entity. + * @return Comparing result. + */ + public boolean equals(Object other) { + if (other == null || !(other instanceof BsGroupMapping)) { + return false; + } + BsGroupMapping otherEntity = (BsGroupMapping) other; + if (!helpComparingValue(getId(), otherEntity.getId())) { + return false; + } + return true; + } + + protected boolean helpComparingValue(Object value1, Object value2) { + if (value1 == null && value2 == null) { + return true; + } + return value1 != null && value2 != null && value1.equals(value2); + } + + /** + * Calculates hash-code from primary-key. + * + * @return Hash-code from primary-keys. + */ + public int hashCode() { + int result = 17; + if (this.getId() != null) { + result = result + getId().hashCode(); + } + return result; + } + + /** + * @return The view string of columns. (NotNull) + */ + public String toString() { + String delimiter = ","; + StringBuilder sb = new StringBuilder(); + sb.append(delimiter).append(getId()); + sb.append(delimiter).append(getUserId()); + sb.append(delimiter).append(getGroupId()); + if (sb.length() > 0) { + sb.delete(0, delimiter.length()); + } + sb.insert(0, "{").append("}"); + return sb.toString(); + } + + //========================================================================== + // ========= + // Accessor + // ======== + + /** The column annotation for S2Dao. {PK : ID : NotNull : INTEGER} */ + public static final String id_COLUMN = "ID"; + + /** + * ID: {PK : ID : NotNull : INTEGER} <br /> + * + * @return The value of the column 'ID'. (Nullable) + */ + public Integer getId() { + return _id; + } + + /** + * ID: {PK : ID : NotNull : INTEGER} <br /> + * + * @param id The value of the column 'ID'. (Nullable) + */ + public void setId(Integer id) { + _modifiedProperties.addPropertyName("id"); + this._id = id; + } + + /** + * The column annotation for S2Dao. {NotNull : VARCHAR(255) : FK to + * USER_INFO} + */ + public static final String userId_COLUMN = "USER_ID"; + + /** + * USER_ID: {NotNull : VARCHAR(255) : FK to USER_INFO} <br /> + * + * @return The value of the column 'USER_ID'. (Nullable) + */ + public String getUserId() { + return _userId; + } + + /** + * USER_ID: {NotNull : VARCHAR(255) : FK to USER_INFO} <br /> + * + * @param userId The value of the column 'USER_ID'. (Nullable) + */ + public void setUserId(String userId) { + _modifiedProperties.addPropertyName("userId"); + this._userId = userId; + } + + /** + * The column annotation for S2Dao. {NotNull : VARCHAR(255) : FK to + * GROUP_INFO} + */ + public static final String groupId_COLUMN = "GROUP_ID"; + + /** + * GROUP_ID: {NotNull : VARCHAR(255) : FK to GROUP_INFO} <br /> + * + * @return The value of the column 'GROUP_ID'. (Nullable) + */ + public String getGroupId() { + return _groupId; + } + + /** + * GROUP_ID: {NotNull : VARCHAR(255) : FK to GROUP_INFO} <br /> + * + * @param groupId The value of the column 'GROUP_ID'. (Nullable) + */ + public void setGroupId(String groupId) { + _modifiedProperties.addPropertyName("groupId"); + this._groupId = groupId; + } + +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsGroupMapping.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsMonthlyReport.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsMonthlyReport.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsMonthlyReport.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -11,7 +11,7 @@ import jp.sf.pal.timecard.db.exentity.Employee; /** - * The entity of MONTHLY_REPORT(TABLE). + * The entity of MONTHLY_REPORT that the type is TABLE. <br /> * * <pre> * [primary-key] @@ -70,94 +70,64 @@ // ----------------------------------------------------- // Column // ------ - /** - * The attribute of the column 'ID'. {PK : INC : BIGINT : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_32548B43_85E7_41E8_A673_8AE5B9803173]} - */ + /** ID: {PK : ID : NotNull : BIGINT} */ protected Long _id; - /** The attribute of the column 'YEAR'. {INTEGER : NotNull} */ + /** YEAR: {NotNull : INTEGER} */ protected Integer _year; - /** The attribute of the column 'MONTH'. {INTEGER : NotNull} */ + /** MONTH: {NotNull : INTEGER} */ protected Integer _month; - /** The attribute of the column 'STATUS'. {INTEGER : NotNull : Default=[1]} */ + /** STATUS: {NotNull : INTEGER : Default=[1]} */ protected Integer _status; - /** - * The attribute of the column 'WORKING_DAYS'. {DOUBLE : NotNull : - * Default=[0]} - */ + /** WORKING_DAYS: {NotNull : DOUBLE : Default=[0]} */ protected java.math.BigDecimal _workingDays; - /** - * The attribute of the column 'STD_WORKING_DAYS'. {DOUBLE : NotNull : - * Default=[0]} - */ + /** STD_WORKING_DAYS: {NotNull : DOUBLE : Default=[0]} */ protected java.math.BigDecimal _stdWorkingDays; - /** The attribute of the column 'HOLIDAYS'. {DOUBLE : NotNull : Default=[0]} */ + /** HOLIDAYS: {NotNull : DOUBLE : Default=[0]} */ protected java.math.BigDecimal _holidays; - /** - * The attribute of the column 'PAID_HOLIDAYS'. {DOUBLE : NotNull : - * Default=[0]} - */ + /** PAID_HOLIDAYS: {NotNull : DOUBLE : Default=[0]} */ protected java.math.BigDecimal _paidHolidays; - /** - * The attribute of the column 'WORKING_TIME'. {BIGINT : NotNull : - * Default=[0]} - */ + /** WORKING_TIME: {NotNull : BIGINT : Default=[0]} */ protected Long _workingTime; - /** - * The attribute of the column 'STD_WORKING_TIME'. {BIGINT : NotNull : - * Default=[0]} - */ + /** STD_WORKING_TIME: {NotNull : BIGINT : Default=[0]} */ protected Long _stdWorkingTime; - /** - * The attribute of the column 'OVER_TIME'. {BIGINT : NotNull : Default=[0]} - */ + /** OVER_TIME: {NotNull : BIGINT : Default=[0]} */ protected Long _overTime; - /** - * The attribute of the column 'MNT_OVER_TIME'. {BIGINT : NotNull : - * Default=[0]} - */ + /** MNT_OVER_TIME: {NotNull : BIGINT : Default=[0]} */ protected Long _mntOverTime; - /** - * The attribute of the column 'EMPLOYEE_ID'. {INTEGER : NotNull : FK to - * EMPLOYEE} - */ + /** EMPLOYEE_ID: {NotNull : INTEGER : FK to EMPLOYEE} */ protected Integer _employeeId; - /** The attribute of the column 'CREATED_TIME'. {TIMESTAMP : NotNull} */ + /** CREATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _createdTime; - /** The attribute of the column 'CREATED_BY'. {VARCHAR(255) : NotNull} */ + /** CREATED_BY: {NotNull : VARCHAR(255)} */ protected String _createdBy; - /** The attribute of the column 'UPDATED_TIME'. {TIMESTAMP : NotNull} */ + /** UPDATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _updatedTime; - /** The attribute of the column 'UPDATED_BY'. {VARCHAR(255) : NotNull} */ + /** UPDATED_BY: {NotNull : VARCHAR(255)} */ protected String _updatedBy; - /** The attribute of the column 'DELETED_TIME'. {TIMESTAMP} */ + /** DELETED_TIME: {TIMESTAMP} */ protected java.sql.Timestamp _deletedTime; - /** The attribute of the column 'DELETED_BY'. {VARCHAR(255)} */ + /** DELETED_BY: {VARCHAR(255)} */ protected String _deletedBy; - /** - * The attribute of the column 'VERSIONNO'. {INTEGER : NotNull : - * Default=[0]} - */ + /** VERSIONNO: {NotNull : INTEGER : Default=[0]} */ protected Integer _versionno; // ----------------------------------------------------- @@ -216,11 +186,11 @@ public static final String employee_RELKEYS = "EMPLOYEE_ID:ID"; - /** The entity of foreign property 'employee'. */ + /** EMPLOYEE as 'employee'. */ protected Employee _parentEmployee; /** - * Get the entity of foreign property 'employee'. {without lazy-load} + * EMPLOYEE as 'employee'. {without lazy-load} * * @return The entity of foreign property 'employee'. (Nullable: If the * foreign key does not have 'NotNull' constraint, please check @@ -231,7 +201,7 @@ } /** - * Set the entity of foreign property 'employee'. + * EMPLOYEE as 'employee'. * * @param employee The entity of foreign property 'employee'. (Nullable) */ @@ -246,13 +216,11 @@ // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Referrer Property = [dailyReportList] // * * * * * * * * */ - - /** The entity list of referrer property 'dailyReportList'. */ + /** DAILY_REPORT as 'dailyReportList'. */ protected List<DailyReport> _childrenDailyReportList; /** - * Get the entity list of referrer property 'dailyReportList'. {without - * lazy-load} <br /> + * DAILY_REPORT as 'dailyReportList'. {without lazy-load} <br /> * * @return The entity list of referrer property 'dailyReportList'. (NotNull: * If it's not loaded yet, initializes the list instance of referrer @@ -266,7 +234,7 @@ } /** - * Set the entity list of referrer property 'dailyReportList'. + * DAILY_REPORT as 'dailyReportList'. * * @param dailyReportList The entity list of referrer property * 'dailyReportList'. (Nullable) @@ -385,17 +353,11 @@ // Accessor // ======== - /** - * The column annotation for S2Dao. {PK : INC : BIGINT : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_32548B43_85E7_41E8_A673_8AE5B9803173]} - */ + /** The column annotation for S2Dao. {PK : ID : NotNull : BIGINT} */ public static final String id_COLUMN = "ID"; /** - * Get the value of the column 'ID'. <br /> {PK : INC : BIGINT : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_32548B43_85E7_41E8_A673_8AE5B9803173]} + * ID: {PK : ID : NotNull : BIGINT} <br /> * * @return The value of the column 'ID'. (Nullable) */ @@ -404,9 +366,7 @@ } /** - * Set the value of the column 'ID'. <br /> {PK : INC : BIGINT : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_32548B43_85E7_41E8_A673_8AE5B9803173]} + * ID: {PK : ID : NotNull : BIGINT} <br /> * * @param id The value of the column 'ID'. (Nullable) */ @@ -415,11 +375,11 @@ this._id = id; } - /** The column annotation for S2Dao. {INTEGER : NotNull} */ + /** The column annotation for S2Dao. {NotNull : INTEGER} */ public static final String year_COLUMN = "YEAR"; /** - * Get the value of the column 'YEAR'. <br /> {INTEGER : NotNull} + * YEAR: {NotNull : INTEGER} <br /> * * @return The value of the column 'YEAR'. (Nullable) */ @@ -428,7 +388,7 @@ } /** - * Set the value of the column 'YEAR'. <br /> {INTEGER : NotNull} + * YEAR: {NotNull : INTEGER} <br /> * * @param year The value of the column 'YEAR'. (Nullable) */ @@ -437,11 +397,11 @@ this._year = year; } - /** The column annotation for S2Dao. {INTEGER : NotNull} */ + /** The column annotation for S2Dao. {NotNull : INTEGER} */ public static final String month_COLUMN = "MONTH"; /** - * Get the value of the column 'MONTH'. <br /> {INTEGER : NotNull} + * MONTH: {NotNull : INTEGER} <br /> * * @return The value of the column 'MONTH'. (Nullable) */ @@ -450,7 +410,7 @@ } /** - * Set the value of the column 'MONTH'. <br /> {INTEGER : NotNull} + * MONTH: {NotNull : INTEGER} <br /> * * @param month The value of the column 'MONTH'. (Nullable) */ @@ -459,12 +419,11 @@ this._month = month; } - /** The column annotation for S2Dao. {INTEGER : NotNull : Default=[1]} */ + /** The column annotation for S2Dao. {NotNull : INTEGER : Default=[1]} */ public static final String status_COLUMN = "STATUS"; /** - * Get the value of the column 'STATUS'. <br /> {INTEGER : NotNull : - * Default=[1]} + * STATUS: {NotNull : INTEGER : Default=[1]} <br /> * * @return The value of the column 'STATUS'. (Nullable) */ @@ -473,8 +432,7 @@ } /** - * Set the value of the column 'STATUS'. <br /> {INTEGER : NotNull : - * Default=[1]} + * STATUS: {NotNull : INTEGER : Default=[1]} <br /> * * @param status The value of the column 'STATUS'. (Nullable) */ @@ -483,12 +441,11 @@ this._status = status; } - /** The column annotation for S2Dao. {DOUBLE : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : DOUBLE : Default=[0]} */ public static final String workingDays_COLUMN = "WORKING_DAYS"; /** - * Get the value of the column 'WORKING_DAYS'. <br /> {DOUBLE : NotNull : - * Default=[0]} + * WORKING_DAYS: {NotNull : DOUBLE : Default=[0]} <br /> * * @return The value of the column 'WORKING_DAYS'. (Nullable) */ @@ -497,8 +454,7 @@ } /** - * Set the value of the column 'WORKING_DAYS'. <br /> {DOUBLE : NotNull : - * Default=[0]} + * WORKING_DAYS: {NotNull : DOUBLE : Default=[0]} <br /> * * @param workingDays The value of the column 'WORKING_DAYS'. (Nullable) */ @@ -507,12 +463,11 @@ this._workingDays = workingDays; } - /** The column annotation for S2Dao. {DOUBLE : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : DOUBLE : Default=[0]} */ public static final String stdWorkingDays_COLUMN = "STD_WORKING_DAYS"; /** - * Get the value of the column 'STD_WORKING_DAYS'. <br /> {DOUBLE : NotNull - * : Default=[0]} + * STD_WORKING_DAYS: {NotNull : DOUBLE : Default=[0]} <br /> * * @return The value of the column 'STD_WORKING_DAYS'. (Nullable) */ @@ -521,8 +476,7 @@ } /** - * Set the value of the column 'STD_WORKING_DAYS'. <br /> {DOUBLE : NotNull - * : Default=[0]} + * STD_WORKING_DAYS: {NotNull : DOUBLE : Default=[0]} <br /> * * @param stdWorkingDays The value of the column 'STD_WORKING_DAYS'. * (Nullable) @@ -532,12 +486,11 @@ this._stdWorkingDays = stdWorkingDays; } - /** The column annotation for S2Dao. {DOUBLE : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : DOUBLE : Default=[0]} */ public static final String holidays_COLUMN = "HOLIDAYS"; /** - * Get the value of the column 'HOLIDAYS'. <br /> {DOUBLE : NotNull : - * Default=[0]} + * HOLIDAYS: {NotNull : DOUBLE : Default=[0]} <br /> * * @return The value of the column 'HOLIDAYS'. (Nullable) */ @@ -546,8 +499,7 @@ } /** - * Set the value of the column 'HOLIDAYS'. <br /> {DOUBLE : NotNull : - * Default=[0]} + * HOLIDAYS: {NotNull : DOUBLE : Default=[0]} <br /> * * @param holidays The value of the column 'HOLIDAYS'. (Nullable) */ @@ -556,12 +508,11 @@ this._holidays = holidays; } - /** The column annotation for S2Dao. {DOUBLE : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : DOUBLE : Default=[0]} */ public static final String paidHolidays_COLUMN = "PAID_HOLIDAYS"; /** - * Get the value of the column 'PAID_HOLIDAYS'. <br /> {DOUBLE : NotNull : - * Default=[0]} + * PAID_HOLIDAYS: {NotNull : DOUBLE : Default=[0]} <br /> * * @return The value of the column 'PAID_HOLIDAYS'. (Nullable) */ @@ -570,8 +521,7 @@ } /** - * Set the value of the column 'PAID_HOLIDAYS'. <br /> {DOUBLE : NotNull : - * Default=[0]} + * PAID_HOLIDAYS: {NotNull : DOUBLE : Default=[0]} <br /> * * @param paidHolidays The value of the column 'PAID_HOLIDAYS'. (Nullable) */ @@ -580,12 +530,11 @@ this._paidHolidays = paidHolidays; } - /** The column annotation for S2Dao. {BIGINT : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : BIGINT : Default=[0]} */ public static final String workingTime_COLUMN = "WORKING_TIME"; /** - * Get the value of the column 'WORKING_TIME'. <br /> {BIGINT : NotNull : - * Default=[0]} + * WORKING_TIME: {NotNull : BIGINT : Default=[0]} <br /> * * @return The value of the column 'WORKING_TIME'. (Nullable) */ @@ -594,8 +543,7 @@ } /** - * Set the value of the column 'WORKING_TIME'. <br /> {BIGINT : NotNull : - * Default=[0]} + * WORKING_TIME: {NotNull : BIGINT : Default=[0]} <br /> * * @param workingTime The value of the column 'WORKING_TIME'. (Nullable) */ @@ -604,12 +552,11 @@ this._workingTime = workingTime; } - /** The column annotation for S2Dao. {BIGINT : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : BIGINT : Default=[0]} */ public static final String stdWorkingTime_COLUMN = "STD_WORKING_TIME"; /** - * Get the value of the column 'STD_WORKING_TIME'. <br /> {BIGINT : NotNull - * : Default=[0]} + * STD_WORKING_TIME: {NotNull : BIGINT : Default=[0]} <br /> * * @return The value of the column 'STD_WORKING_TIME'. (Nullable) */ @@ -618,8 +565,7 @@ } /** - * Set the value of the column 'STD_WORKING_TIME'. <br /> {BIGINT : NotNull - * : Default=[0]} + * STD_WORKING_TIME: {NotNull : BIGINT : Default=[0]} <br /> * * @param stdWorkingTime The value of the column 'STD_WORKING_TIME'. * (Nullable) @@ -629,12 +575,11 @@ this._stdWorkingTime = stdWorkingTime; } - /** The column annotation for S2Dao. {BIGINT : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : BIGINT : Default=[0]} */ public static final String overTime_COLUMN = "OVER_TIME"; /** - * Get the value of the column 'OVER_TIME'. <br /> {BIGINT : NotNull : - * Default=[0]} + * OVER_TIME: {NotNull : BIGINT : Default=[0]} <br /> * * @return The value of the column 'OVER_TIME'. (Nullable) */ @@ -643,8 +588,7 @@ } /** - * Set the value of the column 'OVER_TIME'. <br /> {BIGINT : NotNull : - * Default=[0]} + * OVER_TIME: {NotNull : BIGINT : Default=[0]} <br /> * * @param overTime The value of the column 'OVER_TIME'. (Nullable) */ @@ -653,12 +597,11 @@ this._overTime = overTime; } - /** The column annotation for S2Dao. {BIGINT : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : BIGINT : Default=[0]} */ public static final String mntOverTime_COLUMN = "MNT_OVER_TIME"; /** - * Get the value of the column 'MNT_OVER_TIME'. <br /> {BIGINT : NotNull : - * Default=[0]} + * MNT_OVER_TIME: {NotNull : BIGINT : Default=[0]} <br /> * * @return The value of the column 'MNT_OVER_TIME'. (Nullable) */ @@ -667,8 +610,7 @@ } /** - * Set the value of the column 'MNT_OVER_TIME'. <br /> {BIGINT : NotNull : - * Default=[0]} + * MNT_OVER_TIME: {NotNull : BIGINT : Default=[0]} <br /> * * @param mntOverTime The value of the column 'MNT_OVER_TIME'. (Nullable) */ @@ -677,12 +619,11 @@ this._mntOverTime = mntOverTime; } - /** The column annotation for S2Dao. {INTEGER : NotNull : FK to EMPLOYEE} */ + /** The column annotation for S2Dao. {NotNull : INTEGER : FK to EMPLOYEE} */ public static final String employeeId_COLUMN = "EMPLOYEE_ID"; /** - * Get the value of the column 'EMPLOYEE_ID'. <br /> {INTEGER : NotNull : FK - * to EMPLOYEE} + * EMPLOYEE_ID: {NotNull : INTEGER : FK to EMPLOYEE} <br /> * * @return The value of the column 'EMPLOYEE_ID'. (Nullable) */ @@ -691,8 +632,7 @@ } /** - * Set the value of the column 'EMPLOYEE_ID'. <br /> {INTEGER : NotNull : FK - * to EMPLOYEE} + * EMPLOYEE_ID: {NotNull : INTEGER : FK to EMPLOYEE} <br /> * * @param employeeId The value of the column 'EMPLOYEE_ID'. (Nullable) */ @@ -701,11 +641,11 @@ this._employeeId = employeeId; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String createdTime_COLUMN = "CREATED_TIME"; /** - * Get the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'CREATED_TIME'. (Nullable) */ @@ -714,7 +654,7 @@ } /** - * Set the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param createdTime The value of the column 'CREATED_TIME'. (Nullable) */ @@ -723,11 +663,11 @@ this._createdTime = createdTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String createdBy_COLUMN = "CREATED_BY"; /** - * Get the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'CREATED_BY'. (Nullable) */ @@ -736,7 +676,7 @@ } /** - * Set the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param createdBy The value of the column 'CREATED_BY'. (Nullable) */ @@ -745,11 +685,11 @@ this._createdBy = createdBy; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String updatedTime_COLUMN = "UPDATED_TIME"; /** - * Get the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -758,7 +698,7 @@ } /** - * Set the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param updatedTime The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -767,11 +707,11 @@ this._updatedTime = updatedTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String updatedBy_COLUMN = "UPDATED_BY"; /** - * Get the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'UPDATED_BY'. (Nullable) */ @@ -780,7 +720,7 @@ } /** - * Set the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param updatedBy The value of the column 'UPDATED_BY'. (Nullable) */ @@ -793,7 +733,7 @@ public static final String deletedTime_COLUMN = "DELETED_TIME"; /** - * Get the value of the column 'DELETED_TIME'. <br /> {TIMESTAMP} + * DELETED_TIME: {TIMESTAMP} <br /> * * @return The value of the column 'DELETED_TIME'. (Nullable) */ @@ -802,7 +742,7 @@ } /** - * Set the value of the column 'DELETED_TIME'. <br /> {TIMESTAMP} + * DELETED_TIME: {TIMESTAMP} <br /> * * @param deletedTime The value of the column 'DELETED_TIME'. (Nullable) */ @@ -815,7 +755,7 @@ public static final String deletedBy_COLUMN = "DELETED_BY"; /** - * Get the value of the column 'DELETED_BY'. <br /> {VARCHAR(255)} + * DELETED_BY: {VARCHAR(255)} <br /> * * @return The value of the column 'DELETED_BY'. (Nullable) */ @@ -824,7 +764,7 @@ } /** - * Set the value of the column 'DELETED_BY'. <br /> {VARCHAR(255)} + * DELETED_BY: {VARCHAR(255)} <br /> * * @param deletedBy The value of the column 'DELETED_BY'. (Nullable) */ @@ -833,12 +773,11 @@ this._deletedBy = deletedBy; } - /** The column annotation for S2Dao. {INTEGER : NotNull : Default=[0]} */ + /** The column annotation for S2Dao. {NotNull : INTEGER : Default=[0]} */ public static final String versionno_COLUMN = "VERSIONNO"; /** - * Get the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull : - * Default=[0]} + * VERSIONNO: {NotNull : INTEGER : Default=[0]} <br /> * * @return The value of the column 'VERSIONNO'. (Nullable) */ @@ -847,8 +786,7 @@ } /** - * Set the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull : - * Default=[0]} + * VERSIONNO: {NotNull : INTEGER : Default=[0]} <br /> * * @param versionno The value of the column 'VERSIONNO'. (Nullable) */ Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsRoleInfo.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsRoleInfo.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsRoleInfo.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -7,10 +7,11 @@ import jp.sf.pal.timecard.db.allcommon.Entity; import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMetaInstanceHandler; +import jp.sf.pal.timecard.db.exentity.RoleMapping; import jp.sf.pal.timecard.db.exentity.UserInfo; /** - * The entity of ROLE_INFO(TABLE). + * The entity of ROLE_INFO that the type is TABLE. <br /> * * <pre> * [primary-key] @@ -32,13 +33,13 @@ * * * [referrer-table] - * USER_INFO + * ROLE_MAPPING, USER_INFO * * [foreign-property] * * * [referrer-property] - * userInfoList + * roleMappingList, userInfoList * </pre> * * @author DBFlute(AutoGenerator) @@ -66,43 +67,43 @@ // ----------------------------------------------------- // Column // ------ - /** The attribute of the column 'ROLE_ID'. {PK : VARCHAR(255) : NotNull} */ + /** ROLE_ID: {PK : NotNull : VARCHAR(255)} */ protected String _roleId; - /** The attribute of the column 'NAME'. {VARCHAR(100)} */ + /** NAME: {VARCHAR(100)} */ protected String _name; - /** The attribute of the column 'DESCRIPTION'. {VARCHAR(255)} */ + /** DESCRIPTION: {VARCHAR(255)} */ protected String _description; - /** The attribute of the column 'EMAIL'. {VARCHAR(255)} */ + /** EMAIL: {VARCHAR(255)} */ protected String _email; - /** The attribute of the column 'URL'. {VARCHAR(255)} */ + /** URL: {VARCHAR(255)} */ protected String _url; - /** The attribute of the column 'TELEPHONE'. {VARCHAR(40)} */ + /** TELEPHONE: {VARCHAR(40)} */ protected String _telephone; - /** The attribute of the column 'CREATED_TIME'. {TIMESTAMP : NotNull} */ + /** CREATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _createdTime; - /** The attribute of the column 'CREATED_BY'. {VARCHAR(255) : NotNull} */ + /** CREATED_BY: {NotNull : VARCHAR(255)} */ protected String _createdBy; - /** The attribute of the column 'UPDATED_TIME'. {TIMESTAMP : NotNull} */ + /** UPDATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _updatedTime; - /** The attribute of the column 'UPDATED_BY'. {VARCHAR(255) : NotNull} */ + /** UPDATED_BY: {NotNull : VARCHAR(255)} */ protected String _updatedBy; - /** The attribute of the column 'DELETED_TIME'. {TIMESTAMP} */ + /** DELETED_TIME: {TIMESTAMP} */ protected java.sql.Timestamp _deletedTime; - /** The attribute of the column 'DELETED_BY'. {VARCHAR(255)} */ + /** DELETED_BY: {VARCHAR(255)} */ protected String _deletedBy; - /** The attribute of the column 'VERSIONNO'. {INTEGER : NotNull} */ + /** VERSIONNO: {NotNull : INTEGER} */ protected Integer _versionno; // ----------------------------------------------------- @@ -159,15 +160,43 @@ // Referrer Property // ================= // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // Referrer Property = [roleMappingList] + // * * * * * * * * */ + /** ROLE_MAPPING as 'roleMappingList'. */ + protected List<RoleMapping> _childrenRoleMappingList; + + /** + * ROLE_MAPPING as 'roleMappingList'. {without lazy-load} <br /> + * + * @return The entity list of referrer property 'roleMappingList'. (NotNull: + * If it's not loaded yet, initializes the list instance of referrer + * as empty and returns it.) + */ + public List<RoleMapping> getRoleMappingList() { + if (_childrenRoleMappingList == null) { + _childrenRoleMappingList = new ArrayList<RoleMapping>(); + } + return _childrenRoleMappingList; + } + + /** + * ROLE_MAPPING as 'roleMappingList'. + * + * @param roleMappingList The entity list of referrer property + * 'roleMappingList'. (Nullable) + */ + public void setRoleMappingList(List<RoleMapping> roleMappingList) { + _childrenRoleMappingList = roleMappingList; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Referrer Property = [userInfoList] // * * * * * * * * */ - - /** The entity list of referrer property 'userInfoList'. */ + /** USER_INFO as 'userInfoList'. */ protected List<UserInfo> _childrenUserInfoList; /** - * Get the entity list of referrer property 'userInfoList'. {without - * lazy-load} <br /> + * USER_INFO as 'userInfoList'. {without lazy-load} <br /> * * @return The entity list of referrer property 'userInfoList'. (NotNull: If * it's not loaded yet, initializes the list instance of referrer as @@ -181,7 +210,7 @@ } /** - * Set the entity list of referrer property 'userInfoList'. + * USER_INFO as 'userInfoList'. * * @param userInfoList The entity list of referrer property 'userInfoList'. * (Nullable) @@ -293,12 +322,11 @@ // Accessor // ======== - /** The column annotation for S2Dao. {PK : VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {PK : NotNull : VARCHAR(255)} */ public static final String roleId_COLUMN = "ROLE_ID"; /** - * Get the value of the column 'ROLE_ID'. <br /> {PK : VARCHAR(255) : - * NotNull} + * ROLE_ID: {PK : NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'ROLE_ID'. (Nullable) */ @@ -307,8 +335,7 @@ } /** - * Set the value of the column 'ROLE_ID'. <br /> {PK : VARCHAR(255) : - * NotNull} + * ROLE_ID: {PK : NotNull : VARCHAR(255)} <br /> * * @param roleId The value of the column 'ROLE_ID'. (Nullable) */ @@ -321,7 +348,7 @@ public static final String name_COLUMN = "NAME"; /** - * Get the value of the column 'NAME'. <br /> {VARCHAR(100)} + * NAME: {VARCHAR(100)} <br /> * * @return The value of the column 'NAME'. (Nullable) */ @@ -330,7 +357,7 @@ } /** - * Set the value of the column 'NAME'. <br /> {VARCHAR(100)} + * NAME: {VARCHAR(100)} <br /> * * @param name The value of the column 'NAME'. (Nullable) */ @@ -343,7 +370,7 @@ public static final String description_COLUMN = "DESCRIPTION"; /** - * Get the value of the column 'DESCRIPTION'. <br /> {VARCHAR(255)} + * DESCRIPTION: {VARCHAR(255)} <br /> * * @return The value of the column 'DESCRIPTION'. (Nullable) */ @@ -352,7 +379,7 @@ } /** - * Set the value of the column 'DESCRIPTION'. <br /> {VARCHAR(255)} + * DESCRIPTION: {VARCHAR(255)} <br /> * * @param description The value of the column 'DESCRIPTION'. (Nullable) */ @@ -365,7 +392,7 @@ public static final String email_COLUMN = "EMAIL"; /** - * Get the value of the column 'EMAIL'. <br /> {VARCHAR(255)} + * EMAIL: {VARCHAR(255)} <br /> * * @return The value of the column 'EMAIL'. (Nullable) */ @@ -374,7 +401,7 @@ } /** - * Set the value of the column 'EMAIL'. <br /> {VARCHAR(255)} + * EMAIL: {VARCHAR(255)} <br /> * * @param email The value of the column 'EMAIL'. (Nullable) */ @@ -387,7 +414,7 @@ public static final String url_COLUMN = "URL"; /** - * Get the value of the column 'URL'. <br /> {VARCHAR(255)} + * URL: {VARCHAR(255)} <br /> * * @return The value of the column 'URL'. (Nullable) */ @@ -396,7 +423,7 @@ } /** - * Set the value of the column 'URL'. <br /> {VARCHAR(255)} + * URL: {VARCHAR(255)} <br /> * * @param url The value of the column 'URL'. (Nullable) */ @@ -409,7 +436,7 @@ public static final String telephone_COLUMN = "TELEPHONE"; /** - * Get the value of the column 'TELEPHONE'. <br /> {VARCHAR(40)} + * TELEPHONE: {VARCHAR(40)} <br /> * * @return The value of the column 'TELEPHONE'. (Nullable) */ @@ -418,7 +445,7 @@ } /** - * Set the value of the column 'TELEPHONE'. <br /> {VARCHAR(40)} + * TELEPHONE: {VARCHAR(40)} <br /> * * @param telephone The value of the column 'TELEPHONE'. (Nullable) */ @@ -427,11 +454,11 @@ this._telephone = telephone; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String createdTime_COLUMN = "CREATED_TIME"; /** - * Get the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'CREATED_TIME'. (Nullable) */ @@ -440,7 +467,7 @@ } /** - * Set the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param createdTime The value of the column 'CREATED_TIME'. (Nullable) */ @@ -449,11 +476,11 @@ this._createdTime = createdTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String createdBy_COLUMN = "CREATED_BY"; /** - * Get the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'CREATED_BY'. (Nullable) */ @@ -462,7 +489,7 @@ } /** - * Set the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param createdBy The value of the column 'CREATED_BY'. (Nullable) */ @@ -471,11 +498,11 @@ this._createdBy = createdBy; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String updatedTime_COLUMN = "UPDATED_TIME"; /** - * Get the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -484,7 +511,7 @@ } /** - * Set the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param updatedTime The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -493,11 +520,11 @@ this._updatedTime = updatedTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String updatedBy_COLUMN = "UPDATED_BY"; /** - * Get the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'UPDATED_BY'. (Nullable) */ @@ -506,7 +533,7 @@ } /** - * Set the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param updatedBy The value of the column 'UPDATED_BY'. (Nullable) */ @@ -519,7 +546,7 @@ public static final String deletedTime_COLUMN = "DELETED_TIME"; /** - * Get the value of the column 'DELETED_TIME'. <br /> {TIMESTAMP} + * DELETED_TIME: {TIMESTAMP} <br /> * * @return The value of the column 'DELETED_TIME'. (Nullable) */ @@ -528,7 +555,7 @@ } /** - * Set the value of the column 'DELETED_TIME'. <br /> {TIMESTAMP} + * DELETED_TIME: {TIMESTAMP} <br /> * * @param deletedTime The value of the column 'DELETED_TIME'. (Nullable) */ @@ -541,7 +568,7 @@ public static final String deletedBy_COLUMN = "DELETED_BY"; /** - * Get the value of the column 'DELETED_BY'. <br /> {VARCHAR(255)} + * DELETED_BY: {VARCHAR(255)} <br /> * * @return The value of the column 'DELETED_BY'. (Nullable) */ @@ -550,7 +577,7 @@ } /** - * Set the value of the column 'DELETED_BY'. <br /> {VARCHAR(255)} + * DELETED_BY: {VARCHAR(255)} <br /> * * @param deletedBy The value of the column 'DELETED_BY'. (Nullable) */ @@ -559,11 +586,11 @@ this._deletedBy = deletedBy; } - /** The column annotation for S2Dao. {INTEGER : NotNull} */ + /** The column annotation for S2Dao. {NotNull : INTEGER} */ public static final String versionno_COLUMN = "VERSIONNO"; /** - * Get the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull} + * VERSIONNO: {NotNull : INTEGER} <br /> * * @return The value of the column 'VERSIONNO'. (Nullable) */ @@ -572,7 +599,7 @@ } /** - * Set the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull} + * VERSIONNO: {NotNull : INTEGER} <br /> * * @param versionno The value of the column 'VERSIONNO'. (Nullable) */ Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsRoleMapping.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsRoleMapping.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsRoleMapping.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,356 @@ +package jp.sf.pal.timecard.db.bsentity; + +import java.util.Set; + +import jp.sf.pal.timecard.db.allcommon.Entity; +import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMeta; +import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMetaInstanceHandler; +import jp.sf.pal.timecard.db.exentity.RoleInfo; +import jp.sf.pal.timecard.db.exentity.UserInfo; + +/** + * The entity of ROLE_MAPPING that the type is TABLE. <br /> + * + * <pre> + * [primary-key] + * ID + * + * [column] + * ID, USER_ID, ROLE_ID + * + * [sequence] + * + * + * [identity] + * ID + * + * [version-no] + * + * + * [foreign-table] + * ROLE_INFO, USER_INFO + * + * [referrer-table] + * + * + * [foreign-property] + * roleInfo, userInfo + * + * [referrer-property] + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsRoleMapping implements Entity, java.io.Serializable { + + //========================================================================== + // ========= + // Definition + // ========== + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; + + /** TABLE-Annotation for S2Dao. The value is ROLE_MAPPING. */ + public static final String TABLE = "ROLE_MAPPING"; + + /** ID-Annotation */ + public static final String id_ID = "identity"; + + //========================================================================== + // ========= + // Attribute + // ========= + // ----------------------------------------------------- + // Column + // ------ + /** ID: {PK : ID : NotNull : INTEGER} */ + protected Integer _id; + + /** USER_ID: {NotNull : VARCHAR(255) : FK to USER_INFO} */ + protected String _userId; + + /** ROLE_ID: {NotNull : VARCHAR(255) : FK to ROLE_INFO} */ + protected String _roleId; + + // ----------------------------------------------------- + // Internal + // -------- + /** The attribute of entity modified properties. (for S2Dao) */ + protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties(); + + //========================================================================== + // ========= + // Constructor + // =========== + public BsRoleMapping() { + } + + //========================================================================== + // ========= + // Table Name + // ========== + public String getTableDbName() { + return "ROLE_MAPPING"; + } + + public String getTablePropertyName() {// as JavaBeansRule + return "roleMapping"; + } + + //========================================================================== + // ========= + // DBMeta + // ====== + public DBMeta getDBMeta() { + return DBMetaInstanceHandler.findDBMeta(getTableDbName()); + } + + //========================================================================== + // ========= + // Classification Classifying + // ========================== + //========================================================================== + // ========= + // Classification Determination + // ============================ + //========================================================================== + // ========= + // Classification Name/Alias + // ========================= + //========================================================================== + // ========= + // Foreign Property + // ================ + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // Foreign Property = [roleInfo] + // * * * * * * * * */ + public static final int roleInfo_RELNO = 0; + + public static final String roleInfo_RELKEYS = "ROLE_ID:ROLE_ID"; + + /** ROLE_INFO as 'roleInfo'. */ + protected RoleInfo _parentRoleInfo; + + /** + * ROLE_INFO as 'roleInfo'. {without lazy-load} + * + * @return The entity of foreign property 'roleInfo'. (Nullable: If the + * foreign key does not have 'NotNull' constraint, please check + * null.) + */ + public RoleInfo getRoleInfo() { + return _parentRoleInfo; + } + + /** + * ROLE_INFO as 'roleInfo'. + * + * @param roleInfo The entity of foreign property 'roleInfo'. (Nullable) + */ + public void setRoleInfo(RoleInfo roleInfo) { + _parentRoleInfo = roleInfo; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // Foreign Property = [userInfo] + // * * * * * * * * */ + public static final int userInfo_RELNO = 1; + + public static final String userInfo_RELKEYS = "USER_ID:USER_ID"; + + /** USER_INFO as 'userInfo'. */ + protected UserInfo _parentUserInfo; + + /** + * USER_INFO as 'userInfo'. {without lazy-load} + * + * @return The entity of foreign property 'userInfo'. (Nullable: If the + * foreign key does not have 'NotNull' constraint, please check + * null.) + */ + public UserInfo getUserInfo() { + return _parentUserInfo; + } + + /** + * USER_INFO as 'userInfo'. + * + * @param userInfo The entity of foreign property 'userInfo'. (Nullable) + */ + public void setUserInfo(UserInfo userInfo) { + _parentUserInfo = userInfo; + } + + //========================================================================== + // ========= + // Referrer Property + // ================= + + //========================================================================== + // ========= + // Determination + // ============= + public boolean hasPrimaryKeyValue() { + if (_id == null) { + return false; + } + return true; + } + + //========================================================================== + // ========= + // Modified Properties + // =================== + public Set<String> getModifiedPropertyNames() { + return _modifiedProperties.getPropertyNames(); + } + + protected EntityModifiedProperties newEntityModifiedProperties() { + return new EntityModifiedProperties(); + } + + public void clearModifiedPropertyNames() { + _modifiedProperties.clear(); + } + + public boolean hasModification() { + return !_modifiedProperties.isEmpty(); + } + + //========================================================================== + // ========= + // Basic Override + // ============== + /** + * If the primary-key of the other is same as this one, returns true. + * + * @param other Other entity. + * @return Comparing result. + */ + public boolean equals(Object other) { + if (other == null || !(other instanceof BsRoleMapping)) { + return false; + } + BsRoleMapping otherEntity = (BsRoleMapping) other; + if (!helpComparingValue(getId(), otherEntity.getId())) { + return false; + } + return true; + } + + protected boolean helpComparingValue(Object value1, Object value2) { + if (value1 == null && value2 == null) { + return true; + } + return value1 != null && value2 != null && value1.equals(value2); + } + + /** + * Calculates hash-code from primary-key. + * + * @return Hash-code from primary-keys. + */ + public int hashCode() { + int result = 17; + if (this.getId() != null) { + result = result + getId().hashCode(); + } + return result; + } + + /** + * @return The view string of columns. (NotNull) + */ + public String toString() { + String delimiter = ","; + StringBuilder sb = new StringBuilder(); + sb.append(delimiter).append(getId()); + sb.append(delimiter).append(getUserId()); + sb.append(delimiter).append(getRoleId()); + if (sb.length() > 0) { + sb.delete(0, delimiter.length()); + } + sb.insert(0, "{").append("}"); + return sb.toString(); + } + + //========================================================================== + // ========= + // Accessor + // ======== + + /** The column annotation for S2Dao. {PK : ID : NotNull : INTEGER} */ + public static final String id_COLUMN = "ID"; + + /** + * ID: {PK : ID : NotNull : INTEGER} <br /> + * + * @return The value of the column 'ID'. (Nullable) + */ + public Integer getId() { + return _id; + } + + /** + * ID: {PK : ID : NotNull : INTEGER} <br /> + * + * @param id The value of the column 'ID'. (Nullable) + */ + public void setId(Integer id) { + _modifiedProperties.addPropertyName("id"); + this._id = id; + } + + /** + * The column annotation for S2Dao. {NotNull : VARCHAR(255) : FK to + * USER_INFO} + */ + public static final String userId_COLUMN = "USER_ID"; + + /** + * USER_ID: {NotNull : VARCHAR(255) : FK to USER_INFO} <br /> + * + * @return The value of the column 'USER_ID'. (Nullable) + */ + public String getUserId() { + return _userId; + } + + /** + * USER_ID: {NotNull : VARCHAR(255) : FK to USER_INFO} <br /> + * + * @param userId The value of the column 'USER_ID'. (Nullable) + */ + public void setUserId(String userId) { + _modifiedProperties.addPropertyName("userId"); + this._userId = userId; + } + + /** + * The column annotation for S2Dao. {NotNull : VARCHAR(255) : FK to + * ROLE_INFO} + */ + public static final String roleId_COLUMN = "ROLE_ID"; + + /** + * ROLE_ID: {NotNull : VARCHAR(255) : FK to ROLE_INFO} <br /> + * + * @return The value of the column 'ROLE_ID'. (Nullable) + */ + public String getRoleId() { + return _roleId; + } + + /** + * ROLE_ID: {NotNull : VARCHAR(255) : FK to ROLE_INFO} <br /> + * + * @param roleId The value of the column 'ROLE_ID'. (Nullable) + */ + public void setRoleId(String roleId) { + _modifiedProperties.addPropertyName("roleId"); + this._roleId = roleId; + } + +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsRoleMapping.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsUserInfo.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsUserInfo.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/BsUserInfo.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -9,17 +9,19 @@ import jp.sf.pal.timecard.db.allcommon.dbmeta.DBMetaInstanceHandler; import jp.sf.pal.timecard.db.exentity.Employee; import jp.sf.pal.timecard.db.exentity.GroupInfo; +import jp.sf.pal.timecard.db.exentity.GroupMapping; import jp.sf.pal.timecard.db.exentity.RoleInfo; +import jp.sf.pal.timecard.db.exentity.RoleMapping; /** - * The entity of USER_INFO(TABLE). + * The entity of USER_INFO that the type is TABLE. <br /> * * <pre> * [primary-key] * USER_ID * * [column] - * USER_ID, GIVEN_NAME, FAMILY_NAME, MIDDLE_NAME, GIVEN_NAME_DESC, FAMILY_NAME_DESC, EMAIL, URL, TELEPHONE, ROLE_ID, GROUP_ID, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO + * USER_ID, GIVEN_NAME, FAMILY_NAME, MIDDLE_NAME, GIVEN_NAME_DESC, FAMILY_NAME_DESC, NICKNAME, GENDER, BIRTH_DATE, EMAIL, URL, TELEPHONE, ROLE_ID, GROUP_ID, CREATED_TIME, CREATED_BY, UPDATED_TIME, UPDATED_BY, DELETED_TIME, DELETED_BY, VERSIONNO * * [sequence] * @@ -34,13 +36,13 @@ * GROUP_INFO, ROLE_INFO * * [referrer-table] - * EMPLOYEE + * EMPLOYEE, GROUP_MAPPING, ROLE_MAPPING * * [foreign-property] * groupInfo, roleInfo * * [referrer-property] - * employeeByUsernameList, employeeByManagerList + * employeeByUsernameList, employeeByManagerList, groupMappingList, roleMappingList * </pre> * * @author DBFlute(AutoGenerator) @@ -68,60 +70,67 @@ // ----------------------------------------------------- // Column // ------ - /** The attribute of the column 'USER_ID'. {PK : VARCHAR(255) : NotNull} */ + /** USER_ID: {PK : NotNull : VARCHAR(255)} */ protected String _userId; - /** The attribute of the column 'GIVEN_NAME'. {VARCHAR(100)} */ + /** GIVEN_NAME: {VARCHAR(100)} */ protected String _givenName; - /** The attribute of the column 'FAMILY_NAME'. {VARCHAR(100)} */ + /** FAMILY_NAME: {VARCHAR(100)} */ protected String _familyName; - /** The attribute of the column 'MIDDLE_NAME'. {VARCHAR(50)} */ + /** MIDDLE_NAME: {VARCHAR(50)} */ protected String _middleName; - /** The attribute of the column 'GIVEN_NAME_DESC'. {VARCHAR(100)} */ + /** GIVEN_NAME_DESC: {VARCHAR(100)} */ protected String _givenNameDesc; - /** The attribute of the column 'FAMILY_NAME_DESC'. {VARCHAR(100)} */ + /** FAMILY_NAME_DESC: {VARCHAR(100)} */ protected String _familyNameDesc; - /** The attribute of the column 'EMAIL'. {VARCHAR(255)} */ + /** NICKNAME: {VARCHAR(100)} */ + protected String _nickname; + + /** GENDER: {VARCHAR(1)} */ + protected String _gender; + + /** BIRTH_DATE: {DATE} */ + protected java.util.Date _birthDate; + + /** EMAIL: {VARCHAR(255)} */ protected String _email; - /** The attribute of the column 'URL'. {VARCHAR(255)} */ + /** URL: {VARCHAR(255)} */ protected String _url; - /** The attribute of the column 'TELEPHONE'. {VARCHAR(40)} */ + /** TELEPHONE: {VARCHAR(40)} */ protected String _telephone; - /** The attribute of the column 'ROLE_ID'. {VARCHAR(255) : FK to ROLE_INFO} */ + /** ROLE_ID: {VARCHAR(255) : FK to ROLE_INFO} */ protected String _roleId; - /** - * The attribute of the column 'GROUP_ID'. {VARCHAR(255) : FK to GROUP_INFO} - */ + /** GROUP_ID: {VARCHAR(255) : FK to GROUP_INFO} */ protected String _groupId; - /** The attribute of the column 'CREATED_TIME'. {TIMESTAMP : NotNull} */ + /** CREATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _createdTime; - /** The attribute of the column 'CREATED_BY'. {VARCHAR(255) : NotNull} */ + /** CREATED_BY: {NotNull : VARCHAR(255)} */ protected String _createdBy; - /** The attribute of the column 'UPDATED_TIME'. {TIMESTAMP : NotNull} */ + /** UPDATED_TIME: {NotNull : TIMESTAMP} */ protected java.sql.Timestamp _updatedTime; - /** The attribute of the column 'UPDATED_BY'. {VARCHAR(255) : NotNull} */ + /** UPDATED_BY: {NotNull : VARCHAR(255)} */ protected String _updatedBy; - /** The attribute of the column 'DELETED_TIME'. {TIMESTAMP} */ + /** DELETED_TIME: {TIMESTAMP} */ protected java.sql.Timestamp _deletedTime; - /** The attribute of the column 'DELETED_BY'. {VARCHAR(255)} */ + /** DELETED_BY: {VARCHAR(255)} */ protected String _deletedBy; - /** The attribute of the column 'VERSIONNO'. {INTEGER : NotNull} */ + /** VERSIONNO: {NotNull : INTEGER} */ protected Integer _versionno; // ----------------------------------------------------- @@ -180,11 +189,11 @@ public static final String groupInfo_RELKEYS = "GROUP_ID:GROUP_ID"; - /** The entity of foreign property 'groupInfo'. */ + /** GROUP_INFO as 'groupInfo'. */ protected GroupInfo _parentGroupInfo; /** - * Get the entity of foreign property 'groupInfo'. {without lazy-load} + * GROUP_INFO as 'groupInfo'. {without lazy-load} * * @return The entity of foreign property 'groupInfo'. (Nullable: If the * foreign key does not have 'NotNull' constraint, please check @@ -195,7 +204,7 @@ } /** - * Set the entity of foreign property 'groupInfo'. + * GROUP_INFO as 'groupInfo'. * * @param groupInfo The entity of foreign property 'groupInfo'. (Nullable) */ @@ -210,11 +219,11 @@ public static final String roleInfo_RELKEYS = "ROLE_ID:ROLE_ID"; - /** The entity of foreign property 'roleInfo'. */ + /** ROLE_INFO as 'roleInfo'. */ protected RoleInfo _parentRoleInfo; /** - * Get the entity of foreign property 'roleInfo'. {without lazy-load} + * ROLE_INFO as 'roleInfo'. {without lazy-load} * * @return The entity of foreign property 'roleInfo'. (Nullable: If the * foreign key does not have 'NotNull' constraint, please check @@ -225,7 +234,7 @@ } /** - * Set the entity of foreign property 'roleInfo'. + * ROLE_INFO as 'roleInfo'. * * @param roleInfo The entity of foreign property 'roleInfo'. (Nullable) */ @@ -240,13 +249,11 @@ // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Referrer Property = [employeeByUsernameList] // * * * * * * * * */ - - /** The entity list of referrer property 'employeeByUsernameList'. */ + /** EMPLOYEE as 'employeeByUsernameList'. */ protected List<Employee> _childrenEmployeeByUsernameList; /** - * Get the entity list of referrer property 'employeeByUsernameList'. - * {without lazy-load} <br /> + * EMPLOYEE as 'employeeByUsernameList'. {without lazy-load} <br /> * * @return The entity list of referrer property 'employeeByUsernameList'. * (NotNull: If it's not loaded yet, initializes the list instance @@ -260,7 +267,7 @@ } /** - * Set the entity list of referrer property 'employeeByUsernameList'. + * EMPLOYEE as 'employeeByUsernameList'. * * @param employeeByUsernameList The entity list of referrer property * 'employeeByUsernameList'. (Nullable) @@ -272,13 +279,11 @@ // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Referrer Property = [employeeByManagerList] // * * * * * * * * */ - - /** The entity list of referrer property 'employeeByManagerList'. */ + /** EMPLOYEE as 'employeeByManagerList'. */ protected List<Employee> _childrenEmployeeByManagerList; /** - * Get the entity list of referrer property 'employeeByManagerList'. - * {without lazy-load} <br /> + * EMPLOYEE as 'employeeByManagerList'. {without lazy-load} <br /> * * @return The entity list of referrer property 'employeeByManagerList'. * (NotNull: If it's not loaded yet, initializes the list instance @@ -292,7 +297,7 @@ } /** - * Set the entity list of referrer property 'employeeByManagerList'. + * EMPLOYEE as 'employeeByManagerList'. * * @param employeeByManagerList The entity list of referrer property * 'employeeByManagerList'. (Nullable) @@ -301,6 +306,66 @@ _childrenEmployeeByManagerList = employeeByManagerList; } + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // Referrer Property = [groupMappingList] + // * * * * * * * * */ + /** GROUP_MAPPING as 'groupMappingList'. */ + protected List<GroupMapping> _childrenGroupMappingList; + + /** + * GROUP_MAPPING as 'groupMappingList'. {without lazy-load} <br /> + * + * @return The entity list of referrer property 'groupMappingList'. + * (NotNull: If it's not loaded yet, initializes the list instance + * of referrer as empty and returns it.) + */ + public List<GroupMapping> getGroupMappingList() { + if (_childrenGroupMappingList == null) { + _childrenGroupMappingList = new ArrayList<GroupMapping>(); + } + return _childrenGroupMappingList; + } + + /** + * GROUP_MAPPING as 'groupMappingList'. + * + * @param groupMappingList The entity list of referrer property + * 'groupMappingList'. (Nullable) + */ + public void setGroupMappingList(List<GroupMapping> groupMappingList) { + _childrenGroupMappingList = groupMappingList; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // Referrer Property = [roleMappingList] + // * * * * * * * * */ + /** ROLE_MAPPING as 'roleMappingList'. */ + protected List<RoleMapping> _childrenRoleMappingList; + + /** + * ROLE_MAPPING as 'roleMappingList'. {without lazy-load} <br /> + * + * @return The entity list of referrer property 'roleMappingList'. (NotNull: + * If it's not loaded yet, initializes the list instance of referrer + * as empty and returns it.) + */ + public List<RoleMapping> getRoleMappingList() { + if (_childrenRoleMappingList == null) { + _childrenRoleMappingList = new ArrayList<RoleMapping>(); + } + return _childrenRoleMappingList; + } + + /** + * ROLE_MAPPING as 'roleMappingList'. + * + * @param roleMappingList The entity list of referrer property + * 'roleMappingList'. (Nullable) + */ + public void setRoleMappingList(List<RoleMapping> roleMappingList) { + _childrenRoleMappingList = roleMappingList; + } + //========================================================================== // ========= // Determination @@ -385,6 +450,9 @@ sb.append(delimiter).append(getMiddleName()); sb.append(delimiter).append(getGivenNameDesc()); sb.append(delimiter).append(getFamilyNameDesc()); + sb.append(delimiter).append(getNickname()); + sb.append(delimiter).append(getGender()); + sb.append(delimiter).append(getBirthDate()); sb.append(delimiter).append(getEmail()); sb.append(delimiter).append(getUrl()); sb.append(delimiter).append(getTelephone()); @@ -409,12 +477,11 @@ // Accessor // ======== - /** The column annotation for S2Dao. {PK : VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {PK : NotNull : VARCHAR(255)} */ public static final String userId_COLUMN = "USER_ID"; /** - * Get the value of the column 'USER_ID'. <br /> {PK : VARCHAR(255) : - * NotNull} + * USER_ID: {PK : NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'USER_ID'. (Nullable) */ @@ -423,8 +490,7 @@ } /** - * Set the value of the column 'USER_ID'. <br /> {PK : VARCHAR(255) : - * NotNull} + * USER_ID: {PK : NotNull : VARCHAR(255)} <br /> * * @param userId The value of the column 'USER_ID'. (Nullable) */ @@ -437,7 +503,7 @@ public static final String givenName_COLUMN = "GIVEN_NAME"; /** - * Get the value of the column 'GIVEN_NAME'. <br /> {VARCHAR(100)} + * GIVEN_NAME: {VARCHAR(100)} <br /> * * @return The value of the column 'GIVEN_NAME'. (Nullable) */ @@ -446,7 +512,7 @@ } /** - * Set the value of the column 'GIVEN_NAME'. <br /> {VARCHAR(100)} + * GIVEN_NAME: {VARCHAR(100)} <br /> * * @param givenName The value of the column 'GIVEN_NAME'. (Nullable) */ @@ -459,7 +525,7 @@ public static final String familyName_COLUMN = "FAMILY_NAME"; /** - * Get the value of the column 'FAMILY_NAME'. <br /> {VARCHAR(100)} + * FAMILY_NAME: {VARCHAR(100)} <br /> * * @return The value of the column 'FAMILY_NAME'. (Nullable) */ @@ -468,7 +534,7 @@ } /** - * Set the value of the column 'FAMILY_NAME'. <br /> {VARCHAR(100)} + * FAMILY_NAME: {VARCHAR(100)} <br /> * * @param familyName The value of the column 'FAMILY_NAME'. (Nullable) */ @@ -481,7 +547,7 @@ public static final String middleName_COLUMN = "MIDDLE_NAME"; /** - * Get the value of the column 'MIDDLE_NAME'. <br /> {VARCHAR(50)} + * MIDDLE_NAME: {VARCHAR(50)} <br /> * * @return The value of the column 'MIDDLE_NAME'. (Nullable) */ @@ -490,7 +556,7 @@ } /** - * Set the value of the column 'MIDDLE_NAME'. <br /> {VARCHAR(50)} + * MIDDLE_NAME: {VARCHAR(50)} <br /> * * @param middleName The value of the column 'MIDDLE_NAME'. (Nullable) */ @@ -503,7 +569,7 @@ public static final String givenNameDesc_COLUMN = "GIVEN_NAME_DESC"; /** - * Get the value of the column 'GIVEN_NAME_DESC'. <br /> {VARCHAR(100)} + * GIVEN_NAME_DESC: {VARCHAR(100)} <br /> * * @return The value of the column 'GIVEN_NAME_DESC'. (Nullable) */ @@ -512,7 +578,7 @@ } /** - * Set the value of the column 'GIVEN_NAME_DESC'. <br /> {VARCHAR(100)} + * GIVEN_NAME_DESC: {VARCHAR(100)} <br /> * * @param givenNameDesc The value of the column 'GIVEN_NAME_DESC'. * (Nullable) @@ -526,7 +592,7 @@ public static final String familyNameDesc_COLUMN = "FAMILY_NAME_DESC"; /** - * Get the value of the column 'FAMILY_NAME_DESC'. <br /> {VARCHAR(100)} + * FAMILY_NAME_DESC: {VARCHAR(100)} <br /> * * @return The value of the column 'FAMILY_NAME_DESC'. (Nullable) */ @@ -535,7 +601,7 @@ } /** - * Set the value of the column 'FAMILY_NAME_DESC'. <br /> {VARCHAR(100)} + * FAMILY_NAME_DESC: {VARCHAR(100)} <br /> * * @param familyNameDesc The value of the column 'FAMILY_NAME_DESC'. * (Nullable) @@ -545,11 +611,77 @@ this._familyNameDesc = familyNameDesc; } + /** The column annotation for S2Dao. {VARCHAR(100)} */ + public static final String nickname_COLUMN = "NICKNAME"; + + /** + * NICKNAME: {VARCHAR(100)} <br /> + * + * @return The value of the column 'NICKNAME'. (Nullable) + */ + public String getNickname() { + return _nickname; + } + + /** + * NICKNAME: {VARCHAR(100)} <br /> + * + * @param nickname The value of the column 'NICKNAME'. (Nullable) + */ + public void setNickname(String nickname) { + _modifiedProperties.addPropertyName("nickname"); + this._nickname = nickname; + } + + /** The column annotation for S2Dao. {VARCHAR(1)} */ + public static final String gender_COLUMN = "GENDER"; + + /** + * GENDER: {VARCHAR(1)} <br /> + * + * @return The value of the column 'GENDER'. (Nullable) + */ + public String getGender() { + return _gender; + } + + /** + * GENDER: {VARCHAR(1)} <br /> + * + * @param gender The value of the column 'GENDER'. (Nullable) + */ + public void setGender(String gender) { + _modifiedProperties.addPropertyName("gender"); + this._gender = gender; + } + + /** The column annotation for S2Dao. {DATE} */ + public static final String birthDate_COLUMN = "BIRTH_DATE"; + + /** + * BIRTH_DATE: {DATE} <br /> + * + * @return The value of the column 'BIRTH_DATE'. (Nullable) + */ + public java.util.Date getBirthDate() { + return _birthDate; + } + + /** + * BIRTH_DATE: {DATE} <br /> + * + * @param birthDate The value of the column 'BIRTH_DATE'. (Nullable) + */ + public void setBirthDate(java.util.Date birthDate) { + _modifiedProperties.addPropertyName("birthDate"); + this._birthDate = birthDate; + } + /** The column annotation for S2Dao. {VARCHAR(255)} */ public static final String email_COLUMN = "EMAIL"; /** - * Get the value of the column 'EMAIL'. <br /> {VARCHAR(255)} + * EMAIL: {VARCHAR(255)} <br /> * * @return The value of the column 'EMAIL'. (Nullable) */ @@ -558,7 +690,7 @@ } /** - * Set the value of the column 'EMAIL'. <br /> {VARCHAR(255)} + * EMAIL: {VARCHAR(255)} <br /> * * @param email The value of the column 'EMAIL'. (Nullable) */ @@ -571,7 +703,7 @@ public static final String url_COLUMN = "URL"; /** - * Get the value of the column 'URL'. <br /> {VARCHAR(255)} + * URL: {VARCHAR(255)} <br /> * * @return The value of the column 'URL'. (Nullable) */ @@ -580,7 +712,7 @@ } /** - * Set the value of the column 'URL'. <br /> {VARCHAR(255)} + * URL: {VARCHAR(255)} <br /> * * @param url The value of the column 'URL'. (Nullable) */ @@ -593,7 +725,7 @@ public static final String telephone_COLUMN = "TELEPHONE"; /** - * Get the value of the column 'TELEPHONE'. <br /> {VARCHAR(40)} + * TELEPHONE: {VARCHAR(40)} <br /> * * @return The value of the column 'TELEPHONE'. (Nullable) */ @@ -602,7 +734,7 @@ } /** - * Set the value of the column 'TELEPHONE'. <br /> {VARCHAR(40)} + * TELEPHONE: {VARCHAR(40)} <br /> * * @param telephone The value of the column 'TELEPHONE'. (Nullable) */ @@ -615,8 +747,7 @@ public static final String roleId_COLUMN = "ROLE_ID"; /** - * Get the value of the column 'ROLE_ID'. <br /> {VARCHAR(255) : FK to - * ROLE_INFO} + * ROLE_ID: {VARCHAR(255) : FK to ROLE_INFO} <br /> * * @return The value of the column 'ROLE_ID'. (Nullable) */ @@ -625,8 +756,7 @@ } /** - * Set the value of the column 'ROLE_ID'. <br /> {VARCHAR(255) : FK to - * ROLE_INFO} + * ROLE_ID: {VARCHAR(255) : FK to ROLE_INFO} <br /> * * @param roleId The value of the column 'ROLE_ID'. (Nullable) */ @@ -639,8 +769,7 @@ public static final String groupId_COLUMN = "GROUP_ID"; /** - * Get the value of the column 'GROUP_ID'. <br /> {VARCHAR(255) : FK to - * GROUP_INFO} + * GROUP_ID: {VARCHAR(255) : FK to GROUP_INFO} <br /> * * @return The value of the column 'GROUP_ID'. (Nullable) */ @@ -649,8 +778,7 @@ } /** - * Set the value of the column 'GROUP_ID'. <br /> {VARCHAR(255) : FK to - * GROUP_INFO} + * GROUP_ID: {VARCHAR(255) : FK to GROUP_INFO} <br /> * * @param groupId The value of the column 'GROUP_ID'. (Nullable) */ @@ -659,11 +787,11 @@ this._groupId = groupId; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String createdTime_COLUMN = "CREATED_TIME"; /** - * Get the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'CREATED_TIME'. (Nullable) */ @@ -672,7 +800,7 @@ } /** - * Set the value of the column 'CREATED_TIME'. <br /> {TIMESTAMP : NotNull} + * CREATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param createdTime The value of the column 'CREATED_TIME'. (Nullable) */ @@ -681,11 +809,11 @@ this._createdTime = createdTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String createdBy_COLUMN = "CREATED_BY"; /** - * Get the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'CREATED_BY'. (Nullable) */ @@ -694,7 +822,7 @@ } /** - * Set the value of the column 'CREATED_BY'. <br /> {VARCHAR(255) : NotNull} + * CREATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param createdBy The value of the column 'CREATED_BY'. (Nullable) */ @@ -703,11 +831,11 @@ this._createdBy = createdBy; } - /** The column annotation for S2Dao. {TIMESTAMP : NotNull} */ + /** The column annotation for S2Dao. {NotNull : TIMESTAMP} */ public static final String updatedTime_COLUMN = "UPDATED_TIME"; /** - * Get the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @return The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -716,7 +844,7 @@ } /** - * Set the value of the column 'UPDATED_TIME'. <br /> {TIMESTAMP : NotNull} + * UPDATED_TIME: {NotNull : TIMESTAMP} <br /> * * @param updatedTime The value of the column 'UPDATED_TIME'. (Nullable) */ @@ -725,11 +853,11 @@ this._updatedTime = updatedTime; } - /** The column annotation for S2Dao. {VARCHAR(255) : NotNull} */ + /** The column annotation for S2Dao. {NotNull : VARCHAR(255)} */ public static final String updatedBy_COLUMN = "UPDATED_BY"; /** - * Get the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @return The value of the column 'UPDATED_BY'. (Nullable) */ @@ -738,7 +866,7 @@ } /** - * Set the value of the column 'UPDATED_BY'. <br /> {VARCHAR(255) : NotNull} + * UPDATED_BY: {NotNull : VARCHAR(255)} <br /> * * @param updatedBy The value of the column 'UPDATED_BY'. (Nullable) */ @@ -751,7 +879,7 @@ public static final String deletedTime_COLUMN = "DELETED_TIME"; /** - * Get the value of the column 'DELETED_TIME'. <br /> {TIMESTAMP} + * DELETED_TIME: {TIMESTAMP} <br /> * * @return The value of the column 'DELETED_TIME'. (Nullable) */ @@ -760,7 +888,7 @@ } /** - * Set the value of the column 'DELETED_TIME'. <br /> {TIMESTAMP} + * DELETED_TIME: {TIMESTAMP} <br /> * * @param deletedTime The value of the column 'DELETED_TIME'. (Nullable) */ @@ -773,7 +901,7 @@ public static final String deletedBy_COLUMN = "DELETED_BY"; /** - * Get the value of the column 'DELETED_BY'. <br /> {VARCHAR(255)} + * DELETED_BY: {VARCHAR(255)} <br /> * * @return The value of the column 'DELETED_BY'. (Nullable) */ @@ -782,7 +910,7 @@ } /** - * Set the value of the column 'DELETED_BY'. <br /> {VARCHAR(255)} + * DELETED_BY: {VARCHAR(255)} <br /> * * @param deletedBy The value of the column 'DELETED_BY'. (Nullable) */ @@ -791,11 +919,11 @@ this._deletedBy = deletedBy; } - /** The column annotation for S2Dao. {INTEGER : NotNull} */ + /** The column annotation for S2Dao. {NotNull : INTEGER} */ public static final String versionno_COLUMN = "VERSIONNO"; /** - * Get the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull} + * VERSIONNO: {NotNull : INTEGER} <br /> * * @return The value of the column 'VERSIONNO'. (Nullable) */ @@ -804,7 +932,7 @@ } /** - * Set the value of the column 'VERSIONNO'. <br /> {INTEGER : NotNull} + * VERSIONNO: {NotNull : INTEGER} <br /> * * @param versionno The value of the column 'VERSIONNO'. (Nullable) */ Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/DailyReportDbm.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/DailyReportDbm.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/DailyReportDbm.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -39,6 +39,10 @@ return "dailyReport"; } + public String getTableSqlName() { + return "DAILY_REPORT"; + } + //========================================================================== // ========= // Column Info Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/EmployeeDbm.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/EmployeeDbm.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/EmployeeDbm.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -40,6 +40,10 @@ return "employee"; } + public String getTableSqlName() { + return "EMPLOYEE"; + } + //========================================================================== // ========= // Column Info Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/GroupInfoDbm.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/GroupInfoDbm.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/GroupInfoDbm.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -39,6 +39,10 @@ return "groupInfo"; } + public String getTableSqlName() { + return "GROUP_INFO"; + } + //========================================================================== // ========= // Column Info @@ -238,6 +242,13 @@ // ----------------------------------------------------- // Referrer Property // ----------------- + public ReferrerInfo referrerGroupMappingList() { + Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnGroupId(), + GroupMappingDbm.getInstance().columnGroupId()); + return cri("groupMappingList", this, GroupMappingDbm.getInstance(), + map, false); + } + public ReferrerInfo referrerUserInfoList() { Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnGroupId(), UserInfoDbm.getInstance().columnGroupId()); Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/GroupMappingDbm.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/GroupMappingDbm.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/GroupMappingDbm.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,299 @@ +package jp.sf.pal.timecard.db.bsentity.dbmeta; + +import java.util.List; +import java.util.Map; + +import jp.sf.pal.timecard.db.allcommon.Entity; +import jp.sf.pal.timecard.db.allcommon.dbmeta.AbstractDBMeta; +import jp.sf.pal.timecard.db.allcommon.dbmeta.info.ColumnInfo; +import jp.sf.pal.timecard.db.allcommon.dbmeta.info.ForeignInfo; +import jp.sf.pal.timecard.db.allcommon.dbmeta.info.UniqueInfo; +import jp.sf.pal.timecard.db.exentity.GroupMapping; + +/** + * The DB meta of GROUP_MAPPING. (Singleton) + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class GroupMappingDbm extends AbstractDBMeta { + + private static final GroupMappingDbm _instance = new GroupMappingDbm(); + + private GroupMappingDbm() { + } + + public static GroupMappingDbm getInstance() { + return _instance; + } + + //========================================================================== + // ========= + // Table Info + // ========== + public String getTableDbName() { + return "GROUP_MAPPING"; + } + + public String getTablePropertyName() { + return "groupMapping"; + } + + public String getTableSqlName() { + return "GROUP_MAPPING"; + } + + //========================================================================== + // ========= + // Column Info + // =========== + protected ColumnInfo _columnId = cci("ID", "id", Integer.class, true, null, + null); + + protected ColumnInfo _columnUserId = cci("USER_ID", "userId", String.class, + false, 255, 0); + + protected ColumnInfo _columnGroupId = cci("GROUP_ID", "groupId", + String.class, false, 255, 0); + + public ColumnInfo columnId() { + return _columnId; + } + + public ColumnInfo columnUserId() { + return _columnUserId; + } + + public ColumnInfo columnGroupId() { + return _columnGroupId; + } + + { + initializeColumnInfoList(); + } + + //========================================================================== + // ========= + // Name Map + // ======== + public Map<String, String> getDbNamePropertyNameKeyToLowerMap() { + return createDbNamePropertyNameKeyToLowerMap(); + } + + public Map<String, String> getPropertyNameDbNameKeyToLowerMap() { + return createPropertyNameDbNameKeyToLowerMap(); + } + + protected static Map<String, String> _dbNamePropertyNameKeyToLowerMap; + + protected Map<String, String> createDbNamePropertyNameKeyToLowerMap() { + if (_dbNamePropertyNameKeyToLowerMap == null) { + _dbNamePropertyNameKeyToLowerMap = setupKeyToLowerMap(true); + } + return _dbNamePropertyNameKeyToLowerMap; + } + + protected static Map<String, String> _propertyNameDbNameKeyToLowerMap; + + protected Map<String, String> createPropertyNameDbNameKeyToLowerMap() { + if (_propertyNameDbNameKeyToLowerMap == null) { + _propertyNameDbNameKeyToLowerMap = setupKeyToLowerMap(false); + } + return _propertyNameDbNameKeyToLowerMap; + } + + //========================================================================== + // ========= + // Type Name + // ========= + public String getEntityTypeName() { + return "jp.sf.pal.timecard.db.exentity.GroupMapping"; + } + + public String getConditionBeanTypeName() { + return "jp.sf.pal.timecard.db.cbean.bs.GroupMappingCB"; + } + + public String getDaoTypeName() { + return "jp.sf.pal.timecard.db.exdao.GroupMappingDao"; + } + + public String getBehaviorTypeName() { + return "jp.sf.pal.timecard.db.exbhv.GroupMappingBhv"; + } + + //========================================================================== + // ========= + // Object Type + // =========== + public Class<GroupMapping> getEntityType() { + return GroupMapping.class; + } + + //========================================================================== + // ========= + // Object Instance + // =============== + public Entity newEntity() { + return newMyEntity(); + } + + public GroupMapping newMyEntity() { + return new GroupMapping(); + } + + //========================================================================== + // ========= + // Unique Info + // =========== + // ----------------------------------------------------- + // Primary Element + // --------------- + public UniqueInfo getPrimaryUniqueInfo() { + return createPrimaryUniqueInfo(columnId()); + } + + public boolean hasPrimaryKey() { + return true; + } + + public boolean hasTwoOrMorePrimaryKeys() { + return false; + } + + //========================================================================== + // ========= + // Relation Info + // ============= + // ----------------------------------------------------- + // Foreign Property + // ---------------- + public ForeignInfo foreignGroupInfo() { + Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnGroupId(), + GroupInfoDbm.getInstance().columnGroupId()); + return cfi("groupInfo", this, GroupInfoDbm.getInstance(), map, 0, false); + } + + public ForeignInfo foreignUserInfo() { + Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnUserId(), + UserInfoDbm.getInstance().columnUserId()); + return cfi("userInfo", this, UserInfoDbm.getInstance(), map, 1, false); + } + + // ----------------------------------------------------- + // Referrer Property + // ----------------- + + //========================================================================== + // ========= + // Various Info + // ============ + + //========================================================================== + // ========= + // Entity Handling + // =============== + // ----------------------------------------------------- + // Accept + // ------ + public void acceptPrimaryKeyMap(Entity entity, + Map<String, ? extends Object> primaryKeyMap) { + doAcceptPrimaryKeyMap((GroupMapping) entity, primaryKeyMap, _epsMap); + } + + public void acceptPrimaryKeyMapString(Entity entity, + String primaryKeyMapString) { + MapStringUtil.acceptPrimaryKeyMapString(primaryKeyMapString, entity); + } + + public void acceptColumnValueMap(Entity entity, + Map<String, ? extends Object> columnValueMap) { + doAcceptColumnValueMap((GroupMapping) entity, columnValueMap, _epsMap); + } + + public void acceptColumnValueMapString(Entity entity, + String columnValueMapString) { + MapStringUtil.acceptColumnValueMapString(columnValueMapString, entity); + } + + // ----------------------------------------------------- + // Extract + // ------- + public String extractPrimaryKeyMapString(Entity entity) { + return MapStringUtil.extractPrimaryKeyMapString(entity); + } + + public String extractPrimaryKeyMapString(Entity entity, String startBrace, + String endBrace, String delimiter, String equal) { + return doExtractPrimaryKeyMapString(entity, startBrace, endBrace, + delimiter, equal); + } + + public String extractColumnValueMapString(Entity entity) { + return MapStringUtil.extractColumnValueMapString(entity); + } + + public String extractColumnValueMapString(Entity entity, String startBrace, + String endBrace, String delimiter, String equal) { + return doExtractColumnValueMapString(entity, startBrace, endBrace, + delimiter, equal); + } + + // ----------------------------------------------------- + // Convert + // ------- + public List<Object> convertToColumnValueList(Entity entity) { + return newArrayList(convertToColumnValueMap(entity).values()); + } + + public Map<String, Object> convertToColumnValueMap(Entity entity) { + return doConvertToColumnValueMap(entity); + } + + public List<String> convertToColumnStringValueList(Entity entity) { + return newArrayList(convertToColumnStringValueMap(entity).values()); + } + + public Map<String, String> convertToColumnStringValueMap(Entity entity) { + return doConvertToColumnStringValueMap(entity); + } + + //========================================================================== + // ========= + // Entity Property Setup + // ===================== + // It's very INTERNAL! + protected Map<String, Eps<GroupMapping>> _epsMap = newHashMap(); + { + setupEps(_epsMap, new EpsId(), columnId()); + setupEps(_epsMap, new EpsUserId(), columnUserId()); + setupEps(_epsMap, new EpsGroupId(), columnGroupId()); + } + + public boolean hasEntityPropertySetupper(String propertyName) { + return _epsMap.containsKey(propertyName); + } + + public void setupEntityProperty(String propertyName, Object entity, + Object value) { + findEps(_epsMap, propertyName).setup((GroupMapping) entity, value); + } + + public static class EpsId implements Eps<GroupMapping> { + public void setup(GroupMapping e, Object v) { + e.setId((Integer) v); + } + } + + public static class EpsUserId implements Eps<GroupMapping> { + public void setup(GroupMapping e, Object v) { + e.setUserId((String) v); + } + } + + public static class EpsGroupId implements Eps<GroupMapping> { + public void setup(GroupMapping e, Object v) { + e.setGroupId((String) v); + } + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/GroupMappingDbm.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/MonthlyReportDbm.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/MonthlyReportDbm.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/MonthlyReportDbm.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -40,6 +40,10 @@ return "monthlyReport"; } + public String getTableSqlName() { + return "MONTHLY_REPORT"; + } + //========================================================================== // ========= // Column Info Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/RoleInfoDbm.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/RoleInfoDbm.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/RoleInfoDbm.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -39,6 +39,10 @@ return "roleInfo"; } + public String getTableSqlName() { + return "ROLE_INFO"; + } + //========================================================================== // ========= // Column Info @@ -238,6 +242,13 @@ // ----------------------------------------------------- // Referrer Property // ----------------- + public ReferrerInfo referrerRoleMappingList() { + Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnRoleId(), + RoleMappingDbm.getInstance().columnRoleId()); + return cri("roleMappingList", this, RoleMappingDbm.getInstance(), map, + false); + } + public ReferrerInfo referrerUserInfoList() { Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnRoleId(), UserInfoDbm.getInstance().columnRoleId()); Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/RoleMappingDbm.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/RoleMappingDbm.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/RoleMappingDbm.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,299 @@ +package jp.sf.pal.timecard.db.bsentity.dbmeta; + +import java.util.List; +import java.util.Map; + +import jp.sf.pal.timecard.db.allcommon.Entity; +import jp.sf.pal.timecard.db.allcommon.dbmeta.AbstractDBMeta; +import jp.sf.pal.timecard.db.allcommon.dbmeta.info.ColumnInfo; +import jp.sf.pal.timecard.db.allcommon.dbmeta.info.ForeignInfo; +import jp.sf.pal.timecard.db.allcommon.dbmeta.info.UniqueInfo; +import jp.sf.pal.timecard.db.exentity.RoleMapping; + +/** + * The DB meta of ROLE_MAPPING. (Singleton) + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class RoleMappingDbm extends AbstractDBMeta { + + private static final RoleMappingDbm _instance = new RoleMappingDbm(); + + private RoleMappingDbm() { + } + + public static RoleMappingDbm getInstance() { + return _instance; + } + + //========================================================================== + // ========= + // Table Info + // ========== + public String getTableDbName() { + return "ROLE_MAPPING"; + } + + public String getTablePropertyName() { + return "roleMapping"; + } + + public String getTableSqlName() { + return "ROLE_MAPPING"; + } + + //========================================================================== + // ========= + // Column Info + // =========== + protected ColumnInfo _columnId = cci("ID", "id", Integer.class, true, null, + null); + + protected ColumnInfo _columnUserId = cci("USER_ID", "userId", String.class, + false, 255, 0); + + protected ColumnInfo _columnRoleId = cci("ROLE_ID", "roleId", String.class, + false, 255, 0); + + public ColumnInfo columnId() { + return _columnId; + } + + public ColumnInfo columnUserId() { + return _columnUserId; + } + + public ColumnInfo columnRoleId() { + return _columnRoleId; + } + + { + initializeColumnInfoList(); + } + + //========================================================================== + // ========= + // Name Map + // ======== + public Map<String, String> getDbNamePropertyNameKeyToLowerMap() { + return createDbNamePropertyNameKeyToLowerMap(); + } + + public Map<String, String> getPropertyNameDbNameKeyToLowerMap() { + return createPropertyNameDbNameKeyToLowerMap(); + } + + protected static Map<String, String> _dbNamePropertyNameKeyToLowerMap; + + protected Map<String, String> createDbNamePropertyNameKeyToLowerMap() { + if (_dbNamePropertyNameKeyToLowerMap == null) { + _dbNamePropertyNameKeyToLowerMap = setupKeyToLowerMap(true); + } + return _dbNamePropertyNameKeyToLowerMap; + } + + protected static Map<String, String> _propertyNameDbNameKeyToLowerMap; + + protected Map<String, String> createPropertyNameDbNameKeyToLowerMap() { + if (_propertyNameDbNameKeyToLowerMap == null) { + _propertyNameDbNameKeyToLowerMap = setupKeyToLowerMap(false); + } + return _propertyNameDbNameKeyToLowerMap; + } + + //========================================================================== + // ========= + // Type Name + // ========= + public String getEntityTypeName() { + return "jp.sf.pal.timecard.db.exentity.RoleMapping"; + } + + public String getConditionBeanTypeName() { + return "jp.sf.pal.timecard.db.cbean.bs.RoleMappingCB"; + } + + public String getDaoTypeName() { + return "jp.sf.pal.timecard.db.exdao.RoleMappingDao"; + } + + public String getBehaviorTypeName() { + return "jp.sf.pal.timecard.db.exbhv.RoleMappingBhv"; + } + + //========================================================================== + // ========= + // Object Type + // =========== + public Class<RoleMapping> getEntityType() { + return RoleMapping.class; + } + + //========================================================================== + // ========= + // Object Instance + // =============== + public Entity newEntity() { + return newMyEntity(); + } + + public RoleMapping newMyEntity() { + return new RoleMapping(); + } + + //========================================================================== + // ========= + // Unique Info + // =========== + // ----------------------------------------------------- + // Primary Element + // --------------- + public UniqueInfo getPrimaryUniqueInfo() { + return createPrimaryUniqueInfo(columnId()); + } + + public boolean hasPrimaryKey() { + return true; + } + + public boolean hasTwoOrMorePrimaryKeys() { + return false; + } + + //========================================================================== + // ========= + // Relation Info + // ============= + // ----------------------------------------------------- + // Foreign Property + // ---------------- + public ForeignInfo foreignRoleInfo() { + Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnRoleId(), + RoleInfoDbm.getInstance().columnRoleId()); + return cfi("roleInfo", this, RoleInfoDbm.getInstance(), map, 0, false); + } + + public ForeignInfo foreignUserInfo() { + Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnUserId(), + UserInfoDbm.getInstance().columnUserId()); + return cfi("userInfo", this, UserInfoDbm.getInstance(), map, 1, false); + } + + // ----------------------------------------------------- + // Referrer Property + // ----------------- + + //========================================================================== + // ========= + // Various Info + // ============ + + //========================================================================== + // ========= + // Entity Handling + // =============== + // ----------------------------------------------------- + // Accept + // ------ + public void acceptPrimaryKeyMap(Entity entity, + Map<String, ? extends Object> primaryKeyMap) { + doAcceptPrimaryKeyMap((RoleMapping) entity, primaryKeyMap, _epsMap); + } + + public void acceptPrimaryKeyMapString(Entity entity, + String primaryKeyMapString) { + MapStringUtil.acceptPrimaryKeyMapString(primaryKeyMapString, entity); + } + + public void acceptColumnValueMap(Entity entity, + Map<String, ? extends Object> columnValueMap) { + doAcceptColumnValueMap((RoleMapping) entity, columnValueMap, _epsMap); + } + + public void acceptColumnValueMapString(Entity entity, + String columnValueMapString) { + MapStringUtil.acceptColumnValueMapString(columnValueMapString, entity); + } + + // ----------------------------------------------------- + // Extract + // ------- + public String extractPrimaryKeyMapString(Entity entity) { + return MapStringUtil.extractPrimaryKeyMapString(entity); + } + + public String extractPrimaryKeyMapString(Entity entity, String startBrace, + String endBrace, String delimiter, String equal) { + return doExtractPrimaryKeyMapString(entity, startBrace, endBrace, + delimiter, equal); + } + + public String extractColumnValueMapString(Entity entity) { + return MapStringUtil.extractColumnValueMapString(entity); + } + + public String extractColumnValueMapString(Entity entity, String startBrace, + String endBrace, String delimiter, String equal) { + return doExtractColumnValueMapString(entity, startBrace, endBrace, + delimiter, equal); + } + + // ----------------------------------------------------- + // Convert + // ------- + public List<Object> convertToColumnValueList(Entity entity) { + return newArrayList(convertToColumnValueMap(entity).values()); + } + + public Map<String, Object> convertToColumnValueMap(Entity entity) { + return doConvertToColumnValueMap(entity); + } + + public List<String> convertToColumnStringValueList(Entity entity) { + return newArrayList(convertToColumnStringValueMap(entity).values()); + } + + public Map<String, String> convertToColumnStringValueMap(Entity entity) { + return doConvertToColumnStringValueMap(entity); + } + + //========================================================================== + // ========= + // Entity Property Setup + // ===================== + // It's very INTERNAL! + protected Map<String, Eps<RoleMapping>> _epsMap = newHashMap(); + { + setupEps(_epsMap, new EpsId(), columnId()); + setupEps(_epsMap, new EpsUserId(), columnUserId()); + setupEps(_epsMap, new EpsRoleId(), columnRoleId()); + } + + public boolean hasEntityPropertySetupper(String propertyName) { + return _epsMap.containsKey(propertyName); + } + + public void setupEntityProperty(String propertyName, Object entity, + Object value) { + findEps(_epsMap, propertyName).setup((RoleMapping) entity, value); + } + + public static class EpsId implements Eps<RoleMapping> { + public void setup(RoleMapping e, Object v) { + e.setId((Integer) v); + } + } + + public static class EpsUserId implements Eps<RoleMapping> { + public void setup(RoleMapping e, Object v) { + e.setUserId((String) v); + } + } + + public static class EpsRoleId implements Eps<RoleMapping> { + public void setup(RoleMapping e, Object v) { + e.setRoleId((String) v); + } + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/RoleMappingDbm.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/UserInfoDbm.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/UserInfoDbm.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/bsentity/dbmeta/UserInfoDbm.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -40,6 +40,10 @@ return "userInfo"; } + public String getTableSqlName() { + return "USER_INFO"; + } + //========================================================================== // ========= // Column Info @@ -62,6 +66,15 @@ protected ColumnInfo _columnFamilyNameDesc = cci("FAMILY_NAME_DESC", "familyNameDesc", String.class, false, 100, 0); + protected ColumnInfo _columnNickname = cci("NICKNAME", "nickname", + String.class, false, 100, 0); + + protected ColumnInfo _columnGender = cci("GENDER", "gender", String.class, + false, 1, 0); + + protected ColumnInfo _columnBirthDate = cci("BIRTH_DATE", "birthDate", + java.util.Date.class, false, null, null); + protected ColumnInfo _columnEmail = cci("EMAIL", "email", String.class, false, 255, 0); @@ -122,6 +135,18 @@ return _columnFamilyNameDesc; } + public ColumnInfo columnNickname() { + return _columnNickname; + } + + public ColumnInfo columnGender() { + return _columnGender; + } + + public ColumnInfo columnBirthDate() { + return _columnBirthDate; + } + public ColumnInfo columnEmail() { return _columnEmail; } @@ -299,6 +324,20 @@ map, false); } + public ReferrerInfo referrerGroupMappingList() { + Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnUserId(), + GroupMappingDbm.getInstance().columnUserId()); + return cri("groupMappingList", this, GroupMappingDbm.getInstance(), + map, false); + } + + public ReferrerInfo referrerRoleMappingList() { + Map<ColumnInfo, ColumnInfo> map = newLinkedHashMap(columnUserId(), + RoleMappingDbm.getInstance().columnUserId()); + return cri("roleMappingList", this, RoleMappingDbm.getInstance(), map, + false); + } + //========================================================================== // ========= // Various Info @@ -393,6 +432,9 @@ setupEps(_epsMap, new EpsMiddleName(), columnMiddleName()); setupEps(_epsMap, new EpsGivenNameDesc(), columnGivenNameDesc()); setupEps(_epsMap, new EpsFamilyNameDesc(), columnFamilyNameDesc()); + setupEps(_epsMap, new EpsNickname(), columnNickname()); + setupEps(_epsMap, new EpsGender(), columnGender()); + setupEps(_epsMap, new EpsBirthDate(), columnBirthDate()); setupEps(_epsMap, new EpsEmail(), columnEmail()); setupEps(_epsMap, new EpsUrl(), columnUrl()); setupEps(_epsMap, new EpsTelephone(), columnTelephone()); @@ -452,6 +494,24 @@ } } + public static class EpsNickname implements Eps<UserInfo> { + public void setup(UserInfo e, Object v) { + e.setNickname((String) v); + } + } + + public static class EpsGender implements Eps<UserInfo> { + public void setup(UserInfo e, Object v) { + e.setGender((String) v); + } + } + + public static class EpsBirthDate implements Eps<UserInfo> { + public void setup(UserInfo e, Object v) { + e.setBirthDate((java.util.Date) v); + } + } + public static class EpsEmail implements Eps<UserInfo> { public void setup(UserInfo e, Object v) { e.setEmail((String) v); Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/GroupMappingCB.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/GroupMappingCB.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/GroupMappingCB.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,15 @@ +package jp.sf.pal.timecard.db.cbean; + +/** + * The condition-bean of GROUP_MAPPING. + * <p> + * You can implement your original methods here. This class is NOT overrided + * when re-generating. + * </p> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class GroupMappingCB extends + jp.sf.pal.timecard.db.cbean.bs.BsGroupMappingCB { +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/GroupMappingCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/RoleMappingCB.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/RoleMappingCB.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/RoleMappingCB.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,15 @@ +package jp.sf.pal.timecard.db.cbean; + +/** + * The condition-bean of ROLE_MAPPING. + * <p> + * You can implement your original methods here. This class is NOT overrided + * when re-generating. + * </p> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class RoleMappingCB extends + jp.sf.pal.timecard.db.cbean.bs.BsRoleMappingCB { +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/RoleMappingCB.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsGroupInfoCB.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsGroupInfoCB.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsGroupInfoCB.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -8,6 +8,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.SubQuery; import jp.sf.pal.timecard.db.allcommon.cbean.UnionQuery; import jp.sf.pal.timecard.db.cbean.GroupInfoCB; +import jp.sf.pal.timecard.db.cbean.GroupMappingCB; import jp.sf.pal.timecard.db.cbean.UserInfoCB; import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; @@ -254,6 +255,19 @@ return "GROUP_INFO"; } + public RAFunction<GroupMappingCB, GroupInfoCQ> derivedGroupMappingList() { + return new RAFunction<GroupMappingCB, GroupInfoCQ>(_baseCB, + _myQyCall.qy(), + new RAQSetupper<GroupMappingCB, GroupInfoCQ>() { + public void setup(String function, + SubQuery<GroupMappingCB> subQuery, + GroupInfoCQ cq, String aliasName) { + cq.xderiveGroupMappingList(function, subQuery, + aliasName); + } + }); + } + public RAFunction<UserInfoCB, GroupInfoCQ> derivedUserInfoList() { return new RAFunction<UserInfoCB, GroupInfoCQ>(_baseCB, _myQyCall .qy(), new RAQSetupper<UserInfoCB, GroupInfoCQ>() { Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsGroupMappingCB.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsGroupMappingCB.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsGroupMappingCB.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,325 @@ +package jp.sf.pal.timecard.db.cbean.bs; + +import java.util.Map; + +import jp.sf.pal.timecard.db.allcommon.cbean.AbstractConditionBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.SubQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.UnionQuery; +import jp.sf.pal.timecard.db.cbean.GroupInfoCB; +import jp.sf.pal.timecard.db.cbean.GroupMappingCB; +import jp.sf.pal.timecard.db.cbean.UserInfoCB; +import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; +import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; +import jp.sf.pal.timecard.db.cbean.nss.GroupInfoNss; +import jp.sf.pal.timecard.db.cbean.nss.UserInfoNss; + +/** + * The base condition-bean of GROUP_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class BsGroupMappingCB extends AbstractConditionBean { + + //========================================================================== + // ========= + // Attribute + // ========= + protected GroupMappingCQ _conditionQuery; + + //========================================================================== + // ========= + // Table Name + // ========== + public String getTableDbName() { + return "GROUP_MAPPING"; + } + + public String getTableSqlName() { + return "GROUP_MAPPING"; + } + + //========================================================================== + // ========= + // PrimaryKey Map + // ============== + public void acceptPrimaryKeyMap(Map<String, ? extends Object> primaryKeyMap) { + assertPrimaryKeyMap(primaryKeyMap); + { + Object obj = primaryKeyMap.get("ID"); + if (obj instanceof Integer) { + query().setId_Equal((Integer) obj); + } else { + query().setId_Equal(new Integer((String) obj)); + } + } + + } + + //========================================================================== + // ========= + // OrderBy Setting + // =============== + public ConditionBean addOrderBy_PK_Asc() { + query().addOrderBy_Id_Asc(); + return this; + } + + public ConditionBean addOrderBy_PK_Desc() { + query().addOrderBy_Id_Desc(); + return this; + } + + //========================================================================== + // ========= + // Query + // ===== + public GroupMappingCQ query() { + return getConditionQuery(); + } + + public GroupMappingCQ getConditionQuery() { + if (_conditionQuery == null) { + _conditionQuery = new GroupMappingCQ(null, getSqlClause(), + getSqlClause().getLocalTableAliasName(), 0); + } + return _conditionQuery; + } + + public ConditionQuery getConditionQueryAsInterface() { + return getConditionQuery(); + } + + //========================================================================== + // ========= + // Union + // ===== + /** + * Set up 'union'. + * + * <pre> + * cb.query().union(new UnionQuery<GroupMappingCB>() { + * public void query(GroupMappingCB unionCB) { + * unionCB.query().setXxx... + * } + * }); + * </pre> + * + * @param unionQuery The query of 'union'. (NotNull) + */ + public void union(UnionQuery<GroupMappingCB> unionQuery) { + final GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForUnion(); + unionQuery.query(cb); + final GroupMappingCQ cq = cb.query(); + query().xsetUnionQuery(cq); + } + + /** + * Set up 'union all'. + * + * <pre> + * cb.query().unionAll(new UnionQuery<GroupMappingCB>() { + * public void query(GroupMappingCB unionCB) { + * unionCB.query().setXxx... + * } + * }); + * </pre> + * + * @param unionQuery The query of 'union'. (NotNull) + */ + public void unionAll(UnionQuery<GroupMappingCB> unionQuery) { + final GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForUnion(); + unionQuery.query(cb); + final GroupMappingCQ cq = cb.query(); + query().xsetUnionAllQuery(cq); + } + + /** + * @param unionQuery The query of 'union'. (NotNull) + * @deprecated Sorry! Please use union(UnionQuery<GroupMappingCB> + * unionQuery). + */ + public void union(GroupMappingCQ unionQuery) { + query().xsetUnionQuery(unionQuery); + } + + /** + * @param unionQuery The query of 'union'. (NotNull) + * @deprecated Sorry! Please use unionAll(UnionQuery<GroupMappingCB> + * unionQuery). + */ + public void unionAll(GroupMappingCQ unionQuery) { + query().xsetUnionAllQuery(unionQuery); + } + + public boolean hasUnionQueryOrUnionAllQuery() { + return query().hasUnionQueryOrUnionAllQuery(); + } + + //========================================================================== + // ========= + // Setup Select + // ============ + + protected GroupInfoNss _nssGroupInfo; + + public GroupInfoNss getNssGroupInfo() { + if (_nssGroupInfo == null) { + _nssGroupInfo = new GroupInfoNss(null); + } + return _nssGroupInfo; + } + + public GroupInfoNss setupSelect_GroupInfo() { + doSetupSelect(new SsCall() { + public ConditionQuery qf() { + return query().queryGroupInfo(); + } + }); + if (_nssGroupInfo == null || !_nssGroupInfo.hasConditionQuery()) { + _nssGroupInfo = new GroupInfoNss(query().queryGroupInfo()); + } + return _nssGroupInfo; + } + + protected UserInfoNss _nssUserInfo; + + public UserInfoNss getNssUserInfo() { + if (_nssUserInfo == null) { + _nssUserInfo = new UserInfoNss(null); + } + return _nssUserInfo; + } + + public UserInfoNss setupSelect_UserInfo() { + doSetupSelect(new SsCall() { + public ConditionQuery qf() { + return query().queryUserInfo(); + } + }); + if (_nssUserInfo == null || !_nssUserInfo.hasConditionQuery()) { + _nssUserInfo = new UserInfoNss(query().queryUserInfo()); + } + return _nssUserInfo; + } + + // [DBFlute-0.7.4] + //========================================================================== + // ========= + // Specify + // ======= + protected Specification _specification; + + public Specification specify() { + if (_specification == null) { + _specification = new Specification(this, + new SpQyCall<GroupMappingCQ>() { + public boolean has() { + return true; + } + + public GroupMappingCQ qy() { + return query(); + } + }, _forDeriveReferrer); + } + return _specification; + } + + public static class Specification extends + AbstractSpecification<GroupMappingCQ> { + protected SpQyCall<GroupMappingCQ> _myQyCall; + + protected GroupInfoCB.Specification _groupInfo; + + protected UserInfoCB.Specification _userInfo; + + public Specification(ConditionBean baseCB, + SpQyCall<GroupMappingCQ> qyCall, boolean forDeriveReferrer) { + super(baseCB, qyCall, forDeriveReferrer); + _myQyCall = qyCall; + } + + public void columnId() { + doColumn("ID"); + } + + public void columnUserId() { + doColumn("USER_ID"); + } + + public void columnGroupId() { + doColumn("GROUP_ID"); + } + + protected void doSpecifyRequiredColumn() { + columnId();// PK + if (_myQyCall.qy().hasConditionQueryGroupInfo()) { + columnGroupId();// FK + } + if (_myQyCall.qy().hasConditionQueryUserInfo()) { + columnUserId();// FK + } + } + + protected String getTableDbName() { + return "GROUP_MAPPING"; + } + + public GroupInfoCB.Specification specifyGroupInfo() { + assertForeign("groupInfo"); + if (_groupInfo == null) { + _groupInfo = new GroupInfoCB.Specification(_baseCB, + new SpQyCall<GroupInfoCQ>() { + public boolean has() { + return _myQyCall.has() + && _myQyCall.qy() + .hasConditionQueryGroupInfo(); + } + + public GroupInfoCQ qy() { + return _myQyCall.qy().queryGroupInfo(); + } + }, _forDeriveReferrer); + } + return _groupInfo; + } + + public UserInfoCB.Specification specifyUserInfo() { + assertForeign("userInfo"); + if (_userInfo == null) { + _userInfo = new UserInfoCB.Specification(_baseCB, + new SpQyCall<UserInfoCQ>() { + public boolean has() { + return _myQyCall.has() + && _myQyCall.qy() + .hasConditionQueryUserInfo(); + } + + public UserInfoCQ qy() { + return _myQyCall.qy().queryUserInfo(); + } + }, _forDeriveReferrer); + } + return _userInfo; + } + } + + // Very Internal (for Suppressing Warn about 'Not Use Import') + protected String getConditionBeanClassNameInternally() { + return GroupMappingCB.class.getName(); + } + + protected String getConditionQueryClassNameInternally() { + return GroupMappingCQ.class.getName(); + } + + protected String getSubQueryClassNameInternally() { + return SubQuery.class.getName(); + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsGroupMappingCB.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsRoleInfoCB.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsRoleInfoCB.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsRoleInfoCB.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -8,6 +8,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.SubQuery; import jp.sf.pal.timecard.db.allcommon.cbean.UnionQuery; import jp.sf.pal.timecard.db.cbean.RoleInfoCB; +import jp.sf.pal.timecard.db.cbean.RoleMappingCB; import jp.sf.pal.timecard.db.cbean.UserInfoCB; import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; @@ -253,6 +254,17 @@ return "ROLE_INFO"; } + public RAFunction<RoleMappingCB, RoleInfoCQ> derivedRoleMappingList() { + return new RAFunction<RoleMappingCB, RoleInfoCQ>(_baseCB, _myQyCall + .qy(), new RAQSetupper<RoleMappingCB, RoleInfoCQ>() { + public void setup(String function, + SubQuery<RoleMappingCB> subQuery, RoleInfoCQ cq, + String aliasName) { + cq.xderiveRoleMappingList(function, subQuery, aliasName); + } + }); + } + public RAFunction<UserInfoCB, RoleInfoCQ> derivedUserInfoList() { return new RAFunction<UserInfoCB, RoleInfoCQ>(_baseCB, _myQyCall .qy(), new RAQSetupper<UserInfoCB, RoleInfoCQ>() { Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsRoleMappingCB.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsRoleMappingCB.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsRoleMappingCB.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,325 @@ +package jp.sf.pal.timecard.db.cbean.bs; + +import java.util.Map; + +import jp.sf.pal.timecard.db.allcommon.cbean.AbstractConditionBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionBean; +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.SubQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.UnionQuery; +import jp.sf.pal.timecard.db.cbean.RoleInfoCB; +import jp.sf.pal.timecard.db.cbean.RoleMappingCB; +import jp.sf.pal.timecard.db.cbean.UserInfoCB; +import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; +import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; +import jp.sf.pal.timecard.db.cbean.nss.RoleInfoNss; +import jp.sf.pal.timecard.db.cbean.nss.UserInfoNss; + +/** + * The base condition-bean of ROLE_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class BsRoleMappingCB extends AbstractConditionBean { + + //========================================================================== + // ========= + // Attribute + // ========= + protected RoleMappingCQ _conditionQuery; + + //========================================================================== + // ========= + // Table Name + // ========== + public String getTableDbName() { + return "ROLE_MAPPING"; + } + + public String getTableSqlName() { + return "ROLE_MAPPING"; + } + + //========================================================================== + // ========= + // PrimaryKey Map + // ============== + public void acceptPrimaryKeyMap(Map<String, ? extends Object> primaryKeyMap) { + assertPrimaryKeyMap(primaryKeyMap); + { + Object obj = primaryKeyMap.get("ID"); + if (obj instanceof Integer) { + query().setId_Equal((Integer) obj); + } else { + query().setId_Equal(new Integer((String) obj)); + } + } + + } + + //========================================================================== + // ========= + // OrderBy Setting + // =============== + public ConditionBean addOrderBy_PK_Asc() { + query().addOrderBy_Id_Asc(); + return this; + } + + public ConditionBean addOrderBy_PK_Desc() { + query().addOrderBy_Id_Desc(); + return this; + } + + //========================================================================== + // ========= + // Query + // ===== + public RoleMappingCQ query() { + return getConditionQuery(); + } + + public RoleMappingCQ getConditionQuery() { + if (_conditionQuery == null) { + _conditionQuery = new RoleMappingCQ(null, getSqlClause(), + getSqlClause().getLocalTableAliasName(), 0); + } + return _conditionQuery; + } + + public ConditionQuery getConditionQueryAsInterface() { + return getConditionQuery(); + } + + //========================================================================== + // ========= + // Union + // ===== + /** + * Set up 'union'. + * + * <pre> + * cb.query().union(new UnionQuery<RoleMappingCB>() { + * public void query(RoleMappingCB unionCB) { + * unionCB.query().setXxx... + * } + * }); + * </pre> + * + * @param unionQuery The query of 'union'. (NotNull) + */ + public void union(UnionQuery<RoleMappingCB> unionQuery) { + final RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForUnion(); + unionQuery.query(cb); + final RoleMappingCQ cq = cb.query(); + query().xsetUnionQuery(cq); + } + + /** + * Set up 'union all'. + * + * <pre> + * cb.query().unionAll(new UnionQuery<RoleMappingCB>() { + * public void query(RoleMappingCB unionCB) { + * unionCB.query().setXxx... + * } + * }); + * </pre> + * + * @param unionQuery The query of 'union'. (NotNull) + */ + public void unionAll(UnionQuery<RoleMappingCB> unionQuery) { + final RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForUnion(); + unionQuery.query(cb); + final RoleMappingCQ cq = cb.query(); + query().xsetUnionAllQuery(cq); + } + + /** + * @param unionQuery The query of 'union'. (NotNull) + * @deprecated Sorry! Please use union(UnionQuery<RoleMappingCB> + * unionQuery). + */ + public void union(RoleMappingCQ unionQuery) { + query().xsetUnionQuery(unionQuery); + } + + /** + * @param unionQuery The query of 'union'. (NotNull) + * @deprecated Sorry! Please use unionAll(UnionQuery<RoleMappingCB> + * unionQuery). + */ + public void unionAll(RoleMappingCQ unionQuery) { + query().xsetUnionAllQuery(unionQuery); + } + + public boolean hasUnionQueryOrUnionAllQuery() { + return query().hasUnionQueryOrUnionAllQuery(); + } + + //========================================================================== + // ========= + // Setup Select + // ============ + + protected RoleInfoNss _nssRoleInfo; + + public RoleInfoNss getNssRoleInfo() { + if (_nssRoleInfo == null) { + _nssRoleInfo = new RoleInfoNss(null); + } + return _nssRoleInfo; + } + + public RoleInfoNss setupSelect_RoleInfo() { + doSetupSelect(new SsCall() { + public ConditionQuery qf() { + return query().queryRoleInfo(); + } + }); + if (_nssRoleInfo == null || !_nssRoleInfo.hasConditionQuery()) { + _nssRoleInfo = new RoleInfoNss(query().queryRoleInfo()); + } + return _nssRoleInfo; + } + + protected UserInfoNss _nssUserInfo; + + public UserInfoNss getNssUserInfo() { + if (_nssUserInfo == null) { + _nssUserInfo = new UserInfoNss(null); + } + return _nssUserInfo; + } + + public UserInfoNss setupSelect_UserInfo() { + doSetupSelect(new SsCall() { + public ConditionQuery qf() { + return query().queryUserInfo(); + } + }); + if (_nssUserInfo == null || !_nssUserInfo.hasConditionQuery()) { + _nssUserInfo = new UserInfoNss(query().queryUserInfo()); + } + return _nssUserInfo; + } + + // [DBFlute-0.7.4] + //========================================================================== + // ========= + // Specify + // ======= + protected Specification _specification; + + public Specification specify() { + if (_specification == null) { + _specification = new Specification(this, + new SpQyCall<RoleMappingCQ>() { + public boolean has() { + return true; + } + + public RoleMappingCQ qy() { + return query(); + } + }, _forDeriveReferrer); + } + return _specification; + } + + public static class Specification extends + AbstractSpecification<RoleMappingCQ> { + protected SpQyCall<RoleMappingCQ> _myQyCall; + + protected RoleInfoCB.Specification _roleInfo; + + protected UserInfoCB.Specification _userInfo; + + public Specification(ConditionBean baseCB, + SpQyCall<RoleMappingCQ> qyCall, boolean forDeriveReferrer) { + super(baseCB, qyCall, forDeriveReferrer); + _myQyCall = qyCall; + } + + public void columnId() { + doColumn("ID"); + } + + public void columnUserId() { + doColumn("USER_ID"); + } + + public void columnRoleId() { + doColumn("ROLE_ID"); + } + + protected void doSpecifyRequiredColumn() { + columnId();// PK + if (_myQyCall.qy().hasConditionQueryRoleInfo()) { + columnRoleId();// FK + } + if (_myQyCall.qy().hasConditionQueryUserInfo()) { + columnUserId();// FK + } + } + + protected String getTableDbName() { + return "ROLE_MAPPING"; + } + + public RoleInfoCB.Specification specifyRoleInfo() { + assertForeign("roleInfo"); + if (_roleInfo == null) { + _roleInfo = new RoleInfoCB.Specification(_baseCB, + new SpQyCall<RoleInfoCQ>() { + public boolean has() { + return _myQyCall.has() + && _myQyCall.qy() + .hasConditionQueryRoleInfo(); + } + + public RoleInfoCQ qy() { + return _myQyCall.qy().queryRoleInfo(); + } + }, _forDeriveReferrer); + } + return _roleInfo; + } + + public UserInfoCB.Specification specifyUserInfo() { + assertForeign("userInfo"); + if (_userInfo == null) { + _userInfo = new UserInfoCB.Specification(_baseCB, + new SpQyCall<UserInfoCQ>() { + public boolean has() { + return _myQyCall.has() + && _myQyCall.qy() + .hasConditionQueryUserInfo(); + } + + public UserInfoCQ qy() { + return _myQyCall.qy().queryUserInfo(); + } + }, _forDeriveReferrer); + } + return _userInfo; + } + } + + // Very Internal (for Suppressing Warn about 'Not Use Import') + protected String getConditionBeanClassNameInternally() { + return RoleMappingCB.class.getName(); + } + + protected String getConditionQueryClassNameInternally() { + return RoleMappingCQ.class.getName(); + } + + protected String getSubQueryClassNameInternally() { + return SubQuery.class.getName(); + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsRoleMappingCB.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsUserInfoCB.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsUserInfoCB.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/bs/BsUserInfoCB.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -9,7 +9,9 @@ import jp.sf.pal.timecard.db.allcommon.cbean.UnionQuery; import jp.sf.pal.timecard.db.cbean.EmployeeCB; import jp.sf.pal.timecard.db.cbean.GroupInfoCB; +import jp.sf.pal.timecard.db.cbean.GroupMappingCB; import jp.sf.pal.timecard.db.cbean.RoleInfoCB; +import jp.sf.pal.timecard.db.cbean.RoleMappingCB; import jp.sf.pal.timecard.db.cbean.UserInfoCB; import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; @@ -269,6 +271,18 @@ doColumn("FAMILY_NAME_DESC"); } + public void columnNickname() { + doColumn("NICKNAME"); + } + + public void columnGender() { + doColumn("GENDER"); + } + + public void columnBirthDate() { + doColumn("BIRTH_DATE"); + } + public void columnEmail() { doColumn("EMAIL"); } @@ -392,6 +406,30 @@ } }); } + + public RAFunction<GroupMappingCB, UserInfoCQ> derivedGroupMappingList() { + return new RAFunction<GroupMappingCB, UserInfoCQ>(_baseCB, + _myQyCall.qy(), + new RAQSetupper<GroupMappingCB, UserInfoCQ>() { + public void setup(String function, + SubQuery<GroupMappingCB> subQuery, + UserInfoCQ cq, String aliasName) { + cq.xderiveGroupMappingList(function, subQuery, + aliasName); + } + }); + } + + public RAFunction<RoleMappingCB, UserInfoCQ> derivedRoleMappingList() { + return new RAFunction<RoleMappingCB, UserInfoCQ>(_baseCB, _myQyCall + .qy(), new RAQSetupper<RoleMappingCB, UserInfoCQ>() { + public void setup(String function, + SubQuery<RoleMappingCB> subQuery, UserInfoCQ cq, + String aliasName) { + cq.xderiveRoleMappingList(function, subQuery, aliasName); + } + }); + } } // Very Internal (for Suppressing Warn about 'Not Use Import') Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/GroupMappingCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/GroupMappingCQ.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/GroupMappingCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,45 @@ +package jp.sf.pal.timecard.db.cbean.cq; + +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.timecard.db.cbean.cq.bs.BsGroupMappingCQ; + +/** + * The condition-query of GROUP_MAPPING. + * <p> + * You can implement your original methods here. This class is NOT overrided + * when re-generating. + * </p> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class GroupMappingCQ extends BsGroupMappingCQ { + + //========================================================================== + // ========= + // Constructor + // =========== + /** + * Constructor. + * + * @param childQuery Child query as abstract class. (Nullable: If null, this + * is base instance.) + * @param sqlClause SQL clause instance. (NotNull) + * @param aliasName My alias name. (NotNull) + * @param nestLevel Nest level. + */ + public GroupMappingCQ(ConditionQuery childQuery, SqlClause sqlClause, + String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + //========================================================================== + // ========= + // Arrange Method + // ============== + // You can make original arrange query methods here. + // public void arranegeXxx() { + // ... + // } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/GroupMappingCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/RoleMappingCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/RoleMappingCQ.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/RoleMappingCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,45 @@ +package jp.sf.pal.timecard.db.cbean.cq; + +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.timecard.db.cbean.cq.bs.BsRoleMappingCQ; + +/** + * The condition-query of ROLE_MAPPING. + * <p> + * You can implement your original methods here. This class is NOT overrided + * when re-generating. + * </p> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class RoleMappingCQ extends BsRoleMappingCQ { + + //========================================================================== + // ========= + // Constructor + // =========== + /** + * Constructor. + * + * @param childQuery Child query as abstract class. (Nullable: If null, this + * is base instance.) + * @param sqlClause SQL clause instance. (NotNull) + * @param aliasName My alias name. (NotNull) + * @param nestLevel Nest level. + */ + public RoleMappingCQ(ConditionQuery childQuery, SqlClause sqlClause, + String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + //========================================================================== + // ========= + // Arrange Method + // ============== + // You can make original arrange query methods here. + // public void arranegeXxx() { + // ... + // } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/RoleMappingCQ.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsDailyReportCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsDailyReportCQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsDailyReportCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -48,9 +48,7 @@ // ===== /** - * Equal(=). And NullIgnored, OnceRegistered. {PK : INC : BIGINT : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_50C4B525_E9F4_4DAA_B23A_A4E3F22E225B]} + * Equal(=). And NullIgnored, OnceRegistered. {PK : ID : NotNull : BIGINT} * * @param id The value of id as equal. */ @@ -148,7 +146,7 @@ abstract protected ConditionValue getCValueId(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER} * * @param date The value of date as equal. */ @@ -232,7 +230,7 @@ abstract protected ConditionValue getCValueDate(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER} * * @param dayOfWeek The value of dayOfWeek as equal. */ @@ -318,7 +316,7 @@ abstract protected ConditionValue getCValueDayOfWeek(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER} * * @param dateType The value of dateType as equal. */ @@ -404,7 +402,7 @@ abstract protected ConditionValue getCValueDateType(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER : * Default=[1]} * * @param workingType The value of workingType as equal. @@ -491,7 +489,7 @@ abstract protected ConditionValue getCValueWorkingType(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER : * Default=[1]} * * @param status The value of status as equal. @@ -1133,7 +1131,7 @@ abstract protected ConditionValue getCValueMemo(); /** - * Equal(=). And NullIgnored, OnceRegistered. {BIGINT : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : BIGINT : * Default=[0] : FK to MONTHLY_REPORT} * * @param monthlyReportId The value of monthlyReportId as equal. @@ -1252,7 +1250,7 @@ abstract protected ConditionValue getCValueMonthlyReportId(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param createdTime The value of createdTime as equal. */ @@ -1307,7 +1305,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -1325,7 +1323,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -1351,8 +1349,8 @@ abstract protected ConditionValue getCValueCreatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param createdBy The value of createdBy as equal. */ @@ -1475,7 +1473,7 @@ abstract protected ConditionValue getCValueCreatedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param updatedTime The value of updatedTime as equal. */ @@ -1530,7 +1528,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -1548,7 +1546,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -1574,8 +1572,8 @@ abstract protected ConditionValue getCValueUpdatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param updatedBy The value of updatedBy as equal. */ @@ -1698,7 +1696,7 @@ abstract protected ConditionValue getCValueUpdatedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER : * Default=[0]} * * @param versionno The value of versionno as equal. Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsEmployeeCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsEmployeeCQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsEmployeeCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -50,9 +50,7 @@ // ===== /** - * Equal(=). And NullIgnored, OnceRegistered. {PK : INC : INTEGER : NotNull - * : Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_642A126C_91F0_49FA_A8A2_4B1D8067271C]} + * Equal(=). And NullIgnored, OnceRegistered. {PK : ID : NotNull : INTEGER} * * @param id The value of id as equal. */ @@ -267,7 +265,7 @@ abstract protected ConditionValue getCValueId(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : NotNull + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : VARCHAR(255) * : FK to USER_INFO} * * @param username The value of username as equal. @@ -421,7 +419,7 @@ abstract protected ConditionValue getCValueUsername(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : NotNull + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : VARCHAR(255) * : FK to USER_INFO} * * @param manager The value of manager as equal. @@ -575,7 +573,7 @@ abstract protected ConditionValue getCValueManager(); /** - * Equal(=). And NullIgnored, OnceRegistered. {DOUBLE : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : DOUBLE : * Default=[0]} * * @param paidHolidays The value of paidHolidays as equal. @@ -664,7 +662,7 @@ abstract protected ConditionValue getCValuePaidHolidays(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(1) : NotNull : + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : VARCHAR(1) : * Default=[T]} * * @param isAvailable The value of isAvailable as equal. @@ -789,7 +787,7 @@ abstract protected ConditionValue getCValueIsAvailable(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param createdTime The value of createdTime as equal. */ @@ -844,7 +842,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -862,7 +860,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -888,8 +886,8 @@ abstract protected ConditionValue getCValueCreatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param createdBy The value of createdBy as equal. */ @@ -1012,7 +1010,7 @@ abstract protected ConditionValue getCValueCreatedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param updatedTime The value of updatedTime as equal. */ @@ -1067,7 +1065,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -1085,7 +1083,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -1111,8 +1109,8 @@ abstract protected ConditionValue getCValueUpdatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param updatedBy The value of updatedBy as equal. */ @@ -1485,7 +1483,7 @@ abstract protected ConditionValue getCValueDeletedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER : * Default=[0]} * * @param versionno The value of versionno as equal. Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsGroupInfoCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsGroupInfoCQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsGroupInfoCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -9,8 +9,10 @@ import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; import jp.sf.pal.timecard.db.cbean.GroupInfoCB; +import jp.sf.pal.timecard.db.cbean.GroupMappingCB; import jp.sf.pal.timecard.db.cbean.UserInfoCB; import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; /** @@ -48,8 +50,8 @@ // ===== /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {PK : VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {PK : NotNull : + * VARCHAR(255)} * * @param groupId The value of groupId as equal. */ @@ -160,6 +162,36 @@ } /** + * @param groupMappingCBquery Query. + * @deprecated Please use inScopeGroupMappingList(subQuery) method. + */ + public void setGroupId_InScopeSubQuery_GroupMappingList( + GroupMappingCQ groupMappingCBquery) { + String subQueryPropertyName = keepGroupId_InScopeSubQuery_GroupMappingList(groupMappingCBquery);// for + // saving + // query + // - + // value + // . + registerInScopeSubQuery(groupMappingCBquery, "GROUP_ID", "GROUP_ID", + subQueryPropertyName); + } + + public void inScopeGroupMappingList(SubQuery<GroupMappingCB> subQuery) { + assertObjectNotNull("subQuery<GroupMappingCB>", subQuery); + GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepGroupId_InScopeSubQuery_GroupMappingList(cb + .query());// for saving query-value. + registerInScopeSubQuery(cb.query(), "GROUP_ID", "GROUP_ID", + subQueryPropertyName); + } + + abstract public String keepGroupId_InScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery); + + /** * @param userInfoCBquery Query. * @deprecated Please use inScopeUserInfoList(subQuery) method. */ @@ -189,6 +221,20 @@ abstract public String keepGroupId_InScopeSubQuery_UserInfoList( UserInfoCQ subQuery); + public void notInScopeGroupMappingList(SubQuery<GroupMappingCB> subQuery) { + assertObjectNotNull("subQuery<GroupMappingCB>", subQuery); + GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepGroupId_NotInScopeSubQuery_GroupMappingList(cb + .query());// for saving query-value. + registerNotInScopeSubQuery(cb.query(), "GROUP_ID", "GROUP_ID", + subQueryPropertyName); + } + + abstract public String keepGroupId_NotInScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery); + public void notInScopeUserInfoList(SubQuery<UserInfoCB> subQuery) { assertObjectNotNull("subQuery<UserInfoCB>", subQuery); UserInfoCB cb = new UserInfoCB(); @@ -204,6 +250,43 @@ UserInfoCQ subQuery); /** + * @param groupMappingCBquery Query. + * @deprecated Please use existsGroupMappingList(subQuery) method. + */ + public void setGroupId_ExistsSubQuery_GroupMappingList( + GroupMappingCQ groupMappingCBquery) { + String subQueryPropertyName = keepGroupId_ExistsSubQuery_GroupMappingList(groupMappingCBquery);// for + // saving + // query + // - + // value + // . + registerExistsSubQuery(groupMappingCBquery, "GROUP_ID", "GROUP_ID", + subQueryPropertyName); + } + + /** + * Set up 'exists' sub-query. {exists (select GROUP_ID from GROUP_MAPPING + * where ...)} + * + * @param subQuery The sub-query of GroupId_ExistsSubQuery_GroupMappingList + * for 'exists'. (NotNull) + */ + public void existsGroupMappingList(SubQuery<GroupMappingCB> subQuery) { + assertObjectNotNull("subQuery<GroupMappingCB>", subQuery); + GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForExistsSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepGroupId_ExistsSubQuery_GroupMappingList(cb + .query());// for saving query-value. + registerExistsSubQuery(cb.query(), "GROUP_ID", "GROUP_ID", + subQueryPropertyName); + } + + abstract public String keepGroupId_ExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery); + + /** * @param userInfoCBquery Query. * @deprecated Please use existsUserInfoList(subQuery) method. */ @@ -242,6 +325,28 @@ /** * Set up 'not exists' sub-query. {not exists (select GROUP_ID from + * GROUP_MAPPING where ...)} + * + * @param subQuery The sub-query of + * GroupId_NotExistsSubQuery_GroupMappingList for 'not exists'. + * (NotNull) + */ + public void notExistsGroupMappingList(SubQuery<GroupMappingCB> subQuery) { + assertObjectNotNull("subQuery<GroupMappingCB>", subQuery); + GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForExistsSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepGroupId_NotExistsSubQuery_GroupMappingList(cb + .query());// for saving query-value. + registerNotExistsSubQuery(cb.query(), "GROUP_ID", "GROUP_ID", + subQueryPropertyName); + } + + abstract public String keepGroupId_NotExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery); + + /** + * Set up 'not exists' sub-query. {not exists (select GROUP_ID from * USER_INFO where ...)} * * @param subQuery The sub-query of GroupId_NotExistsSubQuery_UserInfoList @@ -261,6 +366,21 @@ abstract public String keepGroupId_NotExistsSubQuery_UserInfoList( UserInfoCQ subQuery); + public void xderiveGroupMappingList(String function, + SubQuery<GroupMappingCB> subQuery, String aliasName) { + assertObjectNotNull("subQuery<GroupMappingCB>", subQuery); + GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForDeriveReferrer(); + subQuery.query(cb); + String subQueryPropertyName = keepGroupId_DeriveSubQuery_GroupMappingList(cb + .query());// for saving query-value. + registerDeriveSubQuery(function, cb.query(), "GROUP_ID", "GROUP_ID", + subQueryPropertyName, aliasName); + } + + abstract public String keepGroupId_DeriveSubQuery_GroupMappingList( + GroupMappingCQ subQuery); + public void xderiveUserInfoList(String function, SubQuery<UserInfoCB> subQuery, String aliasName) { assertObjectNotNull("subQuery<UserInfoCB>", subQuery); @@ -984,7 +1104,7 @@ abstract protected ConditionValue getCValueTelephone(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param createdTime The value of createdTime as equal. */ @@ -1039,7 +1159,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -1057,7 +1177,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -1083,8 +1203,8 @@ abstract protected ConditionValue getCValueCreatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param createdBy The value of createdBy as equal. */ @@ -1207,7 +1327,7 @@ abstract protected ConditionValue getCValueCreatedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param updatedTime The value of updatedTime as equal. */ @@ -1262,7 +1382,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -1280,7 +1400,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -1306,8 +1426,8 @@ abstract protected ConditionValue getCValueUpdatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param updatedBy The value of updatedBy as equal. */ @@ -1680,7 +1800,7 @@ abstract protected ConditionValue getCValueDeletedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER} * * @param versionno The value of versionno as equal. */ Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsGroupMappingCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsGroupMappingCQ.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsGroupMappingCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,465 @@ +package jp.sf.pal.timecard.db.cbean.cq.bs; + +import java.util.Collection; + +import jp.sf.pal.timecard.db.allcommon.cbean.AbstractConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.SubQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.ckey.ConditionKey; +import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.timecard.db.cbean.GroupInfoCB; +import jp.sf.pal.timecard.db.cbean.GroupMappingCB; +import jp.sf.pal.timecard.db.cbean.UserInfoCB; +import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; +import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; + +/** + * The abstract condition-query of GROUP_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class AbstractBsGroupMappingCQ extends AbstractConditionQuery { + + //========================================================================== + // ========= + // Constructor + // =========== + public AbstractBsGroupMappingCQ(ConditionQuery childQuery, + SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + //========================================================================== + // ========= + // Table Name + // ========== + public String getTableDbName() { + return "GROUP_MAPPING"; + } + + public String getTableSqlName() { + return "GROUP_MAPPING"; + } + + //========================================================================== + // ========= + // Query + // ===== + + /** + * Equal(=). And NullIgnored, OnceRegistered. {PK : ID : NotNull : INTEGER} + * + * @param id The value of id as equal. + */ + public void setId_Equal(Integer id) { + regId(CK_EQ, id); + } + + /** + * NotEqual(!=). And NullIgnored, OnceRegistered. + * + * @param id The value of id as notEqual. + */ + public void setId_NotEqual(Integer id) { + regId(CK_NE, id); + } + + /** + * GreaterThan(>). And NullIgnored, OnceRegistered. + * + * @param id The value of id as greaterThan. + */ + public void setId_GreaterThan(Integer id) { + regId(CK_GT, id); + } + + /** + * LessThan(<). And NullIgnored, OnceRegistered. + * + * @param id The value of id as lessThan. + */ + public void setId_LessThan(Integer id) { + regId(CK_LT, id); + } + + /** + * GreaterEqual(>=). And NullIgnored, OnceRegistered. + * + * @param id The value of id as greaterEqual. + */ + public void setId_GreaterEqual(Integer id) { + regId(CK_GE, id); + } + + /** + * LessEqual(<=). And NullIgnored, OnceRegistered. + * + * @param id The value of id as lessEqual. + */ + public void setId_LessEqual(Integer id) { + regId(CK_LE, id); + } + + /** + * InScope(in (1, 2)). And NullIgnored, NullElementIgnored, + * SeveralRegistered. + * + * @param idList The collection of id as inScope. + */ + public void setId_InScope(Collection<Integer> idList) { + regId(CK_INS, cTL(idList)); + } + + /** + * NotInScope(not in (1, 2)). And NullIgnored, NullElementIgnored, + * SeveralRegistered. + * + * @param idList The collection of id as notInScope. + */ + public void setId_NotInScope(Collection<Integer> idList) { + regId(CK_NINS, cTL(idList)); + } + + /** + * IsNull(is null). And OnceRegistered. + */ + public void setId_IsNull() { + regId(CK_ISN, DUMMY_OBJECT); + } + + /** + * IsNotNull(is not null). And OnceRegistered. + */ + public void setId_IsNotNull() { + regId(CK_ISNN, DUMMY_OBJECT); + } + + protected void regId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueId(), "ID", "Id", "id"); + } + + protected void registerInlineId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueId(), "ID", "Id", "id"); + } + + abstract protected ConditionValue getCValueId(); + + /** + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : VARCHAR(255) + * : FK to USER_INFO} + * + * @param userId The value of userId as equal. + */ + public void setUserId_Equal(String userId) { + regUserId(CK_EQ, fRES(userId)); + } + + /** + * NotEqual(!=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as notEqual. + */ + public void setUserId_NotEqual(String userId) { + regUserId(CK_NE, fRES(userId)); + } + + /** + * GreaterThan(>). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as greaterThan. + */ + public void setUserId_GreaterThan(String userId) { + regUserId(CK_GT, fRES(userId)); + } + + /** + * LessThan(<). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as lessThan. + */ + public void setUserId_LessThan(String userId) { + regUserId(CK_LT, fRES(userId)); + } + + /** + * GreaterEqual(>=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as greaterEqual. + */ + public void setUserId_GreaterEqual(String userId) { + regUserId(CK_GE, fRES(userId)); + } + + /** + * LessEqual(<=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as lessEqual. + */ + public void setUserId_LessEqual(String userId) { + regUserId(CK_LE, fRES(userId)); + } + + /** + * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as prefixSearch. + */ + public void setUserId_PrefixSearch(String userId) { + regUserId(CK_PS, fRES(userId)); + } + + /** + * LikeSearch(like 'xxx%' escape ...). And NullOrEmptyIgnored, + * SeveralRegistered. + * + * @param userId The value of userId as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setUserId_LikeSearch( + String userId, + jp.sf.pal.timecard.db.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(CK_LS, fRES(userId), getCValueUserId(), + "USER_ID", "UserId", "userId", likeSearchOption); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param userIdList The collection of userId as inScope. + */ + public void setUserId_InScope(Collection<String> userIdList) { + regUserId(CK_INS, cTL(userIdList)); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param userId The collection of userId as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setUserId_InScope( + String userId, + jp.sf.pal.timecard.db.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(CK_INS, fRES(userId), getCValueUserId(), + "USER_ID", "UserId", "userId", inScopeOption); + } + + /** + * NotInScope(not in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param userIdList The collection of userId as notInScope. + */ + public void setUserId_NotInScope(Collection<String> userIdList) { + regUserId(CK_NINS, cTL(userIdList)); + } + + /** + * @param userInfoCBquery Query. + * @deprecated Please use inScopeUserInfo(subQuery) method. + */ + public void setUserId_InScopeSubQuery_UserInfo(UserInfoCQ userInfoCBquery) { + String subQueryPropertyName = keepUserId_InScopeSubQuery_UserInfo(userInfoCBquery);// for + // saving + // query + // - + // value + // . + registerInScopeSubQuery(userInfoCBquery, "USER_ID", "USER_ID", + subQueryPropertyName); + } + + public void inScopeUserInfo(SubQuery<UserInfoCB> subQuery) { + assertObjectNotNull("subQuery<UserInfoCB>", subQuery); + UserInfoCB cb = new UserInfoCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_InScopeSubQuery_UserInfo(cb + .query());// for saving query-value. + registerInScopeSubQuery(cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName); + } + + abstract public String keepUserId_InScopeSubQuery_UserInfo( + jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ subQuery); + + protected void regUserId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueUserId(), "USER_ID", "UserId", + "userId"); + } + + protected void registerInlineUserId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueUserId(), "USER_ID", "UserId", + "userId"); + } + + abstract protected ConditionValue getCValueUserId(); + + /** + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : VARCHAR(255) + * : FK to GROUP_INFO} + * + * @param groupId The value of groupId as equal. + */ + public void setGroupId_Equal(String groupId) { + regGroupId(CK_EQ, fRES(groupId)); + } + + /** + * NotEqual(!=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param groupId The value of groupId as notEqual. + */ + public void setGroupId_NotEqual(String groupId) { + regGroupId(CK_NE, fRES(groupId)); + } + + /** + * GreaterThan(>). And NullOrEmptyIgnored, OnceRegistered. + * + * @param groupId The value of groupId as greaterThan. + */ + public void setGroupId_GreaterThan(String groupId) { + regGroupId(CK_GT, fRES(groupId)); + } + + /** + * LessThan(<). And NullOrEmptyIgnored, OnceRegistered. + * + * @param groupId The value of groupId as lessThan. + */ + public void setGroupId_LessThan(String groupId) { + regGroupId(CK_LT, fRES(groupId)); + } + + /** + * GreaterEqual(>=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param groupId The value of groupId as greaterEqual. + */ + public void setGroupId_GreaterEqual(String groupId) { + regGroupId(CK_GE, fRES(groupId)); + } + + /** + * LessEqual(<=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param groupId The value of groupId as lessEqual. + */ + public void setGroupId_LessEqual(String groupId) { + regGroupId(CK_LE, fRES(groupId)); + } + + /** + * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnceRegistered. + * + * @param groupId The value of groupId as prefixSearch. + */ + public void setGroupId_PrefixSearch(String groupId) { + regGroupId(CK_PS, fRES(groupId)); + } + + /** + * LikeSearch(like 'xxx%' escape ...). And NullOrEmptyIgnored, + * SeveralRegistered. + * + * @param groupId The value of groupId as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setGroupId_LikeSearch( + String groupId, + jp.sf.pal.timecard.db.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(CK_LS, fRES(groupId), getCValueGroupId(), + "GROUP_ID", "GroupId", "groupId", likeSearchOption); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param groupIdList The collection of groupId as inScope. + */ + public void setGroupId_InScope(Collection<String> groupIdList) { + regGroupId(CK_INS, cTL(groupIdList)); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param groupId The collection of groupId as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setGroupId_InScope( + String groupId, + jp.sf.pal.timecard.db.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(CK_INS, fRES(groupId), getCValueGroupId(), + "GROUP_ID", "GroupId", "groupId", inScopeOption); + } + + /** + * NotInScope(not in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param groupIdList The collection of groupId as notInScope. + */ + public void setGroupId_NotInScope(Collection<String> groupIdList) { + regGroupId(CK_NINS, cTL(groupIdList)); + } + + /** + * @param groupInfoCBquery Query. + * @deprecated Please use inScopeGroupInfo(subQuery) method. + */ + public void setGroupId_InScopeSubQuery_GroupInfo( + GroupInfoCQ groupInfoCBquery) { + String subQueryPropertyName = keepGroupId_InScopeSubQuery_GroupInfo(groupInfoCBquery);// for + // saving + // query + // - + // value + // . + registerInScopeSubQuery(groupInfoCBquery, "GROUP_ID", "GROUP_ID", + subQueryPropertyName); + } + + public void inScopeGroupInfo(SubQuery<GroupInfoCB> subQuery) { + assertObjectNotNull("subQuery<GroupInfoCB>", subQuery); + GroupInfoCB cb = new GroupInfoCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepGroupId_InScopeSubQuery_GroupInfo(cb + .query());// for saving query-value. + registerInScopeSubQuery(cb.query(), "GROUP_ID", "GROUP_ID", + subQueryPropertyName); + } + + abstract public String keepGroupId_InScopeSubQuery_GroupInfo( + jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ subQuery); + + protected void regGroupId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueGroupId(), "GROUP_ID", "GroupId", + "groupId"); + } + + protected void registerInlineGroupId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueGroupId(), "GROUP_ID", + "GroupId", "groupId"); + } + + abstract protected ConditionValue getCValueGroupId(); + + // Very Internal (for Suppressing Warn about 'Not Use Import') + protected String getConditionBeanClassNameInternally() { + return GroupMappingCB.class.getName(); + } + + protected String getConditionQueryClassNameInternally() { + return GroupMappingCQ.class.getName(); + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsGroupMappingCQ.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsMonthlyReportCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsMonthlyReportCQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsMonthlyReportCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -50,9 +50,7 @@ // ===== /** - * Equal(=). And NullIgnored, OnceRegistered. {PK : INC : BIGINT : NotNull : - * Default=[NEXT VALUE FOR - * PUBLIC.SYSTEM_SEQUENCE_32548B43_85E7_41E8_A673_8AE5B9803173]} + * Equal(=). And NullIgnored, OnceRegistered. {PK : ID : NotNull : BIGINT} * * @param id The value of id as equal. */ @@ -267,7 +265,7 @@ abstract protected ConditionValue getCValueId(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER} * * @param year The value of year as equal. */ @@ -351,7 +349,7 @@ abstract protected ConditionValue getCValueYear(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER} * * @param month The value of month as equal. */ @@ -436,7 +434,7 @@ abstract protected ConditionValue getCValueMonth(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER : * Default=[1]} * * @param status The value of status as equal. @@ -523,7 +521,7 @@ abstract protected ConditionValue getCValueStatus(); /** - * Equal(=). And NullIgnored, OnceRegistered. {DOUBLE : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : DOUBLE : * Default=[0]} * * @param workingDays The value of workingDays as equal. @@ -612,7 +610,7 @@ abstract protected ConditionValue getCValueWorkingDays(); /** - * Equal(=). And NullIgnored, OnceRegistered. {DOUBLE : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : DOUBLE : * Default=[0]} * * @param stdWorkingDays The value of stdWorkingDays as equal. @@ -703,7 +701,7 @@ abstract protected ConditionValue getCValueStdWorkingDays(); /** - * Equal(=). And NullIgnored, OnceRegistered. {DOUBLE : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : DOUBLE : * Default=[0]} * * @param holidays The value of holidays as equal. @@ -792,7 +790,7 @@ abstract protected ConditionValue getCValueHolidays(); /** - * Equal(=). And NullIgnored, OnceRegistered. {DOUBLE : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : DOUBLE : * Default=[0]} * * @param paidHolidays The value of paidHolidays as equal. @@ -881,7 +879,7 @@ abstract protected ConditionValue getCValuePaidHolidays(); /** - * Equal(=). And NullIgnored, OnceRegistered. {BIGINT : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : BIGINT : * Default=[0]} * * @param workingTime The value of workingTime as equal. @@ -968,7 +966,7 @@ abstract protected ConditionValue getCValueWorkingTime(); /** - * Equal(=). And NullIgnored, OnceRegistered. {BIGINT : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : BIGINT : * Default=[0]} * * @param stdWorkingTime The value of stdWorkingTime as equal. @@ -1055,7 +1053,7 @@ abstract protected ConditionValue getCValueStdWorkingTime(); /** - * Equal(=). And NullIgnored, OnceRegistered. {BIGINT : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : BIGINT : * Default=[0]} * * @param overTime The value of overTime as equal. @@ -1142,7 +1140,7 @@ abstract protected ConditionValue getCValueOverTime(); /** - * Equal(=). And NullIgnored, OnceRegistered. {BIGINT : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : BIGINT : * Default=[0]} * * @param mntOverTime The value of mntOverTime as equal. @@ -1229,7 +1227,7 @@ abstract protected ConditionValue getCValueMntOverTime(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull : FK to + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER : FK to * EMPLOYEE} * * @param employeeId The value of employeeId as equal. @@ -1346,7 +1344,7 @@ abstract protected ConditionValue getCValueEmployeeId(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param createdTime The value of createdTime as equal. */ @@ -1401,7 +1399,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -1419,7 +1417,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -1445,8 +1443,8 @@ abstract protected ConditionValue getCValueCreatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param createdBy The value of createdBy as equal. */ @@ -1569,7 +1567,7 @@ abstract protected ConditionValue getCValueCreatedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param updatedTime The value of updatedTime as equal. */ @@ -1624,7 +1622,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -1642,7 +1640,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -1668,8 +1666,8 @@ abstract protected ConditionValue getCValueUpdatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param updatedBy The value of updatedBy as equal. */ @@ -2042,7 +2040,7 @@ abstract protected ConditionValue getCValueDeletedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull : + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER : * Default=[0]} * * @param versionno The value of versionno as equal. Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsRoleInfoCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsRoleInfoCQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsRoleInfoCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -9,8 +9,10 @@ import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; import jp.sf.pal.timecard.db.cbean.RoleInfoCB; +import jp.sf.pal.timecard.db.cbean.RoleMappingCB; import jp.sf.pal.timecard.db.cbean.UserInfoCB; import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; /** @@ -48,8 +50,8 @@ // ===== /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {PK : VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {PK : NotNull : + * VARCHAR(255)} * * @param roleId The value of roleId as equal. */ @@ -160,6 +162,36 @@ } /** + * @param roleMappingCBquery Query. + * @deprecated Please use inScopeRoleMappingList(subQuery) method. + */ + public void setRoleId_InScopeSubQuery_RoleMappingList( + RoleMappingCQ roleMappingCBquery) { + String subQueryPropertyName = keepRoleId_InScopeSubQuery_RoleMappingList(roleMappingCBquery);// for + // saving + // query + // - + // value + // . + registerInScopeSubQuery(roleMappingCBquery, "ROLE_ID", "ROLE_ID", + subQueryPropertyName); + } + + public void inScopeRoleMappingList(SubQuery<RoleMappingCB> subQuery) { + assertObjectNotNull("subQuery<RoleMappingCB>", subQuery); + RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepRoleId_InScopeSubQuery_RoleMappingList(cb + .query());// for saving query-value. + registerInScopeSubQuery(cb.query(), "ROLE_ID", "ROLE_ID", + subQueryPropertyName); + } + + abstract public String keepRoleId_InScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery); + + /** * @param userInfoCBquery Query. * @deprecated Please use inScopeUserInfoList(subQuery) method. */ @@ -189,6 +221,20 @@ abstract public String keepRoleId_InScopeSubQuery_UserInfoList( UserInfoCQ subQuery); + public void notInScopeRoleMappingList(SubQuery<RoleMappingCB> subQuery) { + assertObjectNotNull("subQuery<RoleMappingCB>", subQuery); + RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepRoleId_NotInScopeSubQuery_RoleMappingList(cb + .query());// for saving query-value. + registerNotInScopeSubQuery(cb.query(), "ROLE_ID", "ROLE_ID", + subQueryPropertyName); + } + + abstract public String keepRoleId_NotInScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery); + public void notInScopeUserInfoList(SubQuery<UserInfoCB> subQuery) { assertObjectNotNull("subQuery<UserInfoCB>", subQuery); UserInfoCB cb = new UserInfoCB(); @@ -204,6 +250,43 @@ UserInfoCQ subQuery); /** + * @param roleMappingCBquery Query. + * @deprecated Please use existsRoleMappingList(subQuery) method. + */ + public void setRoleId_ExistsSubQuery_RoleMappingList( + RoleMappingCQ roleMappingCBquery) { + String subQueryPropertyName = keepRoleId_ExistsSubQuery_RoleMappingList(roleMappingCBquery);// for + // saving + // query + // - + // value + // . + registerExistsSubQuery(roleMappingCBquery, "ROLE_ID", "ROLE_ID", + subQueryPropertyName); + } + + /** + * Set up 'exists' sub-query. {exists (select ROLE_ID from ROLE_MAPPING + * where ...)} + * + * @param subQuery The sub-query of RoleId_ExistsSubQuery_RoleMappingList + * for 'exists'. (NotNull) + */ + public void existsRoleMappingList(SubQuery<RoleMappingCB> subQuery) { + assertObjectNotNull("subQuery<RoleMappingCB>", subQuery); + RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForExistsSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepRoleId_ExistsSubQuery_RoleMappingList(cb + .query());// for saving query-value. + registerExistsSubQuery(cb.query(), "ROLE_ID", "ROLE_ID", + subQueryPropertyName); + } + + abstract public String keepRoleId_ExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery); + + /** * @param userInfoCBquery Query. * @deprecated Please use existsUserInfoList(subQuery) method. */ @@ -240,6 +323,27 @@ UserInfoCQ subQuery); /** + * Set up 'not exists' sub-query. {not exists (select ROLE_ID from + * ROLE_MAPPING where ...)} + * + * @param subQuery The sub-query of RoleId_NotExistsSubQuery_RoleMappingList + * for 'not exists'. (NotNull) + */ + public void notExistsRoleMappingList(SubQuery<RoleMappingCB> subQuery) { + assertObjectNotNull("subQuery<RoleMappingCB>", subQuery); + RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForExistsSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepRoleId_NotExistsSubQuery_RoleMappingList(cb + .query());// for saving query-value. + registerNotExistsSubQuery(cb.query(), "ROLE_ID", "ROLE_ID", + subQueryPropertyName); + } + + abstract public String keepRoleId_NotExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery); + + /** * Set up 'not exists' sub-query. {not exists (select ROLE_ID from USER_INFO * where ...)} * @@ -260,6 +364,21 @@ abstract public String keepRoleId_NotExistsSubQuery_UserInfoList( UserInfoCQ subQuery); + public void xderiveRoleMappingList(String function, + SubQuery<RoleMappingCB> subQuery, String aliasName) { + assertObjectNotNull("subQuery<RoleMappingCB>", subQuery); + RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForDeriveReferrer(); + subQuery.query(cb); + String subQueryPropertyName = keepRoleId_DeriveSubQuery_RoleMappingList(cb + .query());// for saving query-value. + registerDeriveSubQuery(function, cb.query(), "ROLE_ID", "ROLE_ID", + subQueryPropertyName, aliasName); + } + + abstract public String keepRoleId_DeriveSubQuery_RoleMappingList( + RoleMappingCQ subQuery); + public void xderiveUserInfoList(String function, SubQuery<UserInfoCB> subQuery, String aliasName) { assertObjectNotNull("subQuery<UserInfoCB>", subQuery); @@ -983,7 +1102,7 @@ abstract protected ConditionValue getCValueTelephone(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param createdTime The value of createdTime as equal. */ @@ -1038,7 +1157,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -1056,7 +1175,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -1082,8 +1201,8 @@ abstract protected ConditionValue getCValueCreatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param createdBy The value of createdBy as equal. */ @@ -1206,7 +1325,7 @@ abstract protected ConditionValue getCValueCreatedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param updatedTime The value of updatedTime as equal. */ @@ -1261,7 +1380,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -1279,7 +1398,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -1305,8 +1424,8 @@ abstract protected ConditionValue getCValueUpdatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param updatedBy The value of updatedBy as equal. */ @@ -1679,7 +1798,7 @@ abstract protected ConditionValue getCValueDeletedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER} * * @param versionno The value of versionno as equal. */ Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsRoleMappingCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsRoleMappingCQ.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsRoleMappingCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,464 @@ +package jp.sf.pal.timecard.db.cbean.cq.bs; + +import java.util.Collection; + +import jp.sf.pal.timecard.db.allcommon.cbean.AbstractConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.SubQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.ckey.ConditionKey; +import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.timecard.db.cbean.RoleInfoCB; +import jp.sf.pal.timecard.db.cbean.RoleMappingCB; +import jp.sf.pal.timecard.db.cbean.UserInfoCB; +import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; +import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; + +/** + * The abstract condition-query of ROLE_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class AbstractBsRoleMappingCQ extends AbstractConditionQuery { + + //========================================================================== + // ========= + // Constructor + // =========== + public AbstractBsRoleMappingCQ(ConditionQuery childQuery, + SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + //========================================================================== + // ========= + // Table Name + // ========== + public String getTableDbName() { + return "ROLE_MAPPING"; + } + + public String getTableSqlName() { + return "ROLE_MAPPING"; + } + + //========================================================================== + // ========= + // Query + // ===== + + /** + * Equal(=). And NullIgnored, OnceRegistered. {PK : ID : NotNull : INTEGER} + * + * @param id The value of id as equal. + */ + public void setId_Equal(Integer id) { + regId(CK_EQ, id); + } + + /** + * NotEqual(!=). And NullIgnored, OnceRegistered. + * + * @param id The value of id as notEqual. + */ + public void setId_NotEqual(Integer id) { + regId(CK_NE, id); + } + + /** + * GreaterThan(>). And NullIgnored, OnceRegistered. + * + * @param id The value of id as greaterThan. + */ + public void setId_GreaterThan(Integer id) { + regId(CK_GT, id); + } + + /** + * LessThan(<). And NullIgnored, OnceRegistered. + * + * @param id The value of id as lessThan. + */ + public void setId_LessThan(Integer id) { + regId(CK_LT, id); + } + + /** + * GreaterEqual(>=). And NullIgnored, OnceRegistered. + * + * @param id The value of id as greaterEqual. + */ + public void setId_GreaterEqual(Integer id) { + regId(CK_GE, id); + } + + /** + * LessEqual(<=). And NullIgnored, OnceRegistered. + * + * @param id The value of id as lessEqual. + */ + public void setId_LessEqual(Integer id) { + regId(CK_LE, id); + } + + /** + * InScope(in (1, 2)). And NullIgnored, NullElementIgnored, + * SeveralRegistered. + * + * @param idList The collection of id as inScope. + */ + public void setId_InScope(Collection<Integer> idList) { + regId(CK_INS, cTL(idList)); + } + + /** + * NotInScope(not in (1, 2)). And NullIgnored, NullElementIgnored, + * SeveralRegistered. + * + * @param idList The collection of id as notInScope. + */ + public void setId_NotInScope(Collection<Integer> idList) { + regId(CK_NINS, cTL(idList)); + } + + /** + * IsNull(is null). And OnceRegistered. + */ + public void setId_IsNull() { + regId(CK_ISN, DUMMY_OBJECT); + } + + /** + * IsNotNull(is not null). And OnceRegistered. + */ + public void setId_IsNotNull() { + regId(CK_ISNN, DUMMY_OBJECT); + } + + protected void regId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueId(), "ID", "Id", "id"); + } + + protected void registerInlineId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueId(), "ID", "Id", "id"); + } + + abstract protected ConditionValue getCValueId(); + + /** + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : VARCHAR(255) + * : FK to USER_INFO} + * + * @param userId The value of userId as equal. + */ + public void setUserId_Equal(String userId) { + regUserId(CK_EQ, fRES(userId)); + } + + /** + * NotEqual(!=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as notEqual. + */ + public void setUserId_NotEqual(String userId) { + regUserId(CK_NE, fRES(userId)); + } + + /** + * GreaterThan(>). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as greaterThan. + */ + public void setUserId_GreaterThan(String userId) { + regUserId(CK_GT, fRES(userId)); + } + + /** + * LessThan(<). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as lessThan. + */ + public void setUserId_LessThan(String userId) { + regUserId(CK_LT, fRES(userId)); + } + + /** + * GreaterEqual(>=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as greaterEqual. + */ + public void setUserId_GreaterEqual(String userId) { + regUserId(CK_GE, fRES(userId)); + } + + /** + * LessEqual(<=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as lessEqual. + */ + public void setUserId_LessEqual(String userId) { + regUserId(CK_LE, fRES(userId)); + } + + /** + * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnceRegistered. + * + * @param userId The value of userId as prefixSearch. + */ + public void setUserId_PrefixSearch(String userId) { + regUserId(CK_PS, fRES(userId)); + } + + /** + * LikeSearch(like 'xxx%' escape ...). And NullOrEmptyIgnored, + * SeveralRegistered. + * + * @param userId The value of userId as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setUserId_LikeSearch( + String userId, + jp.sf.pal.timecard.db.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(CK_LS, fRES(userId), getCValueUserId(), + "USER_ID", "UserId", "userId", likeSearchOption); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param userIdList The collection of userId as inScope. + */ + public void setUserId_InScope(Collection<String> userIdList) { + regUserId(CK_INS, cTL(userIdList)); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param userId The collection of userId as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setUserId_InScope( + String userId, + jp.sf.pal.timecard.db.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(CK_INS, fRES(userId), getCValueUserId(), + "USER_ID", "UserId", "userId", inScopeOption); + } + + /** + * NotInScope(not in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param userIdList The collection of userId as notInScope. + */ + public void setUserId_NotInScope(Collection<String> userIdList) { + regUserId(CK_NINS, cTL(userIdList)); + } + + /** + * @param userInfoCBquery Query. + * @deprecated Please use inScopeUserInfo(subQuery) method. + */ + public void setUserId_InScopeSubQuery_UserInfo(UserInfoCQ userInfoCBquery) { + String subQueryPropertyName = keepUserId_InScopeSubQuery_UserInfo(userInfoCBquery);// for + // saving + // query + // - + // value + // . + registerInScopeSubQuery(userInfoCBquery, "USER_ID", "USER_ID", + subQueryPropertyName); + } + + public void inScopeUserInfo(SubQuery<UserInfoCB> subQuery) { + assertObjectNotNull("subQuery<UserInfoCB>", subQuery); + UserInfoCB cb = new UserInfoCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_InScopeSubQuery_UserInfo(cb + .query());// for saving query-value. + registerInScopeSubQuery(cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName); + } + + abstract public String keepUserId_InScopeSubQuery_UserInfo( + jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ subQuery); + + protected void regUserId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueUserId(), "USER_ID", "UserId", + "userId"); + } + + protected void registerInlineUserId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueUserId(), "USER_ID", "UserId", + "userId"); + } + + abstract protected ConditionValue getCValueUserId(); + + /** + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : VARCHAR(255) + * : FK to ROLE_INFO} + * + * @param roleId The value of roleId as equal. + */ + public void setRoleId_Equal(String roleId) { + regRoleId(CK_EQ, fRES(roleId)); + } + + /** + * NotEqual(!=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param roleId The value of roleId as notEqual. + */ + public void setRoleId_NotEqual(String roleId) { + regRoleId(CK_NE, fRES(roleId)); + } + + /** + * GreaterThan(>). And NullOrEmptyIgnored, OnceRegistered. + * + * @param roleId The value of roleId as greaterThan. + */ + public void setRoleId_GreaterThan(String roleId) { + regRoleId(CK_GT, fRES(roleId)); + } + + /** + * LessThan(<). And NullOrEmptyIgnored, OnceRegistered. + * + * @param roleId The value of roleId as lessThan. + */ + public void setRoleId_LessThan(String roleId) { + regRoleId(CK_LT, fRES(roleId)); + } + + /** + * GreaterEqual(>=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param roleId The value of roleId as greaterEqual. + */ + public void setRoleId_GreaterEqual(String roleId) { + regRoleId(CK_GE, fRES(roleId)); + } + + /** + * LessEqual(<=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param roleId The value of roleId as lessEqual. + */ + public void setRoleId_LessEqual(String roleId) { + regRoleId(CK_LE, fRES(roleId)); + } + + /** + * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnceRegistered. + * + * @param roleId The value of roleId as prefixSearch. + */ + public void setRoleId_PrefixSearch(String roleId) { + regRoleId(CK_PS, fRES(roleId)); + } + + /** + * LikeSearch(like 'xxx%' escape ...). And NullOrEmptyIgnored, + * SeveralRegistered. + * + * @param roleId The value of roleId as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setRoleId_LikeSearch( + String roleId, + jp.sf.pal.timecard.db.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(CK_LS, fRES(roleId), getCValueRoleId(), + "ROLE_ID", "RoleId", "roleId", likeSearchOption); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param roleIdList The collection of roleId as inScope. + */ + public void setRoleId_InScope(Collection<String> roleIdList) { + regRoleId(CK_INS, cTL(roleIdList)); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param roleId The collection of roleId as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setRoleId_InScope( + String roleId, + jp.sf.pal.timecard.db.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(CK_INS, fRES(roleId), getCValueRoleId(), + "ROLE_ID", "RoleId", "roleId", inScopeOption); + } + + /** + * NotInScope(not in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param roleIdList The collection of roleId as notInScope. + */ + public void setRoleId_NotInScope(Collection<String> roleIdList) { + regRoleId(CK_NINS, cTL(roleIdList)); + } + + /** + * @param roleInfoCBquery Query. + * @deprecated Please use inScopeRoleInfo(subQuery) method. + */ + public void setRoleId_InScopeSubQuery_RoleInfo(RoleInfoCQ roleInfoCBquery) { + String subQueryPropertyName = keepRoleId_InScopeSubQuery_RoleInfo(roleInfoCBquery);// for + // saving + // query + // - + // value + // . + registerInScopeSubQuery(roleInfoCBquery, "ROLE_ID", "ROLE_ID", + subQueryPropertyName); + } + + public void inScopeRoleInfo(SubQuery<RoleInfoCB> subQuery) { + assertObjectNotNull("subQuery<RoleInfoCB>", subQuery); + RoleInfoCB cb = new RoleInfoCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepRoleId_InScopeSubQuery_RoleInfo(cb + .query());// for saving query-value. + registerInScopeSubQuery(cb.query(), "ROLE_ID", "ROLE_ID", + subQueryPropertyName); + } + + abstract public String keepRoleId_InScopeSubQuery_RoleInfo( + jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ subQuery); + + protected void regRoleId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueRoleId(), "ROLE_ID", "RoleId", + "roleId"); + } + + protected void registerInlineRoleId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueRoleId(), "ROLE_ID", "RoleId", + "roleId"); + } + + abstract protected ConditionValue getCValueRoleId(); + + // Very Internal (for Suppressing Warn about 'Not Use Import') + protected String getConditionBeanClassNameInternally() { + return RoleMappingCB.class.getName(); + } + + protected String getConditionQueryClassNameInternally() { + return RoleMappingCQ.class.getName(); + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsRoleMappingCQ.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsUserInfoCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsUserInfoCQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/AbstractBsUserInfoCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -10,11 +10,15 @@ import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; import jp.sf.pal.timecard.db.cbean.EmployeeCB; import jp.sf.pal.timecard.db.cbean.GroupInfoCB; +import jp.sf.pal.timecard.db.cbean.GroupMappingCB; import jp.sf.pal.timecard.db.cbean.RoleInfoCB; +import jp.sf.pal.timecard.db.cbean.RoleMappingCB; import jp.sf.pal.timecard.db.cbean.UserInfoCB; import jp.sf.pal.timecard.db.cbean.cq.EmployeeCQ; import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; /** @@ -52,8 +56,8 @@ // ===== /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {PK : VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {PK : NotNull : + * VARCHAR(255)} * * @param userId The value of userId as equal. */ @@ -223,6 +227,66 @@ abstract public String keepUserId_InScopeSubQuery_EmployeeByManagerList( EmployeeCQ subQuery); + /** + * @param groupMappingCBquery Query. + * @deprecated Please use inScopeGroupMappingList(subQuery) method. + */ + public void setUserId_InScopeSubQuery_GroupMappingList( + GroupMappingCQ groupMappingCBquery) { + String subQueryPropertyName = keepUserId_InScopeSubQuery_GroupMappingList(groupMappingCBquery);// for + // saving + // query + // - + // value + // . + registerInScopeSubQuery(groupMappingCBquery, "USER_ID", "USER_ID", + subQueryPropertyName); + } + + public void inScopeGroupMappingList(SubQuery<GroupMappingCB> subQuery) { + assertObjectNotNull("subQuery<GroupMappingCB>", subQuery); + GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_InScopeSubQuery_GroupMappingList(cb + .query());// for saving query-value. + registerInScopeSubQuery(cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName); + } + + abstract public String keepUserId_InScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery); + + /** + * @param roleMappingCBquery Query. + * @deprecated Please use inScopeRoleMappingList(subQuery) method. + */ + public void setUserId_InScopeSubQuery_RoleMappingList( + RoleMappingCQ roleMappingCBquery) { + String subQueryPropertyName = keepUserId_InScopeSubQuery_RoleMappingList(roleMappingCBquery);// for + // saving + // query + // - + // value + // . + registerInScopeSubQuery(roleMappingCBquery, "USER_ID", "USER_ID", + subQueryPropertyName); + } + + public void inScopeRoleMappingList(SubQuery<RoleMappingCB> subQuery) { + assertObjectNotNull("subQuery<RoleMappingCB>", subQuery); + RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_InScopeSubQuery_RoleMappingList(cb + .query());// for saving query-value. + registerInScopeSubQuery(cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName); + } + + abstract public String keepUserId_InScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery); + public void notInScopeEmployeeByUsernameList(SubQuery<EmployeeCB> subQuery) { assertObjectNotNull("subQuery<EmployeeCB>", subQuery); EmployeeCB cb = new EmployeeCB(); @@ -251,6 +315,34 @@ abstract public String keepUserId_NotInScopeSubQuery_EmployeeByManagerList( EmployeeCQ subQuery); + public void notInScopeGroupMappingList(SubQuery<GroupMappingCB> subQuery) { + assertObjectNotNull("subQuery<GroupMappingCB>", subQuery); + GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_NotInScopeSubQuery_GroupMappingList(cb + .query());// for saving query-value. + registerNotInScopeSubQuery(cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName); + } + + abstract public String keepUserId_NotInScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery); + + public void notInScopeRoleMappingList(SubQuery<RoleMappingCB> subQuery) { + assertObjectNotNull("subQuery<RoleMappingCB>", subQuery); + RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForInScopeSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_NotInScopeSubQuery_RoleMappingList(cb + .query());// for saving query-value. + registerNotInScopeSubQuery(cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName); + } + + abstract public String keepUserId_NotInScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery); + /** * @param employeeCBquery Query. * @deprecated Please use existsEmployeeByUsernameList(subQuery) method. @@ -328,6 +420,80 @@ EmployeeCQ subQuery); /** + * @param groupMappingCBquery Query. + * @deprecated Please use existsGroupMappingList(subQuery) method. + */ + public void setUserId_ExistsSubQuery_GroupMappingList( + GroupMappingCQ groupMappingCBquery) { + String subQueryPropertyName = keepUserId_ExistsSubQuery_GroupMappingList(groupMappingCBquery);// for + // saving + // query + // - + // value + // . + registerExistsSubQuery(groupMappingCBquery, "USER_ID", "USER_ID", + subQueryPropertyName); + } + + /** + * Set up 'exists' sub-query. {exists (select USER_ID from GROUP_MAPPING + * where ...)} + * + * @param subQuery The sub-query of UserId_ExistsSubQuery_GroupMappingList + * for 'exists'. (NotNull) + */ + public void existsGroupMappingList(SubQuery<GroupMappingCB> subQuery) { + assertObjectNotNull("subQuery<GroupMappingCB>", subQuery); + GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForExistsSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_ExistsSubQuery_GroupMappingList(cb + .query());// for saving query-value. + registerExistsSubQuery(cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName); + } + + abstract public String keepUserId_ExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery); + + /** + * @param roleMappingCBquery Query. + * @deprecated Please use existsRoleMappingList(subQuery) method. + */ + public void setUserId_ExistsSubQuery_RoleMappingList( + RoleMappingCQ roleMappingCBquery) { + String subQueryPropertyName = keepUserId_ExistsSubQuery_RoleMappingList(roleMappingCBquery);// for + // saving + // query + // - + // value + // . + registerExistsSubQuery(roleMappingCBquery, "USER_ID", "USER_ID", + subQueryPropertyName); + } + + /** + * Set up 'exists' sub-query. {exists (select USER_ID from ROLE_MAPPING + * where ...)} + * + * @param subQuery The sub-query of UserId_ExistsSubQuery_RoleMappingList + * for 'exists'. (NotNull) + */ + public void existsRoleMappingList(SubQuery<RoleMappingCB> subQuery) { + assertObjectNotNull("subQuery<RoleMappingCB>", subQuery); + RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForExistsSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_ExistsSubQuery_RoleMappingList(cb + .query());// for saving query-value. + registerExistsSubQuery(cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName); + } + + abstract public String keepUserId_ExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery); + + /** * Set up 'not exists' sub-query. {not exists (select USERNAME from EMPLOYEE * where ...)} * @@ -371,6 +537,49 @@ abstract public String keepUserId_NotExistsSubQuery_EmployeeByManagerList( EmployeeCQ subQuery); + /** + * Set up 'not exists' sub-query. {not exists (select USER_ID from + * GROUP_MAPPING where ...)} + * + * @param subQuery The sub-query of + * UserId_NotExistsSubQuery_GroupMappingList for 'not exists'. + * (NotNull) + */ + public void notExistsGroupMappingList(SubQuery<GroupMappingCB> subQuery) { + assertObjectNotNull("subQuery<GroupMappingCB>", subQuery); + GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForExistsSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_NotExistsSubQuery_GroupMappingList(cb + .query());// for saving query-value. + registerNotExistsSubQuery(cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName); + } + + abstract public String keepUserId_NotExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery); + + /** + * Set up 'not exists' sub-query. {not exists (select USER_ID from + * ROLE_MAPPING where ...)} + * + * @param subQuery The sub-query of UserId_NotExistsSubQuery_RoleMappingList + * for 'not exists'. (NotNull) + */ + public void notExistsRoleMappingList(SubQuery<RoleMappingCB> subQuery) { + assertObjectNotNull("subQuery<RoleMappingCB>", subQuery); + RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForExistsSubQuery(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_NotExistsSubQuery_RoleMappingList(cb + .query());// for saving query-value. + registerNotExistsSubQuery(cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName); + } + + abstract public String keepUserId_NotExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery); + public void xderiveEmployeeByUsernameList(String function, SubQuery<EmployeeCB> subQuery, String aliasName) { assertObjectNotNull("subQuery<EmployeeCB>", subQuery); @@ -401,6 +610,36 @@ abstract public String keepUserId_DeriveSubQuery_EmployeeByManagerList( EmployeeCQ subQuery); + public void xderiveGroupMappingList(String function, + SubQuery<GroupMappingCB> subQuery, String aliasName) { + assertObjectNotNull("subQuery<GroupMappingCB>", subQuery); + GroupMappingCB cb = new GroupMappingCB(); + cb.xsetupForDeriveReferrer(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_DeriveSubQuery_GroupMappingList(cb + .query());// for saving query-value. + registerDeriveSubQuery(function, cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName, aliasName); + } + + abstract public String keepUserId_DeriveSubQuery_GroupMappingList( + GroupMappingCQ subQuery); + + public void xderiveRoleMappingList(String function, + SubQuery<RoleMappingCB> subQuery, String aliasName) { + assertObjectNotNull("subQuery<RoleMappingCB>", subQuery); + RoleMappingCB cb = new RoleMappingCB(); + cb.xsetupForDeriveReferrer(); + subQuery.query(cb); + String subQueryPropertyName = keepUserId_DeriveSubQuery_RoleMappingList(cb + .query());// for saving query-value. + registerDeriveSubQuery(function, cb.query(), "USER_ID", "USER_ID", + subQueryPropertyName, aliasName); + } + + abstract public String keepUserId_DeriveSubQuery_RoleMappingList( + RoleMappingCQ subQuery); + /** * IsNull(is null). And OnceRegistered. */ @@ -1118,6 +1357,391 @@ abstract protected ConditionValue getCValueFamilyNameDesc(); /** + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(100)} + * + * @param nickname The value of nickname as equal. + */ + public void setNickname_Equal(String nickname) { + regNickname(CK_EQ, fRES(nickname)); + } + + /** + * NotEqual(!=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param nickname The value of nickname as notEqual. + */ + public void setNickname_NotEqual(String nickname) { + regNickname(CK_NE, fRES(nickname)); + } + + /** + * GreaterThan(>). And NullOrEmptyIgnored, OnceRegistered. + * + * @param nickname The value of nickname as greaterThan. + */ + public void setNickname_GreaterThan(String nickname) { + regNickname(CK_GT, fRES(nickname)); + } + + /** + * LessThan(<). And NullOrEmptyIgnored, OnceRegistered. + * + * @param nickname The value of nickname as lessThan. + */ + public void setNickname_LessThan(String nickname) { + regNickname(CK_LT, fRES(nickname)); + } + + /** + * GreaterEqual(>=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param nickname The value of nickname as greaterEqual. + */ + public void setNickname_GreaterEqual(String nickname) { + regNickname(CK_GE, fRES(nickname)); + } + + /** + * LessEqual(<=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param nickname The value of nickname as lessEqual. + */ + public void setNickname_LessEqual(String nickname) { + regNickname(CK_LE, fRES(nickname)); + } + + /** + * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnceRegistered. + * + * @param nickname The value of nickname as prefixSearch. + */ + public void setNickname_PrefixSearch(String nickname) { + regNickname(CK_PS, fRES(nickname)); + } + + /** + * LikeSearch(like 'xxx%' escape ...). And NullOrEmptyIgnored, + * SeveralRegistered. + * + * @param nickname The value of nickname as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setNickname_LikeSearch( + String nickname, + jp.sf.pal.timecard.db.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(CK_LS, fRES(nickname), getCValueNickname(), + "NICKNAME", "Nickname", "nickname", likeSearchOption); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param nicknameList The collection of nickname as inScope. + */ + public void setNickname_InScope(Collection<String> nicknameList) { + regNickname(CK_INS, cTL(nicknameList)); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param nickname The collection of nickname as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setNickname_InScope( + String nickname, + jp.sf.pal.timecard.db.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(CK_INS, fRES(nickname), getCValueNickname(), + "NICKNAME", "Nickname", "nickname", inScopeOption); + } + + /** + * NotInScope(not in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param nicknameList The collection of nickname as notInScope. + */ + public void setNickname_NotInScope(Collection<String> nicknameList) { + regNickname(CK_NINS, cTL(nicknameList)); + } + + /** + * IsNull(is null). And OnceRegistered. + */ + public void setNickname_IsNull() { + regNickname(CK_ISN, DUMMY_OBJECT); + } + + /** + * IsNotNull(is not null). And OnceRegistered. + */ + public void setNickname_IsNotNull() { + regNickname(CK_ISNN, DUMMY_OBJECT); + } + + protected void regNickname(ConditionKey key, Object value) { + registerQuery(key, value, getCValueNickname(), "NICKNAME", "Nickname", + "nickname"); + } + + protected void registerInlineNickname(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueNickname(), "NICKNAME", + "Nickname", "nickname"); + } + + abstract protected ConditionValue getCValueNickname(); + + /** + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(1)} + * + * @param gender The value of gender as equal. + */ + public void setGender_Equal(String gender) { + regGender(CK_EQ, fRES(gender)); + } + + /** + * NotEqual(!=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param gender The value of gender as notEqual. + */ + public void setGender_NotEqual(String gender) { + regGender(CK_NE, fRES(gender)); + } + + /** + * GreaterThan(>). And NullOrEmptyIgnored, OnceRegistered. + * + * @param gender The value of gender as greaterThan. + */ + public void setGender_GreaterThan(String gender) { + regGender(CK_GT, fRES(gender)); + } + + /** + * LessThan(<). And NullOrEmptyIgnored, OnceRegistered. + * + * @param gender The value of gender as lessThan. + */ + public void setGender_LessThan(String gender) { + regGender(CK_LT, fRES(gender)); + } + + /** + * GreaterEqual(>=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param gender The value of gender as greaterEqual. + */ + public void setGender_GreaterEqual(String gender) { + regGender(CK_GE, fRES(gender)); + } + + /** + * LessEqual(<=). And NullOrEmptyIgnored, OnceRegistered. + * + * @param gender The value of gender as lessEqual. + */ + public void setGender_LessEqual(String gender) { + regGender(CK_LE, fRES(gender)); + } + + /** + * PrefixSearch(like 'xxx%'). And NullOrEmptyIgnored, OnceRegistered. + * + * @param gender The value of gender as prefixSearch. + */ + public void setGender_PrefixSearch(String gender) { + regGender(CK_PS, fRES(gender)); + } + + /** + * LikeSearch(like 'xxx%' escape ...). And NullOrEmptyIgnored, + * SeveralRegistered. + * + * @param gender The value of gender as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setGender_LikeSearch( + String gender, + jp.sf.pal.timecard.db.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(CK_LS, fRES(gender), getCValueGender(), + "GENDER", "Gender", "gender", likeSearchOption); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param genderList The collection of gender as inScope. + */ + public void setGender_InScope(Collection<String> genderList) { + regGender(CK_INS, cTL(genderList)); + } + + /** + * InScope(in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param gender The collection of gender as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setGender_InScope( + String gender, + jp.sf.pal.timecard.db.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(CK_INS, fRES(gender), getCValueGender(), "GENDER", + "Gender", "gender", inScopeOption); + } + + /** + * NotInScope(not in ('a', 'b')). And NullOrEmptyIgnored, + * NullOrEmptyElementIgnored, SeveralRegistered. + * + * @param genderList The collection of gender as notInScope. + */ + public void setGender_NotInScope(Collection<String> genderList) { + regGender(CK_NINS, cTL(genderList)); + } + + /** + * IsNull(is null). And OnceRegistered. + */ + public void setGender_IsNull() { + regGender(CK_ISN, DUMMY_OBJECT); + } + + /** + * IsNotNull(is not null). And OnceRegistered. + */ + public void setGender_IsNotNull() { + regGender(CK_ISNN, DUMMY_OBJECT); + } + + protected void regGender(ConditionKey key, Object value) { + registerQuery(key, value, getCValueGender(), "GENDER", "Gender", + "gender"); + } + + protected void registerInlineGender(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueGender(), "GENDER", "Gender", + "gender"); + } + + abstract protected ConditionValue getCValueGender(); + + /** + * Equal(=). And NullIgnored, OnceRegistered. {DATE} + * + * @param birthDate The value of birthDate as equal. + */ + public void setBirthDate_Equal(java.util.Date birthDate) { + regBirthDate(CK_EQ, birthDate); + } + + /** + * NotEqual(!=). And NullIgnored, OnceRegistered. + * + * @param birthDate The value of birthDate as notEqual. + */ + public void setBirthDate_NotEqual(java.util.Date birthDate) { + regBirthDate(CK_NE, birthDate); + } + + /** + * GreaterThan(>). And NullIgnored, OnceRegistered. + * + * @param birthDate The value of birthDate as greaterThan. + */ + public void setBirthDate_GreaterThan(java.util.Date birthDate) { + regBirthDate(CK_GT, birthDate); + } + + /** + * LessThan(>). And NullIgnored, OnceRegistered. + * + * @param birthDate The value of birthDate as lessThan. + */ + public void setBirthDate_LessThan(java.util.Date birthDate) { + regBirthDate(CK_LT, birthDate); + } + + /** + * GreaterEqual(>). And NullIgnored, OnceRegistered. + * + * @param birthDate The value of birthDate as greaterEqual. + */ + public void setBirthDate_GreaterEqual(java.util.Date birthDate) { + regBirthDate(CK_GE, birthDate); + } + + /** + * LessEqual(>). And NullIgnored, OnceRegistered. + * + * @param birthDate The value of birthDate as lessEqual. + */ + public void setBirthDate_LessEqual(java.util.Date birthDate) { + regBirthDate(CK_LE, birthDate); + } + + /** + * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, + * OnceRegistered. {DATE} + * + * @param fromDate The from-date of birthDate. (Nullable) + * @param toDate The to-date of birthDate. (Nullable) + * @param fromToOption The option of from-to. (NotNull) + */ + public void setBirthDate_FromTo( + java.util.Date fromDate, + java.util.Date toDate, + jp.sf.pal.timecard.db.allcommon.cbean.coption.FromToOption fromToOption) { + registerFromToQuery(fromDate, toDate, getCValueBirthDate(), + "BIRTH_DATE", "BirthDate", "birthDate", fromToOption); + } + + /** + * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, + * OnceRegistered. {DATE} + * + * @param fromDate The from-date of birthDate. (Nullable) + * @param toDate The to-date of birthDate. (Nullable) + */ + public void setBirthDate_DateFromTo(java.util.Date fromDate, + java.util.Date toDate) { + setBirthDate_FromTo( + fromDate, + toDate, + new jp.sf.pal.timecard.db.allcommon.cbean.coption.DateFromToOption()); + } + + /** + * IsNull(is null). And OnceRegistered. + */ + public void setBirthDate_IsNull() { + regBirthDate(CK_ISN, DUMMY_OBJECT); + } + + /** + * IsNotNull(is not null). And OnceRegistered. + */ + public void setBirthDate_IsNotNull() { + regBirthDate(CK_ISNN, DUMMY_OBJECT); + } + + protected void regBirthDate(ConditionKey key, Object value) { + registerQuery(key, value, getCValueBirthDate(), "BIRTH_DATE", + "BirthDate", "birthDate"); + } + + protected void registerInlineBirthDate(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueBirthDate(), "BIRTH_DATE", + "BirthDate", "birthDate"); + } + + abstract protected ConditionValue getCValueBirthDate(); + + /** * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255)} * * @param email The value of email as equal. @@ -1861,7 +2485,7 @@ abstract protected ConditionValue getCValueGroupId(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param createdTime The value of createdTime as equal. */ @@ -1916,7 +2540,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -1934,7 +2558,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of createdTime. (Nullable) * @param toDate The to-date of createdTime. (Nullable) @@ -1960,8 +2584,8 @@ abstract protected ConditionValue getCValueCreatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param createdBy The value of createdBy as equal. */ @@ -2084,7 +2708,7 @@ abstract protected ConditionValue getCValueCreatedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {TIMESTAMP : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : TIMESTAMP} * * @param updatedTime The value of updatedTime as equal. */ @@ -2139,7 +2763,7 @@ /** * FromTo($fromDate <= COLUMN_NAME <= $toDate). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -2157,7 +2781,7 @@ /** * FromTo($fromDate <= COLUMN_NAME < $toDate + 1). And NullIgnored, - * OnceRegistered. {TIMESTAMP : NotNull} + * OnceRegistered. {NotNull : TIMESTAMP} * * @param fromDate The from-date of updatedTime. (Nullable) * @param toDate The to-date of updatedTime. (Nullable) @@ -2183,8 +2807,8 @@ abstract protected ConditionValue getCValueUpdatedTime(); /** - * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {VARCHAR(255) : - * NotNull} + * Equal(=). And NullOrEmptyIgnored, OnceRegistered. {NotNull : + * VARCHAR(255)} * * @param updatedBy The value of updatedBy as equal. */ @@ -2557,7 +3181,7 @@ abstract protected ConditionValue getCValueDeletedBy(); /** - * Equal(=). And NullIgnored, OnceRegistered. {INTEGER : NotNull} + * Equal(=). And NullIgnored, OnceRegistered. {NotNull : INTEGER} * * @param versionno The value of versionno as equal. */ Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsGroupInfoCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsGroupInfoCQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsGroupInfoCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -6,6 +6,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; import jp.sf.pal.timecard.db.cbean.cq.ciq.GroupInfoCIQ; @@ -85,6 +86,23 @@ return getGroupId(); } + protected Map<String, GroupMappingCQ> _groupId_InScopeSubQuery_GroupMappingListMap; + + public Map<String, GroupMappingCQ> getGroupId_InScopeSubQuery_GroupMappingList() { + return _groupId_InScopeSubQuery_GroupMappingListMap; + } + + public String keepGroupId_InScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + if (_groupId_InScopeSubQuery_GroupMappingListMap == null) { + _groupId_InScopeSubQuery_GroupMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_groupId_InScopeSubQuery_GroupMappingListMap.size() + 1); + _groupId_InScopeSubQuery_GroupMappingListMap.put(key, subQuery); + return "groupId_InScopeSubQuery_GroupMappingList." + key; + } + protected Map<String, UserInfoCQ> _groupId_InScopeSubQuery_UserInfoListMap; public Map<String, UserInfoCQ> getGroupId_InScopeSubQuery_UserInfoList() { @@ -101,6 +119,23 @@ return "groupId_InScopeSubQuery_UserInfoList." + key; } + protected Map<String, GroupMappingCQ> _groupId_NotInScopeSubQuery_GroupMappingListMap; + + public Map<String, GroupMappingCQ> getGroupId_NotInScopeSubQuery_GroupMappingList() { + return _groupId_NotInScopeSubQuery_GroupMappingListMap; + } + + public String keepGroupId_NotInScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + if (_groupId_NotInScopeSubQuery_GroupMappingListMap == null) { + _groupId_NotInScopeSubQuery_GroupMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_groupId_NotInScopeSubQuery_GroupMappingListMap.size() + 1); + _groupId_NotInScopeSubQuery_GroupMappingListMap.put(key, subQuery); + return "groupId_NotInScopeSubQuery_GroupMappingList." + key; + } + protected Map<String, UserInfoCQ> _groupId_NotInScopeSubQuery_UserInfoListMap; public Map<String, UserInfoCQ> getGroupId_NotInScopeSubQuery_UserInfoList() { @@ -118,6 +153,23 @@ return "groupId_NotInScopeSubQuery_UserInfoList." + key; } + protected Map<String, GroupMappingCQ> _groupId_ExistsSubQuery_GroupMappingListMap; + + public Map<String, GroupMappingCQ> getGroupId_ExistsSubQuery_GroupMappingList() { + return _groupId_ExistsSubQuery_GroupMappingListMap; + } + + public String keepGroupId_ExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + if (_groupId_ExistsSubQuery_GroupMappingListMap == null) { + _groupId_ExistsSubQuery_GroupMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_groupId_ExistsSubQuery_GroupMappingListMap.size() + 1); + _groupId_ExistsSubQuery_GroupMappingListMap.put(key, subQuery); + return "groupId_ExistsSubQuery_GroupMappingList." + key; + } + protected Map<String, UserInfoCQ> _groupId_ExistsSubQuery_UserInfoListMap; public Map<String, UserInfoCQ> getGroupId_ExistsSubQuery_UserInfoList() { @@ -134,6 +186,23 @@ return "groupId_ExistsSubQuery_UserInfoList." + key; } + protected Map<String, GroupMappingCQ> _groupId_NotExistsSubQuery_GroupMappingListMap; + + public Map<String, GroupMappingCQ> getGroupId_NotExistsSubQuery_GroupMappingList() { + return _groupId_NotExistsSubQuery_GroupMappingListMap; + } + + public String keepGroupId_NotExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + if (_groupId_NotExistsSubQuery_GroupMappingListMap == null) { + _groupId_NotExistsSubQuery_GroupMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_groupId_NotExistsSubQuery_GroupMappingListMap.size() + 1); + _groupId_NotExistsSubQuery_GroupMappingListMap.put(key, subQuery); + return "groupId_NotExistsSubQuery_GroupMappingList." + key; + } + protected Map<String, UserInfoCQ> _groupId_NotExistsSubQuery_UserInfoListMap; public Map<String, UserInfoCQ> getGroupId_NotExistsSubQuery_UserInfoList() { @@ -150,6 +219,23 @@ return "groupId_NotExistsSubQuery_UserInfoList." + key; } + protected Map<String, GroupMappingCQ> _groupId_DeriveSubQuery_GroupMappingListMap; + + public Map<String, GroupMappingCQ> getGroupId_DeriveSubQuery_GroupMappingList() { + return _groupId_DeriveSubQuery_GroupMappingListMap; + } + + public String keepGroupId_DeriveSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + if (_groupId_DeriveSubQuery_GroupMappingListMap == null) { + _groupId_DeriveSubQuery_GroupMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_groupId_DeriveSubQuery_GroupMappingListMap.size() + 1); + _groupId_DeriveSubQuery_GroupMappingListMap.put(key, subQuery); + return "groupId_DeriveSubQuery_GroupMappingList." + key; + } + protected Map<String, UserInfoCQ> _groupId_DeriveSubQuery_UserInfoListMap; public Map<String, UserInfoCQ> getGroupId_DeriveSubQuery_UserInfoList() { Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsGroupMappingCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsGroupMappingCQ.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsGroupMappingCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,291 @@ +package jp.sf.pal.timecard.db.cbean.cq.bs; + +import java.util.Map; + +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; +import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.ciq.GroupMappingCIQ; + +/** + * The base condition-query of GROUP_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class BsGroupMappingCQ extends AbstractBsGroupMappingCQ { + + //========================================================================== + // ========= + // Attribute + // ========= + protected GroupMappingCIQ _inlineQuery; + + //========================================================================== + // ========= + // Constructor + // =========== + public BsGroupMappingCQ(ConditionQuery childQuery, SqlClause sqlClause, + String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + //========================================================================== + // ========= + // Inline + // ====== + /** + * Prepare inline query. <br /> {select ... from ... left outer join (select + * * from GROUP_MAPPING) where abc = [abc] ...} + * + * @return Inline query. (NotNull) + */ + public GroupMappingCIQ inline() { + if (_inlineQuery == null) { + _inlineQuery = new GroupMappingCIQ(getChildQuery(), getSqlClause(), + getAliasName(), getNestLevel(), this); + } + _inlineQuery.xsetOnClauseInline(false); + return _inlineQuery; + } + + /** + * Prepare on-clause query. <br /> {select ... from ... left outer join + * GROUP_MAPPING on ... and abc = [abc] ...} + * + * @return On-clause query. (NotNull) + */ + public GroupMappingCIQ on() { + if (isBaseQuery(this)) { + throw new UnsupportedOperationException( + "Unsupported onClause of Base Table!"); + } + GroupMappingCIQ inlineQuery = inline(); + inlineQuery.xsetOnClauseInline(true); + return inlineQuery; + } + + //========================================================================== + // ========= + // Query + // ===== + + protected ConditionValue _id; + + public ConditionValue getId() { + if (_id == null) { + _id = new ConditionValue(); + } + return _id; + } + + protected ConditionValue getCValueId() { + return getId(); + } + + public BsGroupMappingCQ addOrderBy_Id_Asc() { + regOBA("ID"); + return this; + } + + public BsGroupMappingCQ addOrderBy_Id_Desc() { + regOBD("ID"); + return this; + } + + protected ConditionValue _userId; + + public ConditionValue getUserId() { + if (_userId == null) { + _userId = new ConditionValue(); + } + return _userId; + } + + protected ConditionValue getCValueUserId() { + return getUserId(); + } + + protected Map<String, UserInfoCQ> _userId_InScopeSubQuery_UserInfoMap; + + public Map<String, UserInfoCQ> getUserId_InScopeSubQuery_UserInfo() { + return _userId_InScopeSubQuery_UserInfoMap; + } + + public String keepUserId_InScopeSubQuery_UserInfo(UserInfoCQ subQuery) { + if (_userId_InScopeSubQuery_UserInfoMap == null) { + _userId_InScopeSubQuery_UserInfoMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_InScopeSubQuery_UserInfoMap.size() + 1); + _userId_InScopeSubQuery_UserInfoMap.put(key, subQuery); + return "userId_InScopeSubQuery_UserInfo." + key; + } + + public BsGroupMappingCQ addOrderBy_UserId_Asc() { + regOBA("USER_ID"); + return this; + } + + public BsGroupMappingCQ addOrderBy_UserId_Desc() { + regOBD("USER_ID"); + return this; + } + + protected ConditionValue _groupId; + + public ConditionValue getGroupId() { + if (_groupId == null) { + _groupId = new ConditionValue(); + } + return _groupId; + } + + protected ConditionValue getCValueGroupId() { + return getGroupId(); + } + + protected Map<String, GroupInfoCQ> _groupId_InScopeSubQuery_GroupInfoMap; + + public Map<String, GroupInfoCQ> getGroupId_InScopeSubQuery_GroupInfo() { + return _groupId_InScopeSubQuery_GroupInfoMap; + } + + public String keepGroupId_InScopeSubQuery_GroupInfo(GroupInfoCQ subQuery) { + if (_groupId_InScopeSubQuery_GroupInfoMap == null) { + _groupId_InScopeSubQuery_GroupInfoMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_groupId_InScopeSubQuery_GroupInfoMap.size() + 1); + _groupId_InScopeSubQuery_GroupInfoMap.put(key, subQuery); + return "groupId_InScopeSubQuery_GroupInfo." + key; + } + + public BsGroupMappingCQ addOrderBy_GroupId_Asc() { + regOBA("GROUP_ID"); + return this; + } + + public BsGroupMappingCQ addOrderBy_GroupId_Desc() { + regOBD("GROUP_ID"); + return this; + } + + //========================================================================== + // ========= + // Specified Derived OrderBy + // ========================= + public BsGroupMappingCQ addSpecifiedDerivedOrderBy_Asc(String aliasName) { + registerSpecifiedDerivedOrderBy_Asc(aliasName); + return this; + } + + public BsGroupMappingCQ addSpecifiedDerivedOrderBy_Desc(String aliasName) { + registerSpecifiedDerivedOrderBy_Desc(aliasName); + return this; + } + + //========================================================================== + // ========= + // Union Query + // =========== + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, + ConditionQuery unionQueryAsSuper) { + GroupMappingCQ baseQuery = (GroupMappingCQ) baseQueryAsSuper; + GroupMappingCQ unionQuery = (GroupMappingCQ) unionQueryAsSuper; + if (baseQuery.hasConditionQueryGroupInfo()) { + unionQuery.queryGroupInfo().reflectRelationOnUnionQuery( + baseQuery.queryGroupInfo(), unionQuery.queryGroupInfo()); + } + if (baseQuery.hasConditionQueryUserInfo()) { + unionQuery.queryUserInfo().reflectRelationOnUnionQuery( + baseQuery.queryUserInfo(), unionQuery.queryUserInfo()); + } + } + + //========================================================================== + // ========= + // Foreign Query + // ============= + + public GroupInfoCQ queryGroupInfo() { + return getConditionQueryGroupInfo(); + } + + protected GroupInfoCQ _conditionQueryGroupInfo; + + public GroupInfoCQ getConditionQueryGroupInfo() { + if (_conditionQueryGroupInfo == null) { + _conditionQueryGroupInfo = createQueryGroupInfo(); + setupOuterJoin_GroupInfo(); + } + return _conditionQueryGroupInfo; + } + + protected void setupOuterJoin_GroupInfo() { + Map<String, String> joinOnMap = newLinkedHashMap(); + joinOnMap.put(getRealColumnName("GROUP_ID"), + getConditionQueryGroupInfo().getRealColumnName("GROUP_ID")); + registerOuterJoin(getConditionQueryGroupInfo(), joinOnMap); + } + + protected GroupInfoCQ createQueryGroupInfo() { + String nrp = resolveNextRelationPath("GROUP_MAPPING", "groupInfo"); + String jan = resolveJoinAliasName(nrp, getNextNestLevel()); + GroupInfoCQ cq = new GroupInfoCQ(this, getSqlClause(), jan, + getNextNestLevel()); + cq.xsetForeignPropertyName("groupInfo"); + cq.xsetRelationPath(nrp); + return cq; + } + + public boolean hasConditionQueryGroupInfo() { + return _conditionQueryGroupInfo != null; + } + + public UserInfoCQ queryUserInfo() { + return getConditionQueryUserInfo(); + } + + protected UserInfoCQ _conditionQueryUserInfo; + + public UserInfoCQ getConditionQueryUserInfo() { + if (_conditionQueryUserInfo == null) { + _conditionQueryUserInfo = createQueryUserInfo(); + setupOuterJoin_UserInfo(); + } + return _conditionQueryUserInfo; + } + + protected void setupOuterJoin_UserInfo() { + Map<String, String> joinOnMap = newLinkedHashMap(); + joinOnMap.put(getRealColumnName("USER_ID"), getConditionQueryUserInfo() + .getRealColumnName("USER_ID")); + registerOuterJoin(getConditionQueryUserInfo(), joinOnMap); + } + + protected UserInfoCQ createQueryUserInfo() { + String nrp = resolveNextRelationPath("GROUP_MAPPING", "userInfo"); + String jan = resolveJoinAliasName(nrp, getNextNestLevel()); + UserInfoCQ cq = new UserInfoCQ(this, getSqlClause(), jan, + getNextNestLevel()); + cq.xsetForeignPropertyName("userInfo"); + cq.xsetRelationPath(nrp); + return cq; + } + + public boolean hasConditionQueryUserInfo() { + return _conditionQueryUserInfo != null; + } + + protected String getConditionQueryClassNameInternally() { + return GroupMappingCQ.class.getName(); + } + + protected String getMapClassNameInternally() { + return Map.class.getName(); + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsGroupMappingCQ.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsRoleInfoCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsRoleInfoCQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsRoleInfoCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -6,6 +6,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; import jp.sf.pal.timecard.db.cbean.cq.ciq.RoleInfoCIQ; @@ -85,6 +86,23 @@ return getRoleId(); } + protected Map<String, RoleMappingCQ> _roleId_InScopeSubQuery_RoleMappingListMap; + + public Map<String, RoleMappingCQ> getRoleId_InScopeSubQuery_RoleMappingList() { + return _roleId_InScopeSubQuery_RoleMappingListMap; + } + + public String keepRoleId_InScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + if (_roleId_InScopeSubQuery_RoleMappingListMap == null) { + _roleId_InScopeSubQuery_RoleMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_roleId_InScopeSubQuery_RoleMappingListMap.size() + 1); + _roleId_InScopeSubQuery_RoleMappingListMap.put(key, subQuery); + return "roleId_InScopeSubQuery_RoleMappingList." + key; + } + protected Map<String, UserInfoCQ> _roleId_InScopeSubQuery_UserInfoListMap; public Map<String, UserInfoCQ> getRoleId_InScopeSubQuery_UserInfoList() { @@ -101,6 +119,23 @@ return "roleId_InScopeSubQuery_UserInfoList." + key; } + protected Map<String, RoleMappingCQ> _roleId_NotInScopeSubQuery_RoleMappingListMap; + + public Map<String, RoleMappingCQ> getRoleId_NotInScopeSubQuery_RoleMappingList() { + return _roleId_NotInScopeSubQuery_RoleMappingListMap; + } + + public String keepRoleId_NotInScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + if (_roleId_NotInScopeSubQuery_RoleMappingListMap == null) { + _roleId_NotInScopeSubQuery_RoleMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_roleId_NotInScopeSubQuery_RoleMappingListMap.size() + 1); + _roleId_NotInScopeSubQuery_RoleMappingListMap.put(key, subQuery); + return "roleId_NotInScopeSubQuery_RoleMappingList." + key; + } + protected Map<String, UserInfoCQ> _roleId_NotInScopeSubQuery_UserInfoListMap; public Map<String, UserInfoCQ> getRoleId_NotInScopeSubQuery_UserInfoList() { @@ -117,6 +152,23 @@ return "roleId_NotInScopeSubQuery_UserInfoList." + key; } + protected Map<String, RoleMappingCQ> _roleId_ExistsSubQuery_RoleMappingListMap; + + public Map<String, RoleMappingCQ> getRoleId_ExistsSubQuery_RoleMappingList() { + return _roleId_ExistsSubQuery_RoleMappingListMap; + } + + public String keepRoleId_ExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + if (_roleId_ExistsSubQuery_RoleMappingListMap == null) { + _roleId_ExistsSubQuery_RoleMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_roleId_ExistsSubQuery_RoleMappingListMap.size() + 1); + _roleId_ExistsSubQuery_RoleMappingListMap.put(key, subQuery); + return "roleId_ExistsSubQuery_RoleMappingList." + key; + } + protected Map<String, UserInfoCQ> _roleId_ExistsSubQuery_UserInfoListMap; public Map<String, UserInfoCQ> getRoleId_ExistsSubQuery_UserInfoList() { @@ -133,6 +185,23 @@ return "roleId_ExistsSubQuery_UserInfoList." + key; } + protected Map<String, RoleMappingCQ> _roleId_NotExistsSubQuery_RoleMappingListMap; + + public Map<String, RoleMappingCQ> getRoleId_NotExistsSubQuery_RoleMappingList() { + return _roleId_NotExistsSubQuery_RoleMappingListMap; + } + + public String keepRoleId_NotExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + if (_roleId_NotExistsSubQuery_RoleMappingListMap == null) { + _roleId_NotExistsSubQuery_RoleMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_roleId_NotExistsSubQuery_RoleMappingListMap.size() + 1); + _roleId_NotExistsSubQuery_RoleMappingListMap.put(key, subQuery); + return "roleId_NotExistsSubQuery_RoleMappingList." + key; + } + protected Map<String, UserInfoCQ> _roleId_NotExistsSubQuery_UserInfoListMap; public Map<String, UserInfoCQ> getRoleId_NotExistsSubQuery_UserInfoList() { @@ -149,6 +218,23 @@ return "roleId_NotExistsSubQuery_UserInfoList." + key; } + protected Map<String, RoleMappingCQ> _roleId_DeriveSubQuery_RoleMappingListMap; + + public Map<String, RoleMappingCQ> getRoleId_DeriveSubQuery_RoleMappingList() { + return _roleId_DeriveSubQuery_RoleMappingListMap; + } + + public String keepRoleId_DeriveSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + if (_roleId_DeriveSubQuery_RoleMappingListMap == null) { + _roleId_DeriveSubQuery_RoleMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_roleId_DeriveSubQuery_RoleMappingListMap.size() + 1); + _roleId_DeriveSubQuery_RoleMappingListMap.put(key, subQuery); + return "roleId_DeriveSubQuery_RoleMappingList." + key; + } + protected Map<String, UserInfoCQ> _roleId_DeriveSubQuery_UserInfoListMap; public Map<String, UserInfoCQ> getRoleId_DeriveSubQuery_UserInfoList() { Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsRoleMappingCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsRoleMappingCQ.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsRoleMappingCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,291 @@ +package jp.sf.pal.timecard.db.cbean.cq.bs; + +import java.util.Map; + +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; +import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.ciq.RoleMappingCIQ; + +/** + * The base condition-query of ROLE_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class BsRoleMappingCQ extends AbstractBsRoleMappingCQ { + + //========================================================================== + // ========= + // Attribute + // ========= + protected RoleMappingCIQ _inlineQuery; + + //========================================================================== + // ========= + // Constructor + // =========== + public BsRoleMappingCQ(ConditionQuery childQuery, SqlClause sqlClause, + String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + //========================================================================== + // ========= + // Inline + // ====== + /** + * Prepare inline query. <br /> {select ... from ... left outer join (select + * * from ROLE_MAPPING) where abc = [abc] ...} + * + * @return Inline query. (NotNull) + */ + public RoleMappingCIQ inline() { + if (_inlineQuery == null) { + _inlineQuery = new RoleMappingCIQ(getChildQuery(), getSqlClause(), + getAliasName(), getNestLevel(), this); + } + _inlineQuery.xsetOnClauseInline(false); + return _inlineQuery; + } + + /** + * Prepare on-clause query. <br /> {select ... from ... left outer join + * ROLE_MAPPING on ... and abc = [abc] ...} + * + * @return On-clause query. (NotNull) + */ + public RoleMappingCIQ on() { + if (isBaseQuery(this)) { + throw new UnsupportedOperationException( + "Unsupported onClause of Base Table!"); + } + RoleMappingCIQ inlineQuery = inline(); + inlineQuery.xsetOnClauseInline(true); + return inlineQuery; + } + + //========================================================================== + // ========= + // Query + // ===== + + protected ConditionValue _id; + + public ConditionValue getId() { + if (_id == null) { + _id = new ConditionValue(); + } + return _id; + } + + protected ConditionValue getCValueId() { + return getId(); + } + + public BsRoleMappingCQ addOrderBy_Id_Asc() { + regOBA("ID"); + return this; + } + + public BsRoleMappingCQ addOrderBy_Id_Desc() { + regOBD("ID"); + return this; + } + + protected ConditionValue _userId; + + public ConditionValue getUserId() { + if (_userId == null) { + _userId = new ConditionValue(); + } + return _userId; + } + + protected ConditionValue getCValueUserId() { + return getUserId(); + } + + protected Map<String, UserInfoCQ> _userId_InScopeSubQuery_UserInfoMap; + + public Map<String, UserInfoCQ> getUserId_InScopeSubQuery_UserInfo() { + return _userId_InScopeSubQuery_UserInfoMap; + } + + public String keepUserId_InScopeSubQuery_UserInfo(UserInfoCQ subQuery) { + if (_userId_InScopeSubQuery_UserInfoMap == null) { + _userId_InScopeSubQuery_UserInfoMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_InScopeSubQuery_UserInfoMap.size() + 1); + _userId_InScopeSubQuery_UserInfoMap.put(key, subQuery); + return "userId_InScopeSubQuery_UserInfo." + key; + } + + public BsRoleMappingCQ addOrderBy_UserId_Asc() { + regOBA("USER_ID"); + return this; + } + + public BsRoleMappingCQ addOrderBy_UserId_Desc() { + regOBD("USER_ID"); + return this; + } + + protected ConditionValue _roleId; + + public ConditionValue getRoleId() { + if (_roleId == null) { + _roleId = new ConditionValue(); + } + return _roleId; + } + + protected ConditionValue getCValueRoleId() { + return getRoleId(); + } + + protected Map<String, RoleInfoCQ> _roleId_InScopeSubQuery_RoleInfoMap; + + public Map<String, RoleInfoCQ> getRoleId_InScopeSubQuery_RoleInfo() { + return _roleId_InScopeSubQuery_RoleInfoMap; + } + + public String keepRoleId_InScopeSubQuery_RoleInfo(RoleInfoCQ subQuery) { + if (_roleId_InScopeSubQuery_RoleInfoMap == null) { + _roleId_InScopeSubQuery_RoleInfoMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_roleId_InScopeSubQuery_RoleInfoMap.size() + 1); + _roleId_InScopeSubQuery_RoleInfoMap.put(key, subQuery); + return "roleId_InScopeSubQuery_RoleInfo." + key; + } + + public BsRoleMappingCQ addOrderBy_RoleId_Asc() { + regOBA("ROLE_ID"); + return this; + } + + public BsRoleMappingCQ addOrderBy_RoleId_Desc() { + regOBD("ROLE_ID"); + return this; + } + + //========================================================================== + // ========= + // Specified Derived OrderBy + // ========================= + public BsRoleMappingCQ addSpecifiedDerivedOrderBy_Asc(String aliasName) { + registerSpecifiedDerivedOrderBy_Asc(aliasName); + return this; + } + + public BsRoleMappingCQ addSpecifiedDerivedOrderBy_Desc(String aliasName) { + registerSpecifiedDerivedOrderBy_Desc(aliasName); + return this; + } + + //========================================================================== + // ========= + // Union Query + // =========== + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, + ConditionQuery unionQueryAsSuper) { + RoleMappingCQ baseQuery = (RoleMappingCQ) baseQueryAsSuper; + RoleMappingCQ unionQuery = (RoleMappingCQ) unionQueryAsSuper; + if (baseQuery.hasConditionQueryRoleInfo()) { + unionQuery.queryRoleInfo().reflectRelationOnUnionQuery( + baseQuery.queryRoleInfo(), unionQuery.queryRoleInfo()); + } + if (baseQuery.hasConditionQueryUserInfo()) { + unionQuery.queryUserInfo().reflectRelationOnUnionQuery( + baseQuery.queryUserInfo(), unionQuery.queryUserInfo()); + } + } + + //========================================================================== + // ========= + // Foreign Query + // ============= + + public RoleInfoCQ queryRoleInfo() { + return getConditionQueryRoleInfo(); + } + + protected RoleInfoCQ _conditionQueryRoleInfo; + + public RoleInfoCQ getConditionQueryRoleInfo() { + if (_conditionQueryRoleInfo == null) { + _conditionQueryRoleInfo = createQueryRoleInfo(); + setupOuterJoin_RoleInfo(); + } + return _conditionQueryRoleInfo; + } + + protected void setupOuterJoin_RoleInfo() { + Map<String, String> joinOnMap = newLinkedHashMap(); + joinOnMap.put(getRealColumnName("ROLE_ID"), getConditionQueryRoleInfo() + .getRealColumnName("ROLE_ID")); + registerOuterJoin(getConditionQueryRoleInfo(), joinOnMap); + } + + protected RoleInfoCQ createQueryRoleInfo() { + String nrp = resolveNextRelationPath("ROLE_MAPPING", "roleInfo"); + String jan = resolveJoinAliasName(nrp, getNextNestLevel()); + RoleInfoCQ cq = new RoleInfoCQ(this, getSqlClause(), jan, + getNextNestLevel()); + cq.xsetForeignPropertyName("roleInfo"); + cq.xsetRelationPath(nrp); + return cq; + } + + public boolean hasConditionQueryRoleInfo() { + return _conditionQueryRoleInfo != null; + } + + public UserInfoCQ queryUserInfo() { + return getConditionQueryUserInfo(); + } + + protected UserInfoCQ _conditionQueryUserInfo; + + public UserInfoCQ getConditionQueryUserInfo() { + if (_conditionQueryUserInfo == null) { + _conditionQueryUserInfo = createQueryUserInfo(); + setupOuterJoin_UserInfo(); + } + return _conditionQueryUserInfo; + } + + protected void setupOuterJoin_UserInfo() { + Map<String, String> joinOnMap = newLinkedHashMap(); + joinOnMap.put(getRealColumnName("USER_ID"), getConditionQueryUserInfo() + .getRealColumnName("USER_ID")); + registerOuterJoin(getConditionQueryUserInfo(), joinOnMap); + } + + protected UserInfoCQ createQueryUserInfo() { + String nrp = resolveNextRelationPath("ROLE_MAPPING", "userInfo"); + String jan = resolveJoinAliasName(nrp, getNextNestLevel()); + UserInfoCQ cq = new UserInfoCQ(this, getSqlClause(), jan, + getNextNestLevel()); + cq.xsetForeignPropertyName("userInfo"); + cq.xsetRelationPath(nrp); + return cq; + } + + public boolean hasConditionQueryUserInfo() { + return _conditionQueryUserInfo != null; + } + + protected String getConditionQueryClassNameInternally() { + return RoleMappingCQ.class.getName(); + } + + protected String getMapClassNameInternally() { + return Map.class.getName(); + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsRoleMappingCQ.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsUserInfoCQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsUserInfoCQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/bs/BsUserInfoCQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -7,7 +7,9 @@ import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; import jp.sf.pal.timecard.db.cbean.cq.EmployeeCQ; import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; import jp.sf.pal.timecard.db.cbean.cq.ciq.UserInfoCIQ; @@ -121,6 +123,40 @@ return "userId_InScopeSubQuery_EmployeeByManagerList." + key; } + protected Map<String, GroupMappingCQ> _userId_InScopeSubQuery_GroupMappingListMap; + + public Map<String, GroupMappingCQ> getUserId_InScopeSubQuery_GroupMappingList() { + return _userId_InScopeSubQuery_GroupMappingListMap; + } + + public String keepUserId_InScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + if (_userId_InScopeSubQuery_GroupMappingListMap == null) { + _userId_InScopeSubQuery_GroupMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_InScopeSubQuery_GroupMappingListMap.size() + 1); + _userId_InScopeSubQuery_GroupMappingListMap.put(key, subQuery); + return "userId_InScopeSubQuery_GroupMappingList." + key; + } + + protected Map<String, RoleMappingCQ> _userId_InScopeSubQuery_RoleMappingListMap; + + public Map<String, RoleMappingCQ> getUserId_InScopeSubQuery_RoleMappingList() { + return _userId_InScopeSubQuery_RoleMappingListMap; + } + + public String keepUserId_InScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + if (_userId_InScopeSubQuery_RoleMappingListMap == null) { + _userId_InScopeSubQuery_RoleMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_InScopeSubQuery_RoleMappingListMap.size() + 1); + _userId_InScopeSubQuery_RoleMappingListMap.put(key, subQuery); + return "userId_InScopeSubQuery_RoleMappingList." + key; + } + protected Map<String, EmployeeCQ> _userId_NotInScopeSubQuery_EmployeeByUsernameListMap; public Map<String, EmployeeCQ> getUserId_NotInScopeSubQuery_EmployeeByUsernameList() { @@ -155,6 +191,40 @@ return "userId_NotInScopeSubQuery_EmployeeByManagerList." + key; } + protected Map<String, GroupMappingCQ> _userId_NotInScopeSubQuery_GroupMappingListMap; + + public Map<String, GroupMappingCQ> getUserId_NotInScopeSubQuery_GroupMappingList() { + return _userId_NotInScopeSubQuery_GroupMappingListMap; + } + + public String keepUserId_NotInScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + if (_userId_NotInScopeSubQuery_GroupMappingListMap == null) { + _userId_NotInScopeSubQuery_GroupMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_NotInScopeSubQuery_GroupMappingListMap.size() + 1); + _userId_NotInScopeSubQuery_GroupMappingListMap.put(key, subQuery); + return "userId_NotInScopeSubQuery_GroupMappingList." + key; + } + + protected Map<String, RoleMappingCQ> _userId_NotInScopeSubQuery_RoleMappingListMap; + + public Map<String, RoleMappingCQ> getUserId_NotInScopeSubQuery_RoleMappingList() { + return _userId_NotInScopeSubQuery_RoleMappingListMap; + } + + public String keepUserId_NotInScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + if (_userId_NotInScopeSubQuery_RoleMappingListMap == null) { + _userId_NotInScopeSubQuery_RoleMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_NotInScopeSubQuery_RoleMappingListMap.size() + 1); + _userId_NotInScopeSubQuery_RoleMappingListMap.put(key, subQuery); + return "userId_NotInScopeSubQuery_RoleMappingList." + key; + } + protected Map<String, EmployeeCQ> _userId_ExistsSubQuery_EmployeeByUsernameListMap; public Map<String, EmployeeCQ> getUserId_ExistsSubQuery_EmployeeByUsernameList() { @@ -189,6 +259,40 @@ return "userId_ExistsSubQuery_EmployeeByManagerList." + key; } + protected Map<String, GroupMappingCQ> _userId_ExistsSubQuery_GroupMappingListMap; + + public Map<String, GroupMappingCQ> getUserId_ExistsSubQuery_GroupMappingList() { + return _userId_ExistsSubQuery_GroupMappingListMap; + } + + public String keepUserId_ExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + if (_userId_ExistsSubQuery_GroupMappingListMap == null) { + _userId_ExistsSubQuery_GroupMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_ExistsSubQuery_GroupMappingListMap.size() + 1); + _userId_ExistsSubQuery_GroupMappingListMap.put(key, subQuery); + return "userId_ExistsSubQuery_GroupMappingList." + key; + } + + protected Map<String, RoleMappingCQ> _userId_ExistsSubQuery_RoleMappingListMap; + + public Map<String, RoleMappingCQ> getUserId_ExistsSubQuery_RoleMappingList() { + return _userId_ExistsSubQuery_RoleMappingListMap; + } + + public String keepUserId_ExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + if (_userId_ExistsSubQuery_RoleMappingListMap == null) { + _userId_ExistsSubQuery_RoleMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_ExistsSubQuery_RoleMappingListMap.size() + 1); + _userId_ExistsSubQuery_RoleMappingListMap.put(key, subQuery); + return "userId_ExistsSubQuery_RoleMappingList." + key; + } + protected Map<String, EmployeeCQ> _userId_NotExistsSubQuery_EmployeeByUsernameListMap; public Map<String, EmployeeCQ> getUserId_NotExistsSubQuery_EmployeeByUsernameList() { @@ -223,6 +327,40 @@ return "userId_NotExistsSubQuery_EmployeeByManagerList." + key; } + protected Map<String, GroupMappingCQ> _userId_NotExistsSubQuery_GroupMappingListMap; + + public Map<String, GroupMappingCQ> getUserId_NotExistsSubQuery_GroupMappingList() { + return _userId_NotExistsSubQuery_GroupMappingListMap; + } + + public String keepUserId_NotExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + if (_userId_NotExistsSubQuery_GroupMappingListMap == null) { + _userId_NotExistsSubQuery_GroupMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_NotExistsSubQuery_GroupMappingListMap.size() + 1); + _userId_NotExistsSubQuery_GroupMappingListMap.put(key, subQuery); + return "userId_NotExistsSubQuery_GroupMappingList." + key; + } + + protected Map<String, RoleMappingCQ> _userId_NotExistsSubQuery_RoleMappingListMap; + + public Map<String, RoleMappingCQ> getUserId_NotExistsSubQuery_RoleMappingList() { + return _userId_NotExistsSubQuery_RoleMappingListMap; + } + + public String keepUserId_NotExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + if (_userId_NotExistsSubQuery_RoleMappingListMap == null) { + _userId_NotExistsSubQuery_RoleMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_NotExistsSubQuery_RoleMappingListMap.size() + 1); + _userId_NotExistsSubQuery_RoleMappingListMap.put(key, subQuery); + return "userId_NotExistsSubQuery_RoleMappingList." + key; + } + protected Map<String, EmployeeCQ> _userId_DeriveSubQuery_EmployeeByUsernameListMap; public Map<String, EmployeeCQ> getUserId_DeriveSubQuery_EmployeeByUsernameList() { @@ -257,6 +395,40 @@ return "userId_DeriveSubQuery_EmployeeByManagerList." + key; } + protected Map<String, GroupMappingCQ> _userId_DeriveSubQuery_GroupMappingListMap; + + public Map<String, GroupMappingCQ> getUserId_DeriveSubQuery_GroupMappingList() { + return _userId_DeriveSubQuery_GroupMappingListMap; + } + + public String keepUserId_DeriveSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + if (_userId_DeriveSubQuery_GroupMappingListMap == null) { + _userId_DeriveSubQuery_GroupMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_DeriveSubQuery_GroupMappingListMap.size() + 1); + _userId_DeriveSubQuery_GroupMappingListMap.put(key, subQuery); + return "userId_DeriveSubQuery_GroupMappingList." + key; + } + + protected Map<String, RoleMappingCQ> _userId_DeriveSubQuery_RoleMappingListMap; + + public Map<String, RoleMappingCQ> getUserId_DeriveSubQuery_RoleMappingList() { + return _userId_DeriveSubQuery_RoleMappingListMap; + } + + public String keepUserId_DeriveSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + if (_userId_DeriveSubQuery_RoleMappingListMap == null) { + _userId_DeriveSubQuery_RoleMappingListMap = newLinkedHashMap(); + } + String key = "subQueryMapKey" + + (_userId_DeriveSubQuery_RoleMappingListMap.size() + 1); + _userId_DeriveSubQuery_RoleMappingListMap.put(key, subQuery); + return "userId_DeriveSubQuery_RoleMappingList." + key; + } + public BsUserInfoCQ addOrderBy_UserId_Asc() { regOBA("USER_ID"); return this; @@ -382,6 +554,75 @@ return this; } + protected ConditionValue _nickname; + + public ConditionValue getNickname() { + if (_nickname == null) { + _nickname = new ConditionValue(); + } + return _nickname; + } + + protected ConditionValue getCValueNickname() { + return getNickname(); + } + + public BsUserInfoCQ addOrderBy_Nickname_Asc() { + regOBA("NICKNAME"); + return this; + } + + public BsUserInfoCQ addOrderBy_Nickname_Desc() { + regOBD("NICKNAME"); + return this; + } + + protected ConditionValue _gender; + + public ConditionValue getGender() { + if (_gender == null) { + _gender = new ConditionValue(); + } + return _gender; + } + + protected ConditionValue getCValueGender() { + return getGender(); + } + + public BsUserInfoCQ addOrderBy_Gender_Asc() { + regOBA("GENDER"); + return this; + } + + public BsUserInfoCQ addOrderBy_Gender_Desc() { + regOBD("GENDER"); + return this; + } + + protected ConditionValue _birthDate; + + public ConditionValue getBirthDate() { + if (_birthDate == null) { + _birthDate = new ConditionValue(); + } + return _birthDate; + } + + protected ConditionValue getCValueBirthDate() { + return getBirthDate(); + } + + public BsUserInfoCQ addOrderBy_BirthDate_Asc() { + regOBA("BIRTH_DATE"); + return this; + } + + public BsUserInfoCQ addOrderBy_BirthDate_Desc() { + regOBD("BIRTH_DATE"); + return this; + } + protected ConditionValue _email; public ConditionValue getEmail() { Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/GroupInfoCIQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/GroupInfoCIQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/GroupInfoCIQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -6,6 +6,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; import jp.sf.pal.timecard.db.cbean.cq.bs.AbstractBsGroupInfoCQ; import jp.sf.pal.timecard.db.cbean.cq.bs.BsGroupInfoCQ; @@ -95,25 +96,53 @@ return _myCQ.getGroupId(); } + public String keepGroupId_InScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + return _myCQ.keepGroupId_InScopeSubQuery_GroupMappingList(subQuery); + } + public String keepGroupId_InScopeSubQuery_UserInfoList(UserInfoCQ subQuery) { return _myCQ.keepGroupId_InScopeSubQuery_UserInfoList(subQuery); } + public String keepGroupId_NotInScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + return _myCQ.keepGroupId_NotInScopeSubQuery_GroupMappingList(subQuery); + } + public String keepGroupId_NotInScopeSubQuery_UserInfoList( UserInfoCQ subQuery) { return _myCQ.keepGroupId_NotInScopeSubQuery_UserInfoList(subQuery); } + public String keepGroupId_ExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + throw new UnsupportedOperationException( + "ExistsSubQuery at inline() is unsupported! Sorry!"); + } + public String keepGroupId_ExistsSubQuery_UserInfoList(UserInfoCQ subQuery) { throw new UnsupportedOperationException( "ExistsSubQuery at inline() is unsupported! Sorry!"); } + public String keepGroupId_NotExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + throw new UnsupportedOperationException( + "NotExistsSubQuery at inline() is unsupported! Sorry!"); + } + public String keepGroupId_NotExistsSubQuery_UserInfoList(UserInfoCQ subQuery) { throw new UnsupportedOperationException( "NotExistsSubQuery at inline() is unsupported! Sorry!"); } + public String keepGroupId_DeriveSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + throw new UnsupportedOperationException( + "DeriveSubQuery at inline() is unsupported! Sorry!"); + } + public String keepGroupId_DeriveSubQuery_UserInfoList(UserInfoCQ subQuery) { throw new UnsupportedOperationException( "DeriveSubQuery at inline() is unsupported! Sorry!"); Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/GroupMappingCIQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/GroupMappingCIQ.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/GroupMappingCIQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,118 @@ +package jp.sf.pal.timecard.db.cbean.cq.ciq; + +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.ckey.ConditionKey; +import jp.sf.pal.timecard.db.allcommon.cbean.coption.ConditionOption; +import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; +import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.bs.AbstractBsGroupMappingCQ; +import jp.sf.pal.timecard.db.cbean.cq.bs.BsGroupMappingCQ; + +/** + * The condition-inline-query of GROUP_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class GroupMappingCIQ extends AbstractBsGroupMappingCQ { + + //========================================================================== + // ========= + // Attribute + // ========= + protected BsGroupMappingCQ _myCQ; + + //========================================================================== + // ========= + // Constructor + // =========== + public GroupMappingCIQ(ConditionQuery childQuery, SqlClause sqlClause, + String aliasName, int nestLevel, BsGroupMappingCQ myCQ) { + super(childQuery, sqlClause, aliasName, nestLevel); + _myCQ = myCQ; + _foreignPropertyName = _myCQ.getForeignPropertyName();// Accept foreign + // property name. + _relationPath = _myCQ.getRelationPath();// Accept relation path. + } + + //========================================================================== + // ========= + // Override about Register + // ======================= + @Override + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, + ConditionQuery unionQueryAsSuper) { + throw new UnsupportedOperationException( + "InlineQuery must not need UNION method: " + baseQueryAsSuper + + " : " + unionQueryAsSuper); + } + + @Override + protected void setupConditionValueAndRegisterWhereClause(ConditionKey key, + Object value, ConditionValue cvalue, String colName, + String capPropName, String uncapPropName) { + registerInlineQuery(key, value, cvalue, colName, capPropName, + uncapPropName); + } + + @Override + protected void setupConditionValueAndRegisterWhereClause(ConditionKey key, + Object value, ConditionValue cvalue, String colName, + String capPropName, String uncapPropName, ConditionOption option) { + registerInlineQuery(key, value, cvalue, colName, capPropName, + uncapPropName, option); + } + + @Override + protected void registerWhereClause(String whereClause) { + registerInlineWhereClause(whereClause); + } + + @Override + protected String getInScopeSubQueryRealColumnName(String columnName) { + if (_onClauseInline) { + throw new UnsupportedOperationException( + "InScopeSubQuery of on-clause is unsupported"); + } + return _onClauseInline ? getRealAliasName() + "." + columnName + : columnName; + } + + @Override + protected void registerExistsSubQuery(ConditionQuery subQuery, + String columnName, String relatedColumnName, String propertyName) { + throw new UnsupportedOperationException( + "Sorry! ExistsSubQuery at inline view is unsupported. So please use InScopeSubQyery."); + } + + //========================================================================== + // ========= + // Override about Query + // ==================== + protected ConditionValue getCValueId() { + return _myCQ.getId(); + } + + protected ConditionValue getCValueUserId() { + return _myCQ.getUserId(); + } + + public String keepUserId_InScopeSubQuery_UserInfo(UserInfoCQ subQuery) { + return _myCQ.keepUserId_InScopeSubQuery_UserInfo(subQuery); + } + + protected ConditionValue getCValueGroupId() { + return _myCQ.getGroupId(); + } + + public String keepGroupId_InScopeSubQuery_GroupInfo(GroupInfoCQ subQuery) { + return _myCQ.keepGroupId_InScopeSubQuery_GroupInfo(subQuery); + } + + protected String getConditionQueryClassNameInternally() { + return GroupMappingCQ.class.getName(); + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/GroupMappingCIQ.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/RoleInfoCIQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/RoleInfoCIQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/RoleInfoCIQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -6,6 +6,7 @@ import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; import jp.sf.pal.timecard.db.cbean.cq.bs.AbstractBsRoleInfoCQ; import jp.sf.pal.timecard.db.cbean.cq.bs.BsRoleInfoCQ; @@ -95,24 +96,52 @@ return _myCQ.getRoleId(); } + public String keepRoleId_InScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + return _myCQ.keepRoleId_InScopeSubQuery_RoleMappingList(subQuery); + } + public String keepRoleId_InScopeSubQuery_UserInfoList(UserInfoCQ subQuery) { return _myCQ.keepRoleId_InScopeSubQuery_UserInfoList(subQuery); } + public String keepRoleId_NotInScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + return _myCQ.keepRoleId_NotInScopeSubQuery_RoleMappingList(subQuery); + } + public String keepRoleId_NotInScopeSubQuery_UserInfoList(UserInfoCQ subQuery) { return _myCQ.keepRoleId_NotInScopeSubQuery_UserInfoList(subQuery); } + public String keepRoleId_ExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + throw new UnsupportedOperationException( + "ExistsSubQuery at inline() is unsupported! Sorry!"); + } + public String keepRoleId_ExistsSubQuery_UserInfoList(UserInfoCQ subQuery) { throw new UnsupportedOperationException( "ExistsSubQuery at inline() is unsupported! Sorry!"); } + public String keepRoleId_NotExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + throw new UnsupportedOperationException( + "NotExistsSubQuery at inline() is unsupported! Sorry!"); + } + public String keepRoleId_NotExistsSubQuery_UserInfoList(UserInfoCQ subQuery) { throw new UnsupportedOperationException( "NotExistsSubQuery at inline() is unsupported! Sorry!"); } + public String keepRoleId_DeriveSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + throw new UnsupportedOperationException( + "DeriveSubQuery at inline() is unsupported! Sorry!"); + } + public String keepRoleId_DeriveSubQuery_UserInfoList(UserInfoCQ subQuery) { throw new UnsupportedOperationException( "DeriveSubQuery at inline() is unsupported! Sorry!"); Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/RoleMappingCIQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/RoleMappingCIQ.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/RoleMappingCIQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,118 @@ +package jp.sf.pal.timecard.db.cbean.cq.ciq; + +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.allcommon.cbean.ckey.ConditionKey; +import jp.sf.pal.timecard.db.allcommon.cbean.coption.ConditionOption; +import jp.sf.pal.timecard.db.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; +import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.bs.AbstractBsRoleMappingCQ; +import jp.sf.pal.timecard.db.cbean.cq.bs.BsRoleMappingCQ; + +/** + * The condition-inline-query of ROLE_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class RoleMappingCIQ extends AbstractBsRoleMappingCQ { + + //========================================================================== + // ========= + // Attribute + // ========= + protected BsRoleMappingCQ _myCQ; + + //========================================================================== + // ========= + // Constructor + // =========== + public RoleMappingCIQ(ConditionQuery childQuery, SqlClause sqlClause, + String aliasName, int nestLevel, BsRoleMappingCQ myCQ) { + super(childQuery, sqlClause, aliasName, nestLevel); + _myCQ = myCQ; + _foreignPropertyName = _myCQ.getForeignPropertyName();// Accept foreign + // property name. + _relationPath = _myCQ.getRelationPath();// Accept relation path. + } + + //========================================================================== + // ========= + // Override about Register + // ======================= + @Override + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, + ConditionQuery unionQueryAsSuper) { + throw new UnsupportedOperationException( + "InlineQuery must not need UNION method: " + baseQueryAsSuper + + " : " + unionQueryAsSuper); + } + + @Override + protected void setupConditionValueAndRegisterWhereClause(ConditionKey key, + Object value, ConditionValue cvalue, String colName, + String capPropName, String uncapPropName) { + registerInlineQuery(key, value, cvalue, colName, capPropName, + uncapPropName); + } + + @Override + protected void setupConditionValueAndRegisterWhereClause(ConditionKey key, + Object value, ConditionValue cvalue, String colName, + String capPropName, String uncapPropName, ConditionOption option) { + registerInlineQuery(key, value, cvalue, colName, capPropName, + uncapPropName, option); + } + + @Override + protected void registerWhereClause(String whereClause) { + registerInlineWhereClause(whereClause); + } + + @Override + protected String getInScopeSubQueryRealColumnName(String columnName) { + if (_onClauseInline) { + throw new UnsupportedOperationException( + "InScopeSubQuery of on-clause is unsupported"); + } + return _onClauseInline ? getRealAliasName() + "." + columnName + : columnName; + } + + @Override + protected void registerExistsSubQuery(ConditionQuery subQuery, + String columnName, String relatedColumnName, String propertyName) { + throw new UnsupportedOperationException( + "Sorry! ExistsSubQuery at inline view is unsupported. So please use InScopeSubQyery."); + } + + //========================================================================== + // ========= + // Override about Query + // ==================== + protected ConditionValue getCValueId() { + return _myCQ.getId(); + } + + protected ConditionValue getCValueUserId() { + return _myCQ.getUserId(); + } + + public String keepUserId_InScopeSubQuery_UserInfo(UserInfoCQ subQuery) { + return _myCQ.keepUserId_InScopeSubQuery_UserInfo(subQuery); + } + + protected ConditionValue getCValueRoleId() { + return _myCQ.getRoleId(); + } + + public String keepRoleId_InScopeSubQuery_RoleInfo(RoleInfoCQ subQuery) { + return _myCQ.keepRoleId_InScopeSubQuery_RoleInfo(subQuery); + } + + protected String getConditionQueryClassNameInternally() { + return RoleMappingCQ.class.getName(); + } +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/RoleMappingCIQ.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/UserInfoCIQ.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/UserInfoCIQ.java 2008-11-13 06:13:30 UTC (rev 1342) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/cq/ciq/UserInfoCIQ.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -7,7 +7,9 @@ import jp.sf.pal.timecard.db.allcommon.cbean.sqlclause.SqlClause; import jp.sf.pal.timecard.db.cbean.cq.EmployeeCQ; import jp.sf.pal.timecard.db.cbean.cq.GroupInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.RoleInfoCQ; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; import jp.sf.pal.timecard.db.cbean.cq.UserInfoCQ; import jp.sf.pal.timecard.db.cbean.cq.bs.AbstractBsUserInfoCQ; import jp.sf.pal.timecard.db.cbean.cq.bs.BsUserInfoCQ; @@ -108,6 +110,16 @@ return _myCQ.keepUserId_InScopeSubQuery_EmployeeByManagerList(subQuery); } + public String keepUserId_InScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + return _myCQ.keepUserId_InScopeSubQuery_GroupMappingList(subQuery); + } + + public String keepUserId_InScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + return _myCQ.keepUserId_InScopeSubQuery_RoleMappingList(subQuery); + } + public String keepUserId_NotInScopeSubQuery_EmployeeByUsernameList( EmployeeCQ subQuery) { return _myCQ @@ -120,6 +132,16 @@ .keepUserId_NotInScopeSubQuery_EmployeeByManagerList(subQuery); } + public String keepUserId_NotInScopeSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + return _myCQ.keepUserId_NotInScopeSubQuery_GroupMappingList(subQuery); + } + + public String keepUserId_NotInScopeSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + return _myCQ.keepUserId_NotInScopeSubQuery_RoleMappingList(subQuery); + } + public String keepUserId_ExistsSubQuery_EmployeeByUsernameList( EmployeeCQ subQuery) { throw new UnsupportedOperationException( @@ -132,6 +154,18 @@ "ExistsSubQuery at inline() is unsupported! Sorry!"); } + public String keepUserId_ExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + throw new UnsupportedOperationException( + "ExistsSubQuery at inline() is unsupported! Sorry!"); + } + + public String keepUserId_ExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + throw new UnsupportedOperationException( + "ExistsSubQuery at inline() is unsupported! Sorry!"); + } + public String keepUserId_NotExistsSubQuery_EmployeeByUsernameList( EmployeeCQ subQuery) { throw new UnsupportedOperationException( @@ -144,6 +178,18 @@ "NotExistsSubQuery at inline() is unsupported! Sorry!"); } + public String keepUserId_NotExistsSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + throw new UnsupportedOperationException( + "NotExistsSubQuery at inline() is unsupported! Sorry!"); + } + + public String keepUserId_NotExistsSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + throw new UnsupportedOperationException( + "NotExistsSubQuery at inline() is unsupported! Sorry!"); + } + public String keepUserId_DeriveSubQuery_EmployeeByUsernameList( EmployeeCQ subQuery) { throw new UnsupportedOperationException( @@ -156,6 +202,18 @@ "DeriveSubQuery at inline() is unsupported! Sorry!"); } + public String keepUserId_DeriveSubQuery_GroupMappingList( + GroupMappingCQ subQuery) { + throw new UnsupportedOperationException( + "DeriveSubQuery at inline() is unsupported! Sorry!"); + } + + public String keepUserId_DeriveSubQuery_RoleMappingList( + RoleMappingCQ subQuery) { + throw new UnsupportedOperationException( + "DeriveSubQuery at inline() is unsupported! Sorry!"); + } + protected ConditionValue getCValueGivenName() { return _myCQ.getGivenName(); } @@ -176,6 +234,18 @@ return _myCQ.getFamilyNameDesc(); } + protected ConditionValue getCValueNickname() { + return _myCQ.getNickname(); + } + + protected ConditionValue getCValueGender() { + return _myCQ.getGender(); + } + + protected ConditionValue getCValueBirthDate() { + return _myCQ.getBirthDate(); + } + protected ConditionValue getCValueEmail() { return _myCQ.getEmail(); } Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/nss/GroupMappingNss.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/nss/GroupMappingNss.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/nss/GroupMappingNss.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,50 @@ +package jp.sf.pal.timecard.db.cbean.nss; + +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.cbean.cq.GroupMappingCQ; + +/** + * The nest-select-setupper of GROUP_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class GroupMappingNss { + + protected GroupMappingCQ _query; + + public GroupMappingNss(GroupMappingCQ query) { + _query = query; + } + + public boolean hasConditionQuery() { + return _query != null; + } + + //========================================================================== + // ========= + // With Nested Foreign Table + // ========================= + public GroupInfoNss withGroupInfo() { + _query.doNss(new GroupMappingCQ.NssCall() { + public ConditionQuery qf() { + return _query.queryGroupInfo(); + } + }); + return new GroupInfoNss(_query.queryGroupInfo()); + } + + public UserInfoNss withUserInfo() { + _query.doNss(new GroupMappingCQ.NssCall() { + public ConditionQuery qf() { + return _query.queryUserInfo(); + } + }); + return new UserInfoNss(_query.queryUserInfo()); + } + + //========================================================================== + // ========= + // With Nested Referrer Table + // ========================== +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/nss/GroupMappingNss.java ___________________________________________________________________ Name: svn:eol-style + native Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/nss/RoleMappingNss.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/nss/RoleMappingNss.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/nss/RoleMappingNss.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,50 @@ +package jp.sf.pal.timecard.db.cbean.nss; + +import jp.sf.pal.timecard.db.allcommon.cbean.ConditionQuery; +import jp.sf.pal.timecard.db.cbean.cq.RoleMappingCQ; + +/** + * The nest-select-setupper of ROLE_MAPPING. + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class RoleMappingNss { + + protected RoleMappingCQ _query; + + public RoleMappingNss(RoleMappingCQ query) { + _query = query; + } + + public boolean hasConditionQuery() { + return _query != null; + } + + //========================================================================== + // ========= + // With Nested Foreign Table + // ========================= + public RoleInfoNss withRoleInfo() { + _query.doNss(new RoleMappingCQ.NssCall() { + public ConditionQuery qf() { + return _query.queryRoleInfo(); + } + }); + return new RoleInfoNss(_query.queryRoleInfo()); + } + + public UserInfoNss withUserInfo() { + _query.doNss(new RoleMappingCQ.NssCall() { + public ConditionQuery qf() { + return _query.queryUserInfo(); + } + }); + return new UserInfoNss(_query.queryUserInfo()); + } + + //========================================================================== + // ========= + // With Nested Referrer Table + // ========================== +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/cbean/nss/RoleMappingNss.java ___________________________________________________________________ Name: svn:eol-style + native Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exbhv/GroupMappingBhv.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exbhv/GroupMappingBhv.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exbhv/GroupMappingBhv.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,15 @@ +package jp.sf.pal.timecard.db.exbhv; + +/** + * The behavior of GROUP_MAPPING. + * <p> + * You can implement your original methods here. This class is NOT overrided + * when re-generating. + * </p> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class GroupMappingBhv extends + jp.sf.pal.timecard.db.bsbhv.BsGroupMappingBhv { +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exbhv/GroupMappingBhv.java ___________________________________________________________________ Name: svn:eol-style + native Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exbhv/RoleMappingBhv.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exbhv/RoleMappingBhv.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exbhv/RoleMappingBhv.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,15 @@ +package jp.sf.pal.timecard.db.exbhv; + +/** + * The behavior of ROLE_MAPPING. + * <p> + * You can implement your original methods here. This class is NOT overrided + * when re-generating. + * </p> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class RoleMappingBhv extends + jp.sf.pal.timecard.db.bsbhv.BsRoleMappingBhv { +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exbhv/RoleMappingBhv.java ___________________________________________________________________ Name: svn:eol-style + native Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exdao/GroupMappingDao.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exdao/GroupMappingDao.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exdao/GroupMappingDao.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,15 @@ +package jp.sf.pal.timecard.db.exdao; + +/** + * The dao interface of GROUP_MAPPING. <br /> + * <p> + * You can implement your original methods here. This class is NOT overrided + * when re-generating. + * </p> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public interface GroupMappingDao extends + jp.sf.pal.timecard.db.bsdao.BsGroupMappingDao { +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exdao/GroupMappingDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exdao/RoleMappingDao.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exdao/RoleMappingDao.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exdao/RoleMappingDao.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,15 @@ +package jp.sf.pal.timecard.db.exdao; + +/** + * The dao interface of ROLE_MAPPING. <br /> + * <p> + * You can implement your original methods here. This class is NOT overrided + * when re-generating. + * </p> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public interface RoleMappingDao extends + jp.sf.pal.timecard.db.bsdao.BsRoleMappingDao { +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exdao/RoleMappingDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exentity/GroupMapping.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exentity/GroupMapping.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exentity/GroupMapping.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,17 @@ +package jp.sf.pal.timecard.db.exentity; + +/** + * The entity of GROUP_MAPPING. + * <p> + * You can implement your original methods here. This class is NOT overrided + * when re-generating. + * </p> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class GroupMapping extends jp.sf.pal.timecard.db.bsentity.BsGroupMapping { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exentity/GroupMapping.java ___________________________________________________________________ Name: svn:eol-style + native Added: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exentity/RoleMapping.java =================================================================== --- timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exentity/RoleMapping.java (rev 0) +++ timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exentity/RoleMapping.java 2008-11-13 06:31:44 UTC (rev 1343) @@ -0,0 +1,17 @@ +package jp.sf.pal.timecard.db.exentity; + +/** + * The entity of ROLE_MAPPING. + * <p> + * You can implement your original methods here. This class is NOT overrided + * when re-generating. + * </p> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public class RoleMapping extends jp.sf.pal.timecard.db.bsentity.BsRoleMapping { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; +} Property changes on: timecard/trunk/src/main/java/jp/sf/pal/timecard/db/exentity/RoleMapping.java ___________________________________________________________________ Name: svn:eol-style + native Modified: timecard/trunk/src/main/webapp/WEB-INF/db/timecard.1.log.db =================================================================== (Binary files differ) Modified: timecard/trunk/src/main/webapp/WEB-INF/db/timecard.data.db =================================================================== (Binary files differ) Modified: timecard/trunk/src/main/webapp/WEB-INF/db/timecard.index.db =================================================================== (Binary files differ)