svnno****@sourc*****
svnno****@sourc*****
2007年 9月 28日 (金) 13:46:19 JST
Revision: 590 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=590 Author: shinsuke Date: 2007-09-28 13:46:15 +0900 (Fri, 28 Sep 2007) Log Message: ----------- updated db. put messages. Modified Paths: -------------- pompei/portlets/pompei-core/trunk/dbflute/build-pompei.properties pompei/portlets/pompei-core/trunk/dbflute/schema/project-schema-pompei.xml pompei/portlets/pompei-core/trunk/src/main/config/pompei.clay pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/PompeiConstants.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/allcommon/dbmeta/DBMetaInstanceHandler.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrderStatusBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductDescriptionBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrderStatusDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductDescriptionDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrderStatus.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProduct.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProductDescription.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrderStatusDbm.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductDbm.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductDescriptionDbm.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsOrderStatusCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsProductCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrderStatusCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductDescriptionCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrderStatusCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductDescriptionCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrderStatusCIQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductCIQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductDescriptionCIQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/OrderStatusNss.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/ProductNss.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CardTypeServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CartServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CategoryServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/DeliveryMethodServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/LanguageServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ManufacturerServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/OrderServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/PaymentMethodServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/TaxServiceImpl.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerConfirmAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerEditAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerListAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/order/OrderConfirmAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/order/OrderEditAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/CategoryEditAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/CategoryListAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ManufacturerEditAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ManufacturerListAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ProductEditAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ProductListAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/cart/ProductListAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/CheckoutCompleteAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/CheckoutConfirmAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/PaymentSelectAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/UserAddressSelectAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/UserInfoEditAction.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductDetailsAction.java pompei/portlets/pompei-core/trunk/src/main/resources/appMessages.properties pompei/portlets/pompei-core/trunk/src/main/resources/creator.dicon pompei/portlets/pompei-core/trunk/src/main/resources/customizer.dicon pompei/portlets/pompei-core/trunk/src/main/resources/dbflute.dicon pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/create_table.sql pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/insert_data.sql pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/insert_sample_data.sql Added Paths: ----------- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrderNotificationBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductImageBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrderNotificationDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductImageDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrderNotification.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProductImage.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrderNotificationDbm.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductImageDbm.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/OrderNotificationCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/ProductImageCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsOrderNotificationCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsProductImageCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/OrderNotificationCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ProductImageCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrderNotificationCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductImageCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrderNotificationCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductImageCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrderNotificationCIQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductImageCIQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/OrderNotificationNss.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/ProductImageNss.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/OrderNotificationBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/ProductImageBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/OrderNotificationDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/ProductImageDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/OrderNotification.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/ProductImage.java Removed Paths: ------------- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/util/ -------------- next part -------------- Modified: pompei/portlets/pompei-core/trunk/dbflute/build-pompei.properties =================================================================== --- pompei/portlets/pompei-core/trunk/dbflute/build-pompei.properties 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/dbflute/build-pompei.properties 2007-09-28 04:46:15 UTC (rev 590) @@ -155,7 +155,7 @@ #torque.sequenceReturnType = java.lang.Integer # [Additional ForeignKey] torque.additionalForeignKeyMap = map:{ \ - ;SQL070831021756810 = map:{ localTableName = ORDER_FORM; localColumnName = CUSTOMER_ID; foreignTableName = CUSTOMER; foreignColumnName = CUSTOMER_ID } \ + SQL070831021756810 = map:{ localTableName = ORDER_FORM; localColumnName = CUSTOMER_ID; foreignTableName = CUSTOMER; foreignColumnName = CUSTOMER_ID } \ ;SQL070831021756860 = map:{ localTableName = ORDER_FORM; localColumnName = ORDER_STATUS_ID; foreignTableName = ORDER_STATUS; foreignColumnName = ORDER_STATUS_ID } \ ;FK_ORDERS_3 = map:{ localTableName = ORDER_FORM; localColumnName = PAYMENT_METHOD_ID; foreignTableName = PAYMENT_METHOD; foreignColumnName = PAYMENT_METHOD_ID } \ ;FK_ORDERS_4 = map:{ localTableName = ORDER_FORM; localColumnName = DELIVERY_METHOD_ID; foreignTableName = DELIVERY_METHOD; foreignColumnName = DELIVERY_METHOD_ID } \ @@ -219,6 +219,8 @@ ;FK_PAYMENT_METHODS_DESCRIPTION_2 = map:{ localTableName = PAYMENT_METHOD_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ ;FK_CARD_TYPES_DESCRIPTION_1 = map:{ localTableName = CARD_TYPE_DESCRIPTION; localColumnName = CARD_TYPE_ID; foreignTableName = CARD_TYPE; foreignColumnName = CARD_TYPE_ID } \ ;FK_CARD_TYPES_DESCRIPTION_2 = map:{ localTableName = CARD_TYPE_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ + ;FK_ORDER_NOTIFICATION_1 = map:{ localTableName = ORDER_NOTIFICATION; localColumnName = ORDER_STATUS_ID; foreignTableName = ORDER_STATUS; foreignColumnName = ORDER_STATUS_ID } \ + ;FK_PRODUCT_IMAGE_1 = map:{ localTableName = PRODUCT_IMAGE; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ ;FK_ADDRESS_BOOK_2 = map:{ localTableName = ADDRESS_BOOK; localColumnName = ZONE_ID; foreignTableName = ZONE; foreignColumnName = ZONE_ID } \ ;FK_ADDRESS_BOOK_3 = map:{ localTableName = ADDRESS_BOOK; localColumnName = COUNTRY_ID; foreignTableName = COUNTRY; foreignColumnName = COUNTRY_ID } \ ;FK_ADDRESS_BOOK_4 = map:{ localTableName = ADDRESS_BOOK; localColumnName = CUSTOMER_ID; foreignTableName = CUSTOMER; foreignColumnName = CUSTOMER_ID } \ @@ -226,3 +228,4 @@ } + Modified: pompei/portlets/pompei-core/trunk/dbflute/schema/project-schema-pompei.xml =================================================================== --- pompei/portlets/pompei-core/trunk/dbflute/schema/project-schema-pompei.xml 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/dbflute/schema/project-schema-pompei.xml 2007-09-28 04:46:15 UTC (rev 590) @@ -524,6 +524,22 @@ <reference foreign="PAYMENT_METHOD_ID" local="PAYMENT_METHOD_ID"/> </foreign-key> </table> + <table name="ORDER_NOTIFICATION" schema="APP" type="TABLE"> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="ORDER_NOTIFICATION_ID" primaryKey="true" + required="true" type="INTEGER"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="ORDER_STATUS_ID" required="true" type="INTEGER"/> + <column dbType="VARCHAR" javaType="String" name="EMAIL_ADDRESS" + size="128" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="TEMPLATE_NAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="STATUS" required="true" type="INTEGER"/> + <foreign-key foreignTable="ORDER_STATUS" name="FK_ORDER_NOTIFICATION_1"> + <reference foreign="ORDER_STATUS_ID" local="ORDER_STATUS_ID"/> + </foreign-key> + </table> <table name="ORDER_PRODUCT" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" @@ -606,8 +622,6 @@ default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" name="ORDER_STATUS_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="NOTIFICATION_TEMPLATE" size="32" type="VARCHAR"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" name="SORT_ORDER" required="true" type="INTEGER"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" @@ -689,6 +703,7 @@ default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" name="PRODUCT_ID" primaryKey="true" required="true" type="BIGINT"/> + <column dbType="VARCHAR" javaType="String" name="CODE" size="64" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" name="MODEL" size="64" type="VARCHAR"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" @@ -697,14 +712,15 @@ name="PRICE" required="true" size="15" type="DECIMAL"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" name="WEIGHT" size="5" type="DECIMAL"/> - <column dbType="VARCHAR" javaType="String" name="IMAGE" - size="64" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="THUMBNAIL" - size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="SIZE" size="32" type="VARCHAR"/> <column dbType="INTEGER" default="0" javaType="java.math.BigDecimal" name="ORDERED" required="true" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="REVIEWED" type="INTEGER"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="RATING" type="INTEGER"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" name="STATUS" required="true" type="INTEGER"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="DATE_ADDED" required="true" type="TIMESTAMP"/> @@ -770,6 +786,8 @@ primaryKey="true" required="true" type="INTEGER"/> <column dbType="VARCHAR" default="" javaType="String" name="NAME" required="true" size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="TITLE" + size="255" type="VARCHAR"/> <column dbType="LONG VARCHAR" javaType="String" name="DESCRIPTION" size="32700" type="LONGVARCHAR"/> <column dbType="VARCHAR" javaType="String" name="URL" size="255" type="VARCHAR"/> @@ -782,6 +800,19 @@ <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> </foreign-key> </table> + <table name="PRODUCT_IMAGE" schema="APP" type="TABLE"> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_IMAGE_ID" primaryKey="true" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" required="true" type="BIGINT"/> + <column dbType="VARCHAR" javaType="String" name="IMAGE_NAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="TYPE" required="true" type="INTEGER"/> + <foreign-key foreignTable="PRODUCT" name="FK_PRODUCT_IMAGE_1"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> + </foreign-key> + </table> <table name="PRODUCT_NOTIFICATION" schema="APP" type="TABLE"> <column dbType="BIGINT" javaType="java.math.BigDecimal" name="PRODUCT_ID" primaryKey="true" required="true" type="BIGINT"/> Modified: pompei/portlets/pompei-core/trunk/src/main/config/pompei.clay =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/config/pompei.clay 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/config/pompei.clay 2007-09-28 04:46:15 UTC (rev 590) @@ -244,15 +244,15 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="DATE_ADDED" remarks="" uid="1350e24:11525502e7d:-7fe2"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="1350e24:11525502e7d:-7fe1"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> </column-list> @@ -468,15 +468,15 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="554210:1153a1d1f91:-7fcd"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="DATE_ADDED" remarks="" uid="554210:1153a1d1f91:-7fcc"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> </column-list> @@ -668,8 +668,8 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="DATE_ADDED" remarks="" uid="1350e24:11525502e7d:-7fb4"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> </column-list> @@ -891,8 +891,8 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="1350e24:11525502e7d:-7f9b"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="6" default-value="" mandatory="true" name="DATE_ADDED" remarks="" uid="1350e24:11525502e7d:-7f9a"> @@ -1015,15 +1015,15 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="DATE_ADDED" remarks="" uid="1350e24:11525502e7d:-7f8a"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="1350e24:11525502e7d:-7f89"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> </column-list> @@ -1484,8 +1484,8 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="1350e24:11525502e7d:-7f4e"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="true" name="ORDER_STATUS_ID" remarks="" uid="1350e24:11525502e7d:-7f4d"> @@ -1504,8 +1504,8 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="PURCHASED_DATE" remarks="" uid="1350e24:11525502e7d:-7f4c"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="false" name="FINISHED_DATE" remarks="" uid="1350e24:11525502e7d:-7f4b"> @@ -2006,13 +2006,6 @@ <variant type-name-pattern="INTEGER ZEROFILL"/> </data-type> </column> -<column alias="" auto-increment="false" column-size="32" decimal-digits="0" default-value="" mandatory="false" name="NOTIFICATION_TEMPLATE" remarks="" uid="554210:1153a1d1f91:-7fd0"> -<column-description></column-description> -<data-type jdbc-type="12" literal-prefix="'" literal-suffix="'" name="VARCHAR" selected-variant-pattern="VARCHAR(%n)"> -<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n)"/> -<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n) BINARY"/> -</data-type> -</column> <column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="true" name="SORT_ORDER" remarks="" uid="1350e24:11525502e7d:-7f1e"> <column-description></column-description> <data-type jdbc-type="4" name="INTEGER" selected-variant-pattern="INTEGER"> @@ -2203,7 +2196,7 @@ </table> <table alias="" name="PRODUCT" remarks="" uid="1350e24:11525502e7d:-7f0a"> <table-description></table-description> -<table-figure-bounds height="286" width="249" x="2246" y="2372"/> +<table-figure-bounds height="314" width="249" x="2246" y="2372"/> <column-list> <column alias="" auto-increment="true" column-size="0" decimal-digits="0" default-value="" mandatory="true" name="PRODUCT_ID" remarks="" uid="1350e24:11525502e7d:-7f08"> <column-description></column-description> @@ -2218,6 +2211,13 @@ <variant type-name-pattern="BIGINT ZEROFILL"/> </data-type> </column> +<column alias="" auto-increment="false" column-size="64" decimal-digits="0" default-value="" mandatory="false" name="CODE" remarks="" uid="c0fc8e:11548c89038:-7fbe"> +<column-description></column-description> +<data-type jdbc-type="12" literal-prefix="'" literal-suffix="'" name="VARCHAR" selected-variant-pattern="VARCHAR(%n)"> +<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n)"/> +<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n) BINARY"/> +</data-type> +</column> <column alias="" auto-increment="false" column-size="64" decimal-digits="0" default-value="" mandatory="false" name="MODEL" remarks="" uid="1350e24:11525502e7d:-7f07"> <column-description></column-description> <data-type jdbc-type="12" literal-prefix="'" literal-suffix="'" name="VARCHAR" selected-variant-pattern="VARCHAR(%n)"> @@ -2264,21 +2264,27 @@ <variant precision-max="17" precision-min="0" precision-variable="%p" scale-max="128" scale-min="0" scale-variable="%s" type-name-pattern="DECIMAL(%p, %s) ZEROFILL"/> </data-type> </column> -<column alias="" auto-increment="false" column-size="64" decimal-digits="0" default-value="" mandatory="false" name="IMAGE" remarks="" uid="1350e24:11525502e7d:-7f03"> +<column alias="" auto-increment="false" column-size="32" decimal-digits="0" default-value="" mandatory="false" name="SIZE" remarks="" uid="1350e24:11525502e7d:-7f03"> <column-description></column-description> <data-type jdbc-type="12" literal-prefix="'" literal-suffix="'" name="VARCHAR" selected-variant-pattern="VARCHAR(%n)"> <variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n)"/> <variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n) BINARY"/> </data-type> </column> -<column alias="" auto-increment="false" column-size="64" decimal-digits="0" default-value="" mandatory="false" name="THUMBNAIL" remarks="" uid="1350e24:11525502e7d:-7f02"> +<column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="0" mandatory="true" name="ORDERED" remarks="" uid="1350e24:11525502e7d:-7f00"> <column-description></column-description> -<data-type jdbc-type="12" literal-prefix="'" literal-suffix="'" name="VARCHAR" selected-variant-pattern="VARCHAR(%n)"> -<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n)"/> -<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n) BINARY"/> +<data-type jdbc-type="4" name="INTEGER" selected-variant-pattern="INTEGER"> +<variant type-name-pattern="INTEGER"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n)"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED ZEROFILL"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) ZEROFILL"/> +<variant type-name-pattern="INTEGER UNSIGNED"/> +<variant type-name-pattern="INTEGER UNSIGNED ZEROFILL"/> +<variant type-name-pattern="INTEGER ZEROFILL"/> </data-type> </column> -<column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="0" mandatory="true" name="ORDERED" remarks="" uid="1350e24:11525502e7d:-7f00"> +<column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="false" name="REVIEWED" remarks="" uid="c0fc8e:11548c89038:-7fc5"> <column-description></column-description> <data-type jdbc-type="4" name="INTEGER" selected-variant-pattern="INTEGER"> <variant type-name-pattern="INTEGER"/> @@ -2291,6 +2297,19 @@ <variant type-name-pattern="INTEGER ZEROFILL"/> </data-type> </column> +<column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="false" name="RATING" remarks="" uid="c0fc8e:11548c89038:-7fc4"> +<column-description></column-description> +<data-type jdbc-type="4" name="INTEGER" selected-variant-pattern="INTEGER"> +<variant type-name-pattern="INTEGER"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n)"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED ZEROFILL"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) ZEROFILL"/> +<variant type-name-pattern="INTEGER UNSIGNED"/> +<variant type-name-pattern="INTEGER UNSIGNED ZEROFILL"/> +<variant type-name-pattern="INTEGER ZEROFILL"/> +</data-type> +</column> <column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="true" name="STATUS" remarks="" uid="1350e24:11525502e7d:-7eff"> <column-description></column-description> <data-type jdbc-type="4" name="INTEGER" selected-variant-pattern="INTEGER"> @@ -2314,8 +2333,8 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="1350e24:11525502e7d:-7efd"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="false" name="DATE_AVAILABLE" remarks="" uid="1350e24:11525502e7d:-7efc"> @@ -2602,6 +2621,13 @@ <variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n) BINARY"/> </data-type> </column> +<column alias="" auto-increment="false" column-size="255" decimal-digits="0" default-value="" mandatory="false" name="TITLE" remarks="" uid="c0fc8e:11548c89038:-7fc1"> +<column-description></column-description> +<data-type jdbc-type="12" literal-prefix="'" literal-suffix="'" name="VARCHAR" selected-variant-pattern="VARCHAR(%n)"> +<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n)"/> +<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n) BINARY"/> +</data-type> +</column> <column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="false" name="DESCRIPTION" remarks="" uid="1350e24:11525502e7d:-7ee1"> <column-description></column-description> <data-type jdbc-type="-1" literal-prefix="'" literal-suffix="'" name="TEXT" selected-variant-pattern="TEXT"> @@ -3005,15 +3031,15 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="DATE_ADDED" remarks="" uid="1350e24:11525502e7d:-7eba"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="1350e24:11525502e7d:-7eb9"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> </column-list> @@ -3158,15 +3184,15 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="DATE_ADDED" remarks="" uid="1350e24:11525502e7d:-7eac"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="1350e24:11525502e7d:-7eab"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="false" name="START_DATE" remarks="" uid="1350e24:11525502e7d:-7eaa"> @@ -3245,8 +3271,8 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="1350e24:11525502e7d:-7ea1"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="6" default-value="" mandatory="true" name="DATE_ADDED" remarks="" uid="1350e24:11525502e7d:-7ea0"> @@ -3344,8 +3370,8 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="1350e24:11525502e7d:-7e96"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="6" default-value="" mandatory="true" name="DATE_ADDED" remarks="" uid="1350e24:11525502e7d:-7e95"> @@ -3489,8 +3515,8 @@ <column alias="" auto-increment="false" column-size="26" decimal-digits="0" default-value="" mandatory="true" name="LAST_MODIFIED" remarks="" uid="1350e24:11525502e7d:-7e86"> <column-description></column-description> <data-type jdbc-type="93" literal-prefix="'" literal-suffix="'" name="TIMESTAMP" selected-variant-pattern="TIMESTAMP(%n)"> +<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> <variant type-name-pattern="TIMESTAMP"/> -<variant precision-max="14" precision-min="0" precision-variable="%n" type-name-pattern="TIMESTAMP(%n)"/> </data-type> </column> <column alias="" auto-increment="false" column-size="26" decimal-digits="6" default-value="" mandatory="true" name="DATE_ADDED" remarks="" uid="1350e24:11525502e7d:-7e85"> @@ -4172,6 +4198,147 @@ <foreign-key-list/> <index-list/> </table> +<table alias="" name="ORDER_NOTIFICATION" remarks="" uid="f09ee3:11546f31335:-7fd0"> +<table-description></table-description> +<table-figure-bounds height="109" width="290" x="1088" y="634"/> +<column-list> +<column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="true" name="ORDER_NOTIFICATION_ID" remarks="" uid="f09ee3:11546f31335:-7fcc"> +<column-description></column-description> +<data-type jdbc-type="4" name="INTEGER" selected-variant-pattern="INTEGER"> +<variant type-name-pattern="INTEGER"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n)"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED ZEROFILL"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) ZEROFILL"/> +<variant type-name-pattern="INTEGER UNSIGNED"/> +<variant type-name-pattern="INTEGER UNSIGNED ZEROFILL"/> +<variant type-name-pattern="INTEGER ZEROFILL"/> +</data-type> +</column> +<column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="true" name="ORDER_STATUS_ID" remarks="" uid="f09ee3:11546f31335:-7fcb"> +<column-description></column-description> +<data-type jdbc-type="4" name="INTEGER" selected-variant-pattern="INTEGER"> +<variant type-name-pattern="INTEGER"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n)"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED ZEROFILL"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) ZEROFILL"/> +<variant type-name-pattern="INTEGER UNSIGNED"/> +<variant type-name-pattern="INTEGER UNSIGNED ZEROFILL"/> +<variant type-name-pattern="INTEGER ZEROFILL"/> +</data-type> +</column> +<column alias="" auto-increment="false" column-size="128" decimal-digits="0" default-value="" mandatory="false" name="EMAIL_ADDRESS" remarks="" uid="f09ee3:11546f31335:-7fca"> +<column-description></column-description> +<data-type jdbc-type="12" literal-prefix="'" literal-suffix="'" name="VARCHAR" selected-variant-pattern="VARCHAR(%n)"> +<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n)"/> +<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n) BINARY"/> +</data-type> +</column> +<column alias="" auto-increment="false" column-size="32" decimal-digits="0" default-value="" mandatory="true" name="TEMPLATE_NAME" remarks="" uid="f09ee3:11546f31335:-7fc9"> +<column-description></column-description> +<data-type jdbc-type="12" literal-prefix="'" literal-suffix="'" name="VARCHAR" selected-variant-pattern="VARCHAR(%n)"> +<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n)"/> +<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n) BINARY"/> +</data-type> +</column> +<column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="true" name="STATUS" remarks="" uid="f09ee3:11546f31335:-7f9f"> +<column-description></column-description> +<data-type jdbc-type="4" name="INTEGER" selected-variant-pattern="INTEGER"> +<variant type-name-pattern="INTEGER"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n)"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED ZEROFILL"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) ZEROFILL"/> +<variant type-name-pattern="INTEGER UNSIGNED"/> +<variant type-name-pattern="INTEGER UNSIGNED ZEROFILL"/> +<variant type-name-pattern="INTEGER ZEROFILL"/> +</data-type> +</column> +</column-list> +<primary-key alias="" name="PK_ORDER_NOTIFICATION" remarks="" uid="f09ee3:11546f31335:-7fcf"> +<primary-key-description></primary-key-description> +<primary-key-column name="ORDER_NOTIFICATION_ID"/> +</primary-key> +<unique-key-list/> +<foreign-key-list> +<foreign-key alias="" name="FK_ORDER_NOTIFICATION_1" on-delete="" on-update="" referenced-key="SQL070831021756000" referenced-table="ORDER_STATUS" referenced-table-schema="APP" remarks="" source-entity-role="" source-multiplicity="0..*" source-relationship-type="" target-entity-role="" target-multiplicity="1" target-relationship-type="" uid="f09ee3:11546f31335:-7fb3"> +<foreign-key-description></foreign-key-description> +<foreign-key-figure> +<fk-fig-bendpoint-list/> +</foreign-key-figure> +<foreign-key-column column-name="ORDER_STATUS_ID" referenced-key-column-name="ORDER_STATUS_ID"/> +</foreign-key> +</foreign-key-list> +<index-list/> +</table> +<table alias="" name="PRODUCT_IMAGE" remarks="" uid="c0fc8e:11548c89038:-7fbd"> +<table-description></table-description> +<table-figure-bounds height="102" width="270" x="2682" y="2747"/> +<column-list> +<column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="true" name="PRODUCT_IMAGE_ID" remarks="" uid="c0fc8e:11548c89038:-7fb9"> +<column-description></column-description> +<data-type jdbc-type="-5" name="BIGINT" selected-variant-pattern="BIGINT"> +<variant type-name-pattern="BIGINT"/> +<variant precision-max="19" precision-min="0" precision-variable="%n" type-name-pattern="BIGINT(%n)"/> +<variant precision-max="19" precision-min="0" precision-variable="%n" type-name-pattern="BIGINT(%n) UNSIGNED"/> +<variant precision-max="19" precision-min="0" precision-variable="%n" type-name-pattern="BIGINT(%n) UNSIGNED ZEROFILL"/> +<variant precision-max="19" precision-min="0" precision-variable="%n" type-name-pattern="BIGINT(%n) ZEROFILL"/> +<variant type-name-pattern="BIGINT UNSIGNED"/> +<variant type-name-pattern="BIGINT UNSIGNED ZEROFILL"/> +<variant type-name-pattern="BIGINT ZEROFILL"/> +</data-type> +</column> +<column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="true" name="PRODUCT_ID" remarks="" uid="c0fc8e:11548c89038:-7fb8"> +<column-description></column-description> +<data-type jdbc-type="-5" name="BIGINT" selected-variant-pattern="BIGINT"> +<variant type-name-pattern="BIGINT"/> +<variant precision-max="19" precision-min="0" precision-variable="%n" type-name-pattern="BIGINT(%n)"/> +<variant precision-max="19" precision-min="0" precision-variable="%n" type-name-pattern="BIGINT(%n) UNSIGNED"/> +<variant precision-max="19" precision-min="0" precision-variable="%n" type-name-pattern="BIGINT(%n) UNSIGNED ZEROFILL"/> +<variant precision-max="19" precision-min="0" precision-variable="%n" type-name-pattern="BIGINT(%n) ZEROFILL"/> +<variant type-name-pattern="BIGINT UNSIGNED"/> +<variant type-name-pattern="BIGINT UNSIGNED ZEROFILL"/> +<variant type-name-pattern="BIGINT ZEROFILL"/> +</data-type> +</column> +<column alias="" auto-increment="false" column-size="32" decimal-digits="0" default-value="" mandatory="true" name="IMAGE_NAME" remarks="" uid="c0fc8e:11548c89038:-7fb7"> +<column-description></column-description> +<data-type jdbc-type="12" literal-prefix="'" literal-suffix="'" name="VARCHAR" selected-variant-pattern="VARCHAR(%n)"> +<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n)"/> +<variant precision-max="255" precision-min="1" precision-variable="%n" type-name-pattern="VARCHAR(%n) BINARY"/> +</data-type> +</column> +<column alias="" auto-increment="false" column-size="0" decimal-digits="0" default-value="" mandatory="true" name="TYPE" remarks="" uid="c0fc8e:11548c89038:-7fb6"> +<column-description></column-description> +<data-type jdbc-type="4" name="INTEGER" selected-variant-pattern="INTEGER"> +<variant type-name-pattern="INTEGER"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n)"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) UNSIGNED ZEROFILL"/> +<variant precision-max="10" precision-min="0" precision-variable="%n" type-name-pattern="INTEGER(%n) ZEROFILL"/> +<variant type-name-pattern="INTEGER UNSIGNED"/> +<variant type-name-pattern="INTEGER UNSIGNED ZEROFILL"/> +<variant type-name-pattern="INTEGER ZEROFILL"/> +</data-type> +</column> +</column-list> +<primary-key alias="" name="PK_PRODUCT_IMAGE" remarks="" uid="c0fc8e:11548c89038:-7fbc"> +<primary-key-description></primary-key-description> +<primary-key-column name="PRODUCT_IMAGE_ID"/> +</primary-key> +<unique-key-list/> +<foreign-key-list> +<foreign-key alias="" name="FK_PRODUCT_IMAGE_1" on-delete="" on-update="" referenced-key="SQL070831021755390" referenced-table="PRODUCT" referenced-table-schema="APP" remarks="" source-entity-role="" source-multiplicity="0..*" source-relationship-type="" target-entity-role="" target-multiplicity="1" target-relationship-type="" uid="c0fc8e:11548c89038:-7f8b"> +<foreign-key-description></foreign-key-description> +<foreign-key-figure> +<fk-fig-bendpoint-list/> +</foreign-key-figure> +<foreign-key-column column-name="PRODUCT_ID" referenced-key-column-name="PRODUCT_ID"/> +</foreign-key> +</foreign-key-list> +<index-list/> +</table> </table-list> </schema> </schema-list> Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/PompeiConstants.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/PompeiConstants.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/PompeiConstants.java 2007-09-28 04:46:15 UTC (rev 590) @@ -70,4 +70,6 @@ public static final BigDecimal DEFAULT_ORDER_STATUS = new BigDecimal(1); public static final BigDecimal DEFAULT_CURRENCY_ID = new BigDecimal(1); + + public static final BigDecimal DEFAULT_DELIVERY_PRICE = new BigDecimal(0); } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/allcommon/dbmeta/DBMetaInstanceHandler.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/allcommon/dbmeta/DBMetaInstanceHandler.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/allcommon/dbmeta/DBMetaInstanceHandler.java 2007-09-28 04:46:15 UTC (rev 590) @@ -37,6 +37,7 @@ tmpMap.put("ORDER_CARD_INFO".toLowerCase(), "orderCardInfo"); tmpMap.put("ORDER_COMMENT".toLowerCase(), "orderComment"); tmpMap.put("ORDER_FORM".toLowerCase(), "orderForm"); + tmpMap.put("ORDER_NOTIFICATION".toLowerCase(), "orderNotification"); tmpMap.put("ORDER_PRODUCT".toLowerCase(), "orderProduct"); tmpMap.put("ORDER_PRODUCT_ATTRIBUTE".toLowerCase(), "orderProductAttribute"); tmpMap.put("ORDER_PRODUCT_DOWNLOAD".toLowerCase(), "orderProductDownload"); @@ -49,6 +50,7 @@ tmpMap.put("PRODUCT_ATTRIBUTE".toLowerCase(), "productAttribute"); tmpMap.put("PRODUCT_ATTRIBUTE_DOWNLOAD".toLowerCase(), "productAttributeDownload"); tmpMap.put("PRODUCT_DESCRIPTION".toLowerCase(), "productDescription"); + tmpMap.put("PRODUCT_IMAGE".toLowerCase(), "productImage"); tmpMap.put("PRODUCT_NOTIFICATION".toLowerCase(), "productNotification"); tmpMap.put("PRODUCT_OPTION".toLowerCase(), "productOption"); tmpMap.put("PRODUCT_OPTION_DESCRIPTION".toLowerCase(), "productOptionDescription"); @@ -92,6 +94,7 @@ tmpMap.put("orderCardInfo".toLowerCase(), "ORDER_CARD_INFO"); tmpMap.put("orderComment".toLowerCase(), "ORDER_COMMENT"); tmpMap.put("orderForm".toLowerCase(), "ORDER_FORM"); + tmpMap.put("orderNotification".toLowerCase(), "ORDER_NOTIFICATION"); tmpMap.put("orderProduct".toLowerCase(), "ORDER_PRODUCT"); tmpMap.put("orderProductAttribute".toLowerCase(), "ORDER_PRODUCT_ATTRIBUTE"); tmpMap.put("orderProductDownload".toLowerCase(), "ORDER_PRODUCT_DOWNLOAD"); @@ -104,6 +107,7 @@ tmpMap.put("productAttribute".toLowerCase(), "PRODUCT_ATTRIBUTE"); tmpMap.put("productAttributeDownload".toLowerCase(), "PRODUCT_ATTRIBUTE_DOWNLOAD"); tmpMap.put("productDescription".toLowerCase(), "PRODUCT_DESCRIPTION"); + tmpMap.put("productImage".toLowerCase(), "PRODUCT_IMAGE"); tmpMap.put("productNotification".toLowerCase(), "PRODUCT_NOTIFICATION"); tmpMap.put("productOption".toLowerCase(), "PRODUCT_OPTION"); tmpMap.put("productOptionDescription".toLowerCase(), "PRODUCT_OPTION_DESCRIPTION"); @@ -147,6 +151,7 @@ tmpMap.put("ORDER_CARD_INFO", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderCardInfoDbm")); tmpMap.put("ORDER_COMMENT", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderCommentDbm")); tmpMap.put("ORDER_FORM", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderFormDbm")); + tmpMap.put("ORDER_NOTIFICATION", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderNotificationDbm")); tmpMap.put("ORDER_PRODUCT", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderProductDbm")); tmpMap.put("ORDER_PRODUCT_ATTRIBUTE", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderProductAttributeDbm")); tmpMap.put("ORDER_PRODUCT_DOWNLOAD", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderProductDownloadDbm")); @@ -159,6 +164,7 @@ tmpMap.put("PRODUCT_ATTRIBUTE", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductAttributeDbm")); tmpMap.put("PRODUCT_ATTRIBUTE_DOWNLOAD", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductAttributeDownloadDbm")); tmpMap.put("PRODUCT_DESCRIPTION", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductDescriptionDbm")); + tmpMap.put("PRODUCT_IMAGE", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductImageDbm")); tmpMap.put("PRODUCT_NOTIFICATION", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductNotificationDbm")); tmpMap.put("PRODUCT_OPTION", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductOptionDbm")); tmpMap.put("PRODUCT_OPTION_DESCRIPTION", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductOptionDescriptionDbm")); @@ -204,6 +210,7 @@ tmpMap.put("OrderCardInfo", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderCardInfoDbm")); tmpMap.put("OrderComment", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderCommentDbm")); tmpMap.put("OrderForm", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderFormDbm")); + tmpMap.put("OrderNotification", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderNotificationDbm")); tmpMap.put("OrderProduct", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderProductDbm")); tmpMap.put("OrderProductAttribute", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderProductAttributeDbm")); tmpMap.put("OrderProductDownload", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderProductDownloadDbm")); @@ -216,6 +223,7 @@ tmpMap.put("ProductAttribute", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductAttributeDbm")); tmpMap.put("ProductAttributeDownload", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductAttributeDownloadDbm")); tmpMap.put("ProductDescription", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductDescriptionDbm")); + tmpMap.put("ProductImage", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductImageDbm")); tmpMap.put("ProductNotification", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductNotificationDbm")); tmpMap.put("ProductOption", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductOptionDbm")); tmpMap.put("ProductOptionDescription", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductOptionDescriptionDbm")); @@ -261,6 +269,7 @@ tmpMap.put("orderCardInfo", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderCardInfoDbm")); tmpMap.put("orderComment", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderCommentDbm")); tmpMap.put("orderForm", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderFormDbm")); + tmpMap.put("orderNotification", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderNotificationDbm")); tmpMap.put("orderProduct", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderProductDbm")); tmpMap.put("orderProductAttribute", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderProductAttributeDbm")); tmpMap.put("orderProductDownload", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.OrderProductDownloadDbm")); @@ -273,6 +282,7 @@ tmpMap.put("productAttribute", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductAttributeDbm")); tmpMap.put("productAttributeDownload", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductAttributeDownloadDbm")); tmpMap.put("productDescription", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductDescriptionDbm")); + tmpMap.put("productImage", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductImageDbm")); tmpMap.put("productNotification", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductNotificationDbm")); tmpMap.put("productOption", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductOptionDbm")); tmpMap.put("productOptionDescription", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ProductOptionDescriptionDbm")); Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrderNotificationBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrderNotificationBhv.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrderNotificationBhv.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,796 @@ +package jp.sf.pal.pompei.bsbhv; + + +import jp.sf.pal.pompei.allcommon.*; +import jp.sf.pal.pompei.allcommon.bhv.setup.ConditionBeanSetupper; +import jp.sf.pal.pompei.allcommon.bhv.setup.ValueLabelSetupper; +import jp.sf.pal.pompei.allcommon.dbmeta.hierarchy.HierarchyArranger; +import jp.sf.pal.pompei.allcommon.dbmeta.hierarchy.HierarchyBasicRequest; +import jp.sf.pal.pompei.allcommon.dbmeta.hierarchy.HierarchyRequest; +import jp.sf.pal.pompei.allcommon.cbean.ConditionBean; +import jp.sf.pal.pompei.allcommon.cbean.ListResultBean; +import jp.sf.pal.pompei.allcommon.cbean.PagingBean; +import jp.sf.pal.pompei.allcommon.cbean.PagingResultBean; +import jp.sf.pal.pompei.allcommon.dbmeta.DBMeta; + +import jp.sf.pal.pompei.exdao.*; +import jp.sf.pal.pompei.exentity.*; +import jp.sf.pal.pompei.bsentity.dbmeta.*; +import jp.sf.pal.pompei.cbean.*; + + + +/** + * The behavior of ORDER_NOTIFICATION. + * + * <pre> + * [primary-key] + * ORDER_NOTIFICATION_ID + * + * [column-property] + * ORDER_NOTIFICATION_ID, ORDER_STATUS_ID, EMAIL_ADDRESS, TEMPLATE_NAME, STATUS + * + * [foreign-property] + * orderStatus + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsOrderNotificationBhv extends jp.sf.pal.pompei.allcommon.bhv.AbstractBehaviorWritable { + + // =================================================================================== + // Attribute + // ========= + /** Dao instance. */ + protected OrderNotificationDao _dao; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsOrderNotificationBhv() { + } + + // =================================================================================== + // Table name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return "ORDER_NOTIFICATION"; + } + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return OrderNotificationDbm.getInstance(); + } + + /** + * Get my dbmeta. + * + * @return DBMeta. (NotNull) + */ + public OrderNotificationDbm getMyDBMeta() { + return OrderNotificationDbm.getInstance(); + } + + // =================================================================================== + // Dao Accessor + // ============ + /** + * Get my dao. + * + * @return My dao. + */ + public OrderNotificationDao getMyDao() { + return _dao; + } + + /** + * Set my dao. + * + * @param dao My dao. (NotNull) + */ + public void setMyDao(OrderNotificationDao dao) { + assertObjectNotNull("dao", dao); + _dao = dao; + } + + /** + * The implementation. + * + * @return Dao-readable. (NotNull) + */ + public DaoReadable getDaoReadable() { + return getMyDao(); + } + + /** + * The implementation. + * + * @return Dao-writable. (NotNull) + */ + public DaoWritable getDaoWritable() { + return getMyDao(); + } + + // =================================================================================== + // New Instance + // ============ + /** + * New entity. + * + * @return Entity. (NotNull) + */ + public Entity newEntity() { + return newMyEntity(); + } + + /** + * New condition-bean. + * + * @return Condition-bean. (NotNull) + */ + public ConditionBean newConditionBean() { + return newMyConditionBean(); + } + + /** + * New my entity. + * + * @return My entity. (NotNull) + */ + public OrderNotification newMyEntity() { + return new OrderNotification(); + } + + /** + * New my condition-bean. + * + * @return My condition-bean. (NotNull) + */ + public OrderNotificationCB newMyConditionBean() { + return new OrderNotificationCB(); + } + + // =================================================================================== + // Delegate Method + // =============== + // ----------------------------------------------------- + // Select + // ------ + /** + * Get count as all. {delegate method, internal for interceptor} + * + * @return All count. (NotNull) + */ + public int delegateGetCountAll() { + return getMyDao().getCountAll(); + } + + /** + * Get list as all. {delegate method, internal for interceptor} + * + * @return All list. (NotNull) + */ + public java.util.List<OrderNotification> delegateGetListAll() { + return getMyDao().getListAll(); + } + + // + // Get entity. {delegate method, internal for interceptor} + // + // @param Primary-keys (NotNull) + // @return Entity. (NotNull) + // + public OrderNotification delegateGetEntity(java.math.BigDecimal orderNotificationId) { + return getMyDao().getEntity(orderNotificationId); + } + + /** + * Select count by condition-bean. {delegate method, internal for interceptor} + * + * @param cb Condition-bean. (NotNull) + * @return Selected count. (NotNull) + */ + public int delegateSelectCount(OrderNotificationCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().selectCount(cb); + } + + /** + * Select entity by condition-bean. {delegate method, internal for interceptor} + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. If the select result is zero, it returns null. (Nullable) + */ + public OrderNotification delegateSelectEntity(OrderNotificationCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().selectEntity(cb); + } + + /** + * Select list by condition-bean. {delegate method, internal for interceptor} + * + * @param cb Condition-bean. (NotNull) + * @return Selected list. If the select result is zero, it returns empty list. (NotNull) + */ + public java.util.List<OrderNotification> delegateSelectList(OrderNotificationCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().selectList(cb); + } + + + // ----------------------------------------------------- + // Update + // ------ + /** + * Insert one entity. {delegate method, internal for interceptor} + * + * @param entity Entity. (NotNull) + * @return Inserted count. + */ + public int delegateInsert(OrderNotification entity) { + assertEntityNotNull(entity);// If this table use identity, the entity does not have primary-key. + filterEntityOfInsert(entity); + assertEntityOfInsert(entity); + return getMyDao().insert(entity); + } + + /** + * Update one entity. {modified only, delegate method} + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int delegateUpdate(OrderNotification entity) { + assertEntityNotNullAndHasPrimaryKeyValue(entity); + filterEntityOfUpdate(entity); + assertEntityOfUpdate(entity); + return getMyDao().updateModifiedOnly(entity); + } + + /** + * Delete one entity. {delegate method, internal for interceptor} + * + * @param entity Entity. (NotNull) + * @return Deleted count. + */ + public int delegateDelete(OrderNotification entity) { + assertEntityNotNullAndHasPrimaryKeyValue(entity); + filterEntityOfDelete(entity); + assertEntityOfDelete(entity); + return getMyDao().delete(entity); + } + + /** + * Insert several entities. {delegate method, internal for interceptor} + * + * @param entityList Entity-list. (NotNull & NotEmpty) + * @return Inserted count. + */ + public int delegateInsertList(java.util.List<OrderNotification> entityList) { + assertListNotNullAndNotEmpty(entityList); + return getMyDao().insertList(entityList); + } + + /** + * Update several entities. {delegate method, internal for interceptor} + * + * @param entityList Entity-list. (NotNull & NotEmpty) + * @return Updated count. + */ + public int delegateUpdateList(java.util.List<OrderNotification> entityList) { + assertListNotNullAndNotEmpty(entityList); + return getMyDao().updateList(entityList); + } + + /** + * Delete several entities. {delegate method, internal for interceptor} + * + * @param entityList Entity-list. (NotNull & NotEmpty) + * @return Deleted count. + */ + public int delegateDeleteList(java.util.List<OrderNotification> entityList) { + assertListNotNullAndNotEmpty(entityList); + return getMyDao().deleteList(entityList); + } + + // =================================================================================== + // Basic Select Count + // ================== + /** + * Select count by condition-bean. + * <pre> + * If the argument 'condition-bean' is effective about fetch-scope, + * this method invoke select count ignoring the fetch-scope. + * </pre> + * @param cb Condition-bean. This condition-bean should not be set up about fetch-scope. (NotNull) + * @return Selected count. + */ + public int selectCount(OrderNotificationCB cb) { + assertConditionBeanNotNull(cb); + return delegateSelectCount(cb); + } + + // =================================================================================== + // Basic Select Entity + // =================== + /** + * Select entity by condition-bean. + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. (Nullalble) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public OrderNotification selectEntity(OrderNotificationCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<OrderNotification> ls = null; + try { + ls = selectList(cb); + } catch (jp.sf.pal.pompei.allcommon.exception.DangerousResultSizeException e) { + throwRecordHasOverlappedException("{Over safetyMaxResultSize '1'}", cb, e); + } + if (ls.isEmpty()) { + return null; + } + assertRecordHasBeenSelectedAsOne(ls, cb); + return (OrderNotification)ls.get(0); + } + + /** + * Select entity by condition-bean with deleted check. + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public OrderNotification selectEntityWithDeletedCheck(OrderNotificationCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<OrderNotification> ls = null; + try { + ls = selectList(cb); + } catch (jp.sf.pal.pompei.allcommon.exception.DangerousResultSizeException e) { + throwRecordHasOverlappedException("{Over safetyMaxResultSize '1'}", cb, e); + } + assertRecordHasNotBeenDeleted(ls, cb); + assertRecordHasBeenSelectedAsOne(ls, cb); + return (OrderNotification)ls.get(0); + } + + /* + * Select entity with deleted check. {by primary-key} + * + * @param primaryKey + * @return Selected entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public OrderNotification selectByPKValueWithDeletedCheck(java.math.BigDecimal orderNotificationId) { + OrderNotification entity = new OrderNotification(); + entity.setOrderNotificationId(orderNotificationId); + final OrderNotificationCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(entity)); + return selectEntityWithDeletedCheck(cb); + } + + // =================================================================================== + // Basic Select List + // ================= + /** + * Select list as result-bean. + * + * @param cb Condition-bean. (NotNull) + * @return Selected list-result-bean. (NotNull) + */ + public ListResultBean<OrderNotification> selectList(OrderNotificationCB cb) { + assertConditionBeanNotNull(cb); + return new ResultBeanBuilder<OrderNotification>(this).buildListResultBean(cb, delegateSelectList(cb)); + } + + /** + * Select page as result-bean. + * + * @param cb Condition-bean. (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<OrderNotification> selectPage(final OrderNotificationCB cb) { + assertConditionBeanNotNull(cb); + return selectPage(cb, new SelectPageSimpleInvoker<OrderNotification>(this)); + } + + /** + * Select page. + * + * @param cb Condition-bean. (NotNull) + * @param invoker Select-page-invoker (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<OrderNotification> selectPage(final OrderNotificationCB cb, SelectPageInvoker<OrderNotification> invoker) { + assertConditionBeanNotNull(cb); + final SelectPageCallback<OrderNotification> pageCallback = new SelectPageCallback<OrderNotification>() { + public PagingBean getPagingBean() { return cb; } + public int selectCountIgnoreFetchScope() { + return selectCount(cb); + } + public java.util.List<OrderNotification> selectListWithFetchScope() { + return selectList(cb); + } + }; + return invoker.invokeSelectPage(pageCallback); + } + + // =================================================================================== + // Various Select + // ============== + /** + * Select value-label list. + * + * @param cb Condition-bean. (NotNull) + * @param valueLabelSetupper Value-label-setupper. (NotNull) + * @return Value-label list. (NotNull) + */ + public java.util.List<java.util.Map<String, Object>> selectValueLabelList(OrderNotificationCB cb, ValueLabelSetupper<OrderNotification> valueLabelSetupper) { + return createValueLabelList(selectList(cb), valueLabelSetupper); + } + + // =================================================================================== + // Load Referer + // ============ + + // =================================================================================== + // Pull Out Foreign + // ================ + + /** + * Pull out the list of foreign table 'OrderStatus'. + * + * @param orderNotificationList The list of orderNotification. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public java.util.List<OrderStatus> pulloutOrderStatus(java.util.List<OrderNotification> orderNotificationList) { + assertObjectNotNull("orderNotificationList", orderNotificationList); + final java.util.Set<OrderStatus> foreignSet = new java.util.LinkedHashSet<OrderStatus>(); + for (java.util.Iterator ite = orderNotificationList.iterator(); ite.hasNext(); ) { + final OrderNotification orderNotification = (OrderNotification)ite.next(); + final OrderStatus foreignEntity = orderNotification.getOrderStatus(); + if (foreignEntity == null || foreignSet.contains(foreignEntity)) { + continue; + } + foreignSet.add(foreignEntity); + } + return new java.util.ArrayList<OrderStatus>(foreignSet); + } + + // =================================================================================== + // Basic Entity Update + // =================== + /** + * Insert. + * + * @param orderNotification Entity. (NotNull) + */ + public void insert(OrderNotification orderNotification) { + assertEntityNotNull(orderNotification); + delegateInsert(orderNotification); + } + + protected void doCreate(Entity orderNotification) { + insert((OrderNotification)orderNotification); + } + + /** + * Update. {update: modified only} + * <pre> + * If it updates count zero, throws exception. + * If concurrency control of this table is valid, this update have it. + * So then the entity of argument should have the value of concurrency column. + * </pre> + * @param orderNotification Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void update(OrderNotification orderNotification) { + assertEntityNotNull(orderNotification); + final int updatedCount = delegateUpdate(orderNotification); + if (updatedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(orderNotification.toString()); + } else if (updatedCount > 1) { + String msg = "updatedCount=" + updatedCount + ": " + orderNotification.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doModify(Entity entity) { + update((OrderNotification)entity); + } + + + protected void doModifyNonstrict(Entity entity) { + update((OrderNotification)entity); + } + + /** + * Update after select. {update: modified only} + * <pre> + * The merit of this method is only Deleted-Check before updating! + * If you don't want the merit, please use update(). + * And the demerit of this method is as follows: + * : If the entity does not have the optimistic lock value, for example version-no and timestamp, + * : it does not throw optimistic lock exception. It can updates. + * </pre> + * @param orderNotification Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void updateAfterSelect(OrderNotification orderNotification) { + assertEntityNotNullAndHasPrimaryKeyValue(orderNotification); + final OrderNotificationCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(orderNotification)); + final OrderNotification currentEntity = selectEntityWithDeletedCheck(cb); + mergeEntity(orderNotification, currentEntity); + update(currentEntity); + } + + protected void doModifyAfterSelect(Entity entity) { + updateAfterSelect((OrderNotification)entity); + } + + /** + * Insert or update. {update: modified only} + * + * @param orderNotification Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdate(OrderNotification orderNotification) { + assertEntityNotNull(orderNotification); + if (!orderNotification.hasPrimaryKeyValue()) { + insert(orderNotification); + } else { + RuntimeException exception = null; + try { + update(orderNotification); + } catch (org.seasar.dao.NotSingleRowUpdatedRuntimeException e) { + if (e.getRows() > 1) { + throw e; + } + exception = e; + } catch (jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException e) { + exception = e; + } + if (exception != null) { + final OrderNotificationCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(orderNotification)); + if (selectCount(cb) == 0) { + insert(orderNotification); + } else { + throw exception; + } + } + } + } + + protected void doCreateOrUpdate(Entity orderNotification) { + insertOrUpdate((OrderNotification)orderNotification); + } + + + protected void doCreateOrUpdateNonstrict(Entity entity) { + insertOrUpdate((OrderNotification)entity); + } + + /** + * Insert or update after select. {update: modified only} + * <pre> + * The merit of this method is only Deleted-Check before updating! + * If you don't want the merit, please use update(). + * And the demerit of this method is as follows: + * : If the entity does not have the optimistic lock value, for example version-no and timestamp, + * : it does not throw optimistic lock exception. It can updates. + * </pre> + * @param orderNotification Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdateAfterSelect(OrderNotification orderNotification) { + assertEntityNotNull(orderNotification); + if (!orderNotification.hasPrimaryKeyValue()) { + insert(orderNotification); + return; + } + OrderNotification currentEntity = null; + try { + final OrderNotificationCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(orderNotification)); + currentEntity = selectEntityWithDeletedCheck(cb); + } catch (jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException e) { + insert(orderNotification); + return; + } + assertEntityNotNullAndHasPrimaryKeyValue(orderNotification); + mergeEntity(orderNotification, currentEntity); + update(currentEntity); + } + + protected void doCreateOrModifyAfterSelect(Entity entity) { + insertOrUpdateAfterSelect((OrderNotification)entity); + } + + /** + * The implementation. + * + * @param sourceEntity Source entity. (NotNull) + * @param destinationEntity Destination entity. (NotNull) + */ + protected void mergeEntity(Entity sourceEntity, Entity destinationEntity) { + assertEntityNotNull(sourceEntity); + assertEntityNotNull(destinationEntity); + final OrderNotification sourceMyEntity = (OrderNotification)sourceEntity; + final OrderNotification destinationMyEntity = (OrderNotification)destinationEntity; + destinationMyEntity.clearModifiedPropertyNames(); + final java.util.Set<String> names = sourceMyEntity.getModifiedPropertyNames(); + + if (names.contains("orderNotificationId")) { destinationMyEntity.setOrderNotificationId(sourceMyEntity.getOrderNotificationId()); } + if (names.contains("orderStatusId")) { destinationMyEntity.setOrderStatusId(sourceMyEntity.getOrderStatusId()); } + if (names.contains("emailAddress")) { destinationMyEntity.setEmailAddress(sourceMyEntity.getEmailAddress()); } + if (names.contains("templateName")) { destinationMyEntity.setTemplateName(sourceMyEntity.getTemplateName()); } + if (names.contains("status")) { destinationMyEntity.setStatus(sourceMyEntity.getStatus()); } + + } + + /** + * Delete. + * + * @param orderNotification Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void delete(OrderNotification orderNotification) { + assertEntityNotNull(orderNotification); + final int deletedCount = delegateDelete(orderNotification); + if (deletedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(orderNotification.toString()); + } else if (deletedCount > 1) { + String msg = "deletedCount=" + deletedCount + ": " + orderNotification.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doRemove(Entity orderNotification) { + delete((OrderNotification)orderNotification); + } + + /** + * Delete after select. + * <pre> + * The merit of this method is only Deleted-Check before deleting! + * If you don't want the merit, please use update(). + * And the demerit of this method is as follows: + * : If the entity does not have the optimistic lock value, for example version-no and timestamp, + * : it does not throw optimistic lock exception. It can updates. + * </pre> + * @param orderNotification Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void deleteAfterSelect(OrderNotification orderNotification) { + assertEntityNotNullAndHasPrimaryKeyValue(orderNotification); + final OrderNotificationCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(orderNotification)); + selectEntityWithDeletedCheck(cb); + delete(orderNotification); + } + + protected void doRemoveAfterSelect(Entity entity) { + deleteAfterSelect((OrderNotification)entity); + } + + // =================================================================================== + // Basic Batch Update + // ================== + /** + * Insert list. + * + * @param orderNotificationList Entity-list. (NotNull & NotEmpty) + * @return Inserted count. + */ + public int insertList(java.util.List<OrderNotification> orderNotificationList) { + assertListNotNullAndNotEmpty(orderNotificationList); + return delegateInsertList(orderNotificationList); + } + + /** + * Update list. + * + * @param orderNotificationList Entity-list. (NotNull & NotEmpty) + * @return Updated count. + */ + public int updateList(java.util.List<OrderNotification> orderNotificationList) { + assertListNotNullAndNotEmpty(orderNotificationList); + return delegateUpdateList(orderNotificationList); + } + + /** + * Delete list. + * + * @param orderNotificationList Entity-list. (NotNull & NotEmpty) + * @return Deleted count. + */ + public int deleteList(java.util.List<OrderNotification> orderNotificationList) { + assertListNotNullAndNotEmpty(orderNotificationList); + return delegateDeleteList(orderNotificationList); + } + + // =================================================================================== + // Various Insert + // ============== + + // =================================================================================== + // Hierarchy + // ========= + /** + * Create the basic request of hierarchy of OrderNotification.. + * + * @param sourceList The list of source. (NotNull) + * @param <SOURCE> The type of source. + * @return Hierarchy request of OrderNotification. (NotNull) + */ + public <SOURCE> HierarchyBasicRequest<OrderNotification, OrderNotificationDbm.OrderNotificationRelationTrace> createHierarchyBasicRequest(java.util.List<SOURCE> sourceList) { + final HierarchyBasicRequest<OrderNotification, OrderNotificationDbm.OrderNotificationRelationTrace> request = new HierarchyBasicRequest<OrderNotification, OrderNotificationDbm.OrderNotificationRelationTrace>(OrderNotification.class); + request.registerSourceList(sourceList); + return request; + } + + /** + * Arrange hierarchy. + * + * @param request Hierarchy request of OrderNotification. (NotNull) + * @return The list of OrderNotification. (NotNull) + */ + public java.util.List<OrderNotification> arrangeHierarchy(HierarchyRequest<OrderNotification> request) { + return new HierarchyArranger<OrderNotification>().arrangeHierarchy(request); + } + + // =================================================================================== + // CBSetupper + // ========== + /** + * The interface of condition-bean setupper. + */ + public static interface CBSetupper extends ConditionBeanSetupper<OrderNotificationCB> { + + /** + * Set up condition. + * + * @param cb Condition-bean. (NotNull) + */ + public void setup(OrderNotificationCB cb); + } +} Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrderStatusBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrderStatusBhv.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrderStatusBhv.java 2007-09-28 04:46:15 UTC (rev 590) @@ -30,13 +30,13 @@ * ORDER_STATUS_ID * * [column-property] - * ORDER_STATUS_ID, NOTIFICATION_TEMPLATE, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * ORDER_STATUS_ID, SORT_ORDER, DATE_ADDED, LAST_MODIFIED * * [foreign-property] * * * [refferer-property] - * orderFormList, orderStatusDescriptionList, orderStatusHistoryList + * orderFormList, orderNotificationList, orderStatusDescriptionList, orderStatusHistoryList * * [sequence] * @@ -619,6 +619,152 @@ } // /* * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [ORDER_NOTIFICATION] + // RefererProperty = [orderNotificationList] + // * * * * * * * * */ + + /** + * Load referer of orderNotificationList. + * <pre> + * You can load referer. + * + * ex) {Client Example} + * final OrderStatusCB cb = new OrderStatusCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<OrderStatus> orderStatusList = orderStatusBhv.selectList(cb); + * orderStatusBhv.loadOrderNotificationList(orderStatusList); + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param orderStatusList Entity list of orderStatus. (NotNull) + */ + public void loadOrderNotificationList(java.util.List<OrderStatus> orderStatusList) { + final ConditionBeanSetupper<OrderNotificationCB> conditionBeanSetupper = new ConditionBeanSetupper<OrderNotificationCB>() { + public void setup(OrderNotificationCB cb) { + } + }; + loadOrderNotificationList(orderStatusList, conditionBeanSetupper); + } + + /** + * Load referer of orderNotificationList. + * <pre> + * You can load referer with your original condition. + * + * ex) {Client Example}: Referer conditions are 'Xxx' is not null and order-by 'Yyy' desc + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * final OrderStatusCB cb = new OrderStatusCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<OrderStatus> orderStatusList = orderStatusBhv.selectList(cb); + * final ConditionBeanSetupper<OrderNotificationCB> conditionBeanSetupper = new ConditionBeanSetupper<OrderNotificationCB>() { + * public void setup(OrderNotificationCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * orderStatusBhv.loadOrderNotificationList(orderStatusList, conditionBeanSetupper); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setOrderStatusId_InScope(pkList); + * cb.query().addOrderBy_OrderStatusId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param orderStatusList Entity list of orderStatus. (NotNull) + * @param conditionBeanSetupper Referer condition setupper instance for registering referer condition. (NotNull) + */ + public void loadOrderNotificationList(java.util.List<OrderStatus> orderStatusList, ConditionBeanSetupper<OrderNotificationCB> conditionBeanSetupper) { + assertObjectNotNull("orderStatusList<OrderStatus>", orderStatusList); + assertObjectNotNull("conditionBeanSetupper<OrderNotificationCB>", conditionBeanSetupper); + if (orderStatusList.isEmpty()) { + return; + } + loadOrderNotificationList(orderStatusList, new jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<OrderNotificationCB, OrderNotification>(conditionBeanSetupper)); + } + + /** + * Load referer of orderNotificationList. + * <pre> + * You can load referer with your original condition. + * + * ex) {Client Example}: Referer conditions are 'Xxx' is not null and order-by 'Yyy' desc + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * final OrderStatusCB cb = new OrderStatusCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<OrderStatus> orderStatusList = orderStatusBhv.selectList(cb); + * final ConditionBeanSetupper<OrderNotificationCB> cbSetupper = new ConditionBeanSetupper<OrderNotificationCB>() { + * public void setup(OrderNotificationCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * orderStatusBhv.loadOrderNotificationList(orderStatusList, new LoadRefererOption<OrderNotificationCB, OrderNotification>(cbSetupper)); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setOrderStatusId_InScope(pkList); + * cb.query().addOrderBy_OrderStatusId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param orderStatusList Entity list of orderStatus. (NotNull) + * @param loadRefererOption Load-referer option. (NotNull) + */ + public void loadOrderNotificationList(java.util.List<OrderStatus> orderStatusList, jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<OrderNotificationCB, OrderNotification> loadRefererOption) { + assertObjectNotNull("orderStatusList<OrderStatus>", orderStatusList); + assertObjectNotNull("loadRefererOption<OrderNotification, OrderNotificationCB>", loadRefererOption); + if (orderStatusList.isEmpty()) { + return; + } + + final java.util.Map<java.math.BigDecimal, OrderStatus> pkMyEntityMap = new java.util.LinkedHashMap<java.math.BigDecimal, OrderStatus>(); + final java.util.List<java.math.BigDecimal> pkList = new java.util.ArrayList<java.math.BigDecimal>(); + for (OrderStatus orderStatus : orderStatusList) { + pkList.add(orderStatus.getOrderStatusId()); + pkMyEntityMap.put((java.math.BigDecimal)toLowerCaseIfString(orderStatus.getOrderStatusId()), orderStatus); + } + final OrderNotificationBhv refererBhv = getDaoSelector().getBehavior(OrderNotificationBhv.class); + final OrderNotificationCB cb = loadRefererOption.getRefererConditionBean() != null ? loadRefererOption.getRefererConditionBean() : refererBhv.newMyConditionBean(); + cb.query().setOrderStatusId_InScope(pkList); + loadRefererOption.delegateKeyConditionExchangingFirstWhereClauseForLastOne(cb); + if (!loadRefererOption.isStopOrderByKey()) { + cb.query().addOrderBy_OrderStatusId_Asc(); + cb.getSqlComponentOfOrderByClause().exchangeFirstOrderByElementForLastOne(); + } + loadRefererOption.delegateConditionBeanSettingUp(cb); + final java.util.List<OrderNotification> reffererList = refererBhv.selectList(cb); + loadRefererOption.delegateEntitySettingUp(reffererList); + + final java.util.Map<java.math.BigDecimal, java.util.List<OrderNotification>> pkReffererListMap = new java.util.LinkedHashMap<java.math.BigDecimal, java.util.List<OrderNotification>>(); + for (OrderNotification reffererEntity : reffererList) { + if (!pkReffererListMap.containsKey(toLowerCaseIfString(reffererEntity.getOrderStatusId()))) { + pkReffererListMap.put((java.math.BigDecimal)toLowerCaseIfString(reffererEntity.getOrderStatusId()), new java.util.ArrayList<OrderNotification>()); + } + (pkReffererListMap.get(toLowerCaseIfString(reffererEntity.getOrderStatusId()))).add(reffererEntity); + + // for Reverse Reference. + final OrderStatus myEntity = pkMyEntityMap.get(toLowerCaseIfString(reffererEntity.getOrderStatusId())); + reffererEntity.setOrderStatus(myEntity); + } + + for (OrderStatus orderStatus : orderStatusList) { + if (pkReffererListMap.containsKey(toLowerCaseIfString(orderStatus.getOrderStatusId()))) { + orderStatus.setOrderNotificationList((java.util.List<OrderNotification>)pkReffererListMap.get(toLowerCaseIfString(orderStatus.getOrderStatusId()))); + } else { + orderStatus.setOrderNotificationList(new java.util.ArrayList<OrderNotification>()); + } + } + } + + // /* * * * * * * * * * * * * * * * * * * * * * * // RefererTable = [ORDER_STATUS_DESCRIPTION] // RefererProperty = [orderStatusDescriptionList] // * * * * * * * * */ @@ -913,7 +1059,7 @@ // =================================================================================== // Pull Out Foreign // ================ - + // =================================================================================== // Basic Entity Update // =================== @@ -1079,7 +1225,6 @@ final java.util.Set<String> names = sourceMyEntity.getModifiedPropertyNames(); if (names.contains("orderStatusId")) { destinationMyEntity.setOrderStatusId(sourceMyEntity.getOrderStatusId()); } - if (names.contains("notificationTemplate")) { destinationMyEntity.setNotificationTemplate(sourceMyEntity.getNotificationTemplate()); } if (names.contains("sortOrder")) { destinationMyEntity.setSortOrder(sourceMyEntity.getSortOrder()); } if (names.contains("dateAdded")) { destinationMyEntity.setDateAdded(sourceMyEntity.getDateAdded()); } if (names.contains("lastModified")) { destinationMyEntity.setLastModified(sourceMyEntity.getLastModified()); } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductBhv.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductBhv.java 2007-09-28 04:46:15 UTC (rev 590) @@ -30,13 +30,13 @@ * PRODUCT_ID * * [column-property] - * PRODUCT_ID, MODEL, QUANTITY, PRICE, WEIGHT, IMAGE, THUMBNAIL, ORDERED, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID + * PRODUCT_ID, CODE, MODEL, QUANTITY, PRICE, WEIGHT, SIZE, ORDERED, REVIEWED, RATING, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID * * [foreign-property] * manufacturer, taxClass * * [refferer-property] - * bargainList, customerBasketList, customerBasketAttributeList, orderProductList, orderProductAttributeList, orderProductDownloadList, productAttributeList, productDescriptionList, productNotificationList, productToCategoryList, reviewList + * bargainList, customerBasketList, customerBasketAttributeList, orderProductList, orderProductAttributeList, orderProductDownloadList, productAttributeList, productDescriptionList, productImageList, productNotificationList, productToCategoryList, reviewList * * [sequence] * @@ -1641,6 +1641,152 @@ } // /* * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [PRODUCT_IMAGE] + // RefererProperty = [productImageList] + // * * * * * * * * */ + + /** + * Load referer of productImageList. + * <pre> + * You can load referer. + * + * ex) {Client Example} + * final ProductCB cb = new ProductCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<Product> productList = productBhv.selectList(cb); + * productBhv.loadProductImageList(productList); + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param productList Entity list of product. (NotNull) + */ + public void loadProductImageList(java.util.List<Product> productList) { + final ConditionBeanSetupper<ProductImageCB> conditionBeanSetupper = new ConditionBeanSetupper<ProductImageCB>() { + public void setup(ProductImageCB cb) { + } + }; + loadProductImageList(productList, conditionBeanSetupper); + } + + /** + * Load referer of productImageList. + * <pre> + * You can load referer with your original condition. + * + * ex) {Client Example}: Referer conditions are 'Xxx' is not null and order-by 'Yyy' desc + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * final ProductCB cb = new ProductCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<Product> productList = productBhv.selectList(cb); + * final ConditionBeanSetupper<ProductImageCB> conditionBeanSetupper = new ConditionBeanSetupper<ProductImageCB>() { + * public void setup(ProductImageCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * productBhv.loadProductImageList(productList, conditionBeanSetupper); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setProductId_InScope(pkList); + * cb.query().addOrderBy_ProductId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param productList Entity list of product. (NotNull) + * @param conditionBeanSetupper Referer condition setupper instance for registering referer condition. (NotNull) + */ + public void loadProductImageList(java.util.List<Product> productList, ConditionBeanSetupper<ProductImageCB> conditionBeanSetupper) { + assertObjectNotNull("productList<Product>", productList); + assertObjectNotNull("conditionBeanSetupper<ProductImageCB>", conditionBeanSetupper); + if (productList.isEmpty()) { + return; + } + loadProductImageList(productList, new jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<ProductImageCB, ProductImage>(conditionBeanSetupper)); + } + + /** + * Load referer of productImageList. + * <pre> + * You can load referer with your original condition. + * + * ex) {Client Example}: Referer conditions are 'Xxx' is not null and order-by 'Yyy' desc + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * final ProductCB cb = new ProductCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<Product> productList = productBhv.selectList(cb); + * final ConditionBeanSetupper<ProductImageCB> cbSetupper = new ConditionBeanSetupper<ProductImageCB>() { + * public void setup(ProductImageCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * productBhv.loadProductImageList(productList, new LoadRefererOption<ProductImageCB, ProductImage>(cbSetupper)); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setProductId_InScope(pkList); + * cb.query().addOrderBy_ProductId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param productList Entity list of product. (NotNull) + * @param loadRefererOption Load-referer option. (NotNull) + */ + public void loadProductImageList(java.util.List<Product> productList, jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<ProductImageCB, ProductImage> loadRefererOption) { + assertObjectNotNull("productList<Product>", productList); + assertObjectNotNull("loadRefererOption<ProductImage, ProductImageCB>", loadRefererOption); + if (productList.isEmpty()) { + return; + } + + final java.util.Map<java.math.BigDecimal, Product> pkMyEntityMap = new java.util.LinkedHashMap<java.math.BigDecimal, Product>(); + final java.util.List<java.math.BigDecimal> pkList = new java.util.ArrayList<java.math.BigDecimal>(); + for (Product product : productList) { + pkList.add(product.getProductId()); + pkMyEntityMap.put((java.math.BigDecimal)toLowerCaseIfString(product.getProductId()), product); + } + final ProductImageBhv refererBhv = getDaoSelector().getBehavior(ProductImageBhv.class); + final ProductImageCB cb = loadRefererOption.getRefererConditionBean() != null ? loadRefererOption.getRefererConditionBean() : refererBhv.newMyConditionBean(); + cb.query().setProductId_InScope(pkList); + loadRefererOption.delegateKeyConditionExchangingFirstWhereClauseForLastOne(cb); + if (!loadRefererOption.isStopOrderByKey()) { + cb.query().addOrderBy_ProductId_Asc(); + cb.getSqlComponentOfOrderByClause().exchangeFirstOrderByElementForLastOne(); + } + loadRefererOption.delegateConditionBeanSettingUp(cb); + final java.util.List<ProductImage> reffererList = refererBhv.selectList(cb); + loadRefererOption.delegateEntitySettingUp(reffererList); + + final java.util.Map<java.math.BigDecimal, java.util.List<ProductImage>> pkReffererListMap = new java.util.LinkedHashMap<java.math.BigDecimal, java.util.List<ProductImage>>(); + for (ProductImage reffererEntity : reffererList) { + if (!pkReffererListMap.containsKey(toLowerCaseIfString(reffererEntity.getProductId()))) { + pkReffererListMap.put((java.math.BigDecimal)toLowerCaseIfString(reffererEntity.getProductId()), new java.util.ArrayList<ProductImage>()); + } + (pkReffererListMap.get(toLowerCaseIfString(reffererEntity.getProductId()))).add(reffererEntity); + + // for Reverse Reference. + final Product myEntity = pkMyEntityMap.get(toLowerCaseIfString(reffererEntity.getProductId())); + reffererEntity.setProduct(myEntity); + } + + for (Product product : productList) { + if (pkReffererListMap.containsKey(toLowerCaseIfString(product.getProductId()))) { + product.setProductImageList((java.util.List<ProductImage>)pkReffererListMap.get(toLowerCaseIfString(product.getProductId()))); + } else { + product.setProductImageList(new java.util.ArrayList<ProductImage>()); + } + } + } + + // /* * * * * * * * * * * * * * * * * * * * * * * // RefererTable = [PRODUCT_NOTIFICATION] // RefererProperty = [productNotificationList] // * * * * * * * * */ @@ -2121,7 +2267,7 @@ } return new java.util.ArrayList<TaxClass>(foreignSet); } - + // =================================================================================== // Basic Entity Update // =================== @@ -2287,13 +2433,15 @@ final java.util.Set<String> names = sourceMyEntity.getModifiedPropertyNames(); if (names.contains("productId")) { destinationMyEntity.setProductId(sourceMyEntity.getProductId()); } + if (names.contains("code")) { destinationMyEntity.setCode(sourceMyEntity.getCode()); } if (names.contains("model")) { destinationMyEntity.setModel(sourceMyEntity.getModel()); } if (names.contains("quantity")) { destinationMyEntity.setQuantity(sourceMyEntity.getQuantity()); } if (names.contains("price")) { destinationMyEntity.setPrice(sourceMyEntity.getPrice()); } if (names.contains("weight")) { destinationMyEntity.setWeight(sourceMyEntity.getWeight()); } - if (names.contains("image")) { destinationMyEntity.setImage(sourceMyEntity.getImage()); } - if (names.contains("thumbnail")) { destinationMyEntity.setThumbnail(sourceMyEntity.getThumbnail()); } + if (names.contains("size")) { destinationMyEntity.setSize(sourceMyEntity.getSize()); } if (names.contains("ordered")) { destinationMyEntity.setOrdered(sourceMyEntity.getOrdered()); } + if (names.contains("reviewed")) { destinationMyEntity.setReviewed(sourceMyEntity.getReviewed()); } + if (names.contains("rating")) { destinationMyEntity.setRating(sourceMyEntity.getRating()); } if (names.contains("status")) { destinationMyEntity.setStatus(sourceMyEntity.getStatus()); } if (names.contains("dateAdded")) { destinationMyEntity.setDateAdded(sourceMyEntity.getDateAdded()); } if (names.contains("lastModified")) { destinationMyEntity.setLastModified(sourceMyEntity.getLastModified()); } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductDescriptionBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductDescriptionBhv.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductDescriptionBhv.java 2007-09-28 04:46:15 UTC (rev 590) @@ -28,7 +28,7 @@ * PRODUCT_ID, LANGUAGE_ID * * [column-property] - * PRODUCT_ID, LANGUAGE_ID, NAME, DESCRIPTION, URL, VIEWED + * PRODUCT_ID, LANGUAGE_ID, NAME, TITLE, DESCRIPTION, URL, VIEWED * * [foreign-property] * language, product @@ -677,6 +677,7 @@ if (names.contains("productId")) { destinationMyEntity.setProductId(sourceMyEntity.getProductId()); } if (names.contains("languageId")) { destinationMyEntity.setLanguageId(sourceMyEntity.getLanguageId()); } if (names.contains("name")) { destinationMyEntity.setName(sourceMyEntity.getName()); } + if (names.contains("title")) { destinationMyEntity.setTitle(sourceMyEntity.getTitle()); } if (names.contains("description")) { destinationMyEntity.setDescription(sourceMyEntity.getDescription()); } if (names.contains("url")) { destinationMyEntity.setUrl(sourceMyEntity.getUrl()); } if (names.contains("viewed")) { destinationMyEntity.setViewed(sourceMyEntity.getViewed()); } Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductImageBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductImageBhv.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsProductImageBhv.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,795 @@ +package jp.sf.pal.pompei.bsbhv; + + +import jp.sf.pal.pompei.allcommon.*; +import jp.sf.pal.pompei.allcommon.bhv.setup.ConditionBeanSetupper; +import jp.sf.pal.pompei.allcommon.bhv.setup.ValueLabelSetupper; +import jp.sf.pal.pompei.allcommon.dbmeta.hierarchy.HierarchyArranger; +import jp.sf.pal.pompei.allcommon.dbmeta.hierarchy.HierarchyBasicRequest; +import jp.sf.pal.pompei.allcommon.dbmeta.hierarchy.HierarchyRequest; +import jp.sf.pal.pompei.allcommon.cbean.ConditionBean; +import jp.sf.pal.pompei.allcommon.cbean.ListResultBean; +import jp.sf.pal.pompei.allcommon.cbean.PagingBean; +import jp.sf.pal.pompei.allcommon.cbean.PagingResultBean; +import jp.sf.pal.pompei.allcommon.dbmeta.DBMeta; + +import jp.sf.pal.pompei.exdao.*; +import jp.sf.pal.pompei.exentity.*; +import jp.sf.pal.pompei.bsentity.dbmeta.*; +import jp.sf.pal.pompei.cbean.*; + + + +/** + * The behavior of PRODUCT_IMAGE. + * + * <pre> + * [primary-key] + * PRODUCT_IMAGE_ID + * + * [column-property] + * PRODUCT_IMAGE_ID, PRODUCT_ID, IMAGE_NAME, TYPE + * + * [foreign-property] + * product + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsProductImageBhv extends jp.sf.pal.pompei.allcommon.bhv.AbstractBehaviorWritable { + + // =================================================================================== + // Attribute + // ========= + /** Dao instance. */ + protected ProductImageDao _dao; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsProductImageBhv() { + } + + // =================================================================================== + // Table name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return "PRODUCT_IMAGE"; + } + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return ProductImageDbm.getInstance(); + } + + /** + * Get my dbmeta. + * + * @return DBMeta. (NotNull) + */ + public ProductImageDbm getMyDBMeta() { + return ProductImageDbm.getInstance(); + } + + // =================================================================================== + // Dao Accessor + // ============ + /** + * Get my dao. + * + * @return My dao. + */ + public ProductImageDao getMyDao() { + return _dao; + } + + /** + * Set my dao. + * + * @param dao My dao. (NotNull) + */ + public void setMyDao(ProductImageDao dao) { + assertObjectNotNull("dao", dao); + _dao = dao; + } + + /** + * The implementation. + * + * @return Dao-readable. (NotNull) + */ + public DaoReadable getDaoReadable() { + return getMyDao(); + } + + /** + * The implementation. + * + * @return Dao-writable. (NotNull) + */ + public DaoWritable getDaoWritable() { + return getMyDao(); + } + + // =================================================================================== + // New Instance + // ============ + /** + * New entity. + * + * @return Entity. (NotNull) + */ + public Entity newEntity() { + return newMyEntity(); + } + + /** + * New condition-bean. + * + * @return Condition-bean. (NotNull) + */ + public ConditionBean newConditionBean() { + return newMyConditionBean(); + } + + /** + * New my entity. + * + * @return My entity. (NotNull) + */ + public ProductImage newMyEntity() { + return new ProductImage(); + } + + /** + * New my condition-bean. + * + * @return My condition-bean. (NotNull) + */ + public ProductImageCB newMyConditionBean() { + return new ProductImageCB(); + } + + // =================================================================================== + // Delegate Method + // =============== + // ----------------------------------------------------- + // Select + // ------ + /** + * Get count as all. {delegate method, internal for interceptor} + * + * @return All count. (NotNull) + */ + public int delegateGetCountAll() { + return getMyDao().getCountAll(); + } + + /** + * Get list as all. {delegate method, internal for interceptor} + * + * @return All list. (NotNull) + */ + public java.util.List<ProductImage> delegateGetListAll() { + return getMyDao().getListAll(); + } + + // + // Get entity. {delegate method, internal for interceptor} + // + // @param Primary-keys (NotNull) + // @return Entity. (NotNull) + // + public ProductImage delegateGetEntity(java.math.BigDecimal productImageId) { + return getMyDao().getEntity(productImageId); + } + + /** + * Select count by condition-bean. {delegate method, internal for interceptor} + * + * @param cb Condition-bean. (NotNull) + * @return Selected count. (NotNull) + */ + public int delegateSelectCount(ProductImageCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().selectCount(cb); + } + + /** + * Select entity by condition-bean. {delegate method, internal for interceptor} + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. If the select result is zero, it returns null. (Nullable) + */ + public ProductImage delegateSelectEntity(ProductImageCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().selectEntity(cb); + } + + /** + * Select list by condition-bean. {delegate method, internal for interceptor} + * + * @param cb Condition-bean. (NotNull) + * @return Selected list. If the select result is zero, it returns empty list. (NotNull) + */ + public java.util.List<ProductImage> delegateSelectList(ProductImageCB cb) { + assertConditionBeanNotNull(cb); + return getMyDao().selectList(cb); + } + + + // ----------------------------------------------------- + // Update + // ------ + /** + * Insert one entity. {delegate method, internal for interceptor} + * + * @param entity Entity. (NotNull) + * @return Inserted count. + */ + public int delegateInsert(ProductImage entity) { + assertEntityNotNull(entity);// If this table use identity, the entity does not have primary-key. + filterEntityOfInsert(entity); + assertEntityOfInsert(entity); + return getMyDao().insert(entity); + } + + /** + * Update one entity. {modified only, delegate method} + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int delegateUpdate(ProductImage entity) { + assertEntityNotNullAndHasPrimaryKeyValue(entity); + filterEntityOfUpdate(entity); + assertEntityOfUpdate(entity); + return getMyDao().updateModifiedOnly(entity); + } + + /** + * Delete one entity. {delegate method, internal for interceptor} + * + * @param entity Entity. (NotNull) + * @return Deleted count. + */ + public int delegateDelete(ProductImage entity) { + assertEntityNotNullAndHasPrimaryKeyValue(entity); + filterEntityOfDelete(entity); + assertEntityOfDelete(entity); + return getMyDao().delete(entity); + } + + /** + * Insert several entities. {delegate method, internal for interceptor} + * + * @param entityList Entity-list. (NotNull & NotEmpty) + * @return Inserted count. + */ + public int delegateInsertList(java.util.List<ProductImage> entityList) { + assertListNotNullAndNotEmpty(entityList); + return getMyDao().insertList(entityList); + } + + /** + * Update several entities. {delegate method, internal for interceptor} + * + * @param entityList Entity-list. (NotNull & NotEmpty) + * @return Updated count. + */ + public int delegateUpdateList(java.util.List<ProductImage> entityList) { + assertListNotNullAndNotEmpty(entityList); + return getMyDao().updateList(entityList); + } + + /** + * Delete several entities. {delegate method, internal for interceptor} + * + * @param entityList Entity-list. (NotNull & NotEmpty) + * @return Deleted count. + */ + public int delegateDeleteList(java.util.List<ProductImage> entityList) { + assertListNotNullAndNotEmpty(entityList); + return getMyDao().deleteList(entityList); + } + + // =================================================================================== + // Basic Select Count + // ================== + /** + * Select count by condition-bean. + * <pre> + * If the argument 'condition-bean' is effective about fetch-scope, + * this method invoke select count ignoring the fetch-scope. + * </pre> + * @param cb Condition-bean. This condition-bean should not be set up about fetch-scope. (NotNull) + * @return Selected count. + */ + public int selectCount(ProductImageCB cb) { + assertConditionBeanNotNull(cb); + return delegateSelectCount(cb); + } + + // =================================================================================== + // Basic Select Entity + // =================== + /** + * Select entity by condition-bean. + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. (Nullalble) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public ProductImage selectEntity(ProductImageCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<ProductImage> ls = null; + try { + ls = selectList(cb); + } catch (jp.sf.pal.pompei.allcommon.exception.DangerousResultSizeException e) { + throwRecordHasOverlappedException("{Over safetyMaxResultSize '1'}", cb, e); + } + if (ls.isEmpty()) { + return null; + } + assertRecordHasBeenSelectedAsOne(ls, cb); + return (ProductImage)ls.get(0); + } + + /** + * Select entity by condition-bean with deleted check. + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public ProductImage selectEntityWithDeletedCheck(ProductImageCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<ProductImage> ls = null; + try { + ls = selectList(cb); + } catch (jp.sf.pal.pompei.allcommon.exception.DangerousResultSizeException e) { + throwRecordHasOverlappedException("{Over safetyMaxResultSize '1'}", cb, e); + } + assertRecordHasNotBeenDeleted(ls, cb); + assertRecordHasBeenSelectedAsOne(ls, cb); + return (ProductImage)ls.get(0); + } + + /* + * Select entity with deleted check. {by primary-key} + * + * @param primaryKey + * @return Selected entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public ProductImage selectByPKValueWithDeletedCheck(java.math.BigDecimal productImageId) { + ProductImage entity = new ProductImage(); + entity.setProductImageId(productImageId); + final ProductImageCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(entity)); + return selectEntityWithDeletedCheck(cb); + } + + // =================================================================================== + // Basic Select List + // ================= + /** + * Select list as result-bean. + * + * @param cb Condition-bean. (NotNull) + * @return Selected list-result-bean. (NotNull) + */ + public ListResultBean<ProductImage> selectList(ProductImageCB cb) { + assertConditionBeanNotNull(cb); + return new ResultBeanBuilder<ProductImage>(this).buildListResultBean(cb, delegateSelectList(cb)); + } + + /** + * Select page as result-bean. + * + * @param cb Condition-bean. (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<ProductImage> selectPage(final ProductImageCB cb) { + assertConditionBeanNotNull(cb); + return selectPage(cb, new SelectPageSimpleInvoker<ProductImage>(this)); + } + + /** + * Select page. + * + * @param cb Condition-bean. (NotNull) + * @param invoker Select-page-invoker (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<ProductImage> selectPage(final ProductImageCB cb, SelectPageInvoker<ProductImage> invoker) { + assertConditionBeanNotNull(cb); + final SelectPageCallback<ProductImage> pageCallback = new SelectPageCallback<ProductImage>() { + public PagingBean getPagingBean() { return cb; } + public int selectCountIgnoreFetchScope() { + return selectCount(cb); + } + public java.util.List<ProductImage> selectListWithFetchScope() { + return selectList(cb); + } + }; + return invoker.invokeSelectPage(pageCallback); + } + + // =================================================================================== + // Various Select + // ============== + /** + * Select value-label list. + * + * @param cb Condition-bean. (NotNull) + * @param valueLabelSetupper Value-label-setupper. (NotNull) + * @return Value-label list. (NotNull) + */ + public java.util.List<java.util.Map<String, Object>> selectValueLabelList(ProductImageCB cb, ValueLabelSetupper<ProductImage> valueLabelSetupper) { + return createValueLabelList(selectList(cb), valueLabelSetupper); + } + + // =================================================================================== + // Load Referer + // ============ + + // =================================================================================== + // Pull Out Foreign + // ================ + + /** + * Pull out the list of foreign table 'Product'. + * + * @param productImageList The list of productImage. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public java.util.List<Product> pulloutProduct(java.util.List<ProductImage> productImageList) { + assertObjectNotNull("productImageList", productImageList); + final java.util.Set<Product> foreignSet = new java.util.LinkedHashSet<Product>(); + for (java.util.Iterator ite = productImageList.iterator(); ite.hasNext(); ) { + final ProductImage productImage = (ProductImage)ite.next(); + final Product foreignEntity = productImage.getProduct(); + if (foreignEntity == null || foreignSet.contains(foreignEntity)) { + continue; + } + foreignSet.add(foreignEntity); + } + return new java.util.ArrayList<Product>(foreignSet); + } + + // =================================================================================== + // Basic Entity Update + // =================== + /** + * Insert. + * + * @param productImage Entity. (NotNull) + */ + public void insert(ProductImage productImage) { + assertEntityNotNull(productImage); + delegateInsert(productImage); + } + + protected void doCreate(Entity productImage) { + insert((ProductImage)productImage); + } + + /** + * Update. {update: modified only} + * <pre> + * If it updates count zero, throws exception. + * If concurrency control of this table is valid, this update have it. + * So then the entity of argument should have the value of concurrency column. + * </pre> + * @param productImage Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void update(ProductImage productImage) { + assertEntityNotNull(productImage); + final int updatedCount = delegateUpdate(productImage); + if (updatedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(productImage.toString()); + } else if (updatedCount > 1) { + String msg = "updatedCount=" + updatedCount + ": " + productImage.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doModify(Entity entity) { + update((ProductImage)entity); + } + + + protected void doModifyNonstrict(Entity entity) { + update((ProductImage)entity); + } + + /** + * Update after select. {update: modified only} + * <pre> + * The merit of this method is only Deleted-Check before updating! + * If you don't want the merit, please use update(). + * And the demerit of this method is as follows: + * : If the entity does not have the optimistic lock value, for example version-no and timestamp, + * : it does not throw optimistic lock exception. It can updates. + * </pre> + * @param productImage Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void updateAfterSelect(ProductImage productImage) { + assertEntityNotNullAndHasPrimaryKeyValue(productImage); + final ProductImageCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(productImage)); + final ProductImage currentEntity = selectEntityWithDeletedCheck(cb); + mergeEntity(productImage, currentEntity); + update(currentEntity); + } + + protected void doModifyAfterSelect(Entity entity) { + updateAfterSelect((ProductImage)entity); + } + + /** + * Insert or update. {update: modified only} + * + * @param productImage Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdate(ProductImage productImage) { + assertEntityNotNull(productImage); + if (!productImage.hasPrimaryKeyValue()) { + insert(productImage); + } else { + RuntimeException exception = null; + try { + update(productImage); + } catch (org.seasar.dao.NotSingleRowUpdatedRuntimeException e) { + if (e.getRows() > 1) { + throw e; + } + exception = e; + } catch (jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException e) { + exception = e; + } + if (exception != null) { + final ProductImageCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(productImage)); + if (selectCount(cb) == 0) { + insert(productImage); + } else { + throw exception; + } + } + } + } + + protected void doCreateOrUpdate(Entity productImage) { + insertOrUpdate((ProductImage)productImage); + } + + + protected void doCreateOrUpdateNonstrict(Entity entity) { + insertOrUpdate((ProductImage)entity); + } + + /** + * Insert or update after select. {update: modified only} + * <pre> + * The merit of this method is only Deleted-Check before updating! + * If you don't want the merit, please use update(). + * And the demerit of this method is as follows: + * : If the entity does not have the optimistic lock value, for example version-no and timestamp, + * : it does not throw optimistic lock exception. It can updates. + * </pre> + * @param productImage Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdateAfterSelect(ProductImage productImage) { + assertEntityNotNull(productImage); + if (!productImage.hasPrimaryKeyValue()) { + insert(productImage); + return; + } + ProductImage currentEntity = null; + try { + final ProductImageCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(productImage)); + currentEntity = selectEntityWithDeletedCheck(cb); + } catch (jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException e) { + insert(productImage); + return; + } + assertEntityNotNullAndHasPrimaryKeyValue(productImage); + mergeEntity(productImage, currentEntity); + update(currentEntity); + } + + protected void doCreateOrModifyAfterSelect(Entity entity) { + insertOrUpdateAfterSelect((ProductImage)entity); + } + + /** + * The implementation. + * + * @param sourceEntity Source entity. (NotNull) + * @param destinationEntity Destination entity. (NotNull) + */ + protected void mergeEntity(Entity sourceEntity, Entity destinationEntity) { + assertEntityNotNull(sourceEntity); + assertEntityNotNull(destinationEntity); + final ProductImage sourceMyEntity = (ProductImage)sourceEntity; + final ProductImage destinationMyEntity = (ProductImage)destinationEntity; + destinationMyEntity.clearModifiedPropertyNames(); + final java.util.Set<String> names = sourceMyEntity.getModifiedPropertyNames(); + + if (names.contains("productImageId")) { destinationMyEntity.setProductImageId(sourceMyEntity.getProductImageId()); } + if (names.contains("productId")) { destinationMyEntity.setProductId(sourceMyEntity.getProductId()); } + if (names.contains("imageName")) { destinationMyEntity.setImageName(sourceMyEntity.getImageName()); } + if (names.contains("type")) { destinationMyEntity.setType(sourceMyEntity.getType()); } + + } + + /** + * Delete. + * + * @param productImage Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void delete(ProductImage productImage) { + assertEntityNotNull(productImage); + final int deletedCount = delegateDelete(productImage); + if (deletedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(productImage.toString()); + } else if (deletedCount > 1) { + String msg = "deletedCount=" + deletedCount + ": " + productImage.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doRemove(Entity productImage) { + delete((ProductImage)productImage); + } + + /** + * Delete after select. + * <pre> + * The merit of this method is only Deleted-Check before deleting! + * If you don't want the merit, please use update(). + * And the demerit of this method is as follows: + * : If the entity does not have the optimistic lock value, for example version-no and timestamp, + * : it does not throw optimistic lock exception. It can updates. + * </pre> + * @param productImage Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void deleteAfterSelect(ProductImage productImage) { + assertEntityNotNullAndHasPrimaryKeyValue(productImage); + final ProductImageCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(productImage)); + selectEntityWithDeletedCheck(cb); + delete(productImage); + } + + protected void doRemoveAfterSelect(Entity entity) { + deleteAfterSelect((ProductImage)entity); + } + + // =================================================================================== + // Basic Batch Update + // ================== + /** + * Insert list. + * + * @param productImageList Entity-list. (NotNull & NotEmpty) + * @return Inserted count. + */ + public int insertList(java.util.List<ProductImage> productImageList) { + assertListNotNullAndNotEmpty(productImageList); + return delegateInsertList(productImageList); + } + + /** + * Update list. + * + * @param productImageList Entity-list. (NotNull & NotEmpty) + * @return Updated count. + */ + public int updateList(java.util.List<ProductImage> productImageList) { + assertListNotNullAndNotEmpty(productImageList); + return delegateUpdateList(productImageList); + } + + /** + * Delete list. + * + * @param productImageList Entity-list. (NotNull & NotEmpty) + * @return Deleted count. + */ + public int deleteList(java.util.List<ProductImage> productImageList) { + assertListNotNullAndNotEmpty(productImageList); + return delegateDeleteList(productImageList); + } + + // =================================================================================== + // Various Insert + // ============== + + // =================================================================================== + // Hierarchy + // ========= + /** + * Create the basic request of hierarchy of ProductImage.. + * + * @param sourceList The list of source. (NotNull) + * @param <SOURCE> The type of source. + * @return Hierarchy request of ProductImage. (NotNull) + */ + public <SOURCE> HierarchyBasicRequest<ProductImage, ProductImageDbm.ProductImageRelationTrace> createHierarchyBasicRequest(java.util.List<SOURCE> sourceList) { + final HierarchyBasicRequest<ProductImage, ProductImageDbm.ProductImageRelationTrace> request = new HierarchyBasicRequest<ProductImage, ProductImageDbm.ProductImageRelationTrace>(ProductImage.class); + request.registerSourceList(sourceList); + return request; + } + + /** + * Arrange hierarchy. + * + * @param request Hierarchy request of ProductImage. (NotNull) + * @return The list of ProductImage. (NotNull) + */ + public java.util.List<ProductImage> arrangeHierarchy(HierarchyRequest<ProductImage> request) { + return new HierarchyArranger<ProductImage>().arrangeHierarchy(request); + } + + // =================================================================================== + // CBSetupper + // ========== + /** + * The interface of condition-bean setupper. + */ + public static interface CBSetupper extends ConditionBeanSetupper<ProductImageCB> { + + /** + * Set up condition. + * + * @param cb Condition-bean. (NotNull) + */ + public void setup(ProductImageCB cb); + } +} Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrderNotificationDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrderNotificationDao.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrderNotificationDao.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,186 @@ +package jp.sf.pal.pompei.bsdao; + + +import jp.sf.pal.pompei.exentity.OrderNotification; + +/** + * The dao interface of ORDER_NOTIFICATION. + * + * <pre> + * [primary-key] + * ORDER_NOTIFICATION_ID + * + * [column-property] + * ORDER_NOTIFICATION_ID, ORDER_STATUS_ID, EMAIL_ADDRESS, TEMPLATE_NAME, STATUS + * + * [foreign-property] + * orderStatus + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public interface BsOrderNotificationDao extends jp.sf.pal.pompei.allcommon.DaoWritable { + + /** BEAN-Annotation. */ + public Class BEAN = jp.sf.pal.pompei.exentity.OrderNotification.class; + + /** SQL-Annotation for getCountAll(). */ + public static final String getCountAll_SQL = "select count(*) from ORDER_NOTIFICATION"; + + /** + * Get count as all. + * + * @return All count. + */ + public int getCountAll(); + + /** SQL-Annotation for getListAll(). */ + public static final String getListAll_SQL = "select ORDER_NOTIFICATION_ID, ORDER_STATUS_ID, EMAIL_ADDRESS, TEMPLATE_NAME, STATUS from ORDER_NOTIFICATION"; + + /** + * Get list as all. + * + * @return All list. (NotNull) + */ + public java.util.List<OrderNotification> getListAll(); + + /** SQL-Annotation for getEntity(). */ + public static final String getEntity_SQL = "select ORDER_NOTIFICATION_ID, ORDER_STATUS_ID, EMAIL_ADDRESS, TEMPLATE_NAME, STATUS from ORDER_NOTIFICATION where ORDER_NOTIFICATION.ORDER_NOTIFICATION_ID = /*orderNotificationId*/null"; + + /** Args-Annotation for getEntity(). */ + public static final String getEntity_ARGS = "orderNotificationId"; + + /* (non-javadoc) + * Get entity by primary key. + * + * @param primaryKey Primary key. (NotNull) + */ + public OrderNotification getEntity(java.math.BigDecimal orderNotificationId); + + /** + * Select count by condition-bean. + * <pre> + * Ignore fetchFirst() and fetchScope() and fetchPage(). + * But the fetch status of the condition-bean remains as it is. + * This select method generates SQL based on condition-bean. + * + * Example) + * final OrderNotificationCB cb = new OrderNotificationCB(); + * cb.query().setXxx_GreaterEqual(new BigDecimal(14)); + * final int count = dao.selectCount(cb); + * </pre> + * + * @param cb Condition-bean. (NotNull) + * @return Selected count. (NotNull) + */ + public int selectCount(jp.sf.pal.pompei.cbean.OrderNotificationCB cb); + + /** + * Select entity 'OrderNotification' by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final OrderNotificationCB cb = new OrderNotificationCB(); + * cb.query().setXxxCode_Equal("abc");// It is assumed that this is the primary key... + * cb.lockForUpdate(); + * final OrderNotification entity = dao.selectEntity(cb); + * </pre> + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. If the select result is zero, it returns null. (Nullable) + */ + public OrderNotification selectEntity(jp.sf.pal.pompei.cbean.OrderNotificationCB cb); + + /** + * Select list by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final OrderNotificationCB cb = new OrderNotificationCB(); + * cb.setupSelect_Xxx(); // Including the foreign table in select clause + * cb.query().setXxxName_PrefixSearch("abc"); + * cb.query().setXxxStartDate_IsNotNull(); + * cb.addOrderBy_PK_Asc().fetchFirst(20); + * final List resultList = dao.selectList(cb); + * </pre> + * + * @param cb Condition-bean. (NotNull) + * @return Selected list. If the select result is zero, it returns empty list. (NotNull) + */ + public java.util.List<OrderNotification> selectList(jp.sf.pal.pompei.cbean.OrderNotificationCB cb); + + + /** + * Insert one entity. + * + * @param entity Entity. (NotNull) + * @return Inserted count. + */ + public int insert(OrderNotification entity); + + /** + * Update one entity. + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int update(OrderNotification entity); + + /** + * Update one entity. (modified only) + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int updateModifiedOnly(OrderNotification entity); + + /** + * Delete one entity. + * + * @param entity Entity. (NotNull) + * @return Deleted count. + */ + public int delete(OrderNotification entity); + + /** + * Insert several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Inserted count. + */ + public int insertList(java.util.List<OrderNotification> entityList); + + /** + * Update several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Updated count. + */ + public int updateList(java.util.List<OrderNotification> entityList); + + /** + * Delete several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Deleted count. + */ + public int deleteList(java.util.List<OrderNotification> entityList); +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrderNotificationDao.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrderStatusDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrderStatusDao.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrderStatusDao.java 2007-09-28 04:46:15 UTC (rev 590) @@ -11,13 +11,13 @@ * ORDER_STATUS_ID * * [column-property] - * ORDER_STATUS_ID, NOTIFICATION_TEMPLATE, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * ORDER_STATUS_ID, SORT_ORDER, DATE_ADDED, LAST_MODIFIED * * [foreign-property] * * * [refferer-property] - * orderFormList, orderStatusDescriptionList, orderStatusHistoryList + * orderFormList, orderNotificationList, orderStatusDescriptionList, orderStatusHistoryList * * [sequence] * @@ -51,7 +51,7 @@ public int getCountAll(); /** SQL-Annotation for getListAll(). */ - public static final String getListAll_SQL = "select ORDER_STATUS_ID, NOTIFICATION_TEMPLATE, SORT_ORDER, DATE_ADDED, LAST_MODIFIED from ORDER_STATUS"; + public static final String getListAll_SQL = "select ORDER_STATUS_ID, SORT_ORDER, DATE_ADDED, LAST_MODIFIED from ORDER_STATUS"; /** * Get list as all. @@ -61,7 +61,7 @@ public java.util.List<OrderStatus> getListAll(); /** SQL-Annotation for getEntity(). */ - public static final String getEntity_SQL = "select ORDER_STATUS_ID, NOTIFICATION_TEMPLATE, SORT_ORDER, DATE_ADDED, LAST_MODIFIED from ORDER_STATUS where ORDER_STATUS.ORDER_STATUS_ID = /*orderStatusId*/null"; + public static final String getEntity_SQL = "select ORDER_STATUS_ID, SORT_ORDER, DATE_ADDED, LAST_MODIFIED from ORDER_STATUS where ORDER_STATUS.ORDER_STATUS_ID = /*orderStatusId*/null"; /** Args-Annotation for getEntity(). */ public static final String getEntity_ARGS = "orderStatusId"; Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductDao.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductDao.java 2007-09-28 04:46:15 UTC (rev 590) @@ -11,13 +11,13 @@ * PRODUCT_ID * * [column-property] - * PRODUCT_ID, MODEL, QUANTITY, PRICE, WEIGHT, IMAGE, THUMBNAIL, ORDERED, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID + * PRODUCT_ID, CODE, MODEL, QUANTITY, PRICE, WEIGHT, SIZE, ORDERED, REVIEWED, RATING, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID * * [foreign-property] * manufacturer, taxClass * * [refferer-property] - * bargainList, customerBasketList, customerBasketAttributeList, orderProductList, orderProductAttributeList, orderProductDownloadList, productAttributeList, productDescriptionList, productNotificationList, productToCategoryList, reviewList + * bargainList, customerBasketList, customerBasketAttributeList, orderProductList, orderProductAttributeList, orderProductDownloadList, productAttributeList, productDescriptionList, productImageList, productNotificationList, productToCategoryList, reviewList * * [sequence] * @@ -51,7 +51,7 @@ public int getCountAll(); /** SQL-Annotation for getListAll(). */ - public static final String getListAll_SQL = "select PRODUCT_ID, MODEL, QUANTITY, PRICE, WEIGHT, IMAGE, THUMBNAIL, ORDERED, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID from PRODUCT"; + public static final String getListAll_SQL = "select PRODUCT_ID, CODE, MODEL, QUANTITY, PRICE, WEIGHT, SIZE, ORDERED, REVIEWED, RATING, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID from PRODUCT"; /** * Get list as all. @@ -61,7 +61,7 @@ public java.util.List<Product> getListAll(); /** SQL-Annotation for getEntity(). */ - public static final String getEntity_SQL = "select PRODUCT_ID, MODEL, QUANTITY, PRICE, WEIGHT, IMAGE, THUMBNAIL, ORDERED, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID from PRODUCT where PRODUCT.PRODUCT_ID = /*productId*/null"; + public static final String getEntity_SQL = "select PRODUCT_ID, CODE, MODEL, QUANTITY, PRICE, WEIGHT, SIZE, ORDERED, REVIEWED, RATING, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID from PRODUCT where PRODUCT.PRODUCT_ID = /*productId*/null"; /** Args-Annotation for getEntity(). */ public static final String getEntity_ARGS = "productId"; Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductDescriptionDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductDescriptionDao.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductDescriptionDao.java 2007-09-28 04:46:15 UTC (rev 590) @@ -11,7 +11,7 @@ * PRODUCT_ID, LANGUAGE_ID * * [column-property] - * PRODUCT_ID, LANGUAGE_ID, NAME, DESCRIPTION, URL, VIEWED + * PRODUCT_ID, LANGUAGE_ID, NAME, TITLE, DESCRIPTION, URL, VIEWED * * [foreign-property] * language, product @@ -51,7 +51,7 @@ public int getCountAll(); /** SQL-Annotation for getListAll(). */ - public static final String getListAll_SQL = "select PRODUCT_ID, LANGUAGE_ID, NAME, DESCRIPTION, URL, VIEWED from PRODUCT_DESCRIPTION"; + public static final String getListAll_SQL = "select PRODUCT_ID, LANGUAGE_ID, NAME, TITLE, DESCRIPTION, URL, VIEWED from PRODUCT_DESCRIPTION"; /** * Get list as all. @@ -61,7 +61,7 @@ public java.util.List<ProductDescription> getListAll(); /** SQL-Annotation for getEntity(). */ - public static final String getEntity_SQL = "select PRODUCT_ID, LANGUAGE_ID, NAME, DESCRIPTION, URL, VIEWED from PRODUCT_DESCRIPTION where PRODUCT_DESCRIPTION.PRODUCT_ID = /*productId*/null and PRODUCT_DESCRIPTION.LANGUAGE_ID = /*languageId*/null"; + public static final String getEntity_SQL = "select PRODUCT_ID, LANGUAGE_ID, NAME, TITLE, DESCRIPTION, URL, VIEWED from PRODUCT_DESCRIPTION where PRODUCT_DESCRIPTION.PRODUCT_ID = /*productId*/null and PRODUCT_DESCRIPTION.LANGUAGE_ID = /*languageId*/null"; /** Args-Annotation for getEntity(). */ public static final String getEntity_ARGS = "productId, languageId"; Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductImageDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductImageDao.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductImageDao.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,186 @@ +package jp.sf.pal.pompei.bsdao; + + +import jp.sf.pal.pompei.exentity.ProductImage; + +/** + * The dao interface of PRODUCT_IMAGE. + * + * <pre> + * [primary-key] + * PRODUCT_IMAGE_ID + * + * [column-property] + * PRODUCT_IMAGE_ID, PRODUCT_ID, IMAGE_NAME, TYPE + * + * [foreign-property] + * product + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public interface BsProductImageDao extends jp.sf.pal.pompei.allcommon.DaoWritable { + + /** BEAN-Annotation. */ + public Class BEAN = jp.sf.pal.pompei.exentity.ProductImage.class; + + /** SQL-Annotation for getCountAll(). */ + public static final String getCountAll_SQL = "select count(*) from PRODUCT_IMAGE"; + + /** + * Get count as all. + * + * @return All count. + */ + public int getCountAll(); + + /** SQL-Annotation for getListAll(). */ + public static final String getListAll_SQL = "select PRODUCT_IMAGE_ID, PRODUCT_ID, IMAGE_NAME, TYPE from PRODUCT_IMAGE"; + + /** + * Get list as all. + * + * @return All list. (NotNull) + */ + public java.util.List<ProductImage> getListAll(); + + /** SQL-Annotation for getEntity(). */ + public static final String getEntity_SQL = "select PRODUCT_IMAGE_ID, PRODUCT_ID, IMAGE_NAME, TYPE from PRODUCT_IMAGE where PRODUCT_IMAGE.PRODUCT_IMAGE_ID = /*productImageId*/null"; + + /** Args-Annotation for getEntity(). */ + public static final String getEntity_ARGS = "productImageId"; + + /* (non-javadoc) + * Get entity by primary key. + * + * @param primaryKey Primary key. (NotNull) + */ + public ProductImage getEntity(java.math.BigDecimal productImageId); + + /** + * Select count by condition-bean. + * <pre> + * Ignore fetchFirst() and fetchScope() and fetchPage(). + * But the fetch status of the condition-bean remains as it is. + * This select method generates SQL based on condition-bean. + * + * Example) + * final ProductImageCB cb = new ProductImageCB(); + * cb.query().setXxx_GreaterEqual(new BigDecimal(14)); + * final int count = dao.selectCount(cb); + * </pre> + * + * @param cb Condition-bean. (NotNull) + * @return Selected count. (NotNull) + */ + public int selectCount(jp.sf.pal.pompei.cbean.ProductImageCB cb); + + /** + * Select entity 'ProductImage' by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final ProductImageCB cb = new ProductImageCB(); + * cb.query().setXxxCode_Equal("abc");// It is assumed that this is the primary key... + * cb.lockForUpdate(); + * final ProductImage entity = dao.selectEntity(cb); + * </pre> + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. If the select result is zero, it returns null. (Nullable) + */ + public ProductImage selectEntity(jp.sf.pal.pompei.cbean.ProductImageCB cb); + + /** + * Select list by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final ProductImageCB cb = new ProductImageCB(); + * cb.setupSelect_Xxx(); // Including the foreign table in select clause + * cb.query().setXxxName_PrefixSearch("abc"); + * cb.query().setXxxStartDate_IsNotNull(); + * cb.addOrderBy_PK_Asc().fetchFirst(20); + * final List resultList = dao.selectList(cb); + * </pre> + * + * @param cb Condition-bean. (NotNull) + * @return Selected list. If the select result is zero, it returns empty list. (NotNull) + */ + public java.util.List<ProductImage> selectList(jp.sf.pal.pompei.cbean.ProductImageCB cb); + + + /** + * Insert one entity. + * + * @param entity Entity. (NotNull) + * @return Inserted count. + */ + public int insert(ProductImage entity); + + /** + * Update one entity. + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int update(ProductImage entity); + + /** + * Update one entity. (modified only) + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int updateModifiedOnly(ProductImage entity); + + /** + * Delete one entity. + * + * @param entity Entity. (NotNull) + * @return Deleted count. + */ + public int delete(ProductImage entity); + + /** + * Insert several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Inserted count. + */ + public int insertList(java.util.List<ProductImage> entityList); + + /** + * Update several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Updated count. + */ + public int updateList(java.util.List<ProductImage> entityList); + + /** + * Delete several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Deleted count. + */ + public int deleteList(java.util.List<ProductImage> entityList); +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsProductImageDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrderNotification.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrderNotification.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrderNotification.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,437 @@ +package jp.sf.pal.pompei.bsentity; + + + +import jp.sf.pal.pompei.allcommon.Entity; +import jp.sf.pal.pompei.allcommon.dbmeta.DBMeta; +import jp.sf.pal.pompei.allcommon.dbmeta.DBMetaInstanceHandler; + +/** + * The entity of ORDER_NOTIFICATION(TABLE). <br /> + * + * <pre> + * [primary-key] + * ORDER_NOTIFICATION_ID + * + * [column-property] + * ORDER_NOTIFICATION_ID, ORDER_STATUS_ID, EMAIL_ADDRESS, TEMPLATE_NAME, STATUS + * + * [foreign-property] + * orderStatus + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsOrderNotification implements Entity, java.io.Serializable { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; + + /** TABLE-Annotation for S2Dao. The value is ORDER_NOTIFICATION. */ + public static final String TABLE = "ORDER_NOTIFICATION"; + + + // =================================================================================== + // Attribute + // ========= + /** Entity modified properties. (for S2Dao) */ + protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties(); + + /** The value of orderNotificationId. PK : INTEGER : NotNull */ + protected java.math.BigDecimal _orderNotificationId; + + /** The value of orderStatusId. INTEGER : NotNull : FK to ORDER_STATUS */ + protected java.math.BigDecimal _orderStatusId; + + /** The value of emailAddress. VARCHAR(128) */ + protected String _emailAddress; + + /** The value of templateName. VARCHAR(32) : NotNull */ + protected String _templateName; + + /** The value of status. INTEGER : NotNull */ + protected java.math.BigDecimal _status; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsOrderNotification() { + } + + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return DBMetaInstanceHandler.findDBMeta(getTableDbName()); + } + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name of ORDER_NOTIFICATION(TABLE). (NotNull) + */ + public String getTableDbName() { + return "ORDER_NOTIFICATION"; + } + + /** + * The implementation. + * + * @return Table prop-name(JavaBeansRule) of ORDER_NOTIFICATION(TABLE). (NotNull) + */ + public String getTablePropName() { + return "orderNotification"; + } + + /** + * The implementation. + * + * @return Table cap-prop-name of ORDER_NOTIFICATION(TABLE). (NotNull) + */ + public String getTableCapPropName() { + return "OrderNotification"; + } + + /** + * The implementation. + * + * @return Table uncap-prop-name of ORDER_NOTIFICATION(TABLE). (NotNull) + */ + public String getTableUncapPropName() { + return "orderNotification"; + } + + // =================================================================================== + // Accessor + // ======== + + /** Column Annotation for S2Dao. PK : INTEGER : NotNull */ + public static final String orderNotificationId_COLUMN = "ORDER_NOTIFICATION_ID"; + + /** + * Get the value of orderNotificationId. <br /> + * {PK : INTEGER : NotNull} + * + * @return The value of orderNotificationId. (Nullable) + */ + public java.math.BigDecimal getOrderNotificationId() { + return _orderNotificationId; + } + + /** + * Set the value of orderNotificationId. <br /> + * {PK : INTEGER : NotNull} + * + * @param orderNotificationId The value of orderNotificationId. (Nullable) + */ + public void setOrderNotificationId(java.math.BigDecimal orderNotificationId) { + _modifiedProperties.addPropertyName("orderNotificationId"); + this._orderNotificationId = orderNotificationId; + } + + /** Column Annotation for S2Dao. INTEGER : NotNull : FK to ORDER_STATUS */ + public static final String orderStatusId_COLUMN = "ORDER_STATUS_ID"; + + /** + * Get the value of orderStatusId. <br /> + * {INTEGER : NotNull : FK to ORDER_STATUS} + * + * @return The value of orderStatusId. (Nullable) + */ + public java.math.BigDecimal getOrderStatusId() { + return _orderStatusId; + } + + /** + * Set the value of orderStatusId. <br /> + * {INTEGER : NotNull : FK to ORDER_STATUS} + * + * @param orderStatusId The value of orderStatusId. (Nullable) + */ + public void setOrderStatusId(java.math.BigDecimal orderStatusId) { + _modifiedProperties.addPropertyName("orderStatusId"); + this._orderStatusId = orderStatusId; + } + + /** Column Annotation for S2Dao. VARCHAR(128) */ + public static final String emailAddress_COLUMN = "EMAIL_ADDRESS"; + + /** + * Get the value of emailAddress. <br /> + * {VARCHAR(128)} + * + * @return The value of emailAddress. (Nullable) + */ + public String getEmailAddress() { + return _emailAddress; + } + + /** + * Set the value of emailAddress. <br /> + * {VARCHAR(128)} + * + * @param emailAddress The value of emailAddress. (Nullable) + */ + public void setEmailAddress(String emailAddress) { + _modifiedProperties.addPropertyName("emailAddress"); + this._emailAddress = emailAddress; + } + + /** Column Annotation for S2Dao. VARCHAR(32) : NotNull */ + public static final String templateName_COLUMN = "TEMPLATE_NAME"; + + /** + * Get the value of templateName. <br /> + * {VARCHAR(32) : NotNull} + * + * @return The value of templateName. (Nullable) + */ + public String getTemplateName() { + return _templateName; + } + + /** + * Set the value of templateName. <br /> + * {VARCHAR(32) : NotNull} + * + * @param templateName The value of templateName. (Nullable) + */ + public void setTemplateName(String templateName) { + _modifiedProperties.addPropertyName("templateName"); + this._templateName = templateName; + } + + /** Column Annotation for S2Dao. INTEGER : NotNull */ + public static final String status_COLUMN = "STATUS"; + + /** + * Get the value of status. <br /> + * {INTEGER : NotNull} + * + * @return The value of status. (Nullable) + */ + public java.math.BigDecimal getStatus() { + return _status; + } + + /** + * Set the value of status. <br /> + * {INTEGER : NotNull} + * + * @param status The value of status. (Nullable) + */ + public void setStatus(java.math.BigDecimal status) { + _modifiedProperties.addPropertyName("status"); + this._status = status; + } + + + // =================================================================================== + // Classify Method + // =============== + + // =================================================================================== + // Classification Determination + // ============================ + + + // =================================================================================== + // Classification Getter + // ===================== + + + // =================================================================================== + // Foreign Table + // ============= + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [ORDER_STATUS(TABLE)] + // ForeignProperty = [orderStatus] + // * * * * * * * * */ + + /** RELNO of foreign table for s2dao. */ + public static final int orderStatus_RELNO = 0; + + /** RELKEYS of foreign table for s2dao. */ + public static final String orderStatus_RELKEYS = "ORDER_STATUS_ID:ORDER_STATUS_ID"; + + /** The entity of foreign table. */ + protected jp.sf.pal.pompei.exentity.OrderStatus _parentOrderStatus; + + /** + * Get the entity of foreign table of orderStatus. {without lazyload} + * + * @return The entity of foreign table. (Nullable: If the foreign key does not have NotNull-constraint, please check null.) + */ + public jp.sf.pal.pompei.exentity.OrderStatus getOrderStatus() { + return _parentOrderStatus; + } + + /** + * Set the entity of foreign table of orderStatus. + * + * @param orderStatus The entity of foreign table. (Nullable) + */ + public void setOrderStatus(jp.sf.pal.pompei.exentity.OrderStatus orderStatus) { + this._parentOrderStatus = orderStatus; + } + + /** + * Has relation object of orderStatus. + * + * @return Determination. + */ + public boolean hasRelationOrderStatus() { + return _parentOrderStatus != null && _parentOrderStatus.hasPrimaryKeyValue(); + } + + /** + * Trace relation object (for read) of orderStatus. + * + * @return The entity of foreign table. (NotNull: If the object is nul, it returns new empty entity as read-only.) + */ + public jp.sf.pal.pompei.exentity.OrderStatus traceOrderStatus() { + return _parentOrderStatus != null ? _parentOrderStatus : new jp.sf.pal.pompei.exentity.OrderStatus(); + } + + // =================================================================================== + // Referer Table + // ============= + + // =================================================================================== + // Determination + // ============= + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasPrimaryKeyValue() { + + if (_orderNotificationId == null) { + return false; + } + + return true; + } + + // =================================================================================== + // Modified Properties + // =================== + /** + * Get modified property names. (S2Dao uses this for updateModifiedProperties()) + * + * @return Modified property names. (NotNull) + */ + public java.util.Set<String> getModifiedPropertyNames() { + return _modifiedProperties.getPropertyNames(); + } + + /** + * New entity modified properties. You can override this at the sub-class if you need it. + * + * @return Entity modified properties. (NotNull) + */ + protected EntityModifiedProperties newEntityModifiedProperties() { + return new EntityModifiedProperties(); + } + + /** + * Clear modified property names. + */ + public void clearModifiedPropertyNames() { + _modifiedProperties.clear(); + } + + // =================================================================================== + // Basic Override + // ============== + + /** + * The 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) { + return false; + } + if (!(other instanceof BsOrderNotification)) { + return false; + } + final BsOrderNotification otherEntity = (BsOrderNotification)other; + + if (getOrderNotificationId() == null || !getOrderNotificationId().equals(otherEntity.getOrderNotificationId())) { + return false; + } + + return true; + } + + /** + * The override. + * Calculates hash-code from primary-key. + * + * @return Hash-code from primary-keys. + */ + public int hashCode() { + int result = 0; + + if (this.getOrderNotificationId() != null) { + result = result + getOrderNotificationId().hashCode(); + } + + return result; + } + + /** + * The override. + * + * @return Column-value map-string. (NotNull) + */ + public String toString() { + final String delimiter = ","; + final StringBuffer sb = new StringBuffer(); + + sb.append(delimiter).append(getOrderNotificationId()); + sb.append(delimiter).append(getOrderStatusId()); + sb.append(delimiter).append(getEmailAddress()); + sb.append(delimiter).append(getTemplateName()); + sb.append(delimiter).append(getStatus()); + + sb.delete(0, delimiter.length()); + sb.insert(0, "{").append("}"); + return sb.toString(); + } +} Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrderStatus.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrderStatus.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrderStatus.java 2007-09-28 04:46:15 UTC (rev 590) @@ -14,13 +14,13 @@ * ORDER_STATUS_ID * * [column-property] - * ORDER_STATUS_ID, NOTIFICATION_TEMPLATE, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * ORDER_STATUS_ID, SORT_ORDER, DATE_ADDED, LAST_MODIFIED * * [foreign-property] * * * [refferer-property] - * orderFormList, orderStatusDescriptionList, orderStatusHistoryList + * orderFormList, orderNotificationList, orderStatusDescriptionList, orderStatusHistoryList * * [sequence] * @@ -60,9 +60,6 @@ /** The value of orderStatusId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ protected java.math.BigDecimal _orderStatusId; - /** The value of notificationTemplate. VARCHAR(32) */ - protected String _notificationTemplate; - /** The value of sortOrder. INTEGER : NotNull */ protected java.math.BigDecimal _sortOrder; @@ -161,30 +158,6 @@ this._orderStatusId = orderStatusId; } - /** Column Annotation for S2Dao. VARCHAR(32) */ - public static final String notificationTemplate_COLUMN = "NOTIFICATION_TEMPLATE"; - - /** - * Get the value of notificationTemplate. <br /> - * {VARCHAR(32)} - * - * @return The value of notificationTemplate. (Nullable) - */ - public String getNotificationTemplate() { - return _notificationTemplate; - } - - /** - * Set the value of notificationTemplate. <br /> - * {VARCHAR(32)} - * - * @param notificationTemplate The value of notificationTemplate. (Nullable) - */ - public void setNotificationTemplate(String notificationTemplate) { - _modifiedProperties.addPropertyName("notificationTemplate"); - this._notificationTemplate = notificationTemplate; - } - /** Column Annotation for S2Dao. INTEGER : NotNull */ public static final String sortOrder_COLUMN = "SORT_ORDER"; @@ -261,16 +234,16 @@ // =================================================================================== // Classify Method // =============== - + // =================================================================================== // Classification Determination // ============================ - + // =================================================================================== // Classification Getter // ===================== - + // =================================================================================== // Foreign Table @@ -311,6 +284,35 @@ // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [ORDER_NOTIFICATION(TABLE)] + // RefererProperty = [orderNotificationList] + // * * * * * * * * */ + + + /** The list of referer table. */ + protected java.util.List<jp.sf.pal.pompei.exentity.OrderNotification> _childrenOrderNotificationList; + + /** + * Get the list of referer table. {without lazyload} + * If it's not loaded yet, returns null. + * + * @return The list of referer table. (Nullable) + */ + public java.util.List<jp.sf.pal.pompei.exentity.OrderNotification> getOrderNotificationList() { + return _childrenOrderNotificationList; + } + + /** + * Set the list of referer table. + * + * @param orderNotificationList The list of refferer table. (Nullable) + */ + public void setOrderNotificationList(java.util.List<jp.sf.pal.pompei.exentity.OrderNotification> orderNotificationList) { + this._childrenOrderNotificationList = orderNotificationList; + } + + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // RefererTable = [ORDER_STATUS_DESCRIPTION(TABLE)] // RefererProperty = [orderStatusDescriptionList] // * * * * * * * * */ @@ -465,7 +467,6 @@ final StringBuffer sb = new StringBuffer(); sb.append(delimiter).append(getOrderStatusId()); - sb.append(delimiter).append(getNotificationTemplate()); sb.append(delimiter).append(getSortOrder()); sb.append(delimiter).append(getDateAdded()); sb.append(delimiter).append(getLastModified()); Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProduct.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProduct.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProduct.java 2007-09-28 04:46:15 UTC (rev 590) @@ -14,13 +14,13 @@ * PRODUCT_ID * * [column-property] - * PRODUCT_ID, MODEL, QUANTITY, PRICE, WEIGHT, IMAGE, THUMBNAIL, ORDERED, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID + * PRODUCT_ID, CODE, MODEL, QUANTITY, PRICE, WEIGHT, SIZE, ORDERED, REVIEWED, RATING, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID * * [foreign-property] * manufacturer, taxClass * * [refferer-property] - * bargainList, customerBasketList, customerBasketAttributeList, orderProductList, orderProductAttributeList, orderProductDownloadList, productAttributeList, productDescriptionList, productNotificationList, productToCategoryList, reviewList + * bargainList, customerBasketList, customerBasketAttributeList, orderProductList, orderProductAttributeList, orderProductDownloadList, productAttributeList, productDescriptionList, productImageList, productNotificationList, productToCategoryList, reviewList * * [sequence] * @@ -60,6 +60,9 @@ /** The value of productId. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ protected java.math.BigDecimal _productId; + /** The value of code. VARCHAR(64) */ + protected String _code; + /** The value of model. VARCHAR(64) */ protected String _model; @@ -72,15 +75,18 @@ /** The value of weight. DECIMAL(5) */ protected java.math.BigDecimal _weight; - /** The value of image. VARCHAR(64) */ - protected String _image; + /** The value of size. VARCHAR(32) */ + protected String _size; - /** The value of thumbnail. VARCHAR(64) */ - protected String _thumbnail; - /** The value of ordered. INTEGER : NotNull : Default=[0] */ protected java.math.BigDecimal _ordered; + /** The value of reviewed. INTEGER */ + protected java.math.BigDecimal _reviewed; + + /** The value of rating. INTEGER */ + protected java.math.BigDecimal _rating; + /** The value of status. INTEGER : NotNull */ protected java.math.BigDecimal _status; @@ -189,6 +195,30 @@ } /** Column Annotation for S2Dao. VARCHAR(64) */ + public static final String code_COLUMN = "CODE"; + + /** + * Get the value of code. <br /> + * {VARCHAR(64)} + * + * @return The value of code. (Nullable) + */ + public String getCode() { + return _code; + } + + /** + * Set the value of code. <br /> + * {VARCHAR(64)} + * + * @param code The value of code. (Nullable) + */ + public void setCode(String code) { + _modifiedProperties.addPropertyName("code"); + this._code = code; + } + + /** Column Annotation for S2Dao. VARCHAR(64) */ public static final String model_COLUMN = "MODEL"; /** @@ -284,54 +314,30 @@ this._weight = weight; } - /** Column Annotation for S2Dao. VARCHAR(64) */ - public static final String image_COLUMN = "IMAGE"; + /** Column Annotation for S2Dao. VARCHAR(32) */ + public static final String size_COLUMN = "SIZE"; /** - * Get the value of image. <br /> - * {VARCHAR(64)} + * Get the value of size. <br /> + * {VARCHAR(32)} * - * @return The value of image. (Nullable) + * @return The value of size. (Nullable) */ - public String getImage() { - return _image; + public String getSize() { + return _size; } /** - * Set the value of image. <br /> - * {VARCHAR(64)} + * Set the value of size. <br /> + * {VARCHAR(32)} * - * @param image The value of image. (Nullable) + * @param size The value of size. (Nullable) */ - public void setImage(String image) { - _modifiedProperties.addPropertyName("image"); - this._image = image; + public void setSize(String size) { + _modifiedProperties.addPropertyName("size"); + this._size = size; } - /** Column Annotation for S2Dao. VARCHAR(64) */ - public static final String thumbnail_COLUMN = "THUMBNAIL"; - - /** - * Get the value of thumbnail. <br /> - * {VARCHAR(64)} - * - * @return The value of thumbnail. (Nullable) - */ - public String getThumbnail() { - return _thumbnail; - } - - /** - * Set the value of thumbnail. <br /> - * {VARCHAR(64)} - * - * @param thumbnail The value of thumbnail. (Nullable) - */ - public void setThumbnail(String thumbnail) { - _modifiedProperties.addPropertyName("thumbnail"); - this._thumbnail = thumbnail; - } - /** Column Annotation for S2Dao. INTEGER : NotNull : Default=[0] */ public static final String ordered_COLUMN = "ORDERED"; @@ -356,6 +362,54 @@ this._ordered = ordered; } + /** Column Annotation for S2Dao. INTEGER */ + public static final String reviewed_COLUMN = "REVIEWED"; + + /** + * Get the value of reviewed. <br /> + * {INTEGER} + * + * @return The value of reviewed. (Nullable) + */ + public java.math.BigDecimal getReviewed() { + return _reviewed; + } + + /** + * Set the value of reviewed. <br /> + * {INTEGER} + * + * @param reviewed The value of reviewed. (Nullable) + */ + public void setReviewed(java.math.BigDecimal reviewed) { + _modifiedProperties.addPropertyName("reviewed"); + this._reviewed = reviewed; + } + + /** Column Annotation for S2Dao. INTEGER */ + public static final String rating_COLUMN = "RATING"; + + /** + * Get the value of rating. <br /> + * {INTEGER} + * + * @return The value of rating. (Nullable) + */ + public java.math.BigDecimal getRating() { + return _rating; + } + + /** + * Set the value of rating. <br /> + * {INTEGER} + * + * @param rating The value of rating. (Nullable) + */ + public void setRating(java.math.BigDecimal rating) { + _modifiedProperties.addPropertyName("rating"); + this._rating = rating; + } + /** Column Annotation for S2Dao. INTEGER : NotNull */ public static final String status_COLUMN = "STATUS"; @@ -504,16 +558,16 @@ // =================================================================================== // Classify Method // =============== - + // =================================================================================== // Classification Determination // ============================ - + // =================================================================================== // Classification Getter // ===================== - + // =================================================================================== // Foreign Table @@ -857,6 +911,35 @@ // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [PRODUCT_IMAGE(TABLE)] + // RefererProperty = [productImageList] + // * * * * * * * * */ + + + /** The list of referer table. */ + protected java.util.List<jp.sf.pal.pompei.exentity.ProductImage> _childrenProductImageList; + + /** + * Get the list of referer table. {without lazyload} + * If it's not loaded yet, returns null. + * + * @return The list of referer table. (Nullable) + */ + public java.util.List<jp.sf.pal.pompei.exentity.ProductImage> getProductImageList() { + return _childrenProductImageList; + } + + /** + * Set the list of referer table. + * + * @param productImageList The list of refferer table. (Nullable) + */ + public void setProductImageList(java.util.List<jp.sf.pal.pompei.exentity.ProductImage> productImageList) { + this._childrenProductImageList = productImageList; + } + + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // RefererTable = [PRODUCT_NOTIFICATION(TABLE)] // RefererProperty = [productNotificationList] // * * * * * * * * */ @@ -1040,13 +1123,15 @@ final StringBuffer sb = new StringBuffer(); sb.append(delimiter).append(getProductId()); + sb.append(delimiter).append(getCode()); sb.append(delimiter).append(getModel()); sb.append(delimiter).append(getQuantity()); sb.append(delimiter).append(getPrice()); sb.append(delimiter).append(getWeight()); - sb.append(delimiter).append(getImage()); - sb.append(delimiter).append(getThumbnail()); + sb.append(delimiter).append(getSize()); sb.append(delimiter).append(getOrdered()); + sb.append(delimiter).append(getReviewed()); + sb.append(delimiter).append(getRating()); sb.append(delimiter).append(getStatus()); sb.append(delimiter).append(getDateAdded()); sb.append(delimiter).append(getLastModified()); Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProductDescription.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProductDescription.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProductDescription.java 2007-09-28 04:46:15 UTC (rev 590) @@ -14,7 +14,7 @@ * PRODUCT_ID, LANGUAGE_ID * * [column-property] - * PRODUCT_ID, LANGUAGE_ID, NAME, DESCRIPTION, URL, VIEWED + * PRODUCT_ID, LANGUAGE_ID, NAME, TITLE, DESCRIPTION, URL, VIEWED * * [foreign-property] * language, product @@ -63,6 +63,9 @@ /** The value of name. VARCHAR(64) : NotNull : Default=[] */ protected String _name; + /** The value of title. VARCHAR(255) */ + protected String _title; + /** The value of description. LONG VARCHAR(32700) */ protected String _description; @@ -209,6 +212,30 @@ this._name = name; } + /** Column Annotation for S2Dao. VARCHAR(255) */ + public static final String title_COLUMN = "TITLE"; + + /** + * Get the value of title. <br /> + * {VARCHAR(255)} + * + * @return The value of title. (Nullable) + */ + public String getTitle() { + return _title; + } + + /** + * Set the value of title. <br /> + * {VARCHAR(255)} + * + * @param title The value of title. (Nullable) + */ + public void setTitle(String title) { + _modifiedProperties.addPropertyName("title"); + this._title = title; + } + /** Column Annotation for S2Dao. LONG VARCHAR(32700) */ public static final String description_COLUMN = "DESCRIPTION"; @@ -285,16 +312,16 @@ // =================================================================================== // Classify Method // =============== - + // =================================================================================== // Classification Determination // ============================ - + // =================================================================================== // Classification Getter // ===================== - + // =================================================================================== // Foreign Table @@ -513,6 +540,7 @@ sb.append(delimiter).append(getProductId()); sb.append(delimiter).append(getLanguageId()); sb.append(delimiter).append(getName()); + sb.append(delimiter).append(getTitle()); sb.append(delimiter).append(getDescription()); sb.append(delimiter).append(getUrl()); sb.append(delimiter).append(getViewed()); Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProductImage.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProductImage.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsProductImage.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,409 @@ +package jp.sf.pal.pompei.bsentity; + + + +import jp.sf.pal.pompei.allcommon.Entity; +import jp.sf.pal.pompei.allcommon.dbmeta.DBMeta; +import jp.sf.pal.pompei.allcommon.dbmeta.DBMetaInstanceHandler; + +/** + * The entity of PRODUCT_IMAGE(TABLE). <br /> + * + * <pre> + * [primary-key] + * PRODUCT_IMAGE_ID + * + * [column-property] + * PRODUCT_IMAGE_ID, PRODUCT_ID, IMAGE_NAME, TYPE + * + * [foreign-property] + * product + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsProductImage implements Entity, java.io.Serializable { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; + + /** TABLE-Annotation for S2Dao. The value is PRODUCT_IMAGE. */ + public static final String TABLE = "PRODUCT_IMAGE"; + + + // =================================================================================== + // Attribute + // ========= + /** Entity modified properties. (for S2Dao) */ + protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties(); + + /** The value of productImageId. PK : BIGINT : NotNull */ + protected java.math.BigDecimal _productImageId; + + /** The value of productId. BIGINT : NotNull : FK to PRODUCT */ + protected java.math.BigDecimal _productId; + + /** The value of imageName. VARCHAR(32) : NotNull */ + protected String _imageName; + + /** The value of type. INTEGER : NotNull */ + protected java.math.BigDecimal _type; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsProductImage() { + } + + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return DBMetaInstanceHandler.findDBMeta(getTableDbName()); + } + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name of PRODUCT_IMAGE(TABLE). (NotNull) + */ + public String getTableDbName() { + return "PRODUCT_IMAGE"; + } + + /** + * The implementation. + * + * @return Table prop-name(JavaBeansRule) of PRODUCT_IMAGE(TABLE). (NotNull) + */ + public String getTablePropName() { + return "productImage"; + } + + /** + * The implementation. + * + * @return Table cap-prop-name of PRODUCT_IMAGE(TABLE). (NotNull) + */ + public String getTableCapPropName() { + return "ProductImage"; + } + + /** + * The implementation. + * + * @return Table uncap-prop-name of PRODUCT_IMAGE(TABLE). (NotNull) + */ + public String getTableUncapPropName() { + return "productImage"; + } + + // =================================================================================== + // Accessor + // ======== + + /** Column Annotation for S2Dao. PK : BIGINT : NotNull */ + public static final String productImageId_COLUMN = "PRODUCT_IMAGE_ID"; + + /** + * Get the value of productImageId. <br /> + * {PK : BIGINT : NotNull} + * + * @return The value of productImageId. (Nullable) + */ + public java.math.BigDecimal getProductImageId() { + return _productImageId; + } + + /** + * Set the value of productImageId. <br /> + * {PK : BIGINT : NotNull} + * + * @param productImageId The value of productImageId. (Nullable) + */ + public void setProductImageId(java.math.BigDecimal productImageId) { + _modifiedProperties.addPropertyName("productImageId"); + this._productImageId = productImageId; + } + + /** Column Annotation for S2Dao. BIGINT : NotNull : FK to PRODUCT */ + public static final String productId_COLUMN = "PRODUCT_ID"; + + /** + * Get the value of productId. <br /> + * {BIGINT : NotNull : FK to PRODUCT} + * + * @return The value of productId. (Nullable) + */ + public java.math.BigDecimal getProductId() { + return _productId; + } + + /** + * Set the value of productId. <br /> + * {BIGINT : NotNull : FK to PRODUCT} + * + * @param productId The value of productId. (Nullable) + */ + public void setProductId(java.math.BigDecimal productId) { + _modifiedProperties.addPropertyName("productId"); + this._productId = productId; + } + + /** Column Annotation for S2Dao. VARCHAR(32) : NotNull */ + public static final String imageName_COLUMN = "IMAGE_NAME"; + + /** + * Get the value of imageName. <br /> + * {VARCHAR(32) : NotNull} + * + * @return The value of imageName. (Nullable) + */ + public String getImageName() { + return _imageName; + } + + /** + * Set the value of imageName. <br /> + * {VARCHAR(32) : NotNull} + * + * @param imageName The value of imageName. (Nullable) + */ + public void setImageName(String imageName) { + _modifiedProperties.addPropertyName("imageName"); + this._imageName = imageName; + } + + /** Column Annotation for S2Dao. INTEGER : NotNull */ + public static final String type_COLUMN = "TYPE"; + + /** + * Get the value of type. <br /> + * {INTEGER : NotNull} + * + * @return The value of type. (Nullable) + */ + public java.math.BigDecimal getType() { + return _type; + } + + /** + * Set the value of type. <br /> + * {INTEGER : NotNull} + * + * @param type The value of type. (Nullable) + */ + public void setType(java.math.BigDecimal type) { + _modifiedProperties.addPropertyName("type"); + this._type = type; + } + + + // =================================================================================== + // Classify Method + // =============== + + // =================================================================================== + // Classification Determination + // ============================ + + + // =================================================================================== + // Classification Getter + // ===================== + + + // =================================================================================== + // Foreign Table + // ============= + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [PRODUCT(TABLE)] + // ForeignProperty = [product] + // * * * * * * * * */ + + /** RELNO of foreign table for s2dao. */ + public static final int product_RELNO = 0; + + /** RELKEYS of foreign table for s2dao. */ + public static final String product_RELKEYS = "PRODUCT_ID:PRODUCT_ID"; + + /** The entity of foreign table. */ + protected jp.sf.pal.pompei.exentity.Product _parentProduct; + + /** + * Get the entity of foreign table of product. {without lazyload} + * + * @return The entity of foreign table. (Nullable: If the foreign key does not have NotNull-constraint, please check null.) + */ + public jp.sf.pal.pompei.exentity.Product getProduct() { + return _parentProduct; + } + + /** + * Set the entity of foreign table of product. + * + * @param product The entity of foreign table. (Nullable) + */ + public void setProduct(jp.sf.pal.pompei.exentity.Product product) { + this._parentProduct = product; + } + + /** + * Has relation object of product. + * + * @return Determination. + */ + public boolean hasRelationProduct() { + return _parentProduct != null && _parentProduct.hasPrimaryKeyValue(); + } + + /** + * Trace relation object (for read) of product. + * + * @return The entity of foreign table. (NotNull: If the object is nul, it returns new empty entity as read-only.) + */ + public jp.sf.pal.pompei.exentity.Product traceProduct() { + return _parentProduct != null ? _parentProduct : new jp.sf.pal.pompei.exentity.Product(); + } + + // =================================================================================== + // Referer Table + // ============= + + // =================================================================================== + // Determination + // ============= + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasPrimaryKeyValue() { + + if (_productImageId == null) { + return false; + } + + return true; + } + + // =================================================================================== + // Modified Properties + // =================== + /** + * Get modified property names. (S2Dao uses this for updateModifiedProperties()) + * + * @return Modified property names. (NotNull) + */ + public java.util.Set<String> getModifiedPropertyNames() { + return _modifiedProperties.getPropertyNames(); + } + + /** + * New entity modified properties. You can override this at the sub-class if you need it. + * + * @return Entity modified properties. (NotNull) + */ + protected EntityModifiedProperties newEntityModifiedProperties() { + return new EntityModifiedProperties(); + } + + /** + * Clear modified property names. + */ + public void clearModifiedPropertyNames() { + _modifiedProperties.clear(); + } + + // =================================================================================== + // Basic Override + // ============== + + /** + * The 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) { + return false; + } + if (!(other instanceof BsProductImage)) { + return false; + } + final BsProductImage otherEntity = (BsProductImage)other; + + if (getProductImageId() == null || !getProductImageId().equals(otherEntity.getProductImageId())) { + return false; + } + + return true; + } + + /** + * The override. + * Calculates hash-code from primary-key. + * + * @return Hash-code from primary-keys. + */ + public int hashCode() { + int result = 0; + + if (this.getProductImageId() != null) { + result = result + getProductImageId().hashCode(); + } + + return result; + } + + /** + * The override. + * + * @return Column-value map-string. (NotNull) + */ + public String toString() { + final String delimiter = ","; + final StringBuffer sb = new StringBuffer(); + + sb.append(delimiter).append(getProductImageId()); + sb.append(delimiter).append(getProductId()); + sb.append(delimiter).append(getImageName()); + sb.append(delimiter).append(getType()); + + sb.delete(0, delimiter.length()); + sb.insert(0, "{").append("}"); + return sb.toString(); + } +} Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrderNotificationDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrderNotificationDbm.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrderNotificationDbm.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,1065 @@ +package jp.sf.pal.pompei.bsentity.dbmeta; + + +import jp.sf.pal.pompei.allcommon.Entity; +import jp.sf.pal.pompei.allcommon.dbmeta.AbstractDBMeta; +import jp.sf.pal.pompei.exentity.OrderNotification; +import jp.sf.pal.pompei.allcommon.dbmeta.info.ColumnInfo; +import jp.sf.pal.pompei.allcommon.dbmeta.info.RelationInfo; +import jp.sf.pal.pompei.allcommon.dbmeta.info.UniqueInfo; + +/** + * The dbmeta of ORDER_NOTIFICATION. (Singleton) + * + * <pre> + * [primary-key] + * ORDER_NOTIFICATION_ID + * + * [column-property] + * ORDER_NOTIFICATION_ID, ORDER_STATUS_ID, EMAIL_ADDRESS, TEMPLATE_NAME, STATUS + * + * [foreign-property] + * orderStatus + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public class OrderNotificationDbm extends AbstractDBMeta { + + // =================================================================================== + // Definition + // ========== + /** The type of entity. */ + protected static final Class ENTITY_TYPE = OrderNotification.class; + + /** Singleton instance. */ + private static final OrderNotificationDbm _instance = new OrderNotificationDbm(); + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + private OrderNotificationDbm() { + } + + // =================================================================================== + // Singleton + // ========= + /** + * Get instance. + * + * @return Singleton instance. (NotNull) + */ + public static OrderNotificationDbm getInstance() { + return _instance; + } + + // =================================================================================== + // Name Definition + // =============== + // ----------------------------------------------------- + // Table + // ----- + /** Table db name. */ + public static final String TABLE_DB_NAME = "ORDER_NOTIFICATION"; + + /** Table prop name(JavaBeansRule). */ + public static final String TABLE_PROPERTY_NAME = "orderNotification"; + + /** Table cap-prop name. */ + public static final String TABLE_CAP_PROP_NAME = "OrderNotification"; + + /** Table uncap-prop name. */ + public static final String TABLE_UNCAP_PROP_NAME = "orderNotification"; + + // ----------------------------------------------------- + // Column DB-Name + // -------------- + /** Db-name of ORDER_NOTIFICATION_ID. PK : INTEGER : NotNull */ + public static final String DB_NAME_ORDER_NOTIFICATION_ID = "ORDER_NOTIFICATION_ID"; + /** Db-name of ORDER_STATUS_ID. INTEGER : NotNull : FK to ORDER_STATUS */ + public static final String DB_NAME_ORDER_STATUS_ID = "ORDER_STATUS_ID"; + /** Db-name of EMAIL_ADDRESS. VARCHAR(128) */ + public static final String DB_NAME_EMAIL_ADDRESS = "EMAIL_ADDRESS"; + /** Db-name of TEMPLATE_NAME. VARCHAR(32) : NotNull */ + public static final String DB_NAME_TEMPLATE_NAME = "TEMPLATE_NAME"; + /** Db-name of STATUS. INTEGER : NotNull */ + public static final String DB_NAME_STATUS = "STATUS"; + + /** @deprecated Deprecated! So use DB_NAME_OrderNotificationId. */ + public static final String COLUMN_DB_NAME_OF_OrderNotificationId = "ORDER_NOTIFICATION_ID"; + /** @deprecated Deprecated! So use DB_NAME_OrderStatusId. */ + public static final String COLUMN_DB_NAME_OF_OrderStatusId = "ORDER_STATUS_ID"; + /** @deprecated Deprecated! So use DB_NAME_EmailAddress. */ + public static final String COLUMN_DB_NAME_OF_EmailAddress = "EMAIL_ADDRESS"; + /** @deprecated Deprecated! So use DB_NAME_TemplateName. */ + public static final String COLUMN_DB_NAME_OF_TemplateName = "TEMPLATE_NAME"; + /** @deprecated Deprecated! So use DB_NAME_Status. */ + public static final String COLUMN_DB_NAME_OF_Status = "STATUS"; + + // ----------------------------------------------------- + // Column Prop-Name(JavaBeansRule) + // ------------------------------- + /** Prop-name(JavaBeansRule) of orderNotificationId. PK : INTEGER : NotNull */ + public static final String PROPERTY_NAME_orderNotificationId = "orderNotificationId"; + /** Prop-name(JavaBeansRule) of orderStatusId. INTEGER : NotNull : FK to ORDER_STATUS */ + public static final String PROPERTY_NAME_orderStatusId = "orderStatusId"; + /** Prop-name(JavaBeansRule) of emailAddress. VARCHAR(128) */ + public static final String PROPERTY_NAME_emailAddress = "emailAddress"; + /** Prop-name(JavaBeansRule) of templateName. VARCHAR(32) : NotNull */ + public static final String PROPERTY_NAME_templateName = "templateName"; + /** Prop-name(JavaBeansRule) of status. INTEGER : NotNull */ + public static final String PROPERTY_NAME_status = "status"; + + // ----------------------------------------------------- + // Column Cap-Prop-Name + // -------------------- + /** Cap-prop-name of orderNotificationId. PK : INTEGER : NotNull */ + public static final String CAP_PROP_NAME_OrderNotificationId = "OrderNotificationId"; + /** Cap-prop-name of orderStatusId. INTEGER : NotNull : FK to ORDER_STATUS */ + public static final String CAP_PROP_NAME_OrderStatusId = "OrderStatusId"; + /** Cap-prop-name of emailAddress. VARCHAR(128) */ + public static final String CAP_PROP_NAME_EmailAddress = "EmailAddress"; + /** Cap-prop-name of templateName. VARCHAR(32) : NotNull */ + public static final String CAP_PROP_NAME_TemplateName = "TemplateName"; + /** Cap-prop-name of status. INTEGER : NotNull */ + public static final String CAP_PROP_NAME_Status = "Status"; + + /** @deprecated Deprecated! So use CAP_PROP_NAME_OrderNotificationId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_OrderNotificationId = "OrderNotificationId"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_OrderStatusId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_OrderStatusId = "OrderStatusId"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_EmailAddress. */ + public static final String COLUMN_CAP_PROP_NAME_OF_EmailAddress = "EmailAddress"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_TemplateName. */ + public static final String COLUMN_CAP_PROP_NAME_OF_TemplateName = "TemplateName"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Status. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Status = "Status"; + + // ----------------------------------------------------- + // Column Uncap-Prop-Name + // ---------------------- + /** Uncap-prop-name of orderNotificationId. PK : INTEGER : NotNull */ + public static final String UNCAP_PROP_NAME_orderNotificationId = "orderNotificationId"; + /** Uncap-prop-name of orderStatusId. INTEGER : NotNull : FK to ORDER_STATUS */ + public static final String UNCAP_PROP_NAME_orderStatusId = "orderStatusId"; + /** Uncap-prop-name of emailAddress. VARCHAR(128) */ + public static final String UNCAP_PROP_NAME_emailAddress = "emailAddress"; + /** Uncap-prop-name of templateName. VARCHAR(32) : NotNull */ + public static final String UNCAP_PROP_NAME_templateName = "templateName"; + /** Uncap-prop-name of status. INTEGER : NotNull */ + public static final String UNCAP_PROP_NAME_status = "status"; + + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_OrderNotificationId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_OrderNotificationId = "orderNotificationId"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_OrderStatusId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_OrderStatusId = "orderStatusId"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_EmailAddress. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_EmailAddress = "emailAddress"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_TemplateName. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_TemplateName = "templateName"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Status. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Status = "status"; + + // ----------------------------------------------------- + // Foreign Name + // ------------ + /** The foreign property name(JavaBeansRule) of orderStatus. */ + public static final String FOREIGN_PROPERTY_NAME_orderStatus = "orderStatus"; + /** @deprecated Use FOREIGN_NAME_orderStatus. */ + public static final String FOREIGN_CAP_PROP_NAME_OrderStatus = "OrderStatus"; + + /** @deprecated Use FOREIGN_NAME_orderStatus. */ + public static final String FOREIGN_UNCAP_PROP_NAME_orderStatus = "orderStatus"; + + // ----------------------------------------------------- + // Referer Name + // ------------ + + + /** The map of {db-name : prop-name} key-to-lower. */ + private static java.util.Map<String, String> _dbNamePropertyNameKeyToLowerMap; + protected static java.util.Map<String, String> createDbNamePropertyNameKeyToLowerMap() { + if (_dbNamePropertyNameKeyToLowerMap != null) { + return _dbNamePropertyNameKeyToLowerMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_DB_NAME.toLowerCase(), TABLE_PROPERTY_NAME); + + map.put(DB_NAME_ORDER_NOTIFICATION_ID.toLowerCase(), PROPERTY_NAME_orderNotificationId); + map.put(DB_NAME_ORDER_STATUS_ID.toLowerCase(), PROPERTY_NAME_orderStatusId); + map.put(DB_NAME_EMAIL_ADDRESS.toLowerCase(), PROPERTY_NAME_emailAddress); + map.put(DB_NAME_TEMPLATE_NAME.toLowerCase(), PROPERTY_NAME_templateName); + map.put(DB_NAME_STATUS.toLowerCase(), PROPERTY_NAME_status); + + _dbNamePropertyNameKeyToLowerMap = java.util.Collections.unmodifiableMap(map); + return _dbNamePropertyNameKeyToLowerMap; + } + + /** The map of {prop-name : db-name} key-to-lower. */ + private static java.util.Map<String, String> _propertyNameDbNameKeyToLowerMap; + protected static java.util.Map<String, String> createPropertyNameDbNameKeyToLowerMap() { + if (_propertyNameDbNameKeyToLowerMap != null) { + return _propertyNameDbNameKeyToLowerMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_PROPERTY_NAME.toLowerCase(), TABLE_DB_NAME); + + map.put(PROPERTY_NAME_orderNotificationId.toLowerCase(), DB_NAME_ORDER_NOTIFICATION_ID); + map.put(PROPERTY_NAME_orderStatusId.toLowerCase(), DB_NAME_ORDER_STATUS_ID); + map.put(PROPERTY_NAME_emailAddress.toLowerCase(), DB_NAME_EMAIL_ADDRESS); + map.put(PROPERTY_NAME_templateName.toLowerCase(), DB_NAME_TEMPLATE_NAME); + map.put(PROPERTY_NAME_status.toLowerCase(), DB_NAME_STATUS); + + _propertyNameDbNameKeyToLowerMap = java.util.Collections.unmodifiableMap(map); + return _propertyNameDbNameKeyToLowerMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _dbNameCapPropNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createDbNameCapPropNameMap() { + if (_dbNameCapPropNameMap != null) { + return _dbNameCapPropNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_DB_NAME, TABLE_CAP_PROP_NAME); + + map.put(DB_NAME_ORDER_NOTIFICATION_ID, CAP_PROP_NAME_OrderNotificationId); + map.put(DB_NAME_ORDER_STATUS_ID, CAP_PROP_NAME_OrderStatusId); + map.put(DB_NAME_EMAIL_ADDRESS, CAP_PROP_NAME_EmailAddress); + map.put(DB_NAME_TEMPLATE_NAME, CAP_PROP_NAME_TemplateName); + map.put(DB_NAME_STATUS, CAP_PROP_NAME_Status); + + _dbNameCapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _dbNameCapPropNameMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _dbNameUncapPropNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createDbNameUncapPropNameMap() { + if (_dbNameUncapPropNameMap != null) { + return _dbNameUncapPropNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_DB_NAME, TABLE_UNCAP_PROP_NAME); + + map.put(DB_NAME_ORDER_NOTIFICATION_ID, UNCAP_PROP_NAME_orderNotificationId); + map.put(DB_NAME_ORDER_STATUS_ID, UNCAP_PROP_NAME_orderStatusId); + map.put(DB_NAME_EMAIL_ADDRESS, UNCAP_PROP_NAME_emailAddress); + map.put(DB_NAME_TEMPLATE_NAME, UNCAP_PROP_NAME_templateName); + map.put(DB_NAME_STATUS, UNCAP_PROP_NAME_status); + + _dbNameUncapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _dbNameUncapPropNameMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _capPropNameDbNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createCapPropNameDbNameMap() { + if (_capPropNameDbNameMap != null) { + return _capPropNameDbNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_CAP_PROP_NAME, TABLE_DB_NAME); + + map.put(CAP_PROP_NAME_OrderNotificationId, DB_NAME_ORDER_NOTIFICATION_ID); + map.put(CAP_PROP_NAME_OrderStatusId, DB_NAME_ORDER_STATUS_ID); + map.put(CAP_PROP_NAME_EmailAddress, DB_NAME_EMAIL_ADDRESS); + map.put(CAP_PROP_NAME_TemplateName, DB_NAME_TEMPLATE_NAME); + map.put(CAP_PROP_NAME_Status, DB_NAME_STATUS); + + _capPropNameDbNameMap = java.util.Collections.unmodifiableMap(map); + return _capPropNameDbNameMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _capPropNameUncapPropNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createCapPropNameUncapPropNameMap() { + if (_capPropNameUncapPropNameMap != null) { + return _capPropNameUncapPropNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_CAP_PROP_NAME, TABLE_UNCAP_PROP_NAME); + + map.put(CAP_PROP_NAME_OrderNotificationId, UNCAP_PROP_NAME_orderNotificationId); + map.put(CAP_PROP_NAME_OrderStatusId, UNCAP_PROP_NAME_orderStatusId); + map.put(CAP_PROP_NAME_EmailAddress, UNCAP_PROP_NAME_emailAddress); + map.put(CAP_PROP_NAME_TemplateName, UNCAP_PROP_NAME_templateName); + map.put(CAP_PROP_NAME_Status, UNCAP_PROP_NAME_status); + + _capPropNameUncapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _capPropNameUncapPropNameMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _uncapPropNameDbNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createUncapPropNameDbNameMap() { + if (_uncapPropNameDbNameMap != null) { + return _uncapPropNameDbNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_UNCAP_PROP_NAME, TABLE_DB_NAME); + + map.put(UNCAP_PROP_NAME_orderNotificationId, DB_NAME_ORDER_NOTIFICATION_ID); + map.put(UNCAP_PROP_NAME_orderStatusId, DB_NAME_ORDER_STATUS_ID); + map.put(UNCAP_PROP_NAME_emailAddress, DB_NAME_EMAIL_ADDRESS); + map.put(UNCAP_PROP_NAME_templateName, DB_NAME_TEMPLATE_NAME); + map.put(UNCAP_PROP_NAME_status, DB_NAME_STATUS); + + _uncapPropNameDbNameMap = java.util.Collections.unmodifiableMap(map); + return _uncapPropNameDbNameMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _uncapPropNameCapPropNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createUncapPropNameCapPropNameMap() { + if (_uncapPropNameCapPropNameMap != null) { + return _uncapPropNameCapPropNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_UNCAP_PROP_NAME, TABLE_CAP_PROP_NAME); + + map.put(UNCAP_PROP_NAME_orderNotificationId, CAP_PROP_NAME_OrderNotificationId); + map.put(UNCAP_PROP_NAME_orderStatusId, CAP_PROP_NAME_OrderStatusId); + map.put(UNCAP_PROP_NAME_emailAddress, CAP_PROP_NAME_EmailAddress); + map.put(UNCAP_PROP_NAME_templateName, CAP_PROP_NAME_TemplateName); + map.put(UNCAP_PROP_NAME_status, CAP_PROP_NAME_Status); + + _uncapPropNameCapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _uncapPropNameCapPropNameMap; + } + + // =================================================================================== + // Name Map + // ======== + /** + * The implementation. + * + * @return The key-to-lower map of db-name(lower) and property-name. (NotNull) + */ + public java.util.Map<String, String> getDbNamePropertyNameKeyToLowerMap() { + return createDbNamePropertyNameKeyToLowerMap(); + } + + /** + * The implementation. + * + * @return The key-to-lower map of property-name(lower) and db-name. (NotNull) + */ + public java.util.Map<String, String> getPropertyNameDbNameKeyToLowerMap() { + return createPropertyNameDbNameKeyToLowerMap(); + } + + /** + * The implementation. + * + * @return {db-name : cap-prop-name} map. + * @deprecated Please use getDbNamePropNameToLowerMap() + */ + public java.util.Map<String, String> getDbNameCapPropNameMap() { + return createDbNameCapPropNameMap(); + } + + /** + * The implementation. + * + * @return {db-name : uncap-prop-name} map. + * @deprecated Please use getDbNamePropNameToLowerMap() + */ + public java.util.Map<String, String> getDbNameUncapPropNameMap() { + return createDbNameUncapPropNameMap(); + } + + /** + * The implementation. + * + * @return {cap-prop-name : db-name} map. + * @deprecated Please use getPropNameDbNameToLowerMap() + */ + public java.util.Map<String, String> getCapPropNameDbNameMap() { + return createCapPropNameDbNameMap(); + } + + /** + * The implementation. + * + * @return {cap-prop-name : uncap-prop-name} map. + * @deprecated Please use getPropNameDbNameToLowerMap() + */ + public java.util.Map<String, String> getCapPropNameUncapPropNameMap() { + return createCapPropNameUncapPropNameMap(); + } + + /** + * The implementation. + * + * @return {uncap-prop-name : db-name} map. + * @deprecated Please use getPropNameDbNameToLowerMap() + */ + public java.util.Map<String, String> getUncapPropNameDbNameMap() { + return createUncapPropNameDbNameMap(); + } + + /** + * The implementation. + * + * @return {uncap-prop-name : cap-prop-name} map. + * @deprecated Please use getPropNameDbNameToLowerMap() + */ + public java.util.Map<String, String> getUncapPropNameCapPropNameMap() { + return createUncapPropNameCapPropNameMap(); + } + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return TABLE_DB_NAME; + } + + /** + * The implementation. + * + * @return Table property-name(JavaBeansRule). (NotNull) + */ + public String getTablePropertyName() { + return TABLE_PROPERTY_NAME; + } + + /** + * The implementation. + * + * @return Table cap-prop-name. (NotNull) + */ + public String getTableCapPropName() { + return TABLE_CAP_PROP_NAME; + } + + /** + * The implementation. + * + * @return Table property-name. (NotNull) + */ + public String getTableUncapPropName() { + return TABLE_UNCAP_PROP_NAME; + } + + // =================================================================================== + // Type Name + // ========= + /** + * The implementation. + * + * @return The type-name of entity. (NotNull) + */ + public String getEntityTypeName() { + return "jp.sf.pal.pompei.exentity.OrderNotification"; + } + + /** + * The implementation. + * + * @return The type-name of condition-bean. (NotNull) + */ + public String getConditionBeanTypeName() { + return "jp.sf.pal.pompei.cbean.bs.OrderNotificationCB"; + } + + /** + * The implementation. + * + * @return The type-name of dao. (NotNull) + */ + public String getDaoTypeName() { + return "jp.sf.pal.pompei.exdao.OrderNotificationDao"; + } + + /** + * The implementation. + * + * @return The type-name of behavior. (NotNull) + */ + public String getBehaviorTypeName() { + return "jp.sf.pal.pompei.exbhv.OrderNotificationBhv"; + } + + // =================================================================================== + // Object Type + // =========== + /** + * The implementation. + * + * @return The type of entity. (NotNull) + */ + public Class getEntityType() { + return ENTITY_TYPE; + } + + // =================================================================================== + // Object Instance + // =============== + /** + * The implementation. + * + * @return The type of entity. (NotNull) + */ + public Entity newEntity() { + return newMyEntity(); + } + + /** + * New the instance of my entity. + * + * @return The instance of my entity. (NotNull) + */ + public OrderNotification newMyEntity() { + return new OrderNotification(); + } + + + // =================================================================================== + // Column Info + // =========== + /** + * The implementation. + * + * @return The list of column db-name. (NotNull and NotEmpty) + */ + public java.util.List<ColumnInfo> getColumnInfoList() { + final java.util.List<ColumnInfo> columnInfoList = new java.util.ArrayList<ColumnInfo>(); + columnInfoList.add(columnOrderNotificationId()); + columnInfoList.add(columnOrderStatusId()); + columnInfoList.add(columnEmailAddress()); + columnInfoList.add(columnTemplateName()); + columnInfoList.add(columnStatus()); + return columnInfoList; + } + + /** + * The implementation. + * + * @return The list of column db-name. (NotNull and NotEmpty) + * @deprecated Please use getColumnInfoList() + */ + public java.util.List<String> getColumnDbNameList() { + final String[] columns = getColumnDbNameCommaString().split(","); + final java.util.List<String> resultList = new java.util.ArrayList<String>(); + for (int i=0; i < columns.length; i++) { + resultList.add(columns[i].trim()); + } + return resultList; + } + + /** + * The implementation. + * + * @return The list of column db-name. (NotNull and NotEmpty) + * @deprecated Please use getColumnInfoList() + */ + public java.util.List<String> getColumnCapPropNameList() { + final java.util.List<String> columnDbNameList = getColumnDbNameList(); + final java.util.List<String> resultList = new java.util.ArrayList<String>(); + for (final java.util.Iterator ite = columnDbNameList.iterator(); ite.hasNext(); ) { + resultList.add(getDbNameCapPropNameMap().get((String)ite.next())); + } + return resultList; + } + + /** + * The implementation. + * + * @return The list of column db-name. (NotNull and NotEmpty) + * @deprecated Please use getColumnInfoList() + */ + public java.util.List<String> getColumnUncapPropNameList() { + final java.util.List<String> columnDbNameList = getColumnDbNameList(); + final java.util.List<String> resultList = new java.util.ArrayList<String>(); + for (final java.util.Iterator ite = columnDbNameList.iterator(); ite.hasNext(); ) { + resultList.add(getDbNameUncapPropNameMap().get((String)ite.next())); + } + return resultList; + } + + /** + * The implementation. + * + * @return Column-db-name comma-string. (NotNull and NotEmpty) + * @deprecated Please use getColumnInfoList() + */ + public String getColumnDbNameCommaString() { + return "ORDER_NOTIFICATION_ID, ORDER_STATUS_ID, EMAIL_ADDRESS, TEMPLATE_NAME, STATUS"; + } + + /** + * @return Column information of orderNotificationId. (NotNull) + */ + public ColumnInfo columnOrderNotificationId() { + return new ColumnInfo(this, "ORDER_NOTIFICATION_ID", "orderNotificationId", java.math.BigDecimal.class, true); + } + /** + * @return Column information of orderStatusId. (NotNull) + */ + public ColumnInfo columnOrderStatusId() { + return new ColumnInfo(this, "ORDER_STATUS_ID", "orderStatusId", java.math.BigDecimal.class, false); + } + /** + * @return Column information of emailAddress. (NotNull) + */ + public ColumnInfo columnEmailAddress() { + return new ColumnInfo(this, "EMAIL_ADDRESS", "emailAddress", String.class, false); + } + /** + * @return Column information of templateName. (NotNull) + */ + public ColumnInfo columnTemplateName() { + return new ColumnInfo(this, "TEMPLATE_NAME", "templateName", String.class, false); + } + /** + * @return Column information of status. (NotNull) + */ + public ColumnInfo columnStatus() { + return new ColumnInfo(this, "STATUS", "status", java.math.BigDecimal.class, false); + } + + // =================================================================================== + // Unique Info + // =========== + // ----------------------------------------------------- + // Primary Element + // --------------- + /** + * The implementation. + * + * @return The primary unique info. (NotNull) + */ + public UniqueInfo getPrimaryUniqueInfo() { + final UniqueInfo uniqueInfo = new UniqueInfo(); + uniqueInfo.setDBMeta(this); + uniqueInfo.addUniqueColumnList(new ColumnInfo(this, "ORDER_NOTIFICATION_ID", "orderNotificationId", java.math.BigDecimal.class, true)); + uniqueInfo.setPrimary(true); + return uniqueInfo; + } + + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasPrimaryKey() { + return true; + } + + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasTwoOrMorePrimaryKeys() { + return false; + } + + // =================================================================================== + // Relation Info + // ============= + // ----------------------------------------------------- + // Foreign Element + // --------------- + /** + * Get foreign information of orderStatus. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignOrderStatus() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo(); + foreignInfo.setForeignPropertyName("orderStatus"); + foreignInfo.setLocalDBMeta(OrderNotificationDbm.getInstance()); + foreignInfo.setForeignDBMeta(OrderStatusDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnOrderStatusId(), OrderStatusDbm.getInstance().columnOrderStatusId()); + foreignInfo.setLocalForeignColumnInfoMap(map); + foreignInfo.setOneToOne(false); + return foreignInfo; + } + + + // ----------------------------------------------------- + // Referer Element + // --------------- + + // ----------------------------------------------------- + // Relation Trace + // -------------- + /** + * Create relation trace for first step. + * + * @param relationTraceFixHandler The handler of fixed relation trace. (Nullable) + * @return Relation trace. (NotNull) + */ + public OrderNotificationRelationTrace createRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + return new OrderNotificationRelationTrace(relationTraceFixHandler); + } + + /** + * Create relation trace for relation step. + * + * @param relationList The list of relation. (NotNull) + * @param relationTraceList The list of relation trace. (NotNull) + * @return Relation trace. (NotNull) + */ + public OrderNotificationRelationTrace createRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + return new OrderNotificationRelationTrace(relationList, relationTraceList); + } + + /** + * Relation trace of ORDER_NOTIFICATION. + */ + public static class OrderNotificationRelationTrace extends AbstractRelationTrace { + + /** + * Constructor for first step. + * + * @param relationTraceFixHandler The handler of fixed relation trace. (Nullable) + */ + public OrderNotificationRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + super(relationTraceFixHandler); + } + + /** + * Constructor for relation step. + * + * @param relationList The list of relation. (NotNull) + * @param relationTraceList The list of relation trace. (NotNull) + */ + public OrderNotificationRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + super(relationList, relationTraceList); + } + + public OrderStatusDbm.OrderStatusRelationTrace foreignOrderStatus() { + _relationList.add(OrderNotificationDbm.getInstance().foreignOrderStatus()); + return OrderStatusDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public RelationTrace columnOrderNotificationId() { return fixTrace(_relationList, OrderNotificationDbm.getInstance().columnOrderNotificationId()); } + public RelationTrace columnOrderStatusId() { return fixTrace(_relationList, OrderNotificationDbm.getInstance().columnOrderStatusId()); } + public RelationTrace columnEmailAddress() { return fixTrace(_relationList, OrderNotificationDbm.getInstance().columnEmailAddress()); } + public RelationTrace columnTemplateName() { return fixTrace(_relationList, OrderNotificationDbm.getInstance().columnTemplateName()); } + public RelationTrace columnStatus() { return fixTrace(_relationList, OrderNotificationDbm.getInstance().columnStatus()); } + } + + // =================================================================================== + // Sequence Info + // ============= + /** + * Has sequence? + * + * @return Determination. + */ + public boolean hasSequence() { + return false; + } + + // =================================================================================== + // Common Column + // ============= + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasCommonColumn() { + return false; + } + + // =================================================================================== + // Entity Handling + // =============== + // ----------------------------------------------------- + // Accept + // ------ + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @param primaryKeyMap Primary key map. (NotNull and NotEmpty) + */ + public void acceptPrimaryKeyMap(Entity entity, java.util.Map<String, ? extends Object> primaryKeyMap) { + final OrderNotification myEntity = (OrderNotification)entity; + MapAssertUtil.assertPrimaryKeyMapNotNullAndNotEmpty(primaryKeyMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(primaryKeyMap, entity.getModifiedPropertyNames()); + + MapAssertUtil.assertColumnExistingInPrimaryKeyMap(primaryKeyMap, "ORDER_NOTIFICATION_ID"); + if (analyzer.init("ORDER_NOTIFICATION_ID", "orderNotificationId", "orderNotificationId")) { myEntity.setOrderNotificationId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + + + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @param primaryKeyMapString Primary-key map-string. (NotNull and NotEmpty) + */ + public void acceptPrimaryKeyMapString(Entity entity, String primaryKeyMapString) { + MapStringUtil.acceptPrimaryKeyMapString(primaryKeyMapString, entity); + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @param columnValueMap Column-value map. (NotNull and NotEmpty) + */ + public void acceptColumnValueMap(Entity entity, java.util.Map<String, ? extends Object> columnValueMap) { + final OrderNotification myEntity = (OrderNotification)entity; + MapAssertUtil.assertColumnValueMapNotNullAndNotEmpty(columnValueMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(columnValueMap, entity.getModifiedPropertyNames()); + + if (analyzer.init("ORDER_NOTIFICATION_ID", "orderNotificationId", "orderNotificationId")) { myEntity.setOrderNotificationId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("ORDER_STATUS_ID", "orderStatusId", "orderStatusId")) { myEntity.setOrderStatusId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("EMAIL_ADDRESS", "emailAddress", "emailAddress")) { myEntity.setEmailAddress(analyzer.analyzeString(String.class)); }; + if (analyzer.init("TEMPLATE_NAME", "templateName", "templateName")) { myEntity.setTemplateName(analyzer.analyzeString(String.class)); }; + if (analyzer.init("STATUS", "status", "status")) { myEntity.setStatus(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + + } + + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @param columnValueMapString Column-value map-string. (NotNull and NotEmpty) + */ + public void acceptColumnValueMapString(Entity entity, String columnValueMapString) { + MapStringUtil.acceptColumnValueMapString(columnValueMapString, entity); + } + + + // ----------------------------------------------------- + // Extract + // ------- + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return Primary-key map-string. (NotNull) + */ + public String extractPrimaryKeyMapString(Entity entity) { + return MapStringUtil.extractPrimaryKeyMapString(entity); + } + + /** + * Extract primary-key map-string. + * + * @param entity Target entity. (NotNull) + * @param startBrace Start-brace. (NotNull) + * @param endBrace End-brace. (NotNull) + * @param delimiter Delimiter. (NotNull) + * @param equal Equal. (NotNull) + * @return Primary-key map-string. (NotNull) + */ + public String extractPrimaryKeyMapString(Entity entity, String startBrace, String endBrace, String delimiter, String equal) { + final OrderNotification myEntity = (OrderNotification)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "ORDER_NOTIFICATION_ID", myEntity.getOrderNotificationId()); + + sb.delete(0, delimiter.length()).insert(0, mapMarkAndStartBrace).append(endBrace); + return sb.toString(); + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return Column-value map-string. (NotNull) + */ + public String extractColumnValueMapString(Entity entity) { + return MapStringUtil.extractColumnValueMapString(entity); + } + + /** + * Extract column-value map-string. + * + * @param entity Target entity. (NotNull) + * @param startBrace Start-brace. (NotNull) + * @param endBrace End-brace. (NotNull) + * @param delimiter Delimiter. (NotNull) + * @param equal Equal. (NotNull) + * @return Column-value map-string. (NotNull) + */ + public String extractColumnValueMapString(Entity entity, String startBrace, String endBrace, String delimiter, String equal) { + final OrderNotification myEntity = (OrderNotification)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "ORDER_NOTIFICATION_ID", myEntity.getOrderNotificationId()); + helpAppendingColumnValueString(sb, delimiter, equal, "ORDER_STATUS_ID", myEntity.getOrderStatusId()); + helpAppendingColumnValueString(sb, delimiter, equal, "EMAIL_ADDRESS", myEntity.getEmailAddress()); + helpAppendingColumnValueString(sb, delimiter, equal, "TEMPLATE_NAME", myEntity.getTemplateName()); + helpAppendingColumnValueString(sb, delimiter, equal, "STATUS", myEntity.getStatus()); + + sb.delete(0, delimiter.length()).insert(0, mapMarkAndStartBrace).append(endBrace); + return sb.toString(); + } + + private void helpAppendingColumnValueString(StringBuffer sb, String delimiter, String equal, String colName, Object value) { + sb.append(delimiter).append(colName).append(equal); + sb.append(helpGettingColumnStringValue(value)); + } + + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return Column-value map-string. (NotNull) + */ + public String extractCommonColumnValueMapString(Entity entity) { + return "map:{}"; + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return Column-value map-string. (NotNull) + */ + public String extractCommonColumnValueMapString(Entity entity, String startBrace, String endBrace, String delimiter, String equal) { + return "map:" + startBrace + endBrace; + } + + + // ----------------------------------------------------- + // Convert + // ------- + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return The list of column value. (NotNull) + */ + public java.util.List<Object> convertToColumnValueList(Entity entity) { + return new java.util.ArrayList<Object>(convertToColumnValueMap(entity).values()); + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return The map of column value. (NotNull) + */ + public java.util.Map<String, Object> convertToColumnValueMap(Entity entity) { + final OrderNotification myEntity = downcast(entity); + final java.util.Map<String, Object> valueMap = new java.util.LinkedHashMap<String, Object>(); + valueMap.put("ORDER_NOTIFICATION_ID", myEntity.getOrderNotificationId()); + valueMap.put("ORDER_STATUS_ID", myEntity.getOrderStatusId()); + valueMap.put("EMAIL_ADDRESS", myEntity.getEmailAddress()); + valueMap.put("TEMPLATE_NAME", myEntity.getTemplateName()); + valueMap.put("STATUS", myEntity.getStatus()); + return valueMap; + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return The list of column string-value. (NotNull) + */ + public java.util.List<String> convertToColumnStringValueList(Entity entity) { + return new java.util.ArrayList<String>(convertToColumnStringValueMap(entity).values()); + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return The map of column string-value. (NotNull) + */ + public java.util.Map<String, String> convertToColumnStringValueMap(Entity entity) { + final OrderNotification myEntity = downcast(entity); + final java.util.Map<String, String> valueMap = new java.util.LinkedHashMap<String, String>(); + valueMap.put("ORDER_NOTIFICATION_ID", helpGettingColumnStringValue(myEntity.getOrderNotificationId())); + valueMap.put("ORDER_STATUS_ID", helpGettingColumnStringValue(myEntity.getOrderStatusId())); + valueMap.put("EMAIL_ADDRESS", helpGettingColumnStringValue(myEntity.getEmailAddress())); + valueMap.put("TEMPLATE_NAME", helpGettingColumnStringValue(myEntity.getTemplateName())); + valueMap.put("STATUS", helpGettingColumnStringValue(myEntity.getStatus())); + return valueMap; + } + + // =================================================================================== + // JDBC Support + // ============ + /** + * The implementation. + * + * @return Prepared insert clause. (NotNull and NotEmpty) + */ + public String getPreparedInsertClause() { + return getPreparedInsertClause(new PreparedInsertClauseOption()); + } + + /** + * The implementation. + * + * @param preparedInsertClauseOption Prepared insert clause option. (NotNull) + * @return Prepared insert clause. (NotNull and NotEmpty) + */ + public String getPreparedInsertClause(PreparedInsertClauseOption preparedInsertClauseOption) { + if (preparedInsertClauseOption.getTablePrefix() != null) { + final String tablePrefix = preparedInsertClauseOption.getTablePrefix(); + return "insert into " + tablePrefix + "ORDER_NOTIFICATION(ORDER_NOTIFICATION_ID, ORDER_STATUS_ID, EMAIL_ADDRESS, TEMPLATE_NAME, STATUS) values(? , ? , ? , ? , ? )"; + } + return "insert into ORDER_NOTIFICATION(ORDER_NOTIFICATION_ID, ORDER_STATUS_ID, EMAIL_ADDRESS, TEMPLATE_NAME, STATUS) values(? , ? , ? , ? , ? )"; + } + + // =================================================================================== + // Helper + // ====== + protected OrderNotification downcast(Entity entity) { + assertObjectNotNull("entity", entity); + try { + return (OrderNotification)entity; + } catch (ClassCastException e) { + String msg = "The entity should be OrderNotification but it was: " + entity.getClass(); + throw new RuntimeException(msg, e); + } + } + + protected void checkDowncast(Entity entity) { + downcast(entity); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrderNotificationDbm.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrderStatusDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrderStatusDbm.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrderStatusDbm.java 2007-09-28 04:46:15 UTC (rev 590) @@ -16,13 +16,13 @@ * ORDER_STATUS_ID * * [column-property] - * ORDER_STATUS_ID, NOTIFICATION_TEMPLATE, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * ORDER_STATUS_ID, SORT_ORDER, DATE_ADDED, LAST_MODIFIED * * [foreign-property] * * * [refferer-property] - * orderFormList, orderStatusDescriptionList, orderStatusHistoryList + * orderFormList, orderNotificationList, orderStatusDescriptionList, orderStatusHistoryList * * [sequence] * @@ -95,8 +95,6 @@ // -------------- /** Db-name of ORDER_STATUS_ID. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ public static final String DB_NAME_ORDER_STATUS_ID = "ORDER_STATUS_ID"; - /** Db-name of NOTIFICATION_TEMPLATE. VARCHAR(32) */ - public static final String DB_NAME_NOTIFICATION_TEMPLATE = "NOTIFICATION_TEMPLATE"; /** Db-name of SORT_ORDER. INTEGER : NotNull */ public static final String DB_NAME_SORT_ORDER = "SORT_ORDER"; /** Db-name of DATE_ADDED. TIMESTAMP : NotNull */ @@ -106,8 +104,6 @@ /** @deprecated Deprecated! So use DB_NAME_OrderStatusId. */ public static final String COLUMN_DB_NAME_OF_OrderStatusId = "ORDER_STATUS_ID"; - /** @deprecated Deprecated! So use DB_NAME_NotificationTemplate. */ - public static final String COLUMN_DB_NAME_OF_NotificationTemplate = "NOTIFICATION_TEMPLATE"; /** @deprecated Deprecated! So use DB_NAME_SortOrder. */ public static final String COLUMN_DB_NAME_OF_SortOrder = "SORT_ORDER"; /** @deprecated Deprecated! So use DB_NAME_DateAdded. */ @@ -120,8 +116,6 @@ // ------------------------------- /** Prop-name(JavaBeansRule) of orderStatusId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ public static final String PROPERTY_NAME_orderStatusId = "orderStatusId"; - /** Prop-name(JavaBeansRule) of notificationTemplate. VARCHAR(32) */ - public static final String PROPERTY_NAME_notificationTemplate = "notificationTemplate"; /** Prop-name(JavaBeansRule) of sortOrder. INTEGER : NotNull */ public static final String PROPERTY_NAME_sortOrder = "sortOrder"; /** Prop-name(JavaBeansRule) of dateAdded. TIMESTAMP : NotNull */ @@ -134,8 +128,6 @@ // -------------------- /** Cap-prop-name of orderStatusId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ public static final String CAP_PROP_NAME_OrderStatusId = "OrderStatusId"; - /** Cap-prop-name of notificationTemplate. VARCHAR(32) */ - public static final String CAP_PROP_NAME_NotificationTemplate = "NotificationTemplate"; /** Cap-prop-name of sortOrder. INTEGER : NotNull */ public static final String CAP_PROP_NAME_SortOrder = "SortOrder"; /** Cap-prop-name of dateAdded. TIMESTAMP : NotNull */ @@ -145,8 +137,6 @@ /** @deprecated Deprecated! So use CAP_PROP_NAME_OrderStatusId. */ public static final String COLUMN_CAP_PROP_NAME_OF_OrderStatusId = "OrderStatusId"; - /** @deprecated Deprecated! So use CAP_PROP_NAME_NotificationTemplate. */ - public static final String COLUMN_CAP_PROP_NAME_OF_NotificationTemplate = "NotificationTemplate"; /** @deprecated Deprecated! So use CAP_PROP_NAME_SortOrder. */ public static final String COLUMN_CAP_PROP_NAME_OF_SortOrder = "SortOrder"; /** @deprecated Deprecated! So use CAP_PROP_NAME_DateAdded. */ @@ -159,8 +149,6 @@ // ---------------------- /** Uncap-prop-name of orderStatusId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ public static final String UNCAP_PROP_NAME_orderStatusId = "orderStatusId"; - /** Uncap-prop-name of notificationTemplate. VARCHAR(32) */ - public static final String UNCAP_PROP_NAME_notificationTemplate = "notificationTemplate"; /** Uncap-prop-name of sortOrder. INTEGER : NotNull */ public static final String UNCAP_PROP_NAME_sortOrder = "sortOrder"; /** Uncap-prop-name of dateAdded. TIMESTAMP : NotNull */ @@ -170,8 +158,6 @@ /** @deprecated Deprecated! So use UNCAP_PROP_NAME_OrderStatusId. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_OrderStatusId = "orderStatusId"; - /** @deprecated Deprecated! So use UNCAP_PROP_NAME_NotificationTemplate. */ - public static final String COLUMN_UNCAP_PROP_NAME_OF_NotificationTemplate = "notificationTemplate"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_SortOrder. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_SortOrder = "sortOrder"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_DateAdded. */ @@ -189,12 +175,16 @@ // ------------ /** The referer property name(JavaBeansRule) of orderFormList. */ public static final String REFERER_PROPERTY_NAME_orderFormList = "orderFormList"; + /** The referer property name(JavaBeansRule) of orderNotificationList. */ + public static final String REFERER_PROPERTY_NAME_orderNotificationList = "orderNotificationList"; /** The referer property name(JavaBeansRule) of orderStatusDescriptionList. */ public static final String REFERER_PROPERTY_NAME_orderStatusDescriptionList = "orderStatusDescriptionList"; /** The referer property name(JavaBeansRule) of orderStatusHistoryList. */ public static final String REFERER_PROPERTY_NAME_orderStatusHistoryList = "orderStatusHistoryList"; /** @deprecated Use REFERER_NAME_orderFormList */ public static final String REFERER_CAP_PROP_NAME_OrderFormList = "OrderFormList"; + /** @deprecated Use REFERER_NAME_orderNotificationList */ + public static final String REFERER_CAP_PROP_NAME_OrderNotificationList = "OrderNotificationList"; /** @deprecated Use REFERER_NAME_orderStatusDescriptionList */ public static final String REFERER_CAP_PROP_NAME_OrderStatusDescriptionList = "OrderStatusDescriptionList"; /** @deprecated Use REFERER_NAME_orderStatusHistoryList */ @@ -202,6 +192,8 @@ /** @deprecated Use REFERER_NAME_orderFormList */ public static final String REFERER_UNCAP_PROP_NAME_orderFormList = "orderFormList"; + /** @deprecated Use REFERER_NAME_orderNotificationList */ + public static final String REFERER_UNCAP_PROP_NAME_orderNotificationList = "orderNotificationList"; /** @deprecated Use REFERER_NAME_orderStatusDescriptionList */ public static final String REFERER_UNCAP_PROP_NAME_orderStatusDescriptionList = "orderStatusDescriptionList"; /** @deprecated Use REFERER_NAME_orderStatusHistoryList */ @@ -217,7 +209,6 @@ map.put(TABLE_DB_NAME.toLowerCase(), TABLE_PROPERTY_NAME); map.put(DB_NAME_ORDER_STATUS_ID.toLowerCase(), PROPERTY_NAME_orderStatusId); - map.put(DB_NAME_NOTIFICATION_TEMPLATE.toLowerCase(), PROPERTY_NAME_notificationTemplate); map.put(DB_NAME_SORT_ORDER.toLowerCase(), PROPERTY_NAME_sortOrder); map.put(DB_NAME_DATE_ADDED.toLowerCase(), PROPERTY_NAME_dateAdded); map.put(DB_NAME_LAST_MODIFIED.toLowerCase(), PROPERTY_NAME_lastModified); @@ -236,7 +227,6 @@ map.put(TABLE_PROPERTY_NAME.toLowerCase(), TABLE_DB_NAME); map.put(PROPERTY_NAME_orderStatusId.toLowerCase(), DB_NAME_ORDER_STATUS_ID); - map.put(PROPERTY_NAME_notificationTemplate.toLowerCase(), DB_NAME_NOTIFICATION_TEMPLATE); map.put(PROPERTY_NAME_sortOrder.toLowerCase(), DB_NAME_SORT_ORDER); map.put(PROPERTY_NAME_dateAdded.toLowerCase(), DB_NAME_DATE_ADDED); map.put(PROPERTY_NAME_lastModified.toLowerCase(), DB_NAME_LAST_MODIFIED); @@ -257,7 +247,6 @@ map.put(TABLE_DB_NAME, TABLE_CAP_PROP_NAME); map.put(DB_NAME_ORDER_STATUS_ID, CAP_PROP_NAME_OrderStatusId); - map.put(DB_NAME_NOTIFICATION_TEMPLATE, CAP_PROP_NAME_NotificationTemplate); map.put(DB_NAME_SORT_ORDER, CAP_PROP_NAME_SortOrder); map.put(DB_NAME_DATE_ADDED, CAP_PROP_NAME_DateAdded); map.put(DB_NAME_LAST_MODIFIED, CAP_PROP_NAME_LastModified); @@ -278,7 +267,6 @@ map.put(TABLE_DB_NAME, TABLE_UNCAP_PROP_NAME); map.put(DB_NAME_ORDER_STATUS_ID, UNCAP_PROP_NAME_orderStatusId); - map.put(DB_NAME_NOTIFICATION_TEMPLATE, UNCAP_PROP_NAME_notificationTemplate); map.put(DB_NAME_SORT_ORDER, UNCAP_PROP_NAME_sortOrder); map.put(DB_NAME_DATE_ADDED, UNCAP_PROP_NAME_dateAdded); map.put(DB_NAME_LAST_MODIFIED, UNCAP_PROP_NAME_lastModified); @@ -299,7 +287,6 @@ map.put(TABLE_CAP_PROP_NAME, TABLE_DB_NAME); map.put(CAP_PROP_NAME_OrderStatusId, DB_NAME_ORDER_STATUS_ID); - map.put(CAP_PROP_NAME_NotificationTemplate, DB_NAME_NOTIFICATION_TEMPLATE); map.put(CAP_PROP_NAME_SortOrder, DB_NAME_SORT_ORDER); map.put(CAP_PROP_NAME_DateAdded, DB_NAME_DATE_ADDED); map.put(CAP_PROP_NAME_LastModified, DB_NAME_LAST_MODIFIED); @@ -320,7 +307,6 @@ map.put(TABLE_CAP_PROP_NAME, TABLE_UNCAP_PROP_NAME); map.put(CAP_PROP_NAME_OrderStatusId, UNCAP_PROP_NAME_orderStatusId); - map.put(CAP_PROP_NAME_NotificationTemplate, UNCAP_PROP_NAME_notificationTemplate); map.put(CAP_PROP_NAME_SortOrder, UNCAP_PROP_NAME_sortOrder); map.put(CAP_PROP_NAME_DateAdded, UNCAP_PROP_NAME_dateAdded); map.put(CAP_PROP_NAME_LastModified, UNCAP_PROP_NAME_lastModified); @@ -341,7 +327,6 @@ map.put(TABLE_UNCAP_PROP_NAME, TABLE_DB_NAME); map.put(UNCAP_PROP_NAME_orderStatusId, DB_NAME_ORDER_STATUS_ID); - map.put(UNCAP_PROP_NAME_notificationTemplate, DB_NAME_NOTIFICATION_TEMPLATE); map.put(UNCAP_PROP_NAME_sortOrder, DB_NAME_SORT_ORDER); map.put(UNCAP_PROP_NAME_dateAdded, DB_NAME_DATE_ADDED); map.put(UNCAP_PROP_NAME_lastModified, DB_NAME_LAST_MODIFIED); @@ -362,7 +347,6 @@ map.put(TABLE_UNCAP_PROP_NAME, TABLE_CAP_PROP_NAME); map.put(UNCAP_PROP_NAME_orderStatusId, CAP_PROP_NAME_OrderStatusId); - map.put(UNCAP_PROP_NAME_notificationTemplate, CAP_PROP_NAME_NotificationTemplate); map.put(UNCAP_PROP_NAME_sortOrder, CAP_PROP_NAME_SortOrder); map.put(UNCAP_PROP_NAME_dateAdded, CAP_PROP_NAME_DateAdded); map.put(UNCAP_PROP_NAME_lastModified, CAP_PROP_NAME_LastModified); @@ -575,7 +559,6 @@ public java.util.List<ColumnInfo> getColumnInfoList() { final java.util.List<ColumnInfo> columnInfoList = new java.util.ArrayList<ColumnInfo>(); columnInfoList.add(columnOrderStatusId()); - columnInfoList.add(columnNotificationTemplate()); columnInfoList.add(columnSortOrder()); columnInfoList.add(columnDateAdded()); columnInfoList.add(columnLastModified()); @@ -634,7 +617,7 @@ * @deprecated Please use getColumnInfoList() */ public String getColumnDbNameCommaString() { - return "ORDER_STATUS_ID, NOTIFICATION_TEMPLATE, SORT_ORDER, DATE_ADDED, LAST_MODIFIED"; + return "ORDER_STATUS_ID, SORT_ORDER, DATE_ADDED, LAST_MODIFIED"; } /** @@ -644,12 +627,6 @@ return new ColumnInfo(this, "ORDER_STATUS_ID", "orderStatusId", java.math.BigDecimal.class, true); } /** - * @return Column information of notificationTemplate. (NotNull) - */ - public ColumnInfo columnNotificationTemplate() { - return new ColumnInfo(this, "NOTIFICATION_TEMPLATE", "notificationTemplate", String.class, false); - } - /** * @return Column information of sortOrder. (NotNull) */ public ColumnInfo columnSortOrder() { @@ -733,6 +710,22 @@ return refererInfo; } /** + * Get referer information of orderNotificationList. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererOrderNotificationList() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo(); + refererInfo.setRefererPropertyName("orderNotificationList"); + refererInfo.setLocalDBMeta(OrderStatusDbm.getInstance()); + refererInfo.setRefererDBMeta(OrderNotificationDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnOrderStatusId(), OrderNotificationDbm.getInstance().columnOrderStatusId()); + refererInfo.setLocalRefererColumnInfoMap(map); + refererInfo.setOneToOne(false); + return refererInfo; + } + /** * Get referer information of orderStatusDescriptionList. * * @return Referer information. (NotNull) @@ -812,12 +805,17 @@ public OrderStatusRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { super(relationList, relationTraceList); } - + public OrderFormDbm.OrderFormRelationTrace refererOrderFormList() { _relationList.add(OrderStatusDbm.getInstance().refererOrderFormList()); return OrderFormDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); } + public OrderNotificationDbm.OrderNotificationRelationTrace refererOrderNotificationList() { + _relationList.add(OrderStatusDbm.getInstance().refererOrderNotificationList()); + return OrderNotificationDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + public OrderStatusDescriptionDbm.OrderStatusDescriptionRelationTrace refererOrderStatusDescriptionList() { _relationList.add(OrderStatusDbm.getInstance().refererOrderStatusDescriptionList()); return OrderStatusDescriptionDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); @@ -829,7 +827,6 @@ } public RelationTrace columnOrderStatusId() { return fixTrace(_relationList, OrderStatusDbm.getInstance().columnOrderStatusId()); } - public RelationTrace columnNotificationTemplate() { return fixTrace(_relationList, OrderStatusDbm.getInstance().columnNotificationTemplate()); } public RelationTrace columnSortOrder() { return fixTrace(_relationList, OrderStatusDbm.getInstance().columnSortOrder()); } public RelationTrace columnDateAdded() { return fixTrace(_relationList, OrderStatusDbm.getInstance().columnDateAdded()); } public RelationTrace columnLastModified() { return fixTrace(_relationList, OrderStatusDbm.getInstance().columnLastModified()); } @@ -904,7 +901,6 @@ final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(columnValueMap, entity.getModifiedPropertyNames()); if (analyzer.init("ORDER_STATUS_ID", "orderStatusId", "orderStatusId")) { myEntity.setOrderStatusId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; - if (analyzer.init("NOTIFICATION_TEMPLATE", "notificationTemplate", "notificationTemplate")) { myEntity.setNotificationTemplate(analyzer.analyzeString(String.class)); }; if (analyzer.init("SORT_ORDER", "sortOrder", "sortOrder")) { myEntity.setSortOrder(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("DATE_ADDED", "dateAdded", "dateAdded")) { myEntity.setDateAdded(analyzer.analyzeDate(java.sql.Timestamp.class)); }; if (analyzer.init("LAST_MODIFIED", "lastModified", "lastModified")) { myEntity.setLastModified(analyzer.analyzeDate(java.sql.Timestamp.class)); }; @@ -981,7 +977,6 @@ final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; final StringBuffer sb = new StringBuffer(); helpAppendingColumnValueString(sb, delimiter, equal, "ORDER_STATUS_ID", myEntity.getOrderStatusId()); - helpAppendingColumnValueString(sb, delimiter, equal, "NOTIFICATION_TEMPLATE", myEntity.getNotificationTemplate()); helpAppendingColumnValueString(sb, delimiter, equal, "SORT_ORDER", myEntity.getSortOrder()); helpAppendingColumnValueString(sb, delimiter, equal, "DATE_ADDED", myEntity.getDateAdded()); helpAppendingColumnValueString(sb, delimiter, equal, "LAST_MODIFIED", myEntity.getLastModified()); @@ -1040,7 +1035,6 @@ final OrderStatus myEntity = downcast(entity); final java.util.Map<String, Object> valueMap = new java.util.LinkedHashMap<String, Object>(); valueMap.put("ORDER_STATUS_ID", myEntity.getOrderStatusId()); - valueMap.put("NOTIFICATION_TEMPLATE", myEntity.getNotificationTemplate()); valueMap.put("SORT_ORDER", myEntity.getSortOrder()); valueMap.put("DATE_ADDED", myEntity.getDateAdded()); valueMap.put("LAST_MODIFIED", myEntity.getLastModified()); @@ -1067,7 +1061,6 @@ final OrderStatus myEntity = downcast(entity); final java.util.Map<String, String> valueMap = new java.util.LinkedHashMap<String, String>(); valueMap.put("ORDER_STATUS_ID", helpGettingColumnStringValue(myEntity.getOrderStatusId())); - valueMap.put("NOTIFICATION_TEMPLATE", helpGettingColumnStringValue(myEntity.getNotificationTemplate())); valueMap.put("SORT_ORDER", helpGettingColumnStringValue(myEntity.getSortOrder())); valueMap.put("DATE_ADDED", helpGettingColumnStringValue(myEntity.getDateAdded())); valueMap.put("LAST_MODIFIED", helpGettingColumnStringValue(myEntity.getLastModified())); @@ -1095,9 +1088,9 @@ public String getPreparedInsertClause(PreparedInsertClauseOption preparedInsertClauseOption) { if (preparedInsertClauseOption.getTablePrefix() != null) { final String tablePrefix = preparedInsertClauseOption.getTablePrefix(); - return "insert into " + tablePrefix + "ORDER_STATUS(ORDER_STATUS_ID, NOTIFICATION_TEMPLATE, SORT_ORDER, DATE_ADDED, LAST_MODIFIED) values(? , ? , ? , ? , ? )"; + return "insert into " + tablePrefix + "ORDER_STATUS(ORDER_STATUS_ID, SORT_ORDER, DATE_ADDED, LAST_MODIFIED) values(? , ? , ? , ? )"; } - return "insert into ORDER_STATUS(ORDER_STATUS_ID, NOTIFICATION_TEMPLATE, SORT_ORDER, DATE_ADDED, LAST_MODIFIED) values(? , ? , ? , ? , ? )"; + return "insert into ORDER_STATUS(ORDER_STATUS_ID, SORT_ORDER, DATE_ADDED, LAST_MODIFIED) values(? , ? , ? , ? )"; } // =================================================================================== Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductDbm.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductDbm.java 2007-09-28 04:46:15 UTC (rev 590) @@ -16,13 +16,13 @@ * PRODUCT_ID * * [column-property] - * PRODUCT_ID, MODEL, QUANTITY, PRICE, WEIGHT, IMAGE, THUMBNAIL, ORDERED, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID + * PRODUCT_ID, CODE, MODEL, QUANTITY, PRICE, WEIGHT, SIZE, ORDERED, REVIEWED, RATING, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID * * [foreign-property] * manufacturer, taxClass * * [refferer-property] - * bargainList, customerBasketList, customerBasketAttributeList, orderProductList, orderProductAttributeList, orderProductDownloadList, productAttributeList, productDescriptionList, productNotificationList, productToCategoryList, reviewList + * bargainList, customerBasketList, customerBasketAttributeList, orderProductList, orderProductAttributeList, orderProductDownloadList, productAttributeList, productDescriptionList, productImageList, productNotificationList, productToCategoryList, reviewList * * [sequence] * @@ -95,6 +95,8 @@ // -------------- /** Db-name of PRODUCT_ID. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ public static final String DB_NAME_PRODUCT_ID = "PRODUCT_ID"; + /** Db-name of CODE. VARCHAR(64) */ + public static final String DB_NAME_CODE = "CODE"; /** Db-name of MODEL. VARCHAR(64) */ public static final String DB_NAME_MODEL = "MODEL"; /** Db-name of QUANTITY. INTEGER */ @@ -103,12 +105,14 @@ public static final String DB_NAME_PRICE = "PRICE"; /** Db-name of WEIGHT. DECIMAL(5) */ public static final String DB_NAME_WEIGHT = "WEIGHT"; - /** Db-name of IMAGE. VARCHAR(64) */ - public static final String DB_NAME_IMAGE = "IMAGE"; - /** Db-name of THUMBNAIL. VARCHAR(64) */ - public static final String DB_NAME_THUMBNAIL = "THUMBNAIL"; + /** Db-name of SIZE. VARCHAR(32) */ + public static final String DB_NAME_SIZE = "SIZE"; /** Db-name of ORDERED. INTEGER : NotNull : Default=[0] */ public static final String DB_NAME_ORDERED = "ORDERED"; + /** Db-name of REVIEWED. INTEGER */ + public static final String DB_NAME_REVIEWED = "REVIEWED"; + /** Db-name of RATING. INTEGER */ + public static final String DB_NAME_RATING = "RATING"; /** Db-name of STATUS. INTEGER : NotNull */ public static final String DB_NAME_STATUS = "STATUS"; /** Db-name of DATE_ADDED. TIMESTAMP : NotNull */ @@ -124,6 +128,8 @@ /** @deprecated Deprecated! So use DB_NAME_ProductId. */ public static final String COLUMN_DB_NAME_OF_ProductId = "PRODUCT_ID"; + /** @deprecated Deprecated! So use DB_NAME_Code. */ + public static final String COLUMN_DB_NAME_OF_Code = "CODE"; /** @deprecated Deprecated! So use DB_NAME_Model. */ public static final String COLUMN_DB_NAME_OF_Model = "MODEL"; /** @deprecated Deprecated! So use DB_NAME_Quantity. */ @@ -132,12 +138,14 @@ public static final String COLUMN_DB_NAME_OF_Price = "PRICE"; /** @deprecated Deprecated! So use DB_NAME_Weight. */ public static final String COLUMN_DB_NAME_OF_Weight = "WEIGHT"; - /** @deprecated Deprecated! So use DB_NAME_Image. */ - public static final String COLUMN_DB_NAME_OF_Image = "IMAGE"; - /** @deprecated Deprecated! So use DB_NAME_Thumbnail. */ - public static final String COLUMN_DB_NAME_OF_Thumbnail = "THUMBNAIL"; + /** @deprecated Deprecated! So use DB_NAME_Size. */ + public static final String COLUMN_DB_NAME_OF_Size = "SIZE"; /** @deprecated Deprecated! So use DB_NAME_Ordered. */ public static final String COLUMN_DB_NAME_OF_Ordered = "ORDERED"; + /** @deprecated Deprecated! So use DB_NAME_Reviewed. */ + public static final String COLUMN_DB_NAME_OF_Reviewed = "REVIEWED"; + /** @deprecated Deprecated! So use DB_NAME_Rating. */ + public static final String COLUMN_DB_NAME_OF_Rating = "RATING"; /** @deprecated Deprecated! So use DB_NAME_Status. */ public static final String COLUMN_DB_NAME_OF_Status = "STATUS"; /** @deprecated Deprecated! So use DB_NAME_DateAdded. */ @@ -156,6 +164,8 @@ // ------------------------------- /** Prop-name(JavaBeansRule) of productId. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ public static final String PROPERTY_NAME_productId = "productId"; + /** Prop-name(JavaBeansRule) of code. VARCHAR(64) */ + public static final String PROPERTY_NAME_code = "code"; /** Prop-name(JavaBeansRule) of model. VARCHAR(64) */ public static final String PROPERTY_NAME_model = "model"; /** Prop-name(JavaBeansRule) of quantity. INTEGER */ @@ -164,12 +174,14 @@ public static final String PROPERTY_NAME_price = "price"; /** Prop-name(JavaBeansRule) of weight. DECIMAL(5) */ public static final String PROPERTY_NAME_weight = "weight"; - /** Prop-name(JavaBeansRule) of image. VARCHAR(64) */ - public static final String PROPERTY_NAME_image = "image"; - /** Prop-name(JavaBeansRule) of thumbnail. VARCHAR(64) */ - public static final String PROPERTY_NAME_thumbnail = "thumbnail"; + /** Prop-name(JavaBeansRule) of size. VARCHAR(32) */ + public static final String PROPERTY_NAME_size = "size"; /** Prop-name(JavaBeansRule) of ordered. INTEGER : NotNull : Default=[0] */ public static final String PROPERTY_NAME_ordered = "ordered"; + /** Prop-name(JavaBeansRule) of reviewed. INTEGER */ + public static final String PROPERTY_NAME_reviewed = "reviewed"; + /** Prop-name(JavaBeansRule) of rating. INTEGER */ + public static final String PROPERTY_NAME_rating = "rating"; /** Prop-name(JavaBeansRule) of status. INTEGER : NotNull */ public static final String PROPERTY_NAME_status = "status"; /** Prop-name(JavaBeansRule) of dateAdded. TIMESTAMP : NotNull */ @@ -188,6 +200,8 @@ // -------------------- /** Cap-prop-name of productId. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ public static final String CAP_PROP_NAME_ProductId = "ProductId"; + /** Cap-prop-name of code. VARCHAR(64) */ + public static final String CAP_PROP_NAME_Code = "Code"; /** Cap-prop-name of model. VARCHAR(64) */ public static final String CAP_PROP_NAME_Model = "Model"; /** Cap-prop-name of quantity. INTEGER */ @@ -196,12 +210,14 @@ public static final String CAP_PROP_NAME_Price = "Price"; /** Cap-prop-name of weight. DECIMAL(5) */ public static final String CAP_PROP_NAME_Weight = "Weight"; - /** Cap-prop-name of image. VARCHAR(64) */ - public static final String CAP_PROP_NAME_Image = "Image"; - /** Cap-prop-name of thumbnail. VARCHAR(64) */ - public static final String CAP_PROP_NAME_Thumbnail = "Thumbnail"; + /** Cap-prop-name of size. VARCHAR(32) */ + public static final String CAP_PROP_NAME_Size = "Size"; /** Cap-prop-name of ordered. INTEGER : NotNull : Default=[0] */ public static final String CAP_PROP_NAME_Ordered = "Ordered"; + /** Cap-prop-name of reviewed. INTEGER */ + public static final String CAP_PROP_NAME_Reviewed = "Reviewed"; + /** Cap-prop-name of rating. INTEGER */ + public static final String CAP_PROP_NAME_Rating = "Rating"; /** Cap-prop-name of status. INTEGER : NotNull */ public static final String CAP_PROP_NAME_Status = "Status"; /** Cap-prop-name of dateAdded. TIMESTAMP : NotNull */ @@ -217,6 +233,8 @@ /** @deprecated Deprecated! So use CAP_PROP_NAME_ProductId. */ public static final String COLUMN_CAP_PROP_NAME_OF_ProductId = "ProductId"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Code. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Code = "Code"; /** @deprecated Deprecated! So use CAP_PROP_NAME_Model. */ public static final String COLUMN_CAP_PROP_NAME_OF_Model = "Model"; /** @deprecated Deprecated! So use CAP_PROP_NAME_Quantity. */ @@ -225,12 +243,14 @@ public static final String COLUMN_CAP_PROP_NAME_OF_Price = "Price"; /** @deprecated Deprecated! So use CAP_PROP_NAME_Weight. */ public static final String COLUMN_CAP_PROP_NAME_OF_Weight = "Weight"; - /** @deprecated Deprecated! So use CAP_PROP_NAME_Image. */ - public static final String COLUMN_CAP_PROP_NAME_OF_Image = "Image"; - /** @deprecated Deprecated! So use CAP_PROP_NAME_Thumbnail. */ - public static final String COLUMN_CAP_PROP_NAME_OF_Thumbnail = "Thumbnail"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Size. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Size = "Size"; /** @deprecated Deprecated! So use CAP_PROP_NAME_Ordered. */ public static final String COLUMN_CAP_PROP_NAME_OF_Ordered = "Ordered"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Reviewed. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Reviewed = "Reviewed"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Rating. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Rating = "Rating"; /** @deprecated Deprecated! So use CAP_PROP_NAME_Status. */ public static final String COLUMN_CAP_PROP_NAME_OF_Status = "Status"; /** @deprecated Deprecated! So use CAP_PROP_NAME_DateAdded. */ @@ -249,6 +269,8 @@ // ---------------------- /** Uncap-prop-name of productId. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ public static final String UNCAP_PROP_NAME_productId = "productId"; + /** Uncap-prop-name of code. VARCHAR(64) */ + public static final String UNCAP_PROP_NAME_code = "code"; /** Uncap-prop-name of model. VARCHAR(64) */ public static final String UNCAP_PROP_NAME_model = "model"; /** Uncap-prop-name of quantity. INTEGER */ @@ -257,12 +279,14 @@ public static final String UNCAP_PROP_NAME_price = "price"; /** Uncap-prop-name of weight. DECIMAL(5) */ public static final String UNCAP_PROP_NAME_weight = "weight"; - /** Uncap-prop-name of image. VARCHAR(64) */ - public static final String UNCAP_PROP_NAME_image = "image"; - /** Uncap-prop-name of thumbnail. VARCHAR(64) */ - public static final String UNCAP_PROP_NAME_thumbnail = "thumbnail"; + /** Uncap-prop-name of size. VARCHAR(32) */ + public static final String UNCAP_PROP_NAME_size = "size"; /** Uncap-prop-name of ordered. INTEGER : NotNull : Default=[0] */ public static final String UNCAP_PROP_NAME_ordered = "ordered"; + /** Uncap-prop-name of reviewed. INTEGER */ + public static final String UNCAP_PROP_NAME_reviewed = "reviewed"; + /** Uncap-prop-name of rating. INTEGER */ + public static final String UNCAP_PROP_NAME_rating = "rating"; /** Uncap-prop-name of status. INTEGER : NotNull */ public static final String UNCAP_PROP_NAME_status = "status"; /** Uncap-prop-name of dateAdded. TIMESTAMP : NotNull */ @@ -278,6 +302,8 @@ /** @deprecated Deprecated! So use UNCAP_PROP_NAME_ProductId. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_ProductId = "productId"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Code. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Code = "code"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Model. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_Model = "model"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Quantity. */ @@ -286,12 +312,14 @@ public static final String COLUMN_UNCAP_PROP_NAME_OF_Price = "price"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Weight. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_Weight = "weight"; - /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Image. */ - public static final String COLUMN_UNCAP_PROP_NAME_OF_Image = "image"; - /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Thumbnail. */ - public static final String COLUMN_UNCAP_PROP_NAME_OF_Thumbnail = "thumbnail"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Size. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Size = "size"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Ordered. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_Ordered = "ordered"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Reviewed. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Reviewed = "reviewed"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Rating. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Rating = "rating"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Status. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_Status = "status"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_DateAdded. */ @@ -341,6 +369,8 @@ public static final String REFERER_PROPERTY_NAME_productAttributeList = "productAttributeList"; /** The referer property name(JavaBeansRule) of productDescriptionList. */ public static final String REFERER_PROPERTY_NAME_productDescriptionList = "productDescriptionList"; + /** The referer property name(JavaBeansRule) of productImageList. */ + public static final String REFERER_PROPERTY_NAME_productImageList = "productImageList"; /** The referer property name(JavaBeansRule) of productNotificationList. */ public static final String REFERER_PROPERTY_NAME_productNotificationList = "productNotificationList"; /** The referer property name(JavaBeansRule) of productToCategoryList. */ @@ -363,6 +393,8 @@ public static final String REFERER_CAP_PROP_NAME_ProductAttributeList = "ProductAttributeList"; /** @deprecated Use REFERER_NAME_productDescriptionList */ public static final String REFERER_CAP_PROP_NAME_ProductDescriptionList = "ProductDescriptionList"; + /** @deprecated Use REFERER_NAME_productImageList */ + public static final String REFERER_CAP_PROP_NAME_ProductImageList = "ProductImageList"; /** @deprecated Use REFERER_NAME_productNotificationList */ public static final String REFERER_CAP_PROP_NAME_ProductNotificationList = "ProductNotificationList"; /** @deprecated Use REFERER_NAME_productToCategoryList */ @@ -386,6 +418,8 @@ public static final String REFERER_UNCAP_PROP_NAME_productAttributeList = "productAttributeList"; /** @deprecated Use REFERER_NAME_productDescriptionList */ public static final String REFERER_UNCAP_PROP_NAME_productDescriptionList = "productDescriptionList"; + /** @deprecated Use REFERER_NAME_productImageList */ + public static final String REFERER_UNCAP_PROP_NAME_productImageList = "productImageList"; /** @deprecated Use REFERER_NAME_productNotificationList */ public static final String REFERER_UNCAP_PROP_NAME_productNotificationList = "productNotificationList"; /** @deprecated Use REFERER_NAME_productToCategoryList */ @@ -403,13 +437,15 @@ map.put(TABLE_DB_NAME.toLowerCase(), TABLE_PROPERTY_NAME); map.put(DB_NAME_PRODUCT_ID.toLowerCase(), PROPERTY_NAME_productId); + map.put(DB_NAME_CODE.toLowerCase(), PROPERTY_NAME_code); map.put(DB_NAME_MODEL.toLowerCase(), PROPERTY_NAME_model); map.put(DB_NAME_QUANTITY.toLowerCase(), PROPERTY_NAME_quantity); map.put(DB_NAME_PRICE.toLowerCase(), PROPERTY_NAME_price); map.put(DB_NAME_WEIGHT.toLowerCase(), PROPERTY_NAME_weight); - map.put(DB_NAME_IMAGE.toLowerCase(), PROPERTY_NAME_image); - map.put(DB_NAME_THUMBNAIL.toLowerCase(), PROPERTY_NAME_thumbnail); + map.put(DB_NAME_SIZE.toLowerCase(), PROPERTY_NAME_size); map.put(DB_NAME_ORDERED.toLowerCase(), PROPERTY_NAME_ordered); + map.put(DB_NAME_REVIEWED.toLowerCase(), PROPERTY_NAME_reviewed); + map.put(DB_NAME_RATING.toLowerCase(), PROPERTY_NAME_rating); map.put(DB_NAME_STATUS.toLowerCase(), PROPERTY_NAME_status); map.put(DB_NAME_DATE_ADDED.toLowerCase(), PROPERTY_NAME_dateAdded); map.put(DB_NAME_LAST_MODIFIED.toLowerCase(), PROPERTY_NAME_lastModified); @@ -431,13 +467,15 @@ map.put(TABLE_PROPERTY_NAME.toLowerCase(), TABLE_DB_NAME); map.put(PROPERTY_NAME_productId.toLowerCase(), DB_NAME_PRODUCT_ID); + map.put(PROPERTY_NAME_code.toLowerCase(), DB_NAME_CODE); map.put(PROPERTY_NAME_model.toLowerCase(), DB_NAME_MODEL); map.put(PROPERTY_NAME_quantity.toLowerCase(), DB_NAME_QUANTITY); map.put(PROPERTY_NAME_price.toLowerCase(), DB_NAME_PRICE); map.put(PROPERTY_NAME_weight.toLowerCase(), DB_NAME_WEIGHT); - map.put(PROPERTY_NAME_image.toLowerCase(), DB_NAME_IMAGE); - map.put(PROPERTY_NAME_thumbnail.toLowerCase(), DB_NAME_THUMBNAIL); + map.put(PROPERTY_NAME_size.toLowerCase(), DB_NAME_SIZE); map.put(PROPERTY_NAME_ordered.toLowerCase(), DB_NAME_ORDERED); + map.put(PROPERTY_NAME_reviewed.toLowerCase(), DB_NAME_REVIEWED); + map.put(PROPERTY_NAME_rating.toLowerCase(), DB_NAME_RATING); map.put(PROPERTY_NAME_status.toLowerCase(), DB_NAME_STATUS); map.put(PROPERTY_NAME_dateAdded.toLowerCase(), DB_NAME_DATE_ADDED); map.put(PROPERTY_NAME_lastModified.toLowerCase(), DB_NAME_LAST_MODIFIED); @@ -461,13 +499,15 @@ map.put(TABLE_DB_NAME, TABLE_CAP_PROP_NAME); map.put(DB_NAME_PRODUCT_ID, CAP_PROP_NAME_ProductId); + map.put(DB_NAME_CODE, CAP_PROP_NAME_Code); map.put(DB_NAME_MODEL, CAP_PROP_NAME_Model); map.put(DB_NAME_QUANTITY, CAP_PROP_NAME_Quantity); map.put(DB_NAME_PRICE, CAP_PROP_NAME_Price); map.put(DB_NAME_WEIGHT, CAP_PROP_NAME_Weight); - map.put(DB_NAME_IMAGE, CAP_PROP_NAME_Image); - map.put(DB_NAME_THUMBNAIL, CAP_PROP_NAME_Thumbnail); + map.put(DB_NAME_SIZE, CAP_PROP_NAME_Size); map.put(DB_NAME_ORDERED, CAP_PROP_NAME_Ordered); + map.put(DB_NAME_REVIEWED, CAP_PROP_NAME_Reviewed); + map.put(DB_NAME_RATING, CAP_PROP_NAME_Rating); map.put(DB_NAME_STATUS, CAP_PROP_NAME_Status); map.put(DB_NAME_DATE_ADDED, CAP_PROP_NAME_DateAdded); map.put(DB_NAME_LAST_MODIFIED, CAP_PROP_NAME_LastModified); @@ -491,13 +531,15 @@ map.put(TABLE_DB_NAME, TABLE_UNCAP_PROP_NAME); map.put(DB_NAME_PRODUCT_ID, UNCAP_PROP_NAME_productId); + map.put(DB_NAME_CODE, UNCAP_PROP_NAME_code); map.put(DB_NAME_MODEL, UNCAP_PROP_NAME_model); map.put(DB_NAME_QUANTITY, UNCAP_PROP_NAME_quantity); map.put(DB_NAME_PRICE, UNCAP_PROP_NAME_price); map.put(DB_NAME_WEIGHT, UNCAP_PROP_NAME_weight); - map.put(DB_NAME_IMAGE, UNCAP_PROP_NAME_image); - map.put(DB_NAME_THUMBNAIL, UNCAP_PROP_NAME_thumbnail); + map.put(DB_NAME_SIZE, UNCAP_PROP_NAME_size); map.put(DB_NAME_ORDERED, UNCAP_PROP_NAME_ordered); + map.put(DB_NAME_REVIEWED, UNCAP_PROP_NAME_reviewed); + map.put(DB_NAME_RATING, UNCAP_PROP_NAME_rating); map.put(DB_NAME_STATUS, UNCAP_PROP_NAME_status); map.put(DB_NAME_DATE_ADDED, UNCAP_PROP_NAME_dateAdded); map.put(DB_NAME_LAST_MODIFIED, UNCAP_PROP_NAME_lastModified); @@ -521,13 +563,15 @@ map.put(TABLE_CAP_PROP_NAME, TABLE_DB_NAME); map.put(CAP_PROP_NAME_ProductId, DB_NAME_PRODUCT_ID); + map.put(CAP_PROP_NAME_Code, DB_NAME_CODE); map.put(CAP_PROP_NAME_Model, DB_NAME_MODEL); map.put(CAP_PROP_NAME_Quantity, DB_NAME_QUANTITY); map.put(CAP_PROP_NAME_Price, DB_NAME_PRICE); map.put(CAP_PROP_NAME_Weight, DB_NAME_WEIGHT); - map.put(CAP_PROP_NAME_Image, DB_NAME_IMAGE); - map.put(CAP_PROP_NAME_Thumbnail, DB_NAME_THUMBNAIL); + map.put(CAP_PROP_NAME_Size, DB_NAME_SIZE); map.put(CAP_PROP_NAME_Ordered, DB_NAME_ORDERED); + map.put(CAP_PROP_NAME_Reviewed, DB_NAME_REVIEWED); + map.put(CAP_PROP_NAME_Rating, DB_NAME_RATING); map.put(CAP_PROP_NAME_Status, DB_NAME_STATUS); map.put(CAP_PROP_NAME_DateAdded, DB_NAME_DATE_ADDED); map.put(CAP_PROP_NAME_LastModified, DB_NAME_LAST_MODIFIED); @@ -551,13 +595,15 @@ map.put(TABLE_CAP_PROP_NAME, TABLE_UNCAP_PROP_NAME); map.put(CAP_PROP_NAME_ProductId, UNCAP_PROP_NAME_productId); + map.put(CAP_PROP_NAME_Code, UNCAP_PROP_NAME_code); map.put(CAP_PROP_NAME_Model, UNCAP_PROP_NAME_model); map.put(CAP_PROP_NAME_Quantity, UNCAP_PROP_NAME_quantity); map.put(CAP_PROP_NAME_Price, UNCAP_PROP_NAME_price); map.put(CAP_PROP_NAME_Weight, UNCAP_PROP_NAME_weight); - map.put(CAP_PROP_NAME_Image, UNCAP_PROP_NAME_image); - map.put(CAP_PROP_NAME_Thumbnail, UNCAP_PROP_NAME_thumbnail); + map.put(CAP_PROP_NAME_Size, UNCAP_PROP_NAME_size); map.put(CAP_PROP_NAME_Ordered, UNCAP_PROP_NAME_ordered); + map.put(CAP_PROP_NAME_Reviewed, UNCAP_PROP_NAME_reviewed); + map.put(CAP_PROP_NAME_Rating, UNCAP_PROP_NAME_rating); map.put(CAP_PROP_NAME_Status, UNCAP_PROP_NAME_status); map.put(CAP_PROP_NAME_DateAdded, UNCAP_PROP_NAME_dateAdded); map.put(CAP_PROP_NAME_LastModified, UNCAP_PROP_NAME_lastModified); @@ -581,13 +627,15 @@ map.put(TABLE_UNCAP_PROP_NAME, TABLE_DB_NAME); map.put(UNCAP_PROP_NAME_productId, DB_NAME_PRODUCT_ID); + map.put(UNCAP_PROP_NAME_code, DB_NAME_CODE); map.put(UNCAP_PROP_NAME_model, DB_NAME_MODEL); map.put(UNCAP_PROP_NAME_quantity, DB_NAME_QUANTITY); map.put(UNCAP_PROP_NAME_price, DB_NAME_PRICE); map.put(UNCAP_PROP_NAME_weight, DB_NAME_WEIGHT); - map.put(UNCAP_PROP_NAME_image, DB_NAME_IMAGE); - map.put(UNCAP_PROP_NAME_thumbnail, DB_NAME_THUMBNAIL); + map.put(UNCAP_PROP_NAME_size, DB_NAME_SIZE); map.put(UNCAP_PROP_NAME_ordered, DB_NAME_ORDERED); + map.put(UNCAP_PROP_NAME_reviewed, DB_NAME_REVIEWED); + map.put(UNCAP_PROP_NAME_rating, DB_NAME_RATING); map.put(UNCAP_PROP_NAME_status, DB_NAME_STATUS); map.put(UNCAP_PROP_NAME_dateAdded, DB_NAME_DATE_ADDED); map.put(UNCAP_PROP_NAME_lastModified, DB_NAME_LAST_MODIFIED); @@ -611,13 +659,15 @@ map.put(TABLE_UNCAP_PROP_NAME, TABLE_CAP_PROP_NAME); map.put(UNCAP_PROP_NAME_productId, CAP_PROP_NAME_ProductId); + map.put(UNCAP_PROP_NAME_code, CAP_PROP_NAME_Code); map.put(UNCAP_PROP_NAME_model, CAP_PROP_NAME_Model); map.put(UNCAP_PROP_NAME_quantity, CAP_PROP_NAME_Quantity); map.put(UNCAP_PROP_NAME_price, CAP_PROP_NAME_Price); map.put(UNCAP_PROP_NAME_weight, CAP_PROP_NAME_Weight); - map.put(UNCAP_PROP_NAME_image, CAP_PROP_NAME_Image); - map.put(UNCAP_PROP_NAME_thumbnail, CAP_PROP_NAME_Thumbnail); + map.put(UNCAP_PROP_NAME_size, CAP_PROP_NAME_Size); map.put(UNCAP_PROP_NAME_ordered, CAP_PROP_NAME_Ordered); + map.put(UNCAP_PROP_NAME_reviewed, CAP_PROP_NAME_Reviewed); + map.put(UNCAP_PROP_NAME_rating, CAP_PROP_NAME_Rating); map.put(UNCAP_PROP_NAME_status, CAP_PROP_NAME_Status); map.put(UNCAP_PROP_NAME_dateAdded, CAP_PROP_NAME_DateAdded); map.put(UNCAP_PROP_NAME_lastModified, CAP_PROP_NAME_LastModified); @@ -833,13 +883,15 @@ public java.util.List<ColumnInfo> getColumnInfoList() { final java.util.List<ColumnInfo> columnInfoList = new java.util.ArrayList<ColumnInfo>(); columnInfoList.add(columnProductId()); + columnInfoList.add(columnCode()); columnInfoList.add(columnModel()); columnInfoList.add(columnQuantity()); columnInfoList.add(columnPrice()); columnInfoList.add(columnWeight()); - columnInfoList.add(columnImage()); - columnInfoList.add(columnThumbnail()); + columnInfoList.add(columnSize()); columnInfoList.add(columnOrdered()); + columnInfoList.add(columnReviewed()); + columnInfoList.add(columnRating()); columnInfoList.add(columnStatus()); columnInfoList.add(columnDateAdded()); columnInfoList.add(columnLastModified()); @@ -901,7 +953,7 @@ * @deprecated Please use getColumnInfoList() */ public String getColumnDbNameCommaString() { - return "PRODUCT_ID, MODEL, QUANTITY, PRICE, WEIGHT, IMAGE, THUMBNAIL, ORDERED, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID"; + return "PRODUCT_ID, CODE, MODEL, QUANTITY, PRICE, WEIGHT, SIZE, ORDERED, REVIEWED, RATING, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID"; } /** @@ -911,6 +963,12 @@ return new ColumnInfo(this, "PRODUCT_ID", "productId", java.math.BigDecimal.class, true); } /** + * @return Column information of code. (NotNull) + */ + public ColumnInfo columnCode() { + return new ColumnInfo(this, "CODE", "code", String.class, false); + } + /** * @return Column information of model. (NotNull) */ public ColumnInfo columnModel() { @@ -935,24 +993,30 @@ return new ColumnInfo(this, "WEIGHT", "weight", java.math.BigDecimal.class, false); } /** - * @return Column information of image. (NotNull) + * @return Column information of size. (NotNull) */ - public ColumnInfo columnImage() { - return new ColumnInfo(this, "IMAGE", "image", String.class, false); + public ColumnInfo columnSize() { + return new ColumnInfo(this, "SIZE", "size", String.class, false); } /** - * @return Column information of thumbnail. (NotNull) - */ - public ColumnInfo columnThumbnail() { - return new ColumnInfo(this, "THUMBNAIL", "thumbnail", String.class, false); - } - /** * @return Column information of ordered. (NotNull) */ public ColumnInfo columnOrdered() { return new ColumnInfo(this, "ORDERED", "ordered", java.math.BigDecimal.class, false); } /** + * @return Column information of reviewed. (NotNull) + */ + public ColumnInfo columnReviewed() { + return new ColumnInfo(this, "REVIEWED", "reviewed", java.math.BigDecimal.class, false); + } + /** + * @return Column information of rating. (NotNull) + */ + public ColumnInfo columnRating() { + return new ColumnInfo(this, "RATING", "rating", java.math.BigDecimal.class, false); + } + /** * @return Column information of status. (NotNull) */ public ColumnInfo columnStatus() { @@ -1198,6 +1262,22 @@ return refererInfo; } /** + * Get referer information of productImageList. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererProductImageList() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo(); + refererInfo.setRefererPropertyName("productImageList"); + refererInfo.setLocalDBMeta(ProductDbm.getInstance()); + refererInfo.setRefererDBMeta(ProductImageDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnProductId(), ProductImageDbm.getInstance().columnProductId()); + refererInfo.setLocalRefererColumnInfoMap(map); + refererInfo.setOneToOne(false); + return refererInfo; + } + /** * Get referer information of productNotificationList. * * @return Referer information. (NotNull) @@ -1303,7 +1383,7 @@ _relationList.add(ProductDbm.getInstance().foreignTaxClass()); return TaxClassDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); } - + public BargainDbm.BargainRelationTrace refererBargainList() { _relationList.add(ProductDbm.getInstance().refererBargainList()); return BargainDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); @@ -1344,6 +1424,11 @@ return ProductDescriptionDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); } + public ProductImageDbm.ProductImageRelationTrace refererProductImageList() { + _relationList.add(ProductDbm.getInstance().refererProductImageList()); + return ProductImageDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + public ProductNotificationDbm.ProductNotificationRelationTrace refererProductNotificationList() { _relationList.add(ProductDbm.getInstance().refererProductNotificationList()); return ProductNotificationDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); @@ -1360,13 +1445,15 @@ } public RelationTrace columnProductId() { return fixTrace(_relationList, ProductDbm.getInstance().columnProductId()); } + public RelationTrace columnCode() { return fixTrace(_relationList, ProductDbm.getInstance().columnCode()); } public RelationTrace columnModel() { return fixTrace(_relationList, ProductDbm.getInstance().columnModel()); } public RelationTrace columnQuantity() { return fixTrace(_relationList, ProductDbm.getInstance().columnQuantity()); } public RelationTrace columnPrice() { return fixTrace(_relationList, ProductDbm.getInstance().columnPrice()); } public RelationTrace columnWeight() { return fixTrace(_relationList, ProductDbm.getInstance().columnWeight()); } - public RelationTrace columnImage() { return fixTrace(_relationList, ProductDbm.getInstance().columnImage()); } - public RelationTrace columnThumbnail() { return fixTrace(_relationList, ProductDbm.getInstance().columnThumbnail()); } + public RelationTrace columnSize() { return fixTrace(_relationList, ProductDbm.getInstance().columnSize()); } public RelationTrace columnOrdered() { return fixTrace(_relationList, ProductDbm.getInstance().columnOrdered()); } + public RelationTrace columnReviewed() { return fixTrace(_relationList, ProductDbm.getInstance().columnReviewed()); } + public RelationTrace columnRating() { return fixTrace(_relationList, ProductDbm.getInstance().columnRating()); } public RelationTrace columnStatus() { return fixTrace(_relationList, ProductDbm.getInstance().columnStatus()); } public RelationTrace columnDateAdded() { return fixTrace(_relationList, ProductDbm.getInstance().columnDateAdded()); } public RelationTrace columnLastModified() { return fixTrace(_relationList, ProductDbm.getInstance().columnLastModified()); } @@ -1444,13 +1531,15 @@ final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(columnValueMap, entity.getModifiedPropertyNames()); if (analyzer.init("PRODUCT_ID", "productId", "productId")) { myEntity.setProductId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("CODE", "code", "code")) { myEntity.setCode(analyzer.analyzeString(String.class)); }; if (analyzer.init("MODEL", "model", "model")) { myEntity.setModel(analyzer.analyzeString(String.class)); }; if (analyzer.init("QUANTITY", "quantity", "quantity")) { myEntity.setQuantity(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("PRICE", "price", "price")) { myEntity.setPrice(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("WEIGHT", "weight", "weight")) { myEntity.setWeight(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; - if (analyzer.init("IMAGE", "image", "image")) { myEntity.setImage(analyzer.analyzeString(String.class)); }; - if (analyzer.init("THUMBNAIL", "thumbnail", "thumbnail")) { myEntity.setThumbnail(analyzer.analyzeString(String.class)); }; + if (analyzer.init("SIZE", "size", "size")) { myEntity.setSize(analyzer.analyzeString(String.class)); }; if (analyzer.init("ORDERED", "ordered", "ordered")) { myEntity.setOrdered(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("REVIEWED", "reviewed", "reviewed")) { myEntity.setReviewed(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("RATING", "rating", "rating")) { myEntity.setRating(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("STATUS", "status", "status")) { myEntity.setStatus(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("DATE_ADDED", "dateAdded", "dateAdded")) { myEntity.setDateAdded(analyzer.analyzeDate(java.sql.Timestamp.class)); }; if (analyzer.init("LAST_MODIFIED", "lastModified", "lastModified")) { myEntity.setLastModified(analyzer.analyzeDate(java.sql.Timestamp.class)); }; @@ -1530,13 +1619,15 @@ final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; final StringBuffer sb = new StringBuffer(); helpAppendingColumnValueString(sb, delimiter, equal, "PRODUCT_ID", myEntity.getProductId()); + helpAppendingColumnValueString(sb, delimiter, equal, "CODE", myEntity.getCode()); helpAppendingColumnValueString(sb, delimiter, equal, "MODEL", myEntity.getModel()); helpAppendingColumnValueString(sb, delimiter, equal, "QUANTITY", myEntity.getQuantity()); helpAppendingColumnValueString(sb, delimiter, equal, "PRICE", myEntity.getPrice()); helpAppendingColumnValueString(sb, delimiter, equal, "WEIGHT", myEntity.getWeight()); - helpAppendingColumnValueString(sb, delimiter, equal, "IMAGE", myEntity.getImage()); - helpAppendingColumnValueString(sb, delimiter, equal, "THUMBNAIL", myEntity.getThumbnail()); + helpAppendingColumnValueString(sb, delimiter, equal, "SIZE", myEntity.getSize()); helpAppendingColumnValueString(sb, delimiter, equal, "ORDERED", myEntity.getOrdered()); + helpAppendingColumnValueString(sb, delimiter, equal, "REVIEWED", myEntity.getReviewed()); + helpAppendingColumnValueString(sb, delimiter, equal, "RATING", myEntity.getRating()); helpAppendingColumnValueString(sb, delimiter, equal, "STATUS", myEntity.getStatus()); helpAppendingColumnValueString(sb, delimiter, equal, "DATE_ADDED", myEntity.getDateAdded()); helpAppendingColumnValueString(sb, delimiter, equal, "LAST_MODIFIED", myEntity.getLastModified()); @@ -1598,13 +1689,15 @@ final Product myEntity = downcast(entity); final java.util.Map<String, Object> valueMap = new java.util.LinkedHashMap<String, Object>(); valueMap.put("PRODUCT_ID", myEntity.getProductId()); + valueMap.put("CODE", myEntity.getCode()); valueMap.put("MODEL", myEntity.getModel()); valueMap.put("QUANTITY", myEntity.getQuantity()); valueMap.put("PRICE", myEntity.getPrice()); valueMap.put("WEIGHT", myEntity.getWeight()); - valueMap.put("IMAGE", myEntity.getImage()); - valueMap.put("THUMBNAIL", myEntity.getThumbnail()); + valueMap.put("SIZE", myEntity.getSize()); valueMap.put("ORDERED", myEntity.getOrdered()); + valueMap.put("REVIEWED", myEntity.getReviewed()); + valueMap.put("RATING", myEntity.getRating()); valueMap.put("STATUS", myEntity.getStatus()); valueMap.put("DATE_ADDED", myEntity.getDateAdded()); valueMap.put("LAST_MODIFIED", myEntity.getLastModified()); @@ -1634,13 +1727,15 @@ final Product myEntity = downcast(entity); final java.util.Map<String, String> valueMap = new java.util.LinkedHashMap<String, String>(); valueMap.put("PRODUCT_ID", helpGettingColumnStringValue(myEntity.getProductId())); + valueMap.put("CODE", helpGettingColumnStringValue(myEntity.getCode())); valueMap.put("MODEL", helpGettingColumnStringValue(myEntity.getModel())); valueMap.put("QUANTITY", helpGettingColumnStringValue(myEntity.getQuantity())); valueMap.put("PRICE", helpGettingColumnStringValue(myEntity.getPrice())); valueMap.put("WEIGHT", helpGettingColumnStringValue(myEntity.getWeight())); - valueMap.put("IMAGE", helpGettingColumnStringValue(myEntity.getImage())); - valueMap.put("THUMBNAIL", helpGettingColumnStringValue(myEntity.getThumbnail())); + valueMap.put("SIZE", helpGettingColumnStringValue(myEntity.getSize())); valueMap.put("ORDERED", helpGettingColumnStringValue(myEntity.getOrdered())); + valueMap.put("REVIEWED", helpGettingColumnStringValue(myEntity.getReviewed())); + valueMap.put("RATING", helpGettingColumnStringValue(myEntity.getRating())); valueMap.put("STATUS", helpGettingColumnStringValue(myEntity.getStatus())); valueMap.put("DATE_ADDED", helpGettingColumnStringValue(myEntity.getDateAdded())); valueMap.put("LAST_MODIFIED", helpGettingColumnStringValue(myEntity.getLastModified())); @@ -1671,9 +1766,9 @@ public String getPreparedInsertClause(PreparedInsertClauseOption preparedInsertClauseOption) { if (preparedInsertClauseOption.getTablePrefix() != null) { final String tablePrefix = preparedInsertClauseOption.getTablePrefix(); - return "insert into " + tablePrefix + "PRODUCT(PRODUCT_ID, MODEL, QUANTITY, PRICE, WEIGHT, IMAGE, THUMBNAIL, ORDERED, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; + return "insert into " + tablePrefix + "PRODUCT(PRODUCT_ID, CODE, MODEL, QUANTITY, PRICE, WEIGHT, SIZE, ORDERED, REVIEWED, RATING, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; } - return "insert into PRODUCT(PRODUCT_ID, MODEL, QUANTITY, PRICE, WEIGHT, IMAGE, THUMBNAIL, ORDERED, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; + return "insert into PRODUCT(PRODUCT_ID, CODE, MODEL, QUANTITY, PRICE, WEIGHT, SIZE, ORDERED, REVIEWED, RATING, STATUS, DATE_ADDED, LAST_MODIFIED, DATE_AVAILABLE, TAX_CLASS_ID, MANUFACTURER_ID) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; } // =================================================================================== Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductDescriptionDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductDescriptionDbm.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductDescriptionDbm.java 2007-09-28 04:46:15 UTC (rev 590) @@ -16,7 +16,7 @@ * PRODUCT_ID, LANGUAGE_ID * * [column-property] - * PRODUCT_ID, LANGUAGE_ID, NAME, DESCRIPTION, URL, VIEWED + * PRODUCT_ID, LANGUAGE_ID, NAME, TITLE, DESCRIPTION, URL, VIEWED * * [foreign-property] * language, product @@ -99,6 +99,8 @@ public static final String DB_NAME_LANGUAGE_ID = "LANGUAGE_ID"; /** Db-name of NAME. VARCHAR(64) : NotNull : Default=[] */ public static final String DB_NAME_NAME = "NAME"; + /** Db-name of TITLE. VARCHAR(255) */ + public static final String DB_NAME_TITLE = "TITLE"; /** Db-name of DESCRIPTION. LONG VARCHAR(32700) */ public static final String DB_NAME_DESCRIPTION = "DESCRIPTION"; /** Db-name of URL. VARCHAR(255) */ @@ -112,6 +114,8 @@ public static final String COLUMN_DB_NAME_OF_LanguageId = "LANGUAGE_ID"; /** @deprecated Deprecated! So use DB_NAME_Name. */ public static final String COLUMN_DB_NAME_OF_Name = "NAME"; + /** @deprecated Deprecated! So use DB_NAME_Title. */ + public static final String COLUMN_DB_NAME_OF_Title = "TITLE"; /** @deprecated Deprecated! So use DB_NAME_Description. */ public static final String COLUMN_DB_NAME_OF_Description = "DESCRIPTION"; /** @deprecated Deprecated! So use DB_NAME_Url. */ @@ -128,6 +132,8 @@ public static final String PROPERTY_NAME_languageId = "languageId"; /** Prop-name(JavaBeansRule) of name. VARCHAR(64) : NotNull : Default=[] */ public static final String PROPERTY_NAME_name = "name"; + /** Prop-name(JavaBeansRule) of title. VARCHAR(255) */ + public static final String PROPERTY_NAME_title = "title"; /** Prop-name(JavaBeansRule) of description. LONG VARCHAR(32700) */ public static final String PROPERTY_NAME_description = "description"; /** Prop-name(JavaBeansRule) of url. VARCHAR(255) */ @@ -144,6 +150,8 @@ public static final String CAP_PROP_NAME_LanguageId = "LanguageId"; /** Cap-prop-name of name. VARCHAR(64) : NotNull : Default=[] */ public static final String CAP_PROP_NAME_Name = "Name"; + /** Cap-prop-name of title. VARCHAR(255) */ + public static final String CAP_PROP_NAME_Title = "Title"; /** Cap-prop-name of description. LONG VARCHAR(32700) */ public static final String CAP_PROP_NAME_Description = "Description"; /** Cap-prop-name of url. VARCHAR(255) */ @@ -157,6 +165,8 @@ public static final String COLUMN_CAP_PROP_NAME_OF_LanguageId = "LanguageId"; /** @deprecated Deprecated! So use CAP_PROP_NAME_Name. */ public static final String COLUMN_CAP_PROP_NAME_OF_Name = "Name"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Title. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Title = "Title"; /** @deprecated Deprecated! So use CAP_PROP_NAME_Description. */ public static final String COLUMN_CAP_PROP_NAME_OF_Description = "Description"; /** @deprecated Deprecated! So use CAP_PROP_NAME_Url. */ @@ -173,6 +183,8 @@ public static final String UNCAP_PROP_NAME_languageId = "languageId"; /** Uncap-prop-name of name. VARCHAR(64) : NotNull : Default=[] */ public static final String UNCAP_PROP_NAME_name = "name"; + /** Uncap-prop-name of title. VARCHAR(255) */ + public static final String UNCAP_PROP_NAME_title = "title"; /** Uncap-prop-name of description. LONG VARCHAR(32700) */ public static final String UNCAP_PROP_NAME_description = "description"; /** Uncap-prop-name of url. VARCHAR(255) */ @@ -186,6 +198,8 @@ public static final String COLUMN_UNCAP_PROP_NAME_OF_LanguageId = "languageId"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Name. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_Name = "name"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Title. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Title = "title"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Description. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_Description = "description"; /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Url. */ @@ -227,6 +241,7 @@ map.put(DB_NAME_PRODUCT_ID.toLowerCase(), PROPERTY_NAME_productId); map.put(DB_NAME_LANGUAGE_ID.toLowerCase(), PROPERTY_NAME_languageId); map.put(DB_NAME_NAME.toLowerCase(), PROPERTY_NAME_name); + map.put(DB_NAME_TITLE.toLowerCase(), PROPERTY_NAME_title); map.put(DB_NAME_DESCRIPTION.toLowerCase(), PROPERTY_NAME_description); map.put(DB_NAME_URL.toLowerCase(), PROPERTY_NAME_url); map.put(DB_NAME_VIEWED.toLowerCase(), PROPERTY_NAME_viewed); @@ -247,6 +262,7 @@ map.put(PROPERTY_NAME_productId.toLowerCase(), DB_NAME_PRODUCT_ID); map.put(PROPERTY_NAME_languageId.toLowerCase(), DB_NAME_LANGUAGE_ID); map.put(PROPERTY_NAME_name.toLowerCase(), DB_NAME_NAME); + map.put(PROPERTY_NAME_title.toLowerCase(), DB_NAME_TITLE); map.put(PROPERTY_NAME_description.toLowerCase(), DB_NAME_DESCRIPTION); map.put(PROPERTY_NAME_url.toLowerCase(), DB_NAME_URL); map.put(PROPERTY_NAME_viewed.toLowerCase(), DB_NAME_VIEWED); @@ -269,6 +285,7 @@ map.put(DB_NAME_PRODUCT_ID, CAP_PROP_NAME_ProductId); map.put(DB_NAME_LANGUAGE_ID, CAP_PROP_NAME_LanguageId); map.put(DB_NAME_NAME, CAP_PROP_NAME_Name); + map.put(DB_NAME_TITLE, CAP_PROP_NAME_Title); map.put(DB_NAME_DESCRIPTION, CAP_PROP_NAME_Description); map.put(DB_NAME_URL, CAP_PROP_NAME_Url); map.put(DB_NAME_VIEWED, CAP_PROP_NAME_Viewed); @@ -291,6 +308,7 @@ map.put(DB_NAME_PRODUCT_ID, UNCAP_PROP_NAME_productId); map.put(DB_NAME_LANGUAGE_ID, UNCAP_PROP_NAME_languageId); map.put(DB_NAME_NAME, UNCAP_PROP_NAME_name); + map.put(DB_NAME_TITLE, UNCAP_PROP_NAME_title); map.put(DB_NAME_DESCRIPTION, UNCAP_PROP_NAME_description); map.put(DB_NAME_URL, UNCAP_PROP_NAME_url); map.put(DB_NAME_VIEWED, UNCAP_PROP_NAME_viewed); @@ -313,6 +331,7 @@ map.put(CAP_PROP_NAME_ProductId, DB_NAME_PRODUCT_ID); map.put(CAP_PROP_NAME_LanguageId, DB_NAME_LANGUAGE_ID); map.put(CAP_PROP_NAME_Name, DB_NAME_NAME); + map.put(CAP_PROP_NAME_Title, DB_NAME_TITLE); map.put(CAP_PROP_NAME_Description, DB_NAME_DESCRIPTION); map.put(CAP_PROP_NAME_Url, DB_NAME_URL); map.put(CAP_PROP_NAME_Viewed, DB_NAME_VIEWED); @@ -335,6 +354,7 @@ map.put(CAP_PROP_NAME_ProductId, UNCAP_PROP_NAME_productId); map.put(CAP_PROP_NAME_LanguageId, UNCAP_PROP_NAME_languageId); map.put(CAP_PROP_NAME_Name, UNCAP_PROP_NAME_name); + map.put(CAP_PROP_NAME_Title, UNCAP_PROP_NAME_title); map.put(CAP_PROP_NAME_Description, UNCAP_PROP_NAME_description); map.put(CAP_PROP_NAME_Url, UNCAP_PROP_NAME_url); map.put(CAP_PROP_NAME_Viewed, UNCAP_PROP_NAME_viewed); @@ -357,6 +377,7 @@ map.put(UNCAP_PROP_NAME_productId, DB_NAME_PRODUCT_ID); map.put(UNCAP_PROP_NAME_languageId, DB_NAME_LANGUAGE_ID); map.put(UNCAP_PROP_NAME_name, DB_NAME_NAME); + map.put(UNCAP_PROP_NAME_title, DB_NAME_TITLE); map.put(UNCAP_PROP_NAME_description, DB_NAME_DESCRIPTION); map.put(UNCAP_PROP_NAME_url, DB_NAME_URL); map.put(UNCAP_PROP_NAME_viewed, DB_NAME_VIEWED); @@ -379,6 +400,7 @@ map.put(UNCAP_PROP_NAME_productId, CAP_PROP_NAME_ProductId); map.put(UNCAP_PROP_NAME_languageId, CAP_PROP_NAME_LanguageId); map.put(UNCAP_PROP_NAME_name, CAP_PROP_NAME_Name); + map.put(UNCAP_PROP_NAME_title, CAP_PROP_NAME_Title); map.put(UNCAP_PROP_NAME_description, CAP_PROP_NAME_Description); map.put(UNCAP_PROP_NAME_url, CAP_PROP_NAME_Url); map.put(UNCAP_PROP_NAME_viewed, CAP_PROP_NAME_Viewed); @@ -593,6 +615,7 @@ columnInfoList.add(columnProductId()); columnInfoList.add(columnLanguageId()); columnInfoList.add(columnName()); + columnInfoList.add(columnTitle()); columnInfoList.add(columnDescription()); columnInfoList.add(columnUrl()); columnInfoList.add(columnViewed()); @@ -651,7 +674,7 @@ * @deprecated Please use getColumnInfoList() */ public String getColumnDbNameCommaString() { - return "PRODUCT_ID, LANGUAGE_ID, NAME, DESCRIPTION, URL, VIEWED"; + return "PRODUCT_ID, LANGUAGE_ID, NAME, TITLE, DESCRIPTION, URL, VIEWED"; } /** @@ -673,6 +696,12 @@ return new ColumnInfo(this, "NAME", "name", String.class, false); } /** + * @return Column information of title. (NotNull) + */ + public ColumnInfo columnTitle() { + return new ColumnInfo(this, "TITLE", "title", String.class, false); + } + /** * @return Column information of description. (NotNull) */ public ColumnInfo columnDescription() { @@ -834,6 +863,7 @@ public RelationTrace columnProductId() { return fixTrace(_relationList, ProductDescriptionDbm.getInstance().columnProductId()); } public RelationTrace columnLanguageId() { return fixTrace(_relationList, ProductDescriptionDbm.getInstance().columnLanguageId()); } public RelationTrace columnName() { return fixTrace(_relationList, ProductDescriptionDbm.getInstance().columnName()); } + public RelationTrace columnTitle() { return fixTrace(_relationList, ProductDescriptionDbm.getInstance().columnTitle()); } public RelationTrace columnDescription() { return fixTrace(_relationList, ProductDescriptionDbm.getInstance().columnDescription()); } public RelationTrace columnUrl() { return fixTrace(_relationList, ProductDescriptionDbm.getInstance().columnUrl()); } public RelationTrace columnViewed() { return fixTrace(_relationList, ProductDescriptionDbm.getInstance().columnViewed()); } @@ -912,6 +942,7 @@ if (analyzer.init("PRODUCT_ID", "productId", "productId")) { myEntity.setProductId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("LANGUAGE_ID", "languageId", "languageId")) { myEntity.setLanguageId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("NAME", "name", "name")) { myEntity.setName(analyzer.analyzeString(String.class)); }; + if (analyzer.init("TITLE", "title", "title")) { myEntity.setTitle(analyzer.analyzeString(String.class)); }; if (analyzer.init("DESCRIPTION", "description", "description")) { myEntity.setDescription(analyzer.analyzeString(String.class)); }; if (analyzer.init("URL", "url", "url")) { myEntity.setUrl(analyzer.analyzeString(String.class)); }; if (analyzer.init("VIEWED", "viewed", "viewed")) { myEntity.setViewed(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; @@ -991,6 +1022,7 @@ helpAppendingColumnValueString(sb, delimiter, equal, "PRODUCT_ID", myEntity.getProductId()); helpAppendingColumnValueString(sb, delimiter, equal, "LANGUAGE_ID", myEntity.getLanguageId()); helpAppendingColumnValueString(sb, delimiter, equal, "NAME", myEntity.getName()); + helpAppendingColumnValueString(sb, delimiter, equal, "TITLE", myEntity.getTitle()); helpAppendingColumnValueString(sb, delimiter, equal, "DESCRIPTION", myEntity.getDescription()); helpAppendingColumnValueString(sb, delimiter, equal, "URL", myEntity.getUrl()); helpAppendingColumnValueString(sb, delimiter, equal, "VIEWED", myEntity.getViewed()); @@ -1051,6 +1083,7 @@ valueMap.put("PRODUCT_ID", myEntity.getProductId()); valueMap.put("LANGUAGE_ID", myEntity.getLanguageId()); valueMap.put("NAME", myEntity.getName()); + valueMap.put("TITLE", myEntity.getTitle()); valueMap.put("DESCRIPTION", myEntity.getDescription()); valueMap.put("URL", myEntity.getUrl()); valueMap.put("VIEWED", myEntity.getViewed()); @@ -1079,6 +1112,7 @@ valueMap.put("PRODUCT_ID", helpGettingColumnStringValue(myEntity.getProductId())); valueMap.put("LANGUAGE_ID", helpGettingColumnStringValue(myEntity.getLanguageId())); valueMap.put("NAME", helpGettingColumnStringValue(myEntity.getName())); + valueMap.put("TITLE", helpGettingColumnStringValue(myEntity.getTitle())); valueMap.put("DESCRIPTION", helpGettingColumnStringValue(myEntity.getDescription())); valueMap.put("URL", helpGettingColumnStringValue(myEntity.getUrl())); valueMap.put("VIEWED", helpGettingColumnStringValue(myEntity.getViewed())); @@ -1106,9 +1140,9 @@ public String getPreparedInsertClause(PreparedInsertClauseOption preparedInsertClauseOption) { if (preparedInsertClauseOption.getTablePrefix() != null) { final String tablePrefix = preparedInsertClauseOption.getTablePrefix(); - return "insert into " + tablePrefix + "PRODUCT_DESCRIPTION(PRODUCT_ID, LANGUAGE_ID, NAME, DESCRIPTION, URL, VIEWED) values(? , ? , ? , ? , ? , ? )"; + return "insert into " + tablePrefix + "PRODUCT_DESCRIPTION(PRODUCT_ID, LANGUAGE_ID, NAME, TITLE, DESCRIPTION, URL, VIEWED) values(? , ? , ? , ? , ? , ? , ? )"; } - return "insert into PRODUCT_DESCRIPTION(PRODUCT_ID, LANGUAGE_ID, NAME, DESCRIPTION, URL, VIEWED) values(? , ? , ? , ? , ? , ? )"; + return "insert into PRODUCT_DESCRIPTION(PRODUCT_ID, LANGUAGE_ID, NAME, TITLE, DESCRIPTION, URL, VIEWED) values(? , ? , ? , ? , ? , ? , ? )"; } // =================================================================================== Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductImageDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductImageDbm.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductImageDbm.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,1031 @@ +package jp.sf.pal.pompei.bsentity.dbmeta; + + +import jp.sf.pal.pompei.allcommon.Entity; +import jp.sf.pal.pompei.allcommon.dbmeta.AbstractDBMeta; +import jp.sf.pal.pompei.exentity.ProductImage; +import jp.sf.pal.pompei.allcommon.dbmeta.info.ColumnInfo; +import jp.sf.pal.pompei.allcommon.dbmeta.info.RelationInfo; +import jp.sf.pal.pompei.allcommon.dbmeta.info.UniqueInfo; + +/** + * The dbmeta of PRODUCT_IMAGE. (Singleton) + * + * <pre> + * [primary-key] + * PRODUCT_IMAGE_ID + * + * [column-property] + * PRODUCT_IMAGE_ID, PRODUCT_ID, IMAGE_NAME, TYPE + * + * [foreign-property] + * product + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public class ProductImageDbm extends AbstractDBMeta { + + // =================================================================================== + // Definition + // ========== + /** The type of entity. */ + protected static final Class ENTITY_TYPE = ProductImage.class; + + /** Singleton instance. */ + private static final ProductImageDbm _instance = new ProductImageDbm(); + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + private ProductImageDbm() { + } + + // =================================================================================== + // Singleton + // ========= + /** + * Get instance. + * + * @return Singleton instance. (NotNull) + */ + public static ProductImageDbm getInstance() { + return _instance; + } + + // =================================================================================== + // Name Definition + // =============== + // ----------------------------------------------------- + // Table + // ----- + /** Table db name. */ + public static final String TABLE_DB_NAME = "PRODUCT_IMAGE"; + + /** Table prop name(JavaBeansRule). */ + public static final String TABLE_PROPERTY_NAME = "productImage"; + + /** Table cap-prop name. */ + public static final String TABLE_CAP_PROP_NAME = "ProductImage"; + + /** Table uncap-prop name. */ + public static final String TABLE_UNCAP_PROP_NAME = "productImage"; + + // ----------------------------------------------------- + // Column DB-Name + // -------------- + /** Db-name of PRODUCT_IMAGE_ID. PK : BIGINT : NotNull */ + public static final String DB_NAME_PRODUCT_IMAGE_ID = "PRODUCT_IMAGE_ID"; + /** Db-name of PRODUCT_ID. BIGINT : NotNull : FK to PRODUCT */ + public static final String DB_NAME_PRODUCT_ID = "PRODUCT_ID"; + /** Db-name of IMAGE_NAME. VARCHAR(32) : NotNull */ + public static final String DB_NAME_IMAGE_NAME = "IMAGE_NAME"; + /** Db-name of TYPE. INTEGER : NotNull */ + public static final String DB_NAME_TYPE = "TYPE"; + + /** @deprecated Deprecated! So use DB_NAME_ProductImageId. */ + public static final String COLUMN_DB_NAME_OF_ProductImageId = "PRODUCT_IMAGE_ID"; + /** @deprecated Deprecated! So use DB_NAME_ProductId. */ + public static final String COLUMN_DB_NAME_OF_ProductId = "PRODUCT_ID"; + /** @deprecated Deprecated! So use DB_NAME_ImageName. */ + public static final String COLUMN_DB_NAME_OF_ImageName = "IMAGE_NAME"; + /** @deprecated Deprecated! So use DB_NAME_Type. */ + public static final String COLUMN_DB_NAME_OF_Type = "TYPE"; + + // ----------------------------------------------------- + // Column Prop-Name(JavaBeansRule) + // ------------------------------- + /** Prop-name(JavaBeansRule) of productImageId. PK : BIGINT : NotNull */ + public static final String PROPERTY_NAME_productImageId = "productImageId"; + /** Prop-name(JavaBeansRule) of productId. BIGINT : NotNull : FK to PRODUCT */ + public static final String PROPERTY_NAME_productId = "productId"; + /** Prop-name(JavaBeansRule) of imageName. VARCHAR(32) : NotNull */ + public static final String PROPERTY_NAME_imageName = "imageName"; + /** Prop-name(JavaBeansRule) of type. INTEGER : NotNull */ + public static final String PROPERTY_NAME_type = "type"; + + // ----------------------------------------------------- + // Column Cap-Prop-Name + // -------------------- + /** Cap-prop-name of productImageId. PK : BIGINT : NotNull */ + public static final String CAP_PROP_NAME_ProductImageId = "ProductImageId"; + /** Cap-prop-name of productId. BIGINT : NotNull : FK to PRODUCT */ + public static final String CAP_PROP_NAME_ProductId = "ProductId"; + /** Cap-prop-name of imageName. VARCHAR(32) : NotNull */ + public static final String CAP_PROP_NAME_ImageName = "ImageName"; + /** Cap-prop-name of type. INTEGER : NotNull */ + public static final String CAP_PROP_NAME_Type = "Type"; + + /** @deprecated Deprecated! So use CAP_PROP_NAME_ProductImageId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_ProductImageId = "ProductImageId"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_ProductId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_ProductId = "ProductId"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_ImageName. */ + public static final String COLUMN_CAP_PROP_NAME_OF_ImageName = "ImageName"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Type. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Type = "Type"; + + // ----------------------------------------------------- + // Column Uncap-Prop-Name + // ---------------------- + /** Uncap-prop-name of productImageId. PK : BIGINT : NotNull */ + public static final String UNCAP_PROP_NAME_productImageId = "productImageId"; + /** Uncap-prop-name of productId. BIGINT : NotNull : FK to PRODUCT */ + public static final String UNCAP_PROP_NAME_productId = "productId"; + /** Uncap-prop-name of imageName. VARCHAR(32) : NotNull */ + public static final String UNCAP_PROP_NAME_imageName = "imageName"; + /** Uncap-prop-name of type. INTEGER : NotNull */ + public static final String UNCAP_PROP_NAME_type = "type"; + + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_ProductImageId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_ProductImageId = "productImageId"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_ProductId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_ProductId = "productId"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_ImageName. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_ImageName = "imageName"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Type. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Type = "type"; + + // ----------------------------------------------------- + // Foreign Name + // ------------ + /** The foreign property name(JavaBeansRule) of product. */ + public static final String FOREIGN_PROPERTY_NAME_product = "product"; + /** @deprecated Use FOREIGN_NAME_product. */ + public static final String FOREIGN_CAP_PROP_NAME_Product = "Product"; + + /** @deprecated Use FOREIGN_NAME_product. */ + public static final String FOREIGN_UNCAP_PROP_NAME_product = "product"; + + // ----------------------------------------------------- + // Referer Name + // ------------ + + + /** The map of {db-name : prop-name} key-to-lower. */ + private static java.util.Map<String, String> _dbNamePropertyNameKeyToLowerMap; + protected static java.util.Map<String, String> createDbNamePropertyNameKeyToLowerMap() { + if (_dbNamePropertyNameKeyToLowerMap != null) { + return _dbNamePropertyNameKeyToLowerMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_DB_NAME.toLowerCase(), TABLE_PROPERTY_NAME); + + map.put(DB_NAME_PRODUCT_IMAGE_ID.toLowerCase(), PROPERTY_NAME_productImageId); + map.put(DB_NAME_PRODUCT_ID.toLowerCase(), PROPERTY_NAME_productId); + map.put(DB_NAME_IMAGE_NAME.toLowerCase(), PROPERTY_NAME_imageName); + map.put(DB_NAME_TYPE.toLowerCase(), PROPERTY_NAME_type); + + _dbNamePropertyNameKeyToLowerMap = java.util.Collections.unmodifiableMap(map); + return _dbNamePropertyNameKeyToLowerMap; + } + + /** The map of {prop-name : db-name} key-to-lower. */ + private static java.util.Map<String, String> _propertyNameDbNameKeyToLowerMap; + protected static java.util.Map<String, String> createPropertyNameDbNameKeyToLowerMap() { + if (_propertyNameDbNameKeyToLowerMap != null) { + return _propertyNameDbNameKeyToLowerMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_PROPERTY_NAME.toLowerCase(), TABLE_DB_NAME); + + map.put(PROPERTY_NAME_productImageId.toLowerCase(), DB_NAME_PRODUCT_IMAGE_ID); + map.put(PROPERTY_NAME_productId.toLowerCase(), DB_NAME_PRODUCT_ID); + map.put(PROPERTY_NAME_imageName.toLowerCase(), DB_NAME_IMAGE_NAME); + map.put(PROPERTY_NAME_type.toLowerCase(), DB_NAME_TYPE); + + _propertyNameDbNameKeyToLowerMap = java.util.Collections.unmodifiableMap(map); + return _propertyNameDbNameKeyToLowerMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _dbNameCapPropNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createDbNameCapPropNameMap() { + if (_dbNameCapPropNameMap != null) { + return _dbNameCapPropNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_DB_NAME, TABLE_CAP_PROP_NAME); + + map.put(DB_NAME_PRODUCT_IMAGE_ID, CAP_PROP_NAME_ProductImageId); + map.put(DB_NAME_PRODUCT_ID, CAP_PROP_NAME_ProductId); + map.put(DB_NAME_IMAGE_NAME, CAP_PROP_NAME_ImageName); + map.put(DB_NAME_TYPE, CAP_PROP_NAME_Type); + + _dbNameCapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _dbNameCapPropNameMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _dbNameUncapPropNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createDbNameUncapPropNameMap() { + if (_dbNameUncapPropNameMap != null) { + return _dbNameUncapPropNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_DB_NAME, TABLE_UNCAP_PROP_NAME); + + map.put(DB_NAME_PRODUCT_IMAGE_ID, UNCAP_PROP_NAME_productImageId); + map.put(DB_NAME_PRODUCT_ID, UNCAP_PROP_NAME_productId); + map.put(DB_NAME_IMAGE_NAME, UNCAP_PROP_NAME_imageName); + map.put(DB_NAME_TYPE, UNCAP_PROP_NAME_type); + + _dbNameUncapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _dbNameUncapPropNameMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _capPropNameDbNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createCapPropNameDbNameMap() { + if (_capPropNameDbNameMap != null) { + return _capPropNameDbNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_CAP_PROP_NAME, TABLE_DB_NAME); + + map.put(CAP_PROP_NAME_ProductImageId, DB_NAME_PRODUCT_IMAGE_ID); + map.put(CAP_PROP_NAME_ProductId, DB_NAME_PRODUCT_ID); + map.put(CAP_PROP_NAME_ImageName, DB_NAME_IMAGE_NAME); + map.put(CAP_PROP_NAME_Type, DB_NAME_TYPE); + + _capPropNameDbNameMap = java.util.Collections.unmodifiableMap(map); + return _capPropNameDbNameMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _capPropNameUncapPropNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createCapPropNameUncapPropNameMap() { + if (_capPropNameUncapPropNameMap != null) { + return _capPropNameUncapPropNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_CAP_PROP_NAME, TABLE_UNCAP_PROP_NAME); + + map.put(CAP_PROP_NAME_ProductImageId, UNCAP_PROP_NAME_productImageId); + map.put(CAP_PROP_NAME_ProductId, UNCAP_PROP_NAME_productId); + map.put(CAP_PROP_NAME_ImageName, UNCAP_PROP_NAME_imageName); + map.put(CAP_PROP_NAME_Type, UNCAP_PROP_NAME_type); + + _capPropNameUncapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _capPropNameUncapPropNameMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _uncapPropNameDbNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createUncapPropNameDbNameMap() { + if (_uncapPropNameDbNameMap != null) { + return _uncapPropNameDbNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_UNCAP_PROP_NAME, TABLE_DB_NAME); + + map.put(UNCAP_PROP_NAME_productImageId, DB_NAME_PRODUCT_IMAGE_ID); + map.put(UNCAP_PROP_NAME_productId, DB_NAME_PRODUCT_ID); + map.put(UNCAP_PROP_NAME_imageName, DB_NAME_IMAGE_NAME); + map.put(UNCAP_PROP_NAME_type, DB_NAME_TYPE); + + _uncapPropNameDbNameMap = java.util.Collections.unmodifiableMap(map); + return _uncapPropNameDbNameMap; + } + + /** @deprecated */ + private static java.util.Map<String, String> _uncapPropNameCapPropNameMap; + + /** @deprecated */ + protected static java.util.Map<String, String> createUncapPropNameCapPropNameMap() { + if (_uncapPropNameCapPropNameMap != null) { + return _uncapPropNameCapPropNameMap; + } + final java.util.Map<String, String> map = new java.util.LinkedHashMap<String, String>(); + map.put(TABLE_UNCAP_PROP_NAME, TABLE_CAP_PROP_NAME); + + map.put(UNCAP_PROP_NAME_productImageId, CAP_PROP_NAME_ProductImageId); + map.put(UNCAP_PROP_NAME_productId, CAP_PROP_NAME_ProductId); + map.put(UNCAP_PROP_NAME_imageName, CAP_PROP_NAME_ImageName); + map.put(UNCAP_PROP_NAME_type, CAP_PROP_NAME_Type); + + _uncapPropNameCapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _uncapPropNameCapPropNameMap; + } + + // =================================================================================== + // Name Map + // ======== + /** + * The implementation. + * + * @return The key-to-lower map of db-name(lower) and property-name. (NotNull) + */ + public java.util.Map<String, String> getDbNamePropertyNameKeyToLowerMap() { + return createDbNamePropertyNameKeyToLowerMap(); + } + + /** + * The implementation. + * + * @return The key-to-lower map of property-name(lower) and db-name. (NotNull) + */ + public java.util.Map<String, String> getPropertyNameDbNameKeyToLowerMap() { + return createPropertyNameDbNameKeyToLowerMap(); + } + + /** + * The implementation. + * + * @return {db-name : cap-prop-name} map. + * @deprecated Please use getDbNamePropNameToLowerMap() + */ + public java.util.Map<String, String> getDbNameCapPropNameMap() { + return createDbNameCapPropNameMap(); + } + + /** + * The implementation. + * + * @return {db-name : uncap-prop-name} map. + * @deprecated Please use getDbNamePropNameToLowerMap() + */ + public java.util.Map<String, String> getDbNameUncapPropNameMap() { + return createDbNameUncapPropNameMap(); + } + + /** + * The implementation. + * + * @return {cap-prop-name : db-name} map. + * @deprecated Please use getPropNameDbNameToLowerMap() + */ + public java.util.Map<String, String> getCapPropNameDbNameMap() { + return createCapPropNameDbNameMap(); + } + + /** + * The implementation. + * + * @return {cap-prop-name : uncap-prop-name} map. + * @deprecated Please use getPropNameDbNameToLowerMap() + */ + public java.util.Map<String, String> getCapPropNameUncapPropNameMap() { + return createCapPropNameUncapPropNameMap(); + } + + /** + * The implementation. + * + * @return {uncap-prop-name : db-name} map. + * @deprecated Please use getPropNameDbNameToLowerMap() + */ + public java.util.Map<String, String> getUncapPropNameDbNameMap() { + return createUncapPropNameDbNameMap(); + } + + /** + * The implementation. + * + * @return {uncap-prop-name : cap-prop-name} map. + * @deprecated Please use getPropNameDbNameToLowerMap() + */ + public java.util.Map<String, String> getUncapPropNameCapPropNameMap() { + return createUncapPropNameCapPropNameMap(); + } + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return TABLE_DB_NAME; + } + + /** + * The implementation. + * + * @return Table property-name(JavaBeansRule). (NotNull) + */ + public String getTablePropertyName() { + return TABLE_PROPERTY_NAME; + } + + /** + * The implementation. + * + * @return Table cap-prop-name. (NotNull) + */ + public String getTableCapPropName() { + return TABLE_CAP_PROP_NAME; + } + + /** + * The implementation. + * + * @return Table property-name. (NotNull) + */ + public String getTableUncapPropName() { + return TABLE_UNCAP_PROP_NAME; + } + + // =================================================================================== + // Type Name + // ========= + /** + * The implementation. + * + * @return The type-name of entity. (NotNull) + */ + public String getEntityTypeName() { + return "jp.sf.pal.pompei.exentity.ProductImage"; + } + + /** + * The implementation. + * + * @return The type-name of condition-bean. (NotNull) + */ + public String getConditionBeanTypeName() { + return "jp.sf.pal.pompei.cbean.bs.ProductImageCB"; + } + + /** + * The implementation. + * + * @return The type-name of dao. (NotNull) + */ + public String getDaoTypeName() { + return "jp.sf.pal.pompei.exdao.ProductImageDao"; + } + + /** + * The implementation. + * + * @return The type-name of behavior. (NotNull) + */ + public String getBehaviorTypeName() { + return "jp.sf.pal.pompei.exbhv.ProductImageBhv"; + } + + // =================================================================================== + // Object Type + // =========== + /** + * The implementation. + * + * @return The type of entity. (NotNull) + */ + public Class getEntityType() { + return ENTITY_TYPE; + } + + // =================================================================================== + // Object Instance + // =============== + /** + * The implementation. + * + * @return The type of entity. (NotNull) + */ + public Entity newEntity() { + return newMyEntity(); + } + + /** + * New the instance of my entity. + * + * @return The instance of my entity. (NotNull) + */ + public ProductImage newMyEntity() { + return new ProductImage(); + } + + + // =================================================================================== + // Column Info + // =========== + /** + * The implementation. + * + * @return The list of column db-name. (NotNull and NotEmpty) + */ + public java.util.List<ColumnInfo> getColumnInfoList() { + final java.util.List<ColumnInfo> columnInfoList = new java.util.ArrayList<ColumnInfo>(); + columnInfoList.add(columnProductImageId()); + columnInfoList.add(columnProductId()); + columnInfoList.add(columnImageName()); + columnInfoList.add(columnType()); + return columnInfoList; + } + + /** + * The implementation. + * + * @return The list of column db-name. (NotNull and NotEmpty) + * @deprecated Please use getColumnInfoList() + */ + public java.util.List<String> getColumnDbNameList() { + final String[] columns = getColumnDbNameCommaString().split(","); + final java.util.List<String> resultList = new java.util.ArrayList<String>(); + for (int i=0; i < columns.length; i++) { + resultList.add(columns[i].trim()); + } + return resultList; + } + + /** + * The implementation. + * + * @return The list of column db-name. (NotNull and NotEmpty) + * @deprecated Please use getColumnInfoList() + */ + public java.util.List<String> getColumnCapPropNameList() { + final java.util.List<String> columnDbNameList = getColumnDbNameList(); + final java.util.List<String> resultList = new java.util.ArrayList<String>(); + for (final java.util.Iterator ite = columnDbNameList.iterator(); ite.hasNext(); ) { + resultList.add(getDbNameCapPropNameMap().get((String)ite.next())); + } + return resultList; + } + + /** + * The implementation. + * + * @return The list of column db-name. (NotNull and NotEmpty) + * @deprecated Please use getColumnInfoList() + */ + public java.util.List<String> getColumnUncapPropNameList() { + final java.util.List<String> columnDbNameList = getColumnDbNameList(); + final java.util.List<String> resultList = new java.util.ArrayList<String>(); + for (final java.util.Iterator ite = columnDbNameList.iterator(); ite.hasNext(); ) { + resultList.add(getDbNameUncapPropNameMap().get((String)ite.next())); + } + return resultList; + } + + /** + * The implementation. + * + * @return Column-db-name comma-string. (NotNull and NotEmpty) + * @deprecated Please use getColumnInfoList() + */ + public String getColumnDbNameCommaString() { + return "PRODUCT_IMAGE_ID, PRODUCT_ID, IMAGE_NAME, TYPE"; + } + + /** + * @return Column information of productImageId. (NotNull) + */ + public ColumnInfo columnProductImageId() { + return new ColumnInfo(this, "PRODUCT_IMAGE_ID", "productImageId", java.math.BigDecimal.class, true); + } + /** + * @return Column information of productId. (NotNull) + */ + public ColumnInfo columnProductId() { + return new ColumnInfo(this, "PRODUCT_ID", "productId", java.math.BigDecimal.class, false); + } + /** + * @return Column information of imageName. (NotNull) + */ + public ColumnInfo columnImageName() { + return new ColumnInfo(this, "IMAGE_NAME", "imageName", String.class, false); + } + /** + * @return Column information of type. (NotNull) + */ + public ColumnInfo columnType() { + return new ColumnInfo(this, "TYPE", "type", java.math.BigDecimal.class, false); + } + + // =================================================================================== + // Unique Info + // =========== + // ----------------------------------------------------- + // Primary Element + // --------------- + /** + * The implementation. + * + * @return The primary unique info. (NotNull) + */ + public UniqueInfo getPrimaryUniqueInfo() { + final UniqueInfo uniqueInfo = new UniqueInfo(); + uniqueInfo.setDBMeta(this); + uniqueInfo.addUniqueColumnList(new ColumnInfo(this, "PRODUCT_IMAGE_ID", "productImageId", java.math.BigDecimal.class, true)); + uniqueInfo.setPrimary(true); + return uniqueInfo; + } + + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasPrimaryKey() { + return true; + } + + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasTwoOrMorePrimaryKeys() { + return false; + } + + // =================================================================================== + // Relation Info + // ============= + // ----------------------------------------------------- + // Foreign Element + // --------------- + /** + * Get foreign information of product. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignProduct() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo(); + foreignInfo.setForeignPropertyName("product"); + foreignInfo.setLocalDBMeta(ProductImageDbm.getInstance()); + foreignInfo.setForeignDBMeta(ProductDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnProductId(), ProductDbm.getInstance().columnProductId()); + foreignInfo.setLocalForeignColumnInfoMap(map); + foreignInfo.setOneToOne(false); + return foreignInfo; + } + + + // ----------------------------------------------------- + // Referer Element + // --------------- + + // ----------------------------------------------------- + // Relation Trace + // -------------- + /** + * Create relation trace for first step. + * + * @param relationTraceFixHandler The handler of fixed relation trace. (Nullable) + * @return Relation trace. (NotNull) + */ + public ProductImageRelationTrace createRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + return new ProductImageRelationTrace(relationTraceFixHandler); + } + + /** + * Create relation trace for relation step. + * + * @param relationList The list of relation. (NotNull) + * @param relationTraceList The list of relation trace. (NotNull) + * @return Relation trace. (NotNull) + */ + public ProductImageRelationTrace createRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + return new ProductImageRelationTrace(relationList, relationTraceList); + } + + /** + * Relation trace of PRODUCT_IMAGE. + */ + public static class ProductImageRelationTrace extends AbstractRelationTrace { + + /** + * Constructor for first step. + * + * @param relationTraceFixHandler The handler of fixed relation trace. (Nullable) + */ + public ProductImageRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + super(relationTraceFixHandler); + } + + /** + * Constructor for relation step. + * + * @param relationList The list of relation. (NotNull) + * @param relationTraceList The list of relation trace. (NotNull) + */ + public ProductImageRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + super(relationList, relationTraceList); + } + + public ProductDbm.ProductRelationTrace foreignProduct() { + _relationList.add(ProductImageDbm.getInstance().foreignProduct()); + return ProductDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public RelationTrace columnProductImageId() { return fixTrace(_relationList, ProductImageDbm.getInstance().columnProductImageId()); } + public RelationTrace columnProductId() { return fixTrace(_relationList, ProductImageDbm.getInstance().columnProductId()); } + public RelationTrace columnImageName() { return fixTrace(_relationList, ProductImageDbm.getInstance().columnImageName()); } + public RelationTrace columnType() { return fixTrace(_relationList, ProductImageDbm.getInstance().columnType()); } + } + + // =================================================================================== + // Sequence Info + // ============= + /** + * Has sequence? + * + * @return Determination. + */ + public boolean hasSequence() { + return false; + } + + // =================================================================================== + // Common Column + // ============= + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasCommonColumn() { + return false; + } + + // =================================================================================== + // Entity Handling + // =============== + // ----------------------------------------------------- + // Accept + // ------ + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @param primaryKeyMap Primary key map. (NotNull and NotEmpty) + */ + public void acceptPrimaryKeyMap(Entity entity, java.util.Map<String, ? extends Object> primaryKeyMap) { + final ProductImage myEntity = (ProductImage)entity; + MapAssertUtil.assertPrimaryKeyMapNotNullAndNotEmpty(primaryKeyMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(primaryKeyMap, entity.getModifiedPropertyNames()); + + MapAssertUtil.assertColumnExistingInPrimaryKeyMap(primaryKeyMap, "PRODUCT_IMAGE_ID"); + if (analyzer.init("PRODUCT_IMAGE_ID", "productImageId", "productImageId")) { myEntity.setProductImageId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + + + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @param primaryKeyMapString Primary-key map-string. (NotNull and NotEmpty) + */ + public void acceptPrimaryKeyMapString(Entity entity, String primaryKeyMapString) { + MapStringUtil.acceptPrimaryKeyMapString(primaryKeyMapString, entity); + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @param columnValueMap Column-value map. (NotNull and NotEmpty) + */ + public void acceptColumnValueMap(Entity entity, java.util.Map<String, ? extends Object> columnValueMap) { + final ProductImage myEntity = (ProductImage)entity; + MapAssertUtil.assertColumnValueMapNotNullAndNotEmpty(columnValueMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(columnValueMap, entity.getModifiedPropertyNames()); + + if (analyzer.init("PRODUCT_IMAGE_ID", "productImageId", "productImageId")) { myEntity.setProductImageId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("PRODUCT_ID", "productId", "productId")) { myEntity.setProductId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("IMAGE_NAME", "imageName", "imageName")) { myEntity.setImageName(analyzer.analyzeString(String.class)); }; + if (analyzer.init("TYPE", "type", "type")) { myEntity.setType(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + + } + + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @param columnValueMapString Column-value map-string. (NotNull and NotEmpty) + */ + public void acceptColumnValueMapString(Entity entity, String columnValueMapString) { + MapStringUtil.acceptColumnValueMapString(columnValueMapString, entity); + } + + + // ----------------------------------------------------- + // Extract + // ------- + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return Primary-key map-string. (NotNull) + */ + public String extractPrimaryKeyMapString(Entity entity) { + return MapStringUtil.extractPrimaryKeyMapString(entity); + } + + /** + * Extract primary-key map-string. + * + * @param entity Target entity. (NotNull) + * @param startBrace Start-brace. (NotNull) + * @param endBrace End-brace. (NotNull) + * @param delimiter Delimiter. (NotNull) + * @param equal Equal. (NotNull) + * @return Primary-key map-string. (NotNull) + */ + public String extractPrimaryKeyMapString(Entity entity, String startBrace, String endBrace, String delimiter, String equal) { + final ProductImage myEntity = (ProductImage)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "PRODUCT_IMAGE_ID", myEntity.getProductImageId()); + + sb.delete(0, delimiter.length()).insert(0, mapMarkAndStartBrace).append(endBrace); + return sb.toString(); + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return Column-value map-string. (NotNull) + */ + public String extractColumnValueMapString(Entity entity) { + return MapStringUtil.extractColumnValueMapString(entity); + } + + /** + * Extract column-value map-string. + * + * @param entity Target entity. (NotNull) + * @param startBrace Start-brace. (NotNull) + * @param endBrace End-brace. (NotNull) + * @param delimiter Delimiter. (NotNull) + * @param equal Equal. (NotNull) + * @return Column-value map-string. (NotNull) + */ + public String extractColumnValueMapString(Entity entity, String startBrace, String endBrace, String delimiter, String equal) { + final ProductImage myEntity = (ProductImage)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "PRODUCT_IMAGE_ID", myEntity.getProductImageId()); + helpAppendingColumnValueString(sb, delimiter, equal, "PRODUCT_ID", myEntity.getProductId()); + helpAppendingColumnValueString(sb, delimiter, equal, "IMAGE_NAME", myEntity.getImageName()); + helpAppendingColumnValueString(sb, delimiter, equal, "TYPE", myEntity.getType()); + + sb.delete(0, delimiter.length()).insert(0, mapMarkAndStartBrace).append(endBrace); + return sb.toString(); + } + + private void helpAppendingColumnValueString(StringBuffer sb, String delimiter, String equal, String colName, Object value) { + sb.append(delimiter).append(colName).append(equal); + sb.append(helpGettingColumnStringValue(value)); + } + + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return Column-value map-string. (NotNull) + */ + public String extractCommonColumnValueMapString(Entity entity) { + return "map:{}"; + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return Column-value map-string. (NotNull) + */ + public String extractCommonColumnValueMapString(Entity entity, String startBrace, String endBrace, String delimiter, String equal) { + return "map:" + startBrace + endBrace; + } + + + // ----------------------------------------------------- + // Convert + // ------- + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return The list of column value. (NotNull) + */ + public java.util.List<Object> convertToColumnValueList(Entity entity) { + return new java.util.ArrayList<Object>(convertToColumnValueMap(entity).values()); + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return The map of column value. (NotNull) + */ + public java.util.Map<String, Object> convertToColumnValueMap(Entity entity) { + final ProductImage myEntity = downcast(entity); + final java.util.Map<String, Object> valueMap = new java.util.LinkedHashMap<String, Object>(); + valueMap.put("PRODUCT_IMAGE_ID", myEntity.getProductImageId()); + valueMap.put("PRODUCT_ID", myEntity.getProductId()); + valueMap.put("IMAGE_NAME", myEntity.getImageName()); + valueMap.put("TYPE", myEntity.getType()); + return valueMap; + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return The list of column string-value. (NotNull) + */ + public java.util.List<String> convertToColumnStringValueList(Entity entity) { + return new java.util.ArrayList<String>(convertToColumnStringValueMap(entity).values()); + } + + /** + * The implementation. + * + * @param entity Target entity. (NotNull) + * @return The map of column string-value. (NotNull) + */ + public java.util.Map<String, String> convertToColumnStringValueMap(Entity entity) { + final ProductImage myEntity = downcast(entity); + final java.util.Map<String, String> valueMap = new java.util.LinkedHashMap<String, String>(); + valueMap.put("PRODUCT_IMAGE_ID", helpGettingColumnStringValue(myEntity.getProductImageId())); + valueMap.put("PRODUCT_ID", helpGettingColumnStringValue(myEntity.getProductId())); + valueMap.put("IMAGE_NAME", helpGettingColumnStringValue(myEntity.getImageName())); + valueMap.put("TYPE", helpGettingColumnStringValue(myEntity.getType())); + return valueMap; + } + + // =================================================================================== + // JDBC Support + // ============ + /** + * The implementation. + * + * @return Prepared insert clause. (NotNull and NotEmpty) + */ + public String getPreparedInsertClause() { + return getPreparedInsertClause(new PreparedInsertClauseOption()); + } + + /** + * The implementation. + * + * @param preparedInsertClauseOption Prepared insert clause option. (NotNull) + * @return Prepared insert clause. (NotNull and NotEmpty) + */ + public String getPreparedInsertClause(PreparedInsertClauseOption preparedInsertClauseOption) { + if (preparedInsertClauseOption.getTablePrefix() != null) { + final String tablePrefix = preparedInsertClauseOption.getTablePrefix(); + return "insert into " + tablePrefix + "PRODUCT_IMAGE(PRODUCT_IMAGE_ID, PRODUCT_ID, IMAGE_NAME, TYPE) values(? , ? , ? , ? )"; + } + return "insert into PRODUCT_IMAGE(PRODUCT_IMAGE_ID, PRODUCT_ID, IMAGE_NAME, TYPE) values(? , ? , ? , ? )"; + } + + // =================================================================================== + // Helper + // ====== + protected ProductImage downcast(Entity entity) { + assertObjectNotNull("entity", entity); + try { + return (ProductImage)entity; + } catch (ClassCastException e) { + String msg = "The entity should be ProductImage but it was: " + entity.getClass(); + throw new RuntimeException(msg, e); + } + } + + protected void checkDowncast(Entity entity) { + downcast(entity); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/ProductImageDbm.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/OrderNotificationCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/OrderNotificationCB.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/OrderNotificationCB.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.cbean; + + +/** + * The condition-bean of ORDER_NOTIFICATION. + * + * @author DBFlute(AutoGenerator) + */ +public class OrderNotificationCB extends jp.sf.pal.pompei.cbean.bs.BsOrderNotificationCB { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/OrderNotificationCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/ProductImageCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/ProductImageCB.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/ProductImageCB.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.cbean; + + +/** + * The condition-bean of PRODUCT_IMAGE. + * + * @author DBFlute(AutoGenerator) + */ +public class ProductImageCB extends jp.sf.pal.pompei.cbean.bs.BsProductImageCB { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/ProductImageCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsOrderNotificationCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsOrderNotificationCB.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsOrderNotificationCB.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,258 @@ +package jp.sf.pal.pompei.cbean.bs; + + +import jp.sf.pal.pompei.allcommon.cbean.AbstractConditionBean; +import jp.sf.pal.pompei.allcommon.cbean.ConditionBean; +import jp.sf.pal.pompei.allcommon.cbean.ConditionQuery; +import jp.sf.pal.pompei.cbean.cq.*; + +/** + * The condition-bean of ORDER_NOTIFICATION. + * + * @author DBFlute(AutoGenerator) + */ +public class BsOrderNotificationCB extends AbstractConditionBean { + + // =================================================================================== + // Annotation + // ========== + /** TABLE-Annotation */ + public static final String TABLE = "ORDER_NOTIFICATION"; + + // =================================================================================== + // Attribute + // ========= + /** Condition query. */ + protected OrderNotificationCQ _conditionQuery; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsOrderNotificationCB() { + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [ORDER_NOTIFICATION] + // * * * * * * * * */ + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + final public String getTableDbName() { + return "ORDER_NOTIFICATION"; + } + + /** + * The implementation. + * + * @return Table sql-name. (NotNull) + */ + final public String getTableSqlName() { + return "ORDER_NOTIFICATION"; + } + + // =================================================================================== + // Accept Primary-Key + // ================== + /** + * The implementation. + * + * @param primaryKeyMap Primary key map. (NotNull and NotEmpty) + */ + public void acceptPrimaryKeyMap(java.util.Map<String, ? extends Object> primaryKeyMap) { + if (primaryKeyMap == null) { + String msg = "The argument[primaryKeyMap] must not be null."; + throw new IllegalArgumentException(msg); + } + if (primaryKeyMap.isEmpty()) { + String msg = "The argument[primaryKeyMap] must not be empty."; + throw new IllegalArgumentException(msg); + } + + if (!primaryKeyMap.containsKey("ORDER_NOTIFICATION_ID")) { + String msg = "The primaryKeyMap must have the value of ORDER_NOTIFICATION_ID"; + throw new IllegalStateException(msg + ": primaryKeyMap --> " + primaryKeyMap); + } + { + Object obj = primaryKeyMap.get("ORDER_NOTIFICATION_ID"); + if (obj instanceof java.math.BigDecimal) { + query().setOrderNotificationId_Equal((java.math.BigDecimal)obj); + } else { + + if (obj instanceof java.math.BigDecimal) { + query().setOrderNotificationId_Equal((java.math.BigDecimal)obj); + } else { + try { + query().setOrderNotificationId_Equal(new java.math.BigDecimal((String)obj)); + } catch (RuntimeException e) { + String msg = "setOrderNotificationId(new java.math.BigDecimal((String)obj))"; + throw new RuntimeException(msg + " threw the exception: value=[" + obj + "]", e); + } + } + } + } + + } + + // =================================================================================== + // Order-By + // ======== + /** + * The implementation. + * + * @return this. (NotNull) + */ + public ConditionBean addOrderBy_PK_Asc() { + + query().addOrderBy_OrderNotificationId_Asc(); + + return this; + + } + + /** + * The implementation. + * + * @return this. (NotNull) + */ + public ConditionBean addOrderBy_PK_Desc() { + + query().addOrderBy_OrderNotificationId_Desc(); + + return this; + + } + + // =================================================================================== + // Query + // ===== + /** + * Query. + * + * @return Instance of query. (NotNull) + */ + public OrderNotificationCQ query() { + return getConditionQuery(); + } + + /** + * Get condition query. {Internal method for s2dao} + * + * @return Instance of condition query. (NotNull) + */ + public OrderNotificationCQ getConditionQuery() { + if (_conditionQuery == null) { + _conditionQuery = new OrderNotificationCQ(null, getSqlClause(), getTableDbName(), 0); + } + return _conditionQuery; + } + + /** + * The implementation. + * + * @return Instance of query as interface. (NotNull) + */ + public ConditionQuery getConditionQueryAsInterface() { + return getConditionQuery(); + } + + // =================================================================================== + // Union + // ===== + /** + * Union. <br /> + * Add union query to condition bean. <br /> + * + * @param unionQuery Union query. (NotNull) + */ + public void union(OrderNotificationCQ unionQuery) { + query().xsetUnionQuery(unionQuery); + } + + /** + * Union all. <br /> + * Add union all query to condition bean. <br /> + * + * @param unionAllQuery Union all query. (NotNull) + */ + public void unionAll(OrderNotificationCQ unionAllQuery) { + query().xsetUnionAllQuery(unionAllQuery); + } + + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasUnionQueryOrUnionAllQuery() { + return query().hasUnionQueryOrUnionAllQuery(); + } + + // =================================================================================== + // Setup-Select + // ============ + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [ORDER_STATUS] + // ForeignProperty = [orderStatus] + // * * * * * * * * */ + + /** Is select for orderStatus? */ + protected boolean _isSelectOrderStatus; + /** Nest select setupper for orderStatus. */ + protected jp.sf.pal.pompei.cbean.nss.OrderStatusNss _nssOrderStatus; + /** + * Is select for orderStatus? {For Internal} + * + * @return Determination. + */ + public boolean isSelectOrderStatus() { + return _isSelectOrderStatus; + } + /** + * Get nest select setupper for orderStatus. {For Internal} + * + * @return Nest select setupper. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.OrderStatusNss getNssOrderStatus() { + if (_nssOrderStatus == null) { + _nssOrderStatus = new jp.sf.pal.pompei.cbean.nss.OrderStatusNss(null);// for Dummy + } + return _nssOrderStatus; + } + /** + * Set up select for orderStatus. + * If you invoke this, this entity is target of select. + * + * @return Nest select setupper for orderStatus. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.OrderStatusNss setupSelect_OrderStatus() { + query().queryOrderStatus();// For setting outer join. + if (_nssOrderStatus == null || !_nssOrderStatus.hasConditionQuery()) { + _nssOrderStatus = new jp.sf.pal.pompei.cbean.nss.OrderStatusNss(query().queryOrderStatus()); + } + _isSelectOrderStatus = true; + limitSelect_Off(); + return _nssOrderStatus; + } + + // =================================================================================== + // Basic Override + // ============== + /** + * This method overrides the method that is declared at super. + * + * @return Clause string. (NotNull) + */ + public String toString() { + return getSqlClause().getClause(); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsOrderNotificationCB.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsOrderStatusCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsOrderStatusCB.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsOrderStatusCB.java 2007-09-28 04:46:15 UTC (rev 590) @@ -199,7 +199,7 @@ // =================================================================================== // Setup-Select // ============ - + // =================================================================================== // Basic Override // ============== Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsProductCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsProductCB.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsProductCB.java 2007-09-28 04:46:15 UTC (rev 590) @@ -287,7 +287,7 @@ limitSelect_Off(); return _nssTaxClass; } - + // =================================================================================== // Basic Override // ============== Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsProductImageCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsProductImageCB.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsProductImageCB.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,258 @@ +package jp.sf.pal.pompei.cbean.bs; + + +import jp.sf.pal.pompei.allcommon.cbean.AbstractConditionBean; +import jp.sf.pal.pompei.allcommon.cbean.ConditionBean; +import jp.sf.pal.pompei.allcommon.cbean.ConditionQuery; +import jp.sf.pal.pompei.cbean.cq.*; + +/** + * The condition-bean of PRODUCT_IMAGE. + * + * @author DBFlute(AutoGenerator) + */ +public class BsProductImageCB extends AbstractConditionBean { + + // =================================================================================== + // Annotation + // ========== + /** TABLE-Annotation */ + public static final String TABLE = "PRODUCT_IMAGE"; + + // =================================================================================== + // Attribute + // ========= + /** Condition query. */ + protected ProductImageCQ _conditionQuery; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsProductImageCB() { + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [PRODUCT_IMAGE] + // * * * * * * * * */ + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + final public String getTableDbName() { + return "PRODUCT_IMAGE"; + } + + /** + * The implementation. + * + * @return Table sql-name. (NotNull) + */ + final public String getTableSqlName() { + return "PRODUCT_IMAGE"; + } + + // =================================================================================== + // Accept Primary-Key + // ================== + /** + * The implementation. + * + * @param primaryKeyMap Primary key map. (NotNull and NotEmpty) + */ + public void acceptPrimaryKeyMap(java.util.Map<String, ? extends Object> primaryKeyMap) { + if (primaryKeyMap == null) { + String msg = "The argument[primaryKeyMap] must not be null."; + throw new IllegalArgumentException(msg); + } + if (primaryKeyMap.isEmpty()) { + String msg = "The argument[primaryKeyMap] must not be empty."; + throw new IllegalArgumentException(msg); + } + + if (!primaryKeyMap.containsKey("PRODUCT_IMAGE_ID")) { + String msg = "The primaryKeyMap must have the value of PRODUCT_IMAGE_ID"; + throw new IllegalStateException(msg + ": primaryKeyMap --> " + primaryKeyMap); + } + { + Object obj = primaryKeyMap.get("PRODUCT_IMAGE_ID"); + if (obj instanceof java.math.BigDecimal) { + query().setProductImageId_Equal((java.math.BigDecimal)obj); + } else { + + if (obj instanceof java.math.BigDecimal) { + query().setProductImageId_Equal((java.math.BigDecimal)obj); + } else { + try { + query().setProductImageId_Equal(new java.math.BigDecimal((String)obj)); + } catch (RuntimeException e) { + String msg = "setProductImageId(new java.math.BigDecimal((String)obj))"; + throw new RuntimeException(msg + " threw the exception: value=[" + obj + "]", e); + } + } + } + } + + } + + // =================================================================================== + // Order-By + // ======== + /** + * The implementation. + * + * @return this. (NotNull) + */ + public ConditionBean addOrderBy_PK_Asc() { + + query().addOrderBy_ProductImageId_Asc(); + + return this; + + } + + /** + * The implementation. + * + * @return this. (NotNull) + */ + public ConditionBean addOrderBy_PK_Desc() { + + query().addOrderBy_ProductImageId_Desc(); + + return this; + + } + + // =================================================================================== + // Query + // ===== + /** + * Query. + * + * @return Instance of query. (NotNull) + */ + public ProductImageCQ query() { + return getConditionQuery(); + } + + /** + * Get condition query. {Internal method for s2dao} + * + * @return Instance of condition query. (NotNull) + */ + public ProductImageCQ getConditionQuery() { + if (_conditionQuery == null) { + _conditionQuery = new ProductImageCQ(null, getSqlClause(), getTableDbName(), 0); + } + return _conditionQuery; + } + + /** + * The implementation. + * + * @return Instance of query as interface. (NotNull) + */ + public ConditionQuery getConditionQueryAsInterface() { + return getConditionQuery(); + } + + // =================================================================================== + // Union + // ===== + /** + * Union. <br /> + * Add union query to condition bean. <br /> + * + * @param unionQuery Union query. (NotNull) + */ + public void union(ProductImageCQ unionQuery) { + query().xsetUnionQuery(unionQuery); + } + + /** + * Union all. <br /> + * Add union all query to condition bean. <br /> + * + * @param unionAllQuery Union all query. (NotNull) + */ + public void unionAll(ProductImageCQ unionAllQuery) { + query().xsetUnionAllQuery(unionAllQuery); + } + + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasUnionQueryOrUnionAllQuery() { + return query().hasUnionQueryOrUnionAllQuery(); + } + + // =================================================================================== + // Setup-Select + // ============ + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [PRODUCT] + // ForeignProperty = [product] + // * * * * * * * * */ + + /** Is select for product? */ + protected boolean _isSelectProduct; + /** Nest select setupper for product. */ + protected jp.sf.pal.pompei.cbean.nss.ProductNss _nssProduct; + /** + * Is select for product? {For Internal} + * + * @return Determination. + */ + public boolean isSelectProduct() { + return _isSelectProduct; + } + /** + * Get nest select setupper for product. {For Internal} + * + * @return Nest select setupper. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.ProductNss getNssProduct() { + if (_nssProduct == null) { + _nssProduct = new jp.sf.pal.pompei.cbean.nss.ProductNss(null);// for Dummy + } + return _nssProduct; + } + /** + * Set up select for product. + * If you invoke this, this entity is target of select. + * + * @return Nest select setupper for product. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.ProductNss setupSelect_Product() { + query().queryProduct();// For setting outer join. + if (_nssProduct == null || !_nssProduct.hasConditionQuery()) { + _nssProduct = new jp.sf.pal.pompei.cbean.nss.ProductNss(query().queryProduct()); + } + _isSelectProduct = true; + limitSelect_Off(); + return _nssProduct; + } + + // =================================================================================== + // Basic Override + // ============== + /** + * This method overrides the method that is declared at super. + * + * @return Clause string. (NotNull) + */ + public String toString() { + return getSqlClause().getClause(); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsProductImageCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/OrderNotificationCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/OrderNotificationCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/OrderNotificationCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,29 @@ +package jp.sf.pal.pompei.cbean.cq; + + +import jp.sf.pal.pompei.allcommon.cbean.ConditionQuery; +import jp.sf.pal.pompei.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.pompei.cbean.cq.bs.BsOrderNotificationCQ; + +/** + * The condition-query of ORDER_NOTIFICATION. + * + * @author DBFlute(AutoGenerator) + */ +public class OrderNotificationCQ extends BsOrderNotificationCQ { + + // ===================================================================================== + // 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 OrderNotificationCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/OrderNotificationCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ProductImageCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ProductImageCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ProductImageCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,29 @@ +package jp.sf.pal.pompei.cbean.cq; + + +import jp.sf.pal.pompei.allcommon.cbean.ConditionQuery; +import jp.sf.pal.pompei.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.pompei.cbean.cq.bs.BsProductImageCQ; + +/** + * The condition-query of PRODUCT_IMAGE. + * + * @author DBFlute(AutoGenerator) + */ +public class ProductImageCQ extends BsProductImageCQ { + + // ===================================================================================== + // 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 ProductImageCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ProductImageCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrderNotificationCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrderNotificationCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrderNotificationCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,698 @@ +package jp.sf.pal.pompei.cbean.cq.bs; + + + +import jp.sf.pal.pompei.allcommon.cbean.*; +import jp.sf.pal.pompei.allcommon.cbean.ckey.*; +import jp.sf.pal.pompei.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.pompei.allcommon.cbean.sqlclause.SqlClause; + +/** + * The condition-query of ORDER_NOTIFICATION. + * + * @author DBFlute(AutoGenerator) + */ +public abstract class AbstractBsOrderNotificationCQ extends AbstractConditionQuery { + + // =================================================================================== + // 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 AbstractBsOrderNotificationCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + final public String getTableDbName() { + return "ORDER_NOTIFICATION"; + } + + // =================================================================================== + // Query + // ===== + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [ORDER_NOTIFICATION] + // * * * * * * * * */ + + + /** Column db name of orderNotificationId. */ + protected static final String COL_ORDER_NOTIFICATION_ID = "ORDER_NOTIFICATION_ID"; + + /** Column java name of orderNotificationId. */ + protected static final String J_OrderNotificationId = "OrderNotificationId"; + + /** Column uncapitalised java name of orderNotificationId. */ + protected static final String UJ_orderNotificationId = "orderNotificationId"; + + /** + * Set the value of orderNotificationId using equal. { = } + * + * @param orderNotificationId The value of orderNotificationId as equal. + */ + public void setOrderNotificationId_Equal(java.math.BigDecimal orderNotificationId) { + registerOrderNotificationId(ConditionKey.CK_EQUAL, orderNotificationId); + } + + /** + * Set the value of orderNotificationId using notEqual. { != } + * + * @param orderNotificationId The value of orderNotificationId as notEqual. + */ + public void setOrderNotificationId_NotEqual(java.math.BigDecimal orderNotificationId) { + registerOrderNotificationId(ConditionKey.CK_NOT_EQUAL, orderNotificationId); + } + + /** + * Set the value of orderNotificationId using greaterThan. { > } + * + * @param orderNotificationId The value of orderNotificationId as greaterThan. + */ + public void setOrderNotificationId_GreaterThan(java.math.BigDecimal orderNotificationId) { + registerOrderNotificationId(ConditionKey.CK_GREATER_THAN, orderNotificationId); + } + + /** + * Set the value of orderNotificationId using lessThan. { < } + * + * @param orderNotificationId The value of orderNotificationId as lessThan. + */ + public void setOrderNotificationId_LessThan(java.math.BigDecimal orderNotificationId) { + registerOrderNotificationId(ConditionKey.CK_LESS_THAN, orderNotificationId); + } + + /** + * Set the value of orderNotificationId using greaterEqual. { >= } + * + * @param orderNotificationId The value of orderNotificationId as greaterEqual. + */ + public void setOrderNotificationId_GreaterEqual(java.math.BigDecimal orderNotificationId) { + registerOrderNotificationId(ConditionKey.CK_GREATER_EQUAL, orderNotificationId); + } + + /** + * Set the value of orderNotificationId using lessEqual. { <= } + * + * @param orderNotificationId The value of orderNotificationId as lessEqual. + */ + public void setOrderNotificationId_LessEqual(java.math.BigDecimal orderNotificationId) { + registerOrderNotificationId(ConditionKey.CK_LESS_EQUAL, orderNotificationId); + } + + /** + * Set the value of orderNotificationId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param orderNotificationIdList The value of orderNotificationId as inScope. + */ + public void setOrderNotificationId_InScope(java.util.List<java.math.BigDecimal> orderNotificationIdList) { + registerOrderNotificationId(ConditionKey.CK_IN_SCOPE, orderNotificationIdList); + } + + /** + * Set the value of orderNotificationId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param orderNotificationIdList The value of orderNotificationId as notInScope. + */ + public void setOrderNotificationId_NotInScope(java.util.List<java.math.BigDecimal> orderNotificationIdList) { + registerOrderNotificationId(ConditionKey.CK_NOT_IN_SCOPE, orderNotificationIdList); + } + + /** + * Register condition of orderNotificationId. + * + * @param key Condition key. (NotNull) + * @param value The value of orderNotificationId. (Nullable) + */ + protected void registerOrderNotificationId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueOrderNotificationId(), COL_ORDER_NOTIFICATION_ID, J_OrderNotificationId, UJ_orderNotificationId); + } + + /** + * Register inline condition of orderNotificationId. + * + * @param key Condition key. (NotNull) + * @param value The value of orderNotificationId. (Nullable) + */ + protected void registerInlineOrderNotificationId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueOrderNotificationId(), COL_ORDER_NOTIFICATION_ID, J_OrderNotificationId, UJ_orderNotificationId); + } + + abstract protected ConditionValue getCValueOrderNotificationId(); + + /** Column db name of orderStatusId. */ + protected static final String COL_ORDER_STATUS_ID = "ORDER_STATUS_ID"; + + /** Column java name of orderStatusId. */ + protected static final String J_OrderStatusId = "OrderStatusId"; + + /** Column uncapitalised java name of orderStatusId. */ + protected static final String UJ_orderStatusId = "orderStatusId"; + + /** + * Set the value of orderStatusId using equal. { = } + * + * @param orderStatusId The value of orderStatusId as equal. + */ + public void setOrderStatusId_Equal(java.math.BigDecimal orderStatusId) { + registerOrderStatusId(ConditionKey.CK_EQUAL, orderStatusId); + } + + /** + * Set the value of orderStatusId using notEqual. { != } + * + * @param orderStatusId The value of orderStatusId as notEqual. + */ + public void setOrderStatusId_NotEqual(java.math.BigDecimal orderStatusId) { + registerOrderStatusId(ConditionKey.CK_NOT_EQUAL, orderStatusId); + } + + /** + * Set the value of orderStatusId using greaterThan. { > } + * + * @param orderStatusId The value of orderStatusId as greaterThan. + */ + public void setOrderStatusId_GreaterThan(java.math.BigDecimal orderStatusId) { + registerOrderStatusId(ConditionKey.CK_GREATER_THAN, orderStatusId); + } + + /** + * Set the value of orderStatusId using lessThan. { < } + * + * @param orderStatusId The value of orderStatusId as lessThan. + */ + public void setOrderStatusId_LessThan(java.math.BigDecimal orderStatusId) { + registerOrderStatusId(ConditionKey.CK_LESS_THAN, orderStatusId); + } + + /** + * Set the value of orderStatusId using greaterEqual. { >= } + * + * @param orderStatusId The value of orderStatusId as greaterEqual. + */ + public void setOrderStatusId_GreaterEqual(java.math.BigDecimal orderStatusId) { + registerOrderStatusId(ConditionKey.CK_GREATER_EQUAL, orderStatusId); + } + + /** + * Set the value of orderStatusId using lessEqual. { <= } + * + * @param orderStatusId The value of orderStatusId as lessEqual. + */ + public void setOrderStatusId_LessEqual(java.math.BigDecimal orderStatusId) { + registerOrderStatusId(ConditionKey.CK_LESS_EQUAL, orderStatusId); + } + + /** + * Set the value of orderStatusId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param orderStatusIdList The value of orderStatusId as inScope. + */ + public void setOrderStatusId_InScope(java.util.List<java.math.BigDecimal> orderStatusIdList) { + registerOrderStatusId(ConditionKey.CK_IN_SCOPE, orderStatusIdList); + } + + /** + * Set the value of orderStatusId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param orderStatusIdList The value of orderStatusId as notInScope. + */ + public void setOrderStatusId_NotInScope(java.util.List<java.math.BigDecimal> orderStatusIdList) { + registerOrderStatusId(ConditionKey.CK_NOT_IN_SCOPE, orderStatusIdList); + } + + /** + * Set the sub-query of OrderStatusId_InScopeSubQuery_OrderStatus using inScopeSubQuery. + * { in (select xxx.ORDER_STATUS_ID from ORDER_STATUS where ...) } + * This method use from clause and where clause of the sub-query instance. + * this query keep the sub-query instance for query-value. + * After you invoke this, If you set query in the argument[subQuery], the query is ignored. + * + * @param subQuery The sub-query of OrderStatusId_InScopeSubQuery_OrderStatus using inScopeSubQuery. (NotNull) + */ + public void setOrderStatusId_InScopeSubQuery_OrderStatus(jp.sf.pal.pompei.cbean.cq.OrderStatusCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepOrderStatusId_InScopeSubQuery_OrderStatus(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_ORDER_STATUS_ID, "ORDER_STATUS_ID", "orderStatusId_InScopeSubQuery_OrderStatus"); + } + + abstract public void keepOrderStatusId_InScopeSubQuery_OrderStatus(jp.sf.pal.pompei.cbean.cq.OrderStatusCQ subQuery); + + /** + * Register condition of orderStatusId. + * + * @param key Condition key. (NotNull) + * @param value The value of orderStatusId. (Nullable) + */ + protected void registerOrderStatusId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueOrderStatusId(), COL_ORDER_STATUS_ID, J_OrderStatusId, UJ_orderStatusId); + } + + /** + * Register inline condition of orderStatusId. + * + * @param key Condition key. (NotNull) + * @param value The value of orderStatusId. (Nullable) + */ + protected void registerInlineOrderStatusId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueOrderStatusId(), COL_ORDER_STATUS_ID, J_OrderStatusId, UJ_orderStatusId); + } + + abstract protected ConditionValue getCValueOrderStatusId(); + + /** Column db name of emailAddress. */ + protected static final String COL_EMAIL_ADDRESS = "EMAIL_ADDRESS"; + + /** Column java name of emailAddress. */ + protected static final String J_EmailAddress = "EmailAddress"; + + /** Column uncapitalised java name of emailAddress. */ + protected static final String UJ_emailAddress = "emailAddress"; + + /** + * Set the value of emailAddress using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param emailAddress The value of emailAddress as equal. + */ + public void setEmailAddress_Equal(String emailAddress) { + registerEmailAddress(ConditionKey.CK_EQUAL, filterRemoveEmptyString(emailAddress)); + } + + /** + * Set the value of emailAddress using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param emailAddress The value of emailAddress as notEqual. + */ + public void setEmailAddress_NotEqual(String emailAddress) { + registerEmailAddress(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(emailAddress)); + } + + /** + * Set the value of emailAddress using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param emailAddress The value of emailAddress as greaterThan. + */ + public void setEmailAddress_GreaterThan(String emailAddress) { + registerEmailAddress(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(emailAddress)); + } + + /** + * Set the value of emailAddress using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param emailAddress The value of emailAddress as lessThan. + */ + public void setEmailAddress_LessThan(String emailAddress) { + registerEmailAddress(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(emailAddress)); + } + + /** + * Set the value of emailAddress using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param emailAddress The value of emailAddress as greaterEqual. + */ + public void setEmailAddress_GreaterEqual(String emailAddress) { + registerEmailAddress(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(emailAddress)); + } + + /** + * Set the value of emailAddress using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param emailAddress The value of emailAddress as lessEqual. + */ + public void setEmailAddress_LessEqual(String emailAddress) { + registerEmailAddress(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(emailAddress)); + } + + /** + * Set the value of emailAddress using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param emailAddress The value of emailAddress as prefixSearch. + */ + public void setEmailAddress_PrefixSearch(String emailAddress) { + registerEmailAddress(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(emailAddress)); + } + + /** + * Set the value of emailAddress using likeSearch. { like '%xxx%' } + * If the value is null or empty-string, this condition is ignored. + * You can invoke this method several times and the conditions are set up. + * + * @param emailAddress The value of emailAddress as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setEmailAddress_LikeSearch(String emailAddress, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(emailAddress), getCValueEmailAddress(), COL_EMAIL_ADDRESS, J_EmailAddress, UJ_emailAddress, likeSearchOption); + } + + /** + * Set the value of emailAddress using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param emailAddressList The value of emailAddress as inScope. + */ + public void setEmailAddress_InScope(java.util.List<String> emailAddressList) { + registerEmailAddress(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(emailAddressList)); + } + + /** + * Set the value of emailAddress using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param emailAddress The value of emailAddress as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setEmailAddress_InScope(String emailAddress, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(emailAddress), getCValueEmailAddress(), COL_EMAIL_ADDRESS, J_EmailAddress, UJ_emailAddress, inScopeOption); + } + + /** + * Set the value of emailAddress using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param emailAddressList The value of emailAddress as notInScope. + */ + public void setEmailAddress_NotInScope(java.util.List<String> emailAddressList) { + registerEmailAddress(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(emailAddressList)); + } + + /** + * Set the value of emailAddress using isNull. { is null } + */ + public void setEmailAddress_IsNull() { + registerEmailAddress(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of emailAddress using isNotNull. { is not null } + */ + public void setEmailAddress_IsNotNull() { + registerEmailAddress(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of emailAddress. + * + * @param key Condition key. (NotNull) + * @param value The value of emailAddress. (Nullable) + */ + protected void registerEmailAddress(ConditionKey key, Object value) { + registerQuery(key, value, getCValueEmailAddress(), COL_EMAIL_ADDRESS, J_EmailAddress, UJ_emailAddress); + } + + /** + * Register inline condition of emailAddress. + * + * @param key Condition key. (NotNull) + * @param value The value of emailAddress. (Nullable) + */ + protected void registerInlineEmailAddress(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueEmailAddress(), COL_EMAIL_ADDRESS, J_EmailAddress, UJ_emailAddress); + } + + abstract protected ConditionValue getCValueEmailAddress(); + + /** Column db name of templateName. */ + protected static final String COL_TEMPLATE_NAME = "TEMPLATE_NAME"; + + /** Column java name of templateName. */ + protected static final String J_TemplateName = "TemplateName"; + + /** Column uncapitalised java name of templateName. */ + protected static final String UJ_templateName = "templateName"; + + /** + * Set the value of templateName using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param templateName The value of templateName as equal. + */ + public void setTemplateName_Equal(String templateName) { + registerTemplateName(ConditionKey.CK_EQUAL, filterRemoveEmptyString(templateName)); + } + + /** + * Set the value of templateName using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param templateName The value of templateName as notEqual. + */ + public void setTemplateName_NotEqual(String templateName) { + registerTemplateName(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(templateName)); + } + + /** + * Set the value of templateName using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param templateName The value of templateName as greaterThan. + */ + public void setTemplateName_GreaterThan(String templateName) { + registerTemplateName(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(templateName)); + } + + /** + * Set the value of templateName using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param templateName The value of templateName as lessThan. + */ + public void setTemplateName_LessThan(String templateName) { + registerTemplateName(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(templateName)); + } + + /** + * Set the value of templateName using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param templateName The value of templateName as greaterEqual. + */ + public void setTemplateName_GreaterEqual(String templateName) { + registerTemplateName(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(templateName)); + } + + /** + * Set the value of templateName using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param templateName The value of templateName as lessEqual. + */ + public void setTemplateName_LessEqual(String templateName) { + registerTemplateName(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(templateName)); + } + + /** + * Set the value of templateName using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param templateName The value of templateName as prefixSearch. + */ + public void setTemplateName_PrefixSearch(String templateName) { + registerTemplateName(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(templateName)); + } + + /** + * Set the value of templateName using likeSearch. { like '%xxx%' } + * If the value is null or empty-string, this condition is ignored. + * You can invoke this method several times and the conditions are set up. + * + * @param templateName The value of templateName as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setTemplateName_LikeSearch(String templateName, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(templateName), getCValueTemplateName(), COL_TEMPLATE_NAME, J_TemplateName, UJ_templateName, likeSearchOption); + } + + /** + * Set the value of templateName using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param templateNameList The value of templateName as inScope. + */ + public void setTemplateName_InScope(java.util.List<String> templateNameList) { + registerTemplateName(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(templateNameList)); + } + + /** + * Set the value of templateName using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param templateName The value of templateName as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setTemplateName_InScope(String templateName, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(templateName), getCValueTemplateName(), COL_TEMPLATE_NAME, J_TemplateName, UJ_templateName, inScopeOption); + } + + /** + * Set the value of templateName using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param templateNameList The value of templateName as notInScope. + */ + public void setTemplateName_NotInScope(java.util.List<String> templateNameList) { + registerTemplateName(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(templateNameList)); + } + + /** + * Register condition of templateName. + * + * @param key Condition key. (NotNull) + * @param value The value of templateName. (Nullable) + */ + protected void registerTemplateName(ConditionKey key, Object value) { + registerQuery(key, value, getCValueTemplateName(), COL_TEMPLATE_NAME, J_TemplateName, UJ_templateName); + } + + /** + * Register inline condition of templateName. + * + * @param key Condition key. (NotNull) + * @param value The value of templateName. (Nullable) + */ + protected void registerInlineTemplateName(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueTemplateName(), COL_TEMPLATE_NAME, J_TemplateName, UJ_templateName); + } + + abstract protected ConditionValue getCValueTemplateName(); + + /** Column db name of status. */ + protected static final String COL_STATUS = "STATUS"; + + /** Column java name of status. */ + protected static final String J_Status = "Status"; + + /** Column uncapitalised java name of status. */ + protected static final String UJ_status = "status"; + + /** + * Set the value of status using equal. { = } + * + * @param status The value of status as equal. + */ + public void setStatus_Equal(java.math.BigDecimal status) { + registerStatus(ConditionKey.CK_EQUAL, status); + } + + /** + * Set the value of status using notEqual. { != } + * + * @param status The value of status as notEqual. + */ + public void setStatus_NotEqual(java.math.BigDecimal status) { + registerStatus(ConditionKey.CK_NOT_EQUAL, status); + } + + /** + * Set the value of status using greaterThan. { > } + * + * @param status The value of status as greaterThan. + */ + public void setStatus_GreaterThan(java.math.BigDecimal status) { + registerStatus(ConditionKey.CK_GREATER_THAN, status); + } + + /** + * Set the value of status using lessThan. { < } + * + * @param status The value of status as lessThan. + */ + public void setStatus_LessThan(java.math.BigDecimal status) { + registerStatus(ConditionKey.CK_LESS_THAN, status); + } + + /** + * Set the value of status using greaterEqual. { >= } + * + * @param status The value of status as greaterEqual. + */ + public void setStatus_GreaterEqual(java.math.BigDecimal status) { + registerStatus(ConditionKey.CK_GREATER_EQUAL, status); + } + + /** + * Set the value of status using lessEqual. { <= } + * + * @param status The value of status as lessEqual. + */ + public void setStatus_LessEqual(java.math.BigDecimal status) { + registerStatus(ConditionKey.CK_LESS_EQUAL, status); + } + + /** + * Set the value of status using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param statusList The value of status as inScope. + */ + public void setStatus_InScope(java.util.List<java.math.BigDecimal> statusList) { + registerStatus(ConditionKey.CK_IN_SCOPE, statusList); + } + + /** + * Set the value of status using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param statusList The value of status as notInScope. + */ + public void setStatus_NotInScope(java.util.List<java.math.BigDecimal> statusList) { + registerStatus(ConditionKey.CK_NOT_IN_SCOPE, statusList); + } + + /** + * Register condition of status. + * + * @param key Condition key. (NotNull) + * @param value The value of status. (Nullable) + */ + protected void registerStatus(ConditionKey key, Object value) { + registerQuery(key, value, getCValueStatus(), COL_STATUS, J_Status, UJ_status); + } + + /** + * Register inline condition of status. + * + * @param key Condition key. (NotNull) + * @param value The value of status. (Nullable) + */ + protected void registerInlineStatus(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueStatus(), COL_STATUS, J_Status, UJ_status); + } + + abstract protected ConditionValue getCValueStatus(); + + // =================================================================================== + // Basic Override + // ============== + /** + * This method overrides the method that is declared at super. + * + * @return Clause string. (NotNull) + */ + public String toString() { + return getSqlClause().getClause(); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrderNotificationCQ.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrderStatusCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrderStatusCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrderStatusCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -151,6 +151,23 @@ abstract public void keepOrderStatusId_InScopeSubQuery_OrderFormList(jp.sf.pal.pompei.cbean.cq.OrderFormCQ subQuery); /** + * Set the sub-query of OrderStatusId_InScopeSubQuery_OrderNotificationList using inScopeSubQuery. + * { in (select xxx.ORDER_STATUS_ID from ORDER_NOTIFICATION where ...) } + * This method use from clause and where clause of the sub-query instance. + * this query keep the sub-query instance for query-value. + * After you invoke this, If you set query in the argument[subQuery], the query is ignored. + * + * @param subQuery The sub-query of OrderStatusId_InScopeSubQuery_OrderNotificationList using inScopeSubQuery. (NotNull) + */ + public void setOrderStatusId_InScopeSubQuery_OrderNotificationList(jp.sf.pal.pompei.cbean.cq.OrderNotificationCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepOrderStatusId_InScopeSubQuery_OrderNotificationList(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_ORDER_STATUS_ID, "ORDER_STATUS_ID", "orderStatusId_InScopeSubQuery_OrderNotificationList"); + } + + abstract public void keepOrderStatusId_InScopeSubQuery_OrderNotificationList(jp.sf.pal.pompei.cbean.cq.OrderNotificationCQ subQuery); + + /** * Set the sub-query of OrderStatusId_InScopeSubQuery_OrderStatusDescriptionList using inScopeSubQuery. * { in (select xxx.ORDER_STATUS_ID from ORDER_STATUS_DESCRIPTION where ...) } * This method use from clause and where clause of the sub-query instance. @@ -202,6 +219,23 @@ abstract public void keepOrderStatusId_ExistsSubQuery_OrderFormList(jp.sf.pal.pompei.cbean.cq.OrderFormCQ subQuery); /** + * Set the sub-query of OrderStatusId_ExistsSubQuery_OrderNotificationList using existsSubQuery. + * { exists (select xxx.ORDER_STATUS_ID from ORDER_NOTIFICATION where ...) } + * This method use from clause and where clause of the sub-query instance. + * this query keep the sub-query instance for query-value. + * After you invoke this, If you set query in the argument[subQuery], the query is ignored. + * + * @param subQuery The sub-query of OrderStatusId_ExistsSubQuery_OrderNotificationList using existsSubQuery. (NotNull) + */ + public void setOrderStatusId_ExistsSubQuery_OrderNotificationList(jp.sf.pal.pompei.cbean.cq.OrderNotificationCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepOrderStatusId_ExistsSubQuery_OrderNotificationList(subQuery);// for saving query-value. + registerExistsSubQuery(subQuery, COL_ORDER_STATUS_ID, "ORDER_STATUS_ID", "orderStatusId_ExistsSubQuery_OrderNotificationList"); + } + + abstract public void keepOrderStatusId_ExistsSubQuery_OrderNotificationList(jp.sf.pal.pompei.cbean.cq.OrderNotificationCQ subQuery); + + /** * Set the sub-query of OrderStatusId_ExistsSubQuery_OrderStatusDescriptionList using existsSubQuery. * { exists (select xxx.ORDER_STATUS_ID from ORDER_STATUS_DESCRIPTION where ...) } * This method use from clause and where clause of the sub-query instance. @@ -257,164 +291,6 @@ abstract protected ConditionValue getCValueOrderStatusId(); - /** Column db name of notificationTemplate. */ - protected static final String COL_NOTIFICATION_TEMPLATE = "NOTIFICATION_TEMPLATE"; - - /** Column java name of notificationTemplate. */ - protected static final String J_NotificationTemplate = "NotificationTemplate"; - - /** Column uncapitalised java name of notificationTemplate. */ - protected static final String UJ_notificationTemplate = "notificationTemplate"; - - /** - * Set the value of notificationTemplate using equal. { = } - * If the value is null or empty-string, this condition is ignored. - * - * @param notificationTemplate The value of notificationTemplate as equal. - */ - public void setNotificationTemplate_Equal(String notificationTemplate) { - registerNotificationTemplate(ConditionKey.CK_EQUAL, filterRemoveEmptyString(notificationTemplate)); - } - - /** - * Set the value of notificationTemplate using notEqual. { != } - * If the value is null or empty-string, this condition is ignored. - * - * @param notificationTemplate The value of notificationTemplate as notEqual. - */ - public void setNotificationTemplate_NotEqual(String notificationTemplate) { - registerNotificationTemplate(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(notificationTemplate)); - } - - /** - * Set the value of notificationTemplate using greaterThan. { > } - * If the value is null or empty-string, this condition is ignored. - * - * @param notificationTemplate The value of notificationTemplate as greaterThan. - */ - public void setNotificationTemplate_GreaterThan(String notificationTemplate) { - registerNotificationTemplate(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(notificationTemplate)); - } - - /** - * Set the value of notificationTemplate using lessThan. { < } - * If the value is null or empty-string, this condition is ignored. - * - * @param notificationTemplate The value of notificationTemplate as lessThan. - */ - public void setNotificationTemplate_LessThan(String notificationTemplate) { - registerNotificationTemplate(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(notificationTemplate)); - } - - /** - * Set the value of notificationTemplate using greaterEqual. { >= } - * If the value is null or empty-string, this condition is ignored. - * - * @param notificationTemplate The value of notificationTemplate as greaterEqual. - */ - public void setNotificationTemplate_GreaterEqual(String notificationTemplate) { - registerNotificationTemplate(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(notificationTemplate)); - } - - /** - * Set the value of notificationTemplate using lessEqual. { <= } - * If the value is null or empty-string, this condition is ignored. - * - * @param notificationTemplate The value of notificationTemplate as lessEqual. - */ - public void setNotificationTemplate_LessEqual(String notificationTemplate) { - registerNotificationTemplate(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(notificationTemplate)); - } - - /** - * Set the value of notificationTemplate using prefixSearch. { like 'xxx%' } - * If the value is null or empty-string, this condition is ignored. - * - * @param notificationTemplate The value of notificationTemplate as prefixSearch. - */ - public void setNotificationTemplate_PrefixSearch(String notificationTemplate) { - registerNotificationTemplate(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(notificationTemplate)); - } - - /** - * Set the value of notificationTemplate using likeSearch. { like '%xxx%' } - * If the value is null or empty-string, this condition is ignored. - * You can invoke this method several times and the conditions are set up. - * - * @param notificationTemplate The value of notificationTemplate as likeSearch. - * @param likeSearchOption The option of like-search. (NotNull) - */ - public void setNotificationTemplate_LikeSearch(String notificationTemplate, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { - registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(notificationTemplate), getCValueNotificationTemplate(), COL_NOTIFICATION_TEMPLATE, J_NotificationTemplate, UJ_notificationTemplate, likeSearchOption); - } - - /** - * Set the value of notificationTemplate using inScope. { in ('a', 'b') } - * If the element in the list is null or empty-string, the condition-element is ignored. - * - * @param notificationTemplateList The value of notificationTemplate as inScope. - */ - public void setNotificationTemplate_InScope(java.util.List<String> notificationTemplateList) { - registerNotificationTemplate(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(notificationTemplateList)); - } - - /** - * Set the value of notificationTemplate using inScope. { in ('a', 'b') } - * If the element in the list is null or empty-string, the condition-element is ignored. - * - * @param notificationTemplate The value of notificationTemplate as inScope. - * @param inScopeOption The option of in-scope. (NotNull) - */ - public void setNotificationTemplate_InScope(String notificationTemplate, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { - registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(notificationTemplate), getCValueNotificationTemplate(), COL_NOTIFICATION_TEMPLATE, J_NotificationTemplate, UJ_notificationTemplate, inScopeOption); - } - - /** - * Set the value of notificationTemplate using notInScope. { not in ('a', 'b') } - * If the element in the list is null or empty-string, the condition-element is ignored. - * - * @param notificationTemplateList The value of notificationTemplate as notInScope. - */ - public void setNotificationTemplate_NotInScope(java.util.List<String> notificationTemplateList) { - registerNotificationTemplate(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(notificationTemplateList)); - } - - /** - * Set the value of notificationTemplate using isNull. { is null } - */ - public void setNotificationTemplate_IsNull() { - registerNotificationTemplate(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); - } - - /** - * Set the value of notificationTemplate using isNotNull. { is not null } - */ - public void setNotificationTemplate_IsNotNull() { - registerNotificationTemplate(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); - } - - /** - * Register condition of notificationTemplate. - * - * @param key Condition key. (NotNull) - * @param value The value of notificationTemplate. (Nullable) - */ - protected void registerNotificationTemplate(ConditionKey key, Object value) { - registerQuery(key, value, getCValueNotificationTemplate(), COL_NOTIFICATION_TEMPLATE, J_NotificationTemplate, UJ_notificationTemplate); - } - - /** - * Register inline condition of notificationTemplate. - * - * @param key Condition key. (NotNull) - * @param value The value of notificationTemplate. (Nullable) - */ - protected void registerInlineNotificationTemplate(ConditionKey key, Object value) { - registerInlineQuery(key, value, getCValueNotificationTemplate(), COL_NOTIFICATION_TEMPLATE, J_NotificationTemplate, UJ_notificationTemplate); - } - - abstract protected ConditionValue getCValueNotificationTemplate(); - /** Column db name of sortOrder. */ protected static final String COL_SORT_ORDER = "SORT_ORDER"; Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -270,6 +270,23 @@ abstract public void keepProductId_InScopeSubQuery_ProductDescriptionList(jp.sf.pal.pompei.cbean.cq.ProductDescriptionCQ subQuery); /** + * Set the sub-query of ProductId_InScopeSubQuery_ProductImageList using inScopeSubQuery. + * { in (select xxx.PRODUCT_ID from PRODUCT_IMAGE where ...) } + * This method use from clause and where clause of the sub-query instance. + * this query keep the sub-query instance for query-value. + * After you invoke this, If you set query in the argument[subQuery], the query is ignored. + * + * @param subQuery The sub-query of ProductId_InScopeSubQuery_ProductImageList using inScopeSubQuery. (NotNull) + */ + public void setProductId_InScopeSubQuery_ProductImageList(jp.sf.pal.pompei.cbean.cq.ProductImageCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepProductId_InScopeSubQuery_ProductImageList(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_PRODUCT_ID, "PRODUCT_ID", "productId_InScopeSubQuery_ProductImageList"); + } + + abstract public void keepProductId_InScopeSubQuery_ProductImageList(jp.sf.pal.pompei.cbean.cq.ProductImageCQ subQuery); + + /** * Set the sub-query of ProductId_InScopeSubQuery_ProductNotificationList using inScopeSubQuery. * { in (select xxx.PRODUCT_ID from PRODUCT_NOTIFICATION where ...) } * This method use from clause and where clause of the sub-query instance. @@ -457,6 +474,23 @@ abstract public void keepProductId_ExistsSubQuery_ProductDescriptionList(jp.sf.pal.pompei.cbean.cq.ProductDescriptionCQ subQuery); /** + * Set the sub-query of ProductId_ExistsSubQuery_ProductImageList using existsSubQuery. + * { exists (select xxx.PRODUCT_ID from PRODUCT_IMAGE where ...) } + * This method use from clause and where clause of the sub-query instance. + * this query keep the sub-query instance for query-value. + * After you invoke this, If you set query in the argument[subQuery], the query is ignored. + * + * @param subQuery The sub-query of ProductId_ExistsSubQuery_ProductImageList using existsSubQuery. (NotNull) + */ + public void setProductId_ExistsSubQuery_ProductImageList(jp.sf.pal.pompei.cbean.cq.ProductImageCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepProductId_ExistsSubQuery_ProductImageList(subQuery);// for saving query-value. + registerExistsSubQuery(subQuery, COL_PRODUCT_ID, "PRODUCT_ID", "productId_ExistsSubQuery_ProductImageList"); + } + + abstract public void keepProductId_ExistsSubQuery_ProductImageList(jp.sf.pal.pompei.cbean.cq.ProductImageCQ subQuery); + + /** * Set the sub-query of ProductId_ExistsSubQuery_ProductNotificationList using existsSubQuery. * { exists (select xxx.PRODUCT_ID from PRODUCT_NOTIFICATION where ...) } * This method use from clause and where clause of the sub-query instance. @@ -529,6 +563,164 @@ abstract protected ConditionValue getCValueProductId(); + /** Column db name of code. */ + protected static final String COL_CODE = "CODE"; + + /** Column java name of code. */ + protected static final String J_Code = "Code"; + + /** Column uncapitalised java name of code. */ + protected static final String UJ_code = "code"; + + /** + * Set the value of code using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param code The value of code as equal. + */ + public void setCode_Equal(String code) { + registerCode(ConditionKey.CK_EQUAL, filterRemoveEmptyString(code)); + } + + /** + * Set the value of code using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param code The value of code as notEqual. + */ + public void setCode_NotEqual(String code) { + registerCode(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(code)); + } + + /** + * Set the value of code using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param code The value of code as greaterThan. + */ + public void setCode_GreaterThan(String code) { + registerCode(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(code)); + } + + /** + * Set the value of code using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param code The value of code as lessThan. + */ + public void setCode_LessThan(String code) { + registerCode(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(code)); + } + + /** + * Set the value of code using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param code The value of code as greaterEqual. + */ + public void setCode_GreaterEqual(String code) { + registerCode(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(code)); + } + + /** + * Set the value of code using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param code The value of code as lessEqual. + */ + public void setCode_LessEqual(String code) { + registerCode(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(code)); + } + + /** + * Set the value of code using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param code The value of code as prefixSearch. + */ + public void setCode_PrefixSearch(String code) { + registerCode(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(code)); + } + + /** + * Set the value of code using likeSearch. { like '%xxx%' } + * If the value is null or empty-string, this condition is ignored. + * You can invoke this method several times and the conditions are set up. + * + * @param code The value of code as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setCode_LikeSearch(String code, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(code), getCValueCode(), COL_CODE, J_Code, UJ_code, likeSearchOption); + } + + /** + * Set the value of code using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param codeList The value of code as inScope. + */ + public void setCode_InScope(java.util.List<String> codeList) { + registerCode(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(codeList)); + } + + /** + * Set the value of code using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param code The value of code as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setCode_InScope(String code, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(code), getCValueCode(), COL_CODE, J_Code, UJ_code, inScopeOption); + } + + /** + * Set the value of code using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param codeList The value of code as notInScope. + */ + public void setCode_NotInScope(java.util.List<String> codeList) { + registerCode(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(codeList)); + } + + /** + * Set the value of code using isNull. { is null } + */ + public void setCode_IsNull() { + registerCode(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of code using isNotNull. { is not null } + */ + public void setCode_IsNotNull() { + registerCode(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of code. + * + * @param key Condition key. (NotNull) + * @param value The value of code. (Nullable) + */ + protected void registerCode(ConditionKey key, Object value) { + registerQuery(key, value, getCValueCode(), COL_CODE, J_Code, UJ_code); + } + + /** + * Register inline condition of code. + * + * @param key Condition key. (NotNull) + * @param value The value of code. (Nullable) + */ + protected void registerInlineCode(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueCode(), COL_CODE, J_Code, UJ_code); + } + + abstract protected ConditionValue getCValueCode(); + /** Column db name of model. */ protected static final String COL_MODEL = "MODEL"; @@ -1030,426 +1222,506 @@ abstract protected ConditionValue getCValueWeight(); - /** Column db name of image. */ - protected static final String COL_IMAGE = "IMAGE"; + /** Column db name of size. */ + protected static final String COL_SIZE = "SIZE"; - /** Column java name of image. */ - protected static final String J_Image = "Image"; + /** Column java name of size. */ + protected static final String J_Size = "Size"; - /** Column uncapitalised java name of image. */ - protected static final String UJ_image = "image"; + /** Column uncapitalised java name of size. */ + protected static final String UJ_size = "size"; /** - * Set the value of image using equal. { = } + * Set the value of size using equal. { = } * If the value is null or empty-string, this condition is ignored. * - * @param image The value of image as equal. + * @param size The value of size as equal. */ - public void setImage_Equal(String image) { - registerImage(ConditionKey.CK_EQUAL, filterRemoveEmptyString(image)); + public void setSize_Equal(String size) { + registerSize(ConditionKey.CK_EQUAL, filterRemoveEmptyString(size)); } /** - * Set the value of image using notEqual. { != } + * Set the value of size using notEqual. { != } * If the value is null or empty-string, this condition is ignored. * - * @param image The value of image as notEqual. + * @param size The value of size as notEqual. */ - public void setImage_NotEqual(String image) { - registerImage(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(image)); + public void setSize_NotEqual(String size) { + registerSize(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(size)); } /** - * Set the value of image using greaterThan. { > } + * Set the value of size using greaterThan. { > } * If the value is null or empty-string, this condition is ignored. * - * @param image The value of image as greaterThan. + * @param size The value of size as greaterThan. */ - public void setImage_GreaterThan(String image) { - registerImage(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(image)); + public void setSize_GreaterThan(String size) { + registerSize(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(size)); } /** - * Set the value of image using lessThan. { < } + * Set the value of size using lessThan. { < } * If the value is null or empty-string, this condition is ignored. * - * @param image The value of image as lessThan. + * @param size The value of size as lessThan. */ - public void setImage_LessThan(String image) { - registerImage(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(image)); + public void setSize_LessThan(String size) { + registerSize(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(size)); } /** - * Set the value of image using greaterEqual. { >= } + * Set the value of size using greaterEqual. { >= } * If the value is null or empty-string, this condition is ignored. * - * @param image The value of image as greaterEqual. + * @param size The value of size as greaterEqual. */ - public void setImage_GreaterEqual(String image) { - registerImage(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(image)); + public void setSize_GreaterEqual(String size) { + registerSize(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(size)); } /** - * Set the value of image using lessEqual. { <= } + * Set the value of size using lessEqual. { <= } * If the value is null or empty-string, this condition is ignored. * - * @param image The value of image as lessEqual. + * @param size The value of size as lessEqual. */ - public void setImage_LessEqual(String image) { - registerImage(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(image)); + public void setSize_LessEqual(String size) { + registerSize(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(size)); } /** - * Set the value of image using prefixSearch. { like 'xxx%' } + * Set the value of size using prefixSearch. { like 'xxx%' } * If the value is null or empty-string, this condition is ignored. * - * @param image The value of image as prefixSearch. + * @param size The value of size as prefixSearch. */ - public void setImage_PrefixSearch(String image) { - registerImage(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(image)); + public void setSize_PrefixSearch(String size) { + registerSize(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(size)); } /** - * Set the value of image using likeSearch. { like '%xxx%' } + * Set the value of size using likeSearch. { like '%xxx%' } * If the value is null or empty-string, this condition is ignored. * You can invoke this method several times and the conditions are set up. * - * @param image The value of image as likeSearch. + * @param size The value of size as likeSearch. * @param likeSearchOption The option of like-search. (NotNull) */ - public void setImage_LikeSearch(String image, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { - registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(image), getCValueImage(), COL_IMAGE, J_Image, UJ_image, likeSearchOption); + public void setSize_LikeSearch(String size, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(size), getCValueSize(), COL_SIZE, J_Size, UJ_size, likeSearchOption); } /** - * Set the value of image using inScope. { in ('a', 'b') } + * Set the value of size using inScope. { in ('a', 'b') } * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param imageList The value of image as inScope. + * @param sizeList The value of size as inScope. */ - public void setImage_InScope(java.util.List<String> imageList) { - registerImage(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(imageList)); + public void setSize_InScope(java.util.List<String> sizeList) { + registerSize(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(sizeList)); } /** - * Set the value of image using inScope. { in ('a', 'b') } + * Set the value of size using inScope. { in ('a', 'b') } * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param image The value of image as inScope. + * @param size The value of size as inScope. * @param inScopeOption The option of in-scope. (NotNull) */ - public void setImage_InScope(String image, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { - registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(image), getCValueImage(), COL_IMAGE, J_Image, UJ_image, inScopeOption); + public void setSize_InScope(String size, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(size), getCValueSize(), COL_SIZE, J_Size, UJ_size, inScopeOption); } /** - * Set the value of image using notInScope. { not in ('a', 'b') } + * Set the value of size using notInScope. { not in ('a', 'b') } * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param imageList The value of image as notInScope. + * @param sizeList The value of size as notInScope. */ - public void setImage_NotInScope(java.util.List<String> imageList) { - registerImage(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(imageList)); + public void setSize_NotInScope(java.util.List<String> sizeList) { + registerSize(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(sizeList)); } /** - * Set the value of image using isNull. { is null } + * Set the value of size using isNull. { is null } */ - public void setImage_IsNull() { - registerImage(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + public void setSize_IsNull() { + registerSize(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); } /** - * Set the value of image using isNotNull. { is not null } + * Set the value of size using isNotNull. { is not null } */ - public void setImage_IsNotNull() { - registerImage(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + public void setSize_IsNotNull() { + registerSize(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); } /** - * Register condition of image. + * Register condition of size. * * @param key Condition key. (NotNull) - * @param value The value of image. (Nullable) + * @param value The value of size. (Nullable) */ - protected void registerImage(ConditionKey key, Object value) { - registerQuery(key, value, getCValueImage(), COL_IMAGE, J_Image, UJ_image); + protected void registerSize(ConditionKey key, Object value) { + registerQuery(key, value, getCValueSize(), COL_SIZE, J_Size, UJ_size); } /** - * Register inline condition of image. + * Register inline condition of size. * * @param key Condition key. (NotNull) - * @param value The value of image. (Nullable) + * @param value The value of size. (Nullable) */ - protected void registerInlineImage(ConditionKey key, Object value) { - registerInlineQuery(key, value, getCValueImage(), COL_IMAGE, J_Image, UJ_image); + protected void registerInlineSize(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueSize(), COL_SIZE, J_Size, UJ_size); } - abstract protected ConditionValue getCValueImage(); + abstract protected ConditionValue getCValueSize(); - /** Column db name of thumbnail. */ - protected static final String COL_THUMBNAIL = "THUMBNAIL"; + /** Column db name of ordered. */ + protected static final String COL_ORDERED = "ORDERED"; - /** Column java name of thumbnail. */ - protected static final String J_Thumbnail = "Thumbnail"; + /** Column java name of ordered. */ + protected static final String J_Ordered = "Ordered"; - /** Column uncapitalised java name of thumbnail. */ - protected static final String UJ_thumbnail = "thumbnail"; - + /** Column uncapitalised java name of ordered. */ + protected static final String UJ_ordered = "ordered"; + /** - * Set the value of thumbnail using equal. { = } - * If the value is null or empty-string, this condition is ignored. + * Set the value of ordered using equal. { = } * - * @param thumbnail The value of thumbnail as equal. + * @param ordered The value of ordered as equal. */ - public void setThumbnail_Equal(String thumbnail) { - registerThumbnail(ConditionKey.CK_EQUAL, filterRemoveEmptyString(thumbnail)); + public void setOrdered_Equal(java.math.BigDecimal ordered) { + registerOrdered(ConditionKey.CK_EQUAL, ordered); } + + /** + * Set the value of ordered using notEqual. { != } + * + * @param ordered The value of ordered as notEqual. + */ + public void setOrdered_NotEqual(java.math.BigDecimal ordered) { + registerOrdered(ConditionKey.CK_NOT_EQUAL, ordered); + } + + /** + * Set the value of ordered using greaterThan. { > } + * + * @param ordered The value of ordered as greaterThan. + */ + public void setOrdered_GreaterThan(java.math.BigDecimal ordered) { + registerOrdered(ConditionKey.CK_GREATER_THAN, ordered); + } + + /** + * Set the value of ordered using lessThan. { < } + * + * @param ordered The value of ordered as lessThan. + */ + public void setOrdered_LessThan(java.math.BigDecimal ordered) { + registerOrdered(ConditionKey.CK_LESS_THAN, ordered); + } + + /** + * Set the value of ordered using greaterEqual. { >= } + * + * @param ordered The value of ordered as greaterEqual. + */ + public void setOrdered_GreaterEqual(java.math.BigDecimal ordered) { + registerOrdered(ConditionKey.CK_GREATER_EQUAL, ordered); + } + + /** + * Set the value of ordered using lessEqual. { <= } + * + * @param ordered The value of ordered as lessEqual. + */ + public void setOrdered_LessEqual(java.math.BigDecimal ordered) { + registerOrdered(ConditionKey.CK_LESS_EQUAL, ordered); + } /** - * Set the value of thumbnail using notEqual. { != } - * If the value is null or empty-string, this condition is ignored. + * Set the value of ordered using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param thumbnail The value of thumbnail as notEqual. + * @param orderedList The value of ordered as inScope. */ - public void setThumbnail_NotEqual(String thumbnail) { - registerThumbnail(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(thumbnail)); + public void setOrdered_InScope(java.util.List<java.math.BigDecimal> orderedList) { + registerOrdered(ConditionKey.CK_IN_SCOPE, orderedList); } /** - * Set the value of thumbnail using greaterThan. { > } - * If the value is null or empty-string, this condition is ignored. + * Set the value of ordered using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param thumbnail The value of thumbnail as greaterThan. + * @param orderedList The value of ordered as notInScope. */ - public void setThumbnail_GreaterThan(String thumbnail) { - registerThumbnail(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(thumbnail)); + public void setOrdered_NotInScope(java.util.List<java.math.BigDecimal> orderedList) { + registerOrdered(ConditionKey.CK_NOT_IN_SCOPE, orderedList); } + + /** + * Register condition of ordered. + * + * @param key Condition key. (NotNull) + * @param value The value of ordered. (Nullable) + */ + protected void registerOrdered(ConditionKey key, Object value) { + registerQuery(key, value, getCValueOrdered(), COL_ORDERED, J_Ordered, UJ_ordered); + } + + /** + * Register inline condition of ordered. + * + * @param key Condition key. (NotNull) + * @param value The value of ordered. (Nullable) + */ + protected void registerInlineOrdered(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueOrdered(), COL_ORDERED, J_Ordered, UJ_ordered); + } + + abstract protected ConditionValue getCValueOrdered(); + + /** Column db name of reviewed. */ + protected static final String COL_REVIEWED = "REVIEWED"; + + /** Column java name of reviewed. */ + protected static final String J_Reviewed = "Reviewed"; + + /** Column uncapitalised java name of reviewed. */ + protected static final String UJ_reviewed = "reviewed"; /** - * Set the value of thumbnail using lessThan. { < } - * If the value is null or empty-string, this condition is ignored. + * Set the value of reviewed using equal. { = } * - * @param thumbnail The value of thumbnail as lessThan. + * @param reviewed The value of reviewed as equal. */ - public void setThumbnail_LessThan(String thumbnail) { - registerThumbnail(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(thumbnail)); + public void setReviewed_Equal(java.math.BigDecimal reviewed) { + registerReviewed(ConditionKey.CK_EQUAL, reviewed); } /** - * Set the value of thumbnail using greaterEqual. { >= } - * If the value is null or empty-string, this condition is ignored. + * Set the value of reviewed using notEqual. { != } * - * @param thumbnail The value of thumbnail as greaterEqual. + * @param reviewed The value of reviewed as notEqual. */ - public void setThumbnail_GreaterEqual(String thumbnail) { - registerThumbnail(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(thumbnail)); + public void setReviewed_NotEqual(java.math.BigDecimal reviewed) { + registerReviewed(ConditionKey.CK_NOT_EQUAL, reviewed); } /** - * Set the value of thumbnail using lessEqual. { <= } - * If the value is null or empty-string, this condition is ignored. + * Set the value of reviewed using greaterThan. { > } * - * @param thumbnail The value of thumbnail as lessEqual. + * @param reviewed The value of reviewed as greaterThan. */ - public void setThumbnail_LessEqual(String thumbnail) { - registerThumbnail(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(thumbnail)); + public void setReviewed_GreaterThan(java.math.BigDecimal reviewed) { + registerReviewed(ConditionKey.CK_GREATER_THAN, reviewed); } /** - * Set the value of thumbnail using prefixSearch. { like 'xxx%' } - * If the value is null or empty-string, this condition is ignored. + * Set the value of reviewed using lessThan. { < } * - * @param thumbnail The value of thumbnail as prefixSearch. + * @param reviewed The value of reviewed as lessThan. */ - public void setThumbnail_PrefixSearch(String thumbnail) { - registerThumbnail(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(thumbnail)); + public void setReviewed_LessThan(java.math.BigDecimal reviewed) { + registerReviewed(ConditionKey.CK_LESS_THAN, reviewed); } /** - * Set the value of thumbnail using likeSearch. { like '%xxx%' } - * If the value is null or empty-string, this condition is ignored. - * You can invoke this method several times and the conditions are set up. + * Set the value of reviewed using greaterEqual. { >= } * - * @param thumbnail The value of thumbnail as likeSearch. - * @param likeSearchOption The option of like-search. (NotNull) + * @param reviewed The value of reviewed as greaterEqual. */ - public void setThumbnail_LikeSearch(String thumbnail, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { - registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(thumbnail), getCValueThumbnail(), COL_THUMBNAIL, J_Thumbnail, UJ_thumbnail, likeSearchOption); + public void setReviewed_GreaterEqual(java.math.BigDecimal reviewed) { + registerReviewed(ConditionKey.CK_GREATER_EQUAL, reviewed); } /** - * Set the value of thumbnail using inScope. { in ('a', 'b') } - * If the element in the list is null or empty-string, the condition-element is ignored. + * Set the value of reviewed using lessEqual. { <= } * - * @param thumbnailList The value of thumbnail as inScope. + * @param reviewed The value of reviewed as lessEqual. */ - public void setThumbnail_InScope(java.util.List<String> thumbnailList) { - registerThumbnail(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(thumbnailList)); + public void setReviewed_LessEqual(java.math.BigDecimal reviewed) { + registerReviewed(ConditionKey.CK_LESS_EQUAL, reviewed); } - + /** - * Set the value of thumbnail using inScope. { in ('a', 'b') } + * Set the value of reviewed using inScope. { in (a, b) } * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param thumbnail The value of thumbnail as inScope. - * @param inScopeOption The option of in-scope. (NotNull) + * @param reviewedList The value of reviewed as inScope. */ - public void setThumbnail_InScope(String thumbnail, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { - registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(thumbnail), getCValueThumbnail(), COL_THUMBNAIL, J_Thumbnail, UJ_thumbnail, inScopeOption); + public void setReviewed_InScope(java.util.List<java.math.BigDecimal> reviewedList) { + registerReviewed(ConditionKey.CK_IN_SCOPE, reviewedList); } /** - * Set the value of thumbnail using notInScope. { not in ('a', 'b') } + * Set the value of reviewed using notInScope. { not in (a, b) } * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param thumbnailList The value of thumbnail as notInScope. + * @param reviewedList The value of reviewed as notInScope. */ - public void setThumbnail_NotInScope(java.util.List<String> thumbnailList) { - registerThumbnail(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(thumbnailList)); + public void setReviewed_NotInScope(java.util.List<java.math.BigDecimal> reviewedList) { + registerReviewed(ConditionKey.CK_NOT_IN_SCOPE, reviewedList); } - + /** - * Set the value of thumbnail using isNull. { is null } + * Set the value of reviewed using isNull. { is null } */ - public void setThumbnail_IsNull() { - registerThumbnail(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + public void setReviewed_IsNull() { + registerReviewed(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); } /** - * Set the value of thumbnail using isNotNull. { is not null } + * Set the value of reviewed using isNotNull. { is not null } */ - public void setThumbnail_IsNotNull() { - registerThumbnail(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + public void setReviewed_IsNotNull() { + registerReviewed(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); } /** - * Register condition of thumbnail. + * Register condition of reviewed. * * @param key Condition key. (NotNull) - * @param value The value of thumbnail. (Nullable) + * @param value The value of reviewed. (Nullable) */ - protected void registerThumbnail(ConditionKey key, Object value) { - registerQuery(key, value, getCValueThumbnail(), COL_THUMBNAIL, J_Thumbnail, UJ_thumbnail); + protected void registerReviewed(ConditionKey key, Object value) { + registerQuery(key, value, getCValueReviewed(), COL_REVIEWED, J_Reviewed, UJ_reviewed); } /** - * Register inline condition of thumbnail. + * Register inline condition of reviewed. * * @param key Condition key. (NotNull) - * @param value The value of thumbnail. (Nullable) + * @param value The value of reviewed. (Nullable) */ - protected void registerInlineThumbnail(ConditionKey key, Object value) { - registerInlineQuery(key, value, getCValueThumbnail(), COL_THUMBNAIL, J_Thumbnail, UJ_thumbnail); + protected void registerInlineReviewed(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueReviewed(), COL_REVIEWED, J_Reviewed, UJ_reviewed); } - abstract protected ConditionValue getCValueThumbnail(); + abstract protected ConditionValue getCValueReviewed(); - /** Column db name of ordered. */ - protected static final String COL_ORDERED = "ORDERED"; + /** Column db name of rating. */ + protected static final String COL_RATING = "RATING"; - /** Column java name of ordered. */ - protected static final String J_Ordered = "Ordered"; + /** Column java name of rating. */ + protected static final String J_Rating = "Rating"; - /** Column uncapitalised java name of ordered. */ - protected static final String UJ_ordered = "ordered"; + /** Column uncapitalised java name of rating. */ + protected static final String UJ_rating = "rating"; /** - * Set the value of ordered using equal. { = } + * Set the value of rating using equal. { = } * - * @param ordered The value of ordered as equal. + * @param rating The value of rating as equal. */ - public void setOrdered_Equal(java.math.BigDecimal ordered) { - registerOrdered(ConditionKey.CK_EQUAL, ordered); + public void setRating_Equal(java.math.BigDecimal rating) { + registerRating(ConditionKey.CK_EQUAL, rating); } /** - * Set the value of ordered using notEqual. { != } + * Set the value of rating using notEqual. { != } * - * @param ordered The value of ordered as notEqual. + * @param rating The value of rating as notEqual. */ - public void setOrdered_NotEqual(java.math.BigDecimal ordered) { - registerOrdered(ConditionKey.CK_NOT_EQUAL, ordered); + public void setRating_NotEqual(java.math.BigDecimal rating) { + registerRating(ConditionKey.CK_NOT_EQUAL, rating); } /** - * Set the value of ordered using greaterThan. { > } + * Set the value of rating using greaterThan. { > } * - * @param ordered The value of ordered as greaterThan. + * @param rating The value of rating as greaterThan. */ - public void setOrdered_GreaterThan(java.math.BigDecimal ordered) { - registerOrdered(ConditionKey.CK_GREATER_THAN, ordered); + public void setRating_GreaterThan(java.math.BigDecimal rating) { + registerRating(ConditionKey.CK_GREATER_THAN, rating); } /** - * Set the value of ordered using lessThan. { < } + * Set the value of rating using lessThan. { < } * - * @param ordered The value of ordered as lessThan. + * @param rating The value of rating as lessThan. */ - public void setOrdered_LessThan(java.math.BigDecimal ordered) { - registerOrdered(ConditionKey.CK_LESS_THAN, ordered); + public void setRating_LessThan(java.math.BigDecimal rating) { + registerRating(ConditionKey.CK_LESS_THAN, rating); } /** - * Set the value of ordered using greaterEqual. { >= } + * Set the value of rating using greaterEqual. { >= } * - * @param ordered The value of ordered as greaterEqual. + * @param rating The value of rating as greaterEqual. */ - public void setOrdered_GreaterEqual(java.math.BigDecimal ordered) { - registerOrdered(ConditionKey.CK_GREATER_EQUAL, ordered); + public void setRating_GreaterEqual(java.math.BigDecimal rating) { + registerRating(ConditionKey.CK_GREATER_EQUAL, rating); } /** - * Set the value of ordered using lessEqual. { <= } + * Set the value of rating using lessEqual. { <= } * - * @param ordered The value of ordered as lessEqual. + * @param rating The value of rating as lessEqual. */ - public void setOrdered_LessEqual(java.math.BigDecimal ordered) { - registerOrdered(ConditionKey.CK_LESS_EQUAL, ordered); + public void setRating_LessEqual(java.math.BigDecimal rating) { + registerRating(ConditionKey.CK_LESS_EQUAL, rating); } /** - * Set the value of ordered using inScope. { in (a, b) } + * Set the value of rating using inScope. { in (a, b) } * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param orderedList The value of ordered as inScope. + * @param ratingList The value of rating as inScope. */ - public void setOrdered_InScope(java.util.List<java.math.BigDecimal> orderedList) { - registerOrdered(ConditionKey.CK_IN_SCOPE, orderedList); + public void setRating_InScope(java.util.List<java.math.BigDecimal> ratingList) { + registerRating(ConditionKey.CK_IN_SCOPE, ratingList); } /** - * Set the value of ordered using notInScope. { not in (a, b) } + * Set the value of rating using notInScope. { not in (a, b) } * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param orderedList The value of ordered as notInScope. + * @param ratingList The value of rating as notInScope. */ - public void setOrdered_NotInScope(java.util.List<java.math.BigDecimal> orderedList) { - registerOrdered(ConditionKey.CK_NOT_IN_SCOPE, orderedList); + public void setRating_NotInScope(java.util.List<java.math.BigDecimal> ratingList) { + registerRating(ConditionKey.CK_NOT_IN_SCOPE, ratingList); } - + /** - * Register condition of ordered. + * Set the value of rating using isNull. { is null } + */ + public void setRating_IsNull() { + registerRating(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of rating using isNotNull. { is not null } + */ + public void setRating_IsNotNull() { + registerRating(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of rating. * * @param key Condition key. (NotNull) - * @param value The value of ordered. (Nullable) + * @param value The value of rating. (Nullable) */ - protected void registerOrdered(ConditionKey key, Object value) { - registerQuery(key, value, getCValueOrdered(), COL_ORDERED, J_Ordered, UJ_ordered); + protected void registerRating(ConditionKey key, Object value) { + registerQuery(key, value, getCValueRating(), COL_RATING, J_Rating, UJ_rating); } /** - * Register inline condition of ordered. + * Register inline condition of rating. * * @param key Condition key. (NotNull) - * @param value The value of ordered. (Nullable) + * @param value The value of rating. (Nullable) */ - protected void registerInlineOrdered(ConditionKey key, Object value) { - registerInlineQuery(key, value, getCValueOrdered(), COL_ORDERED, J_Ordered, UJ_ordered); + protected void registerInlineRating(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueRating(), COL_RATING, J_Rating, UJ_rating); } - abstract protected ConditionValue getCValueOrdered(); + abstract protected ConditionValue getCValueRating(); /** Column db name of status. */ protected static final String COL_STATUS = "STATUS"; Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductDescriptionCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductDescriptionCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductDescriptionCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -438,6 +438,164 @@ abstract protected ConditionValue getCValueName(); + /** Column db name of title. */ + protected static final String COL_TITLE = "TITLE"; + + /** Column java name of title. */ + protected static final String J_Title = "Title"; + + /** Column uncapitalised java name of title. */ + protected static final String UJ_title = "title"; + + /** + * Set the value of title using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param title The value of title as equal. + */ + public void setTitle_Equal(String title) { + registerTitle(ConditionKey.CK_EQUAL, filterRemoveEmptyString(title)); + } + + /** + * Set the value of title using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param title The value of title as notEqual. + */ + public void setTitle_NotEqual(String title) { + registerTitle(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(title)); + } + + /** + * Set the value of title using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param title The value of title as greaterThan. + */ + public void setTitle_GreaterThan(String title) { + registerTitle(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(title)); + } + + /** + * Set the value of title using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param title The value of title as lessThan. + */ + public void setTitle_LessThan(String title) { + registerTitle(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(title)); + } + + /** + * Set the value of title using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param title The value of title as greaterEqual. + */ + public void setTitle_GreaterEqual(String title) { + registerTitle(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(title)); + } + + /** + * Set the value of title using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param title The value of title as lessEqual. + */ + public void setTitle_LessEqual(String title) { + registerTitle(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(title)); + } + + /** + * Set the value of title using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param title The value of title as prefixSearch. + */ + public void setTitle_PrefixSearch(String title) { + registerTitle(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(title)); + } + + /** + * Set the value of title using likeSearch. { like '%xxx%' } + * If the value is null or empty-string, this condition is ignored. + * You can invoke this method several times and the conditions are set up. + * + * @param title The value of title as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setTitle_LikeSearch(String title, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(title), getCValueTitle(), COL_TITLE, J_Title, UJ_title, likeSearchOption); + } + + /** + * Set the value of title using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param titleList The value of title as inScope. + */ + public void setTitle_InScope(java.util.List<String> titleList) { + registerTitle(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(titleList)); + } + + /** + * Set the value of title using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param title The value of title as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setTitle_InScope(String title, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(title), getCValueTitle(), COL_TITLE, J_Title, UJ_title, inScopeOption); + } + + /** + * Set the value of title using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param titleList The value of title as notInScope. + */ + public void setTitle_NotInScope(java.util.List<String> titleList) { + registerTitle(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(titleList)); + } + + /** + * Set the value of title using isNull. { is null } + */ + public void setTitle_IsNull() { + registerTitle(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of title using isNotNull. { is not null } + */ + public void setTitle_IsNotNull() { + registerTitle(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of title. + * + * @param key Condition key. (NotNull) + * @param value The value of title. (Nullable) + */ + protected void registerTitle(ConditionKey key, Object value) { + registerQuery(key, value, getCValueTitle(), COL_TITLE, J_Title, UJ_title); + } + + /** + * Register inline condition of title. + * + * @param key Condition key. (NotNull) + * @param value The value of title. (Nullable) + */ + protected void registerInlineTitle(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueTitle(), COL_TITLE, J_Title, UJ_title); + } + + abstract protected ConditionValue getCValueTitle(); + /** Column db name of description. */ protected static final String COL_DESCRIPTION = "DESCRIPTION"; Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductImageCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductImageCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductImageCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,540 @@ +package jp.sf.pal.pompei.cbean.cq.bs; + + + +import jp.sf.pal.pompei.allcommon.cbean.*; +import jp.sf.pal.pompei.allcommon.cbean.ckey.*; +import jp.sf.pal.pompei.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.pompei.allcommon.cbean.sqlclause.SqlClause; + +/** + * The condition-query of PRODUCT_IMAGE. + * + * @author DBFlute(AutoGenerator) + */ +public abstract class AbstractBsProductImageCQ extends AbstractConditionQuery { + + // =================================================================================== + // 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 AbstractBsProductImageCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + final public String getTableDbName() { + return "PRODUCT_IMAGE"; + } + + // =================================================================================== + // Query + // ===== + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [PRODUCT_IMAGE] + // * * * * * * * * */ + + + /** Column db name of productImageId. */ + protected static final String COL_PRODUCT_IMAGE_ID = "PRODUCT_IMAGE_ID"; + + /** Column java name of productImageId. */ + protected static final String J_ProductImageId = "ProductImageId"; + + /** Column uncapitalised java name of productImageId. */ + protected static final String UJ_productImageId = "productImageId"; + + /** + * Set the value of productImageId using equal. { = } + * + * @param productImageId The value of productImageId as equal. + */ + public void setProductImageId_Equal(java.math.BigDecimal productImageId) { + registerProductImageId(ConditionKey.CK_EQUAL, productImageId); + } + + /** + * Set the value of productImageId using notEqual. { != } + * + * @param productImageId The value of productImageId as notEqual. + */ + public void setProductImageId_NotEqual(java.math.BigDecimal productImageId) { + registerProductImageId(ConditionKey.CK_NOT_EQUAL, productImageId); + } + + /** + * Set the value of productImageId using greaterThan. { > } + * + * @param productImageId The value of productImageId as greaterThan. + */ + public void setProductImageId_GreaterThan(java.math.BigDecimal productImageId) { + registerProductImageId(ConditionKey.CK_GREATER_THAN, productImageId); + } + + /** + * Set the value of productImageId using lessThan. { < } + * + * @param productImageId The value of productImageId as lessThan. + */ + public void setProductImageId_LessThan(java.math.BigDecimal productImageId) { + registerProductImageId(ConditionKey.CK_LESS_THAN, productImageId); + } + + /** + * Set the value of productImageId using greaterEqual. { >= } + * + * @param productImageId The value of productImageId as greaterEqual. + */ + public void setProductImageId_GreaterEqual(java.math.BigDecimal productImageId) { + registerProductImageId(ConditionKey.CK_GREATER_EQUAL, productImageId); + } + + /** + * Set the value of productImageId using lessEqual. { <= } + * + * @param productImageId The value of productImageId as lessEqual. + */ + public void setProductImageId_LessEqual(java.math.BigDecimal productImageId) { + registerProductImageId(ConditionKey.CK_LESS_EQUAL, productImageId); + } + + /** + * Set the value of productImageId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param productImageIdList The value of productImageId as inScope. + */ + public void setProductImageId_InScope(java.util.List<java.math.BigDecimal> productImageIdList) { + registerProductImageId(ConditionKey.CK_IN_SCOPE, productImageIdList); + } + + /** + * Set the value of productImageId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param productImageIdList The value of productImageId as notInScope. + */ + public void setProductImageId_NotInScope(java.util.List<java.math.BigDecimal> productImageIdList) { + registerProductImageId(ConditionKey.CK_NOT_IN_SCOPE, productImageIdList); + } + + /** + * Register condition of productImageId. + * + * @param key Condition key. (NotNull) + * @param value The value of productImageId. (Nullable) + */ + protected void registerProductImageId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueProductImageId(), COL_PRODUCT_IMAGE_ID, J_ProductImageId, UJ_productImageId); + } + + /** + * Register inline condition of productImageId. + * + * @param key Condition key. (NotNull) + * @param value The value of productImageId. (Nullable) + */ + protected void registerInlineProductImageId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueProductImageId(), COL_PRODUCT_IMAGE_ID, J_ProductImageId, UJ_productImageId); + } + + abstract protected ConditionValue getCValueProductImageId(); + + /** Column db name of productId. */ + protected static final String COL_PRODUCT_ID = "PRODUCT_ID"; + + /** Column java name of productId. */ + protected static final String J_ProductId = "ProductId"; + + /** Column uncapitalised java name of productId. */ + protected static final String UJ_productId = "productId"; + + /** + * Set the value of productId using equal. { = } + * + * @param productId The value of productId as equal. + */ + public void setProductId_Equal(java.math.BigDecimal productId) { + registerProductId(ConditionKey.CK_EQUAL, productId); + } + + /** + * Set the value of productId using notEqual. { != } + * + * @param productId The value of productId as notEqual. + */ + public void setProductId_NotEqual(java.math.BigDecimal productId) { + registerProductId(ConditionKey.CK_NOT_EQUAL, productId); + } + + /** + * Set the value of productId using greaterThan. { > } + * + * @param productId The value of productId as greaterThan. + */ + public void setProductId_GreaterThan(java.math.BigDecimal productId) { + registerProductId(ConditionKey.CK_GREATER_THAN, productId); + } + + /** + * Set the value of productId using lessThan. { < } + * + * @param productId The value of productId as lessThan. + */ + public void setProductId_LessThan(java.math.BigDecimal productId) { + registerProductId(ConditionKey.CK_LESS_THAN, productId); + } + + /** + * Set the value of productId using greaterEqual. { >= } + * + * @param productId The value of productId as greaterEqual. + */ + public void setProductId_GreaterEqual(java.math.BigDecimal productId) { + registerProductId(ConditionKey.CK_GREATER_EQUAL, productId); + } + + /** + * Set the value of productId using lessEqual. { <= } + * + * @param productId The value of productId as lessEqual. + */ + public void setProductId_LessEqual(java.math.BigDecimal productId) { + registerProductId(ConditionKey.CK_LESS_EQUAL, productId); + } + + /** + * Set the value of productId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param productIdList The value of productId as inScope. + */ + public void setProductId_InScope(java.util.List<java.math.BigDecimal> productIdList) { + registerProductId(ConditionKey.CK_IN_SCOPE, productIdList); + } + + /** + * Set the value of productId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param productIdList The value of productId as notInScope. + */ + public void setProductId_NotInScope(java.util.List<java.math.BigDecimal> productIdList) { + registerProductId(ConditionKey.CK_NOT_IN_SCOPE, productIdList); + } + + /** + * Set the sub-query of ProductId_InScopeSubQuery_Product using inScopeSubQuery. + * { in (select xxx.PRODUCT_ID from PRODUCT where ...) } + * This method use from clause and where clause of the sub-query instance. + * this query keep the sub-query instance for query-value. + * After you invoke this, If you set query in the argument[subQuery], the query is ignored. + * + * @param subQuery The sub-query of ProductId_InScopeSubQuery_Product using inScopeSubQuery. (NotNull) + */ + public void setProductId_InScopeSubQuery_Product(jp.sf.pal.pompei.cbean.cq.ProductCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepProductId_InScopeSubQuery_Product(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_PRODUCT_ID, "PRODUCT_ID", "productId_InScopeSubQuery_Product"); + } + + abstract public void keepProductId_InScopeSubQuery_Product(jp.sf.pal.pompei.cbean.cq.ProductCQ subQuery); + + /** + * Register condition of productId. + * + * @param key Condition key. (NotNull) + * @param value The value of productId. (Nullable) + */ + protected void registerProductId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueProductId(), COL_PRODUCT_ID, J_ProductId, UJ_productId); + } + + /** + * Register inline condition of productId. + * + * @param key Condition key. (NotNull) + * @param value The value of productId. (Nullable) + */ + protected void registerInlineProductId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueProductId(), COL_PRODUCT_ID, J_ProductId, UJ_productId); + } + + abstract protected ConditionValue getCValueProductId(); + + /** Column db name of imageName. */ + protected static final String COL_IMAGE_NAME = "IMAGE_NAME"; + + /** Column java name of imageName. */ + protected static final String J_ImageName = "ImageName"; + + /** Column uncapitalised java name of imageName. */ + protected static final String UJ_imageName = "imageName"; + + /** + * Set the value of imageName using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param imageName The value of imageName as equal. + */ + public void setImageName_Equal(String imageName) { + registerImageName(ConditionKey.CK_EQUAL, filterRemoveEmptyString(imageName)); + } + + /** + * Set the value of imageName using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param imageName The value of imageName as notEqual. + */ + public void setImageName_NotEqual(String imageName) { + registerImageName(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(imageName)); + } + + /** + * Set the value of imageName using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param imageName The value of imageName as greaterThan. + */ + public void setImageName_GreaterThan(String imageName) { + registerImageName(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(imageName)); + } + + /** + * Set the value of imageName using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param imageName The value of imageName as lessThan. + */ + public void setImageName_LessThan(String imageName) { + registerImageName(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(imageName)); + } + + /** + * Set the value of imageName using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param imageName The value of imageName as greaterEqual. + */ + public void setImageName_GreaterEqual(String imageName) { + registerImageName(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(imageName)); + } + + /** + * Set the value of imageName using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param imageName The value of imageName as lessEqual. + */ + public void setImageName_LessEqual(String imageName) { + registerImageName(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(imageName)); + } + + /** + * Set the value of imageName using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param imageName The value of imageName as prefixSearch. + */ + public void setImageName_PrefixSearch(String imageName) { + registerImageName(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(imageName)); + } + + /** + * Set the value of imageName using likeSearch. { like '%xxx%' } + * If the value is null or empty-string, this condition is ignored. + * You can invoke this method several times and the conditions are set up. + * + * @param imageName The value of imageName as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setImageName_LikeSearch(String imageName, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(imageName), getCValueImageName(), COL_IMAGE_NAME, J_ImageName, UJ_imageName, likeSearchOption); + } + + /** + * Set the value of imageName using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param imageNameList The value of imageName as inScope. + */ + public void setImageName_InScope(java.util.List<String> imageNameList) { + registerImageName(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(imageNameList)); + } + + /** + * Set the value of imageName using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param imageName The value of imageName as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setImageName_InScope(String imageName, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(imageName), getCValueImageName(), COL_IMAGE_NAME, J_ImageName, UJ_imageName, inScopeOption); + } + + /** + * Set the value of imageName using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param imageNameList The value of imageName as notInScope. + */ + public void setImageName_NotInScope(java.util.List<String> imageNameList) { + registerImageName(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(imageNameList)); + } + + /** + * Register condition of imageName. + * + * @param key Condition key. (NotNull) + * @param value The value of imageName. (Nullable) + */ + protected void registerImageName(ConditionKey key, Object value) { + registerQuery(key, value, getCValueImageName(), COL_IMAGE_NAME, J_ImageName, UJ_imageName); + } + + /** + * Register inline condition of imageName. + * + * @param key Condition key. (NotNull) + * @param value The value of imageName. (Nullable) + */ + protected void registerInlineImageName(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueImageName(), COL_IMAGE_NAME, J_ImageName, UJ_imageName); + } + + abstract protected ConditionValue getCValueImageName(); + + /** Column db name of type. */ + protected static final String COL_TYPE = "TYPE"; + + /** Column java name of type. */ + protected static final String J_Type = "Type"; + + /** Column uncapitalised java name of type. */ + protected static final String UJ_type = "type"; + + /** + * Set the value of type using equal. { = } + * + * @param type The value of type as equal. + */ + public void setType_Equal(java.math.BigDecimal type) { + registerType(ConditionKey.CK_EQUAL, type); + } + + /** + * Set the value of type using notEqual. { != } + * + * @param type The value of type as notEqual. + */ + public void setType_NotEqual(java.math.BigDecimal type) { + registerType(ConditionKey.CK_NOT_EQUAL, type); + } + + /** + * Set the value of type using greaterThan. { > } + * + * @param type The value of type as greaterThan. + */ + public void setType_GreaterThan(java.math.BigDecimal type) { + registerType(ConditionKey.CK_GREATER_THAN, type); + } + + /** + * Set the value of type using lessThan. { < } + * + * @param type The value of type as lessThan. + */ + public void setType_LessThan(java.math.BigDecimal type) { + registerType(ConditionKey.CK_LESS_THAN, type); + } + + /** + * Set the value of type using greaterEqual. { >= } + * + * @param type The value of type as greaterEqual. + */ + public void setType_GreaterEqual(java.math.BigDecimal type) { + registerType(ConditionKey.CK_GREATER_EQUAL, type); + } + + /** + * Set the value of type using lessEqual. { <= } + * + * @param type The value of type as lessEqual. + */ + public void setType_LessEqual(java.math.BigDecimal type) { + registerType(ConditionKey.CK_LESS_EQUAL, type); + } + + /** + * Set the value of type using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param typeList The value of type as inScope. + */ + public void setType_InScope(java.util.List<java.math.BigDecimal> typeList) { + registerType(ConditionKey.CK_IN_SCOPE, typeList); + } + + /** + * Set the value of type using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param typeList The value of type as notInScope. + */ + public void setType_NotInScope(java.util.List<java.math.BigDecimal> typeList) { + registerType(ConditionKey.CK_NOT_IN_SCOPE, typeList); + } + + /** + * Register condition of type. + * + * @param key Condition key. (NotNull) + * @param value The value of type. (Nullable) + */ + protected void registerType(ConditionKey key, Object value) { + registerQuery(key, value, getCValueType(), COL_TYPE, J_Type, UJ_type); + } + + /** + * Register inline condition of type. + * + * @param key Condition key. (NotNull) + * @param value The value of type. (Nullable) + */ + protected void registerInlineType(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueType(), COL_TYPE, J_Type, UJ_type); + } + + abstract protected ConditionValue getCValueType(); + + // =================================================================================== + // Basic Override + // ============== + /** + * This method overrides the method that is declared at super. + * + * @return Clause string. (NotNull) + */ + public String toString() { + return getSqlClause().getClause(); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsProductImageCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrderNotificationCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrderNotificationCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrderNotificationCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,462 @@ +package jp.sf.pal.pompei.cbean.cq.bs; + +import jp.sf.pal.pompei.cbean.cq.*; + +import jp.sf.pal.pompei.allcommon.cbean.*; +import jp.sf.pal.pompei.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.pompei.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.pompei.cbean.cq.ciq.*; + +/** + * The condition-query of ORDER_NOTIFICATION. + * + * @author DBFlute(AutoGenerator) + */ +public class BsOrderNotificationCQ extends AbstractBsOrderNotificationCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding inline query. */ + protected OrderNotificationCIQ _inlineQuery; + + // =================================================================================== + // 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 BsOrderNotificationCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + // =================================================================================== + // Inline + // ====== + /** + * Get inline query. + * + * @return Inline query. (NotNull) + */ + public OrderNotificationCIQ inline() { + if (_inlineQuery == null) { + _inlineQuery = new OrderNotificationCIQ(getChildQuery(), getSqlClause(), getAliasName(), getNestLevel(), this); + } + return _inlineQuery; + } + + // =================================================================================== + // Include-as-Mine + // =============== + + /** + * Include select-column of orderNotificationId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_OrderNotificationId() { + registerIncludedSelectColumn("OrderNotificationId", getRealColumnName("ORDER_NOTIFICATION_ID")); + } + + /** + * Include select-column of orderNotificationId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_OrderNotificationId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("ORDER_NOTIFICATION_ID")); + } + + /** + * Include select-column of orderStatusId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_OrderStatusId() { + registerIncludedSelectColumn("OrderStatusId", getRealColumnName("ORDER_STATUS_ID")); + } + + /** + * Include select-column of orderStatusId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_OrderStatusId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("ORDER_STATUS_ID")); + } + + /** + * Include select-column of emailAddress as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_EmailAddress() { + registerIncludedSelectColumn("EmailAddress", getRealColumnName("EMAIL_ADDRESS")); + } + + /** + * Include select-column of emailAddress as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_EmailAddress(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("EMAIL_ADDRESS")); + } + + /** + * Include select-column of templateName as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_TemplateName() { + registerIncludedSelectColumn("TemplateName", getRealColumnName("TEMPLATE_NAME")); + } + + /** + * Include select-column of templateName as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_TemplateName(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("TEMPLATE_NAME")); + } + + /** + * Include select-column of status as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Status() { + registerIncludedSelectColumn("Status", getRealColumnName("STATUS")); + } + + /** + * Include select-column of status as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Status(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("STATUS")); + } + + // =================================================================================== + // Query + // ===== + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [ORDER_NOTIFICATION] + // * * * * * * * * */ + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ORDER_NOTIFICATION_ID] + // - - - - - - - - -/ + + /** The attribute of orderNotificationId. */ + protected ConditionValue _orderNotificationId; + + /** + * Get the value of orderNotificationId. + * + * @return The value of orderNotificationId. + */ + public ConditionValue getOrderNotificationId() { + if (_orderNotificationId == null) { + _orderNotificationId = new ConditionValue(); + } + return _orderNotificationId; + } + + protected ConditionValue getCValueOrderNotificationId() { + return getOrderNotificationId(); + } + + + /** + * Add order-by of orderNotificationId as ASC. + * + * @return this. (NotNull) + */ + public BsOrderNotificationCQ addOrderBy_OrderNotificationId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ORDER_NOTIFICATION_ID), null, true);return this; + } + + /** + * Add order-by of orderNotificationId as DESC. + * + * @return this. (NotNull) + */ + public BsOrderNotificationCQ addOrderBy_OrderNotificationId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ORDER_NOTIFICATION_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ORDER_STATUS_ID] + // - - - - - - - - -/ + + /** The attribute of orderStatusId. */ + protected ConditionValue _orderStatusId; + + /** + * Get the value of orderStatusId. + * + * @return The value of orderStatusId. + */ + public ConditionValue getOrderStatusId() { + if (_orderStatusId == null) { + _orderStatusId = new ConditionValue(); + } + return _orderStatusId; + } + + protected ConditionValue getCValueOrderStatusId() { + return getOrderStatusId(); + } + + + /** The sub-query of OrderStatusId_InScopeSubQuery_OrderStatus using inScopeSubQuery. */ + protected OrderStatusCQ _orderStatusId_InScopeSubQuery_OrderStatus; + + /** + * Get the sub-query of OrderStatusId_InScopeSubQuery_OrderStatus using inScopeSubQuery. + * + * @return The sub-query of OrderStatusId_InScopeSubQuery_OrderStatus using inScopeSubQuery. (Nullable) + */ + public OrderStatusCQ getOrderStatusId_InScopeSubQuery_OrderStatus() { + return _orderStatusId_InScopeSubQuery_OrderStatus; + } + + public void keepOrderStatusId_InScopeSubQuery_OrderStatus(OrderStatusCQ subQuery) { + _orderStatusId_InScopeSubQuery_OrderStatus = subQuery; + } + + /** + * Add order-by of orderStatusId as ASC. + * + * @return this. (NotNull) + */ + public BsOrderNotificationCQ addOrderBy_OrderStatusId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ORDER_STATUS_ID), null, true);return this; + } + + /** + * Add order-by of orderStatusId as DESC. + * + * @return this. (NotNull) + */ + public BsOrderNotificationCQ addOrderBy_OrderStatusId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ORDER_STATUS_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [EMAIL_ADDRESS] + // - - - - - - - - -/ + + /** The attribute of emailAddress. */ + protected ConditionValue _emailAddress; + + /** + * Get the value of emailAddress. + * + * @return The value of emailAddress. + */ + public ConditionValue getEmailAddress() { + if (_emailAddress == null) { + _emailAddress = new ConditionValue(); + } + return _emailAddress; + } + + protected ConditionValue getCValueEmailAddress() { + return getEmailAddress(); + } + + + /** + * Add order-by of emailAddress as ASC. + * + * @return this. (NotNull) + */ + public BsOrderNotificationCQ addOrderBy_EmailAddress_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_EMAIL_ADDRESS), null, true);return this; + } + + /** + * Add order-by of emailAddress as DESC. + * + * @return this. (NotNull) + */ + public BsOrderNotificationCQ addOrderBy_EmailAddress_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_EMAIL_ADDRESS), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [TEMPLATE_NAME] + // - - - - - - - - -/ + + /** The attribute of templateName. */ + protected ConditionValue _templateName; + + /** + * Get the value of templateName. + * + * @return The value of templateName. + */ + public ConditionValue getTemplateName() { + if (_templateName == null) { + _templateName = new ConditionValue(); + } + return _templateName; + } + + protected ConditionValue getCValueTemplateName() { + return getTemplateName(); + } + + + /** + * Add order-by of templateName as ASC. + * + * @return this. (NotNull) + */ + public BsOrderNotificationCQ addOrderBy_TemplateName_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_TEMPLATE_NAME), null, true);return this; + } + + /** + * Add order-by of templateName as DESC. + * + * @return this. (NotNull) + */ + public BsOrderNotificationCQ addOrderBy_TemplateName_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_TEMPLATE_NAME), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [STATUS] + // - - - - - - - - -/ + + /** The attribute of status. */ + protected ConditionValue _status; + + /** + * Get the value of status. + * + * @return The value of status. + */ + public ConditionValue getStatus() { + if (_status == null) { + _status = new ConditionValue(); + } + return _status; + } + + protected ConditionValue getCValueStatus() { + return getStatus(); + } + + + /** + * Add order-by of status as ASC. + * + * @return this. (NotNull) + */ + public BsOrderNotificationCQ addOrderBy_Status_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_STATUS), null, true);return this; + } + + /** + * Add order-by of status as DESC. + * + * @return this. (NotNull) + */ + public BsOrderNotificationCQ addOrderBy_Status_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_STATUS), null, false);return this; + } + + // =================================================================================== + // Union Query + // =========== + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) { + final OrderNotificationCQ baseQuery = (OrderNotificationCQ)baseQueryAsSuper; + final OrderNotificationCQ unionQuery = (OrderNotificationCQ)unionQueryAsSuper; + if (baseQuery.hasConditionQueryOrderStatus()) { + unionQuery.queryOrderStatus().reflectRelationOnUnionQuery(baseQuery.queryOrderStatus(), unionQuery.queryOrderStatus()); + } + + } + + // =================================================================================== + // Foreign Query + // ============= + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [ORDER_STATUS] + // ForeignProperty = [orderStatus] + // * * * * * * * * */ + + /** + * Query for orderStatus. + * + * @return Instance of OrderStatusCQ as orderStatus. (NotNull) + */ + public OrderStatusCQ queryOrderStatus() { + return getConditionQueryOrderStatus(); + } + + /** Condition-query for orderStatus. */ + protected OrderStatusCQ _conditionQueryOrderStatus; + + /** + * Get condition-query for orderStatus. + * + * @return Instance of OrderStatusCQ as orderStatus. (NotNull) + */ + public OrderStatusCQ getConditionQueryOrderStatus() { + if (_conditionQueryOrderStatus == null) { + _conditionQueryOrderStatus = newQueryOrderStatus(); + setupOuterJoin_OrderStatus(); + } + return _conditionQueryOrderStatus; + } + + /** + * Setup outer join for ${foreignPropertyName}. + */ + protected void setupOuterJoin_OrderStatus() { + final java.util.Map<String, String> joinOnMap = new java.util.LinkedHashMap<String, String>(); + String key = null; + String value = null; + + key = getRealColumnName("ORDER_STATUS_ID"); + value = getConditionQueryOrderStatus().getRealColumnName("ORDER_STATUS_ID"); + joinOnMap.put(key, value); + + final String joinTableName = "ORDER_STATUS"; + final String aliasName = getConditionQueryOrderStatus().getRealAliasName(); + getSqlClause().registerOuterJoin(joinTableName, aliasName, joinOnMap); + } + + /** + * New query for orderStatus. + * + * @return Query for orderStatus. (NotNull) + */ + protected OrderStatusCQ newQueryOrderStatus() { + return new OrderStatusCQ(this, getSqlClause(), "OrderStatus", getNextNestLevel()); + } + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQueryOrderStatus() { + return _conditionQueryOrderStatus != null; + } + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrderNotificationCQ.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrderStatusCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrderStatusCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrderStatusCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -73,24 +73,6 @@ } /** - * Include select-column of notificationTemplate as mine. - * Alias name is java-name of this column. - * Be careful to whether your table have the same column. - */ - public void includeAsMine_NotificationTemplate() { - registerIncludedSelectColumn("NotificationTemplate", getRealColumnName("NOTIFICATION_TEMPLATE")); - } - - /** - * Include select-column of notificationTemplate as mine. - * - * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) - */ - public void includeAsMine_NotificationTemplate(String aliasName) { - registerIncludedSelectColumn(aliasName, getRealColumnName("NOTIFICATION_TEMPLATE")); - } - - /** * Include select-column of sortOrder as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -191,6 +173,22 @@ _orderStatusId_InScopeSubQuery_OrderFormList = subQuery; } + /** The sub-query of OrderStatusId_InScopeSubQuery_OrderNotificationList using inScopeSubQuery. */ + protected OrderNotificationCQ _orderStatusId_InScopeSubQuery_OrderNotificationList; + + /** + * Get the sub-query of OrderStatusId_InScopeSubQuery_OrderNotificationList using inScopeSubQuery. + * + * @return The sub-query of OrderStatusId_InScopeSubQuery_OrderNotificationList using inScopeSubQuery. (Nullable) + */ + public OrderNotificationCQ getOrderStatusId_InScopeSubQuery_OrderNotificationList() { + return _orderStatusId_InScopeSubQuery_OrderNotificationList; + } + + public void keepOrderStatusId_InScopeSubQuery_OrderNotificationList(OrderNotificationCQ subQuery) { + _orderStatusId_InScopeSubQuery_OrderNotificationList = subQuery; + } + /** The sub-query of OrderStatusId_InScopeSubQuery_OrderStatusDescriptionList using inScopeSubQuery. */ protected OrderStatusDescriptionCQ _orderStatusId_InScopeSubQuery_OrderStatusDescriptionList; @@ -239,6 +237,22 @@ _orderStatusId_ExistsSubQuery_OrderFormList = subQuery; } + /** The sub-query of OrderStatusId_ExistsSubQuery_OrderNotificationList using existsSubQuery. */ + protected OrderNotificationCQ _orderStatusId_ExistsSubQuery_OrderNotificationList; + + /** + * Get the sub-query of OrderStatusId_ExistsSubQuery_OrderNotificationList using existsSubQuery. + * + * @return The sub-query of OrderStatusId_ExistsSubQuery_OrderNotificationList using existsSubQuery. (Nullable) + */ + public OrderNotificationCQ getOrderStatusId_ExistsSubQuery_OrderNotificationList() { + return _orderStatusId_ExistsSubQuery_OrderNotificationList; + } + + public void keepOrderStatusId_ExistsSubQuery_OrderNotificationList(OrderNotificationCQ subQuery) { + _orderStatusId_ExistsSubQuery_OrderNotificationList = subQuery; + } + /** The sub-query of OrderStatusId_ExistsSubQuery_OrderStatusDescriptionList using existsSubQuery. */ protected OrderStatusDescriptionCQ _orderStatusId_ExistsSubQuery_OrderStatusDescriptionList; @@ -290,48 +304,6 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - - // Column = [NOTIFICATION_TEMPLATE] - // - - - - - - - - -/ - - /** The attribute of notificationTemplate. */ - protected ConditionValue _notificationTemplate; - - /** - * Get the value of notificationTemplate. - * - * @return The value of notificationTemplate. - */ - public ConditionValue getNotificationTemplate() { - if (_notificationTemplate == null) { - _notificationTemplate = new ConditionValue(); - } - return _notificationTemplate; - } - - protected ConditionValue getCValueNotificationTemplate() { - return getNotificationTemplate(); - } - - - /** - * Add order-by of notificationTemplate as ASC. - * - * @return this. (NotNull) - */ - public BsOrderStatusCQ addOrderBy_NotificationTemplate_Asc() { - getSqlClause().registerOrderBy(getRealColumnName(COL_NOTIFICATION_TEMPLATE), null, true);return this; - } - - /** - * Add order-by of notificationTemplate as DESC. - * - * @return this. (NotNull) - */ - public BsOrderStatusCQ addOrderBy_NotificationTemplate_Desc() { - getSqlClause().registerOrderBy(getRealColumnName(COL_NOTIFICATION_TEMPLATE), null, false);return this; - } - - // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [SORT_ORDER] // - - - - - - - - -/ @@ -468,5 +440,5 @@ // Foreign Query // ============= - + } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -73,6 +73,24 @@ } /** + * Include select-column of code as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Code() { + registerIncludedSelectColumn("Code", getRealColumnName("CODE")); + } + + /** + * Include select-column of code as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Code(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("CODE")); + } + + /** * Include select-column of model as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -145,60 +163,78 @@ } /** - * Include select-column of image as mine. + * Include select-column of size as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. */ - public void includeAsMine_Image() { - registerIncludedSelectColumn("Image", getRealColumnName("IMAGE")); + public void includeAsMine_Size() { + registerIncludedSelectColumn("Size", getRealColumnName("SIZE")); } /** - * Include select-column of image as mine. + * Include select-column of size as mine. * * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) */ - public void includeAsMine_Image(String aliasName) { - registerIncludedSelectColumn(aliasName, getRealColumnName("IMAGE")); + public void includeAsMine_Size(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("SIZE")); } /** - * Include select-column of thumbnail as mine. + * Include select-column of ordered as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. */ - public void includeAsMine_Thumbnail() { - registerIncludedSelectColumn("Thumbnail", getRealColumnName("THUMBNAIL")); + public void includeAsMine_Ordered() { + registerIncludedSelectColumn("Ordered", getRealColumnName("ORDERED")); } /** - * Include select-column of thumbnail as mine. + * Include select-column of ordered as mine. * * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) */ - public void includeAsMine_Thumbnail(String aliasName) { - registerIncludedSelectColumn(aliasName, getRealColumnName("THUMBNAIL")); + public void includeAsMine_Ordered(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("ORDERED")); } /** - * Include select-column of ordered as mine. + * Include select-column of reviewed as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. */ - public void includeAsMine_Ordered() { - registerIncludedSelectColumn("Ordered", getRealColumnName("ORDERED")); + public void includeAsMine_Reviewed() { + registerIncludedSelectColumn("Reviewed", getRealColumnName("REVIEWED")); } /** - * Include select-column of ordered as mine. + * Include select-column of reviewed as mine. * * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) */ - public void includeAsMine_Ordered(String aliasName) { - registerIncludedSelectColumn(aliasName, getRealColumnName("ORDERED")); + public void includeAsMine_Reviewed(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("REVIEWED")); } /** + * Include select-column of rating as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Rating() { + registerIncludedSelectColumn("Rating", getRealColumnName("RATING")); + } + + /** + * Include select-column of rating as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Rating(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("RATING")); + } + + /** * Include select-column of status as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -465,6 +501,22 @@ _productId_InScopeSubQuery_ProductDescriptionList = subQuery; } + /** The sub-query of ProductId_InScopeSubQuery_ProductImageList using inScopeSubQuery. */ + protected ProductImageCQ _productId_InScopeSubQuery_ProductImageList; + + /** + * Get the sub-query of ProductId_InScopeSubQuery_ProductImageList using inScopeSubQuery. + * + * @return The sub-query of ProductId_InScopeSubQuery_ProductImageList using inScopeSubQuery. (Nullable) + */ + public ProductImageCQ getProductId_InScopeSubQuery_ProductImageList() { + return _productId_InScopeSubQuery_ProductImageList; + } + + public void keepProductId_InScopeSubQuery_ProductImageList(ProductImageCQ subQuery) { + _productId_InScopeSubQuery_ProductImageList = subQuery; + } + /** The sub-query of ProductId_InScopeSubQuery_ProductNotificationList using inScopeSubQuery. */ protected ProductNotificationCQ _productId_InScopeSubQuery_ProductNotificationList; @@ -641,6 +693,22 @@ _productId_ExistsSubQuery_ProductDescriptionList = subQuery; } + /** The sub-query of ProductId_ExistsSubQuery_ProductImageList using existsSubQuery. */ + protected ProductImageCQ _productId_ExistsSubQuery_ProductImageList; + + /** + * Get the sub-query of ProductId_ExistsSubQuery_ProductImageList using existsSubQuery. + * + * @return The sub-query of ProductId_ExistsSubQuery_ProductImageList using existsSubQuery. (Nullable) + */ + public ProductImageCQ getProductId_ExistsSubQuery_ProductImageList() { + return _productId_ExistsSubQuery_ProductImageList; + } + + public void keepProductId_ExistsSubQuery_ProductImageList(ProductImageCQ subQuery) { + _productId_ExistsSubQuery_ProductImageList = subQuery; + } + /** The sub-query of ProductId_ExistsSubQuery_ProductNotificationList using existsSubQuery. */ protected ProductNotificationCQ _productId_ExistsSubQuery_ProductNotificationList; @@ -708,6 +776,48 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CODE] + // - - - - - - - - -/ + + /** The attribute of code. */ + protected ConditionValue _code; + + /** + * Get the value of code. + * + * @return The value of code. + */ + public ConditionValue getCode() { + if (_code == null) { + _code = new ConditionValue(); + } + return _code; + } + + protected ConditionValue getCValueCode() { + return getCode(); + } + + + /** + * Add order-by of code as ASC. + * + * @return this. (NotNull) + */ + public BsProductCQ addOrderBy_Code_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CODE), null, true);return this; + } + + /** + * Add order-by of code as DESC. + * + * @return this. (NotNull) + */ + public BsProductCQ addOrderBy_Code_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CODE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [MODEL] // - - - - - - - - -/ @@ -876,129 +986,171 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - - // Column = [IMAGE] + // Column = [SIZE] // - - - - - - - - -/ - /** The attribute of image. */ - protected ConditionValue _image; + /** The attribute of size. */ + protected ConditionValue _size; /** - * Get the value of image. + * Get the value of size. * - * @return The value of image. + * @return The value of size. */ - public ConditionValue getImage() { - if (_image == null) { - _image = new ConditionValue(); + public ConditionValue getSize() { + if (_size == null) { + _size = new ConditionValue(); } - return _image; + return _size; } - protected ConditionValue getCValueImage() { - return getImage(); + protected ConditionValue getCValueSize() { + return getSize(); } /** - * Add order-by of image as ASC. + * Add order-by of size as ASC. * * @return this. (NotNull) */ - public BsProductCQ addOrderBy_Image_Asc() { - getSqlClause().registerOrderBy(getRealColumnName(COL_IMAGE), null, true);return this; + public BsProductCQ addOrderBy_Size_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_SIZE), null, true);return this; } /** - * Add order-by of image as DESC. + * Add order-by of size as DESC. * * @return this. (NotNull) */ - public BsProductCQ addOrderBy_Image_Desc() { - getSqlClause().registerOrderBy(getRealColumnName(COL_IMAGE), null, false);return this; + public BsProductCQ addOrderBy_Size_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_SIZE), null, false);return this; } // /- - - - - - - - - - - - - - - - - - - - - - - - // Column = [THUMBNAIL] + // Column = [ORDERED] // - - - - - - - - -/ - /** The attribute of thumbnail. */ - protected ConditionValue _thumbnail; + /** The attribute of ordered. */ + protected ConditionValue _ordered; /** - * Get the value of thumbnail. + * Get the value of ordered. * - * @return The value of thumbnail. + * @return The value of ordered. */ - public ConditionValue getThumbnail() { - if (_thumbnail == null) { - _thumbnail = new ConditionValue(); + public ConditionValue getOrdered() { + if (_ordered == null) { + _ordered = new ConditionValue(); } - return _thumbnail; + return _ordered; } - protected ConditionValue getCValueThumbnail() { - return getThumbnail(); + protected ConditionValue getCValueOrdered() { + return getOrdered(); } + + /** + * Add order-by of ordered as ASC. + * + * @return this. (NotNull) + */ + public BsProductCQ addOrderBy_Ordered_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ORDERED), null, true);return this; + } + + /** + * Add order-by of ordered as DESC. + * + * @return this. (NotNull) + */ + public BsProductCQ addOrderBy_Ordered_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ORDERED), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [REVIEWED] + // - - - - - - - - -/ + + /** The attribute of reviewed. */ + protected ConditionValue _reviewed; + + /** + * Get the value of reviewed. + * + * @return The value of reviewed. + */ + public ConditionValue getReviewed() { + if (_reviewed == null) { + _reviewed = new ConditionValue(); + } + return _reviewed; + } + + protected ConditionValue getCValueReviewed() { + return getReviewed(); + } + /** - * Add order-by of thumbnail as ASC. + * Add order-by of reviewed as ASC. * * @return this. (NotNull) */ - public BsProductCQ addOrderBy_Thumbnail_Asc() { - getSqlClause().registerOrderBy(getRealColumnName(COL_THUMBNAIL), null, true);return this; + public BsProductCQ addOrderBy_Reviewed_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_REVIEWED), null, true);return this; } /** - * Add order-by of thumbnail as DESC. + * Add order-by of reviewed as DESC. * * @return this. (NotNull) */ - public BsProductCQ addOrderBy_Thumbnail_Desc() { - getSqlClause().registerOrderBy(getRealColumnName(COL_THUMBNAIL), null, false);return this; + public BsProductCQ addOrderBy_Reviewed_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_REVIEWED), null, false);return this; } // /- - - - - - - - - - - - - - - - - - - - - - - - // Column = [ORDERED] + // Column = [RATING] // - - - - - - - - -/ - /** The attribute of ordered. */ - protected ConditionValue _ordered; + /** The attribute of rating. */ + protected ConditionValue _rating; /** - * Get the value of ordered. + * Get the value of rating. * - * @return The value of ordered. + * @return The value of rating. */ - public ConditionValue getOrdered() { - if (_ordered == null) { - _ordered = new ConditionValue(); + public ConditionValue getRating() { + if (_rating == null) { + _rating = new ConditionValue(); } - return _ordered; + return _rating; } - protected ConditionValue getCValueOrdered() { - return getOrdered(); + protected ConditionValue getCValueRating() { + return getRating(); } - + /** - * Add order-by of ordered as ASC. + * Add order-by of rating as ASC. * * @return this. (NotNull) */ - public BsProductCQ addOrderBy_Ordered_Asc() { - getSqlClause().registerOrderBy(getRealColumnName(COL_ORDERED), null, true);return this; + public BsProductCQ addOrderBy_Rating_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_RATING), null, true);return this; } /** - * Add order-by of ordered as DESC. + * Add order-by of rating as DESC. * * @return this. (NotNull) */ - public BsProductCQ addOrderBy_Ordered_Desc() { - getSqlClause().registerOrderBy(getRealColumnName(COL_ORDERED), null, false);return this; + public BsProductCQ addOrderBy_Rating_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_RATING), null, false);return this; } // /- - - - - - - - - - - - - - - - - - - - - - - @@ -1434,5 +1586,5 @@ return _conditionQueryTaxClass != null; } - + } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductDescriptionCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductDescriptionCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductDescriptionCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -109,6 +109,24 @@ } /** + * Include select-column of title as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Title() { + registerIncludedSelectColumn("Title", getRealColumnName("TITLE")); + } + + /** + * Include select-column of title as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Title(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("TITLE")); + } + + /** * Include select-column of description as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -328,6 +346,48 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [TITLE] + // - - - - - - - - -/ + + /** The attribute of title. */ + protected ConditionValue _title; + + /** + * Get the value of title. + * + * @return The value of title. + */ + public ConditionValue getTitle() { + if (_title == null) { + _title = new ConditionValue(); + } + return _title; + } + + protected ConditionValue getCValueTitle() { + return getTitle(); + } + + + /** + * Add order-by of title as ASC. + * + * @return this. (NotNull) + */ + public BsProductDescriptionCQ addOrderBy_Title_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_TITLE), null, true);return this; + } + + /** + * Add order-by of title as DESC. + * + * @return this. (NotNull) + */ + public BsProductDescriptionCQ addOrderBy_Title_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_TITLE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [DESCRIPTION] // - - - - - - - - -/ Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductImageCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductImageCQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductImageCQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,402 @@ +package jp.sf.pal.pompei.cbean.cq.bs; + +import jp.sf.pal.pompei.cbean.cq.*; + +import jp.sf.pal.pompei.allcommon.cbean.*; +import jp.sf.pal.pompei.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.pompei.allcommon.cbean.sqlclause.SqlClause; +import jp.sf.pal.pompei.cbean.cq.ciq.*; + +/** + * The condition-query of PRODUCT_IMAGE. + * + * @author DBFlute(AutoGenerator) + */ +public class BsProductImageCQ extends AbstractBsProductImageCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding inline query. */ + protected ProductImageCIQ _inlineQuery; + + // =================================================================================== + // 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 BsProductImageCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + // =================================================================================== + // Inline + // ====== + /** + * Get inline query. + * + * @return Inline query. (NotNull) + */ + public ProductImageCIQ inline() { + if (_inlineQuery == null) { + _inlineQuery = new ProductImageCIQ(getChildQuery(), getSqlClause(), getAliasName(), getNestLevel(), this); + } + return _inlineQuery; + } + + // =================================================================================== + // Include-as-Mine + // =============== + + /** + * Include select-column of productImageId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_ProductImageId() { + registerIncludedSelectColumn("ProductImageId", getRealColumnName("PRODUCT_IMAGE_ID")); + } + + /** + * Include select-column of productImageId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_ProductImageId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("PRODUCT_IMAGE_ID")); + } + + /** + * Include select-column of productId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_ProductId() { + registerIncludedSelectColumn("ProductId", getRealColumnName("PRODUCT_ID")); + } + + /** + * Include select-column of productId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_ProductId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("PRODUCT_ID")); + } + + /** + * Include select-column of imageName as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_ImageName() { + registerIncludedSelectColumn("ImageName", getRealColumnName("IMAGE_NAME")); + } + + /** + * Include select-column of imageName as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_ImageName(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("IMAGE_NAME")); + } + + /** + * Include select-column of type as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Type() { + registerIncludedSelectColumn("Type", getRealColumnName("TYPE")); + } + + /** + * Include select-column of type as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Type(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("TYPE")); + } + + // =================================================================================== + // Query + // ===== + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [PRODUCT_IMAGE] + // * * * * * * * * */ + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [PRODUCT_IMAGE_ID] + // - - - - - - - - -/ + + /** The attribute of productImageId. */ + protected ConditionValue _productImageId; + + /** + * Get the value of productImageId. + * + * @return The value of productImageId. + */ + public ConditionValue getProductImageId() { + if (_productImageId == null) { + _productImageId = new ConditionValue(); + } + return _productImageId; + } + + protected ConditionValue getCValueProductImageId() { + return getProductImageId(); + } + + + /** + * Add order-by of productImageId as ASC. + * + * @return this. (NotNull) + */ + public BsProductImageCQ addOrderBy_ProductImageId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_PRODUCT_IMAGE_ID), null, true);return this; + } + + /** + * Add order-by of productImageId as DESC. + * + * @return this. (NotNull) + */ + public BsProductImageCQ addOrderBy_ProductImageId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_PRODUCT_IMAGE_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [PRODUCT_ID] + // - - - - - - - - -/ + + /** The attribute of productId. */ + protected ConditionValue _productId; + + /** + * Get the value of productId. + * + * @return The value of productId. + */ + public ConditionValue getProductId() { + if (_productId == null) { + _productId = new ConditionValue(); + } + return _productId; + } + + protected ConditionValue getCValueProductId() { + return getProductId(); + } + + + /** The sub-query of ProductId_InScopeSubQuery_Product using inScopeSubQuery. */ + protected ProductCQ _productId_InScopeSubQuery_Product; + + /** + * Get the sub-query of ProductId_InScopeSubQuery_Product using inScopeSubQuery. + * + * @return The sub-query of ProductId_InScopeSubQuery_Product using inScopeSubQuery. (Nullable) + */ + public ProductCQ getProductId_InScopeSubQuery_Product() { + return _productId_InScopeSubQuery_Product; + } + + public void keepProductId_InScopeSubQuery_Product(ProductCQ subQuery) { + _productId_InScopeSubQuery_Product = subQuery; + } + + /** + * Add order-by of productId as ASC. + * + * @return this. (NotNull) + */ + public BsProductImageCQ addOrderBy_ProductId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_PRODUCT_ID), null, true);return this; + } + + /** + * Add order-by of productId as DESC. + * + * @return this. (NotNull) + */ + public BsProductImageCQ addOrderBy_ProductId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_PRODUCT_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [IMAGE_NAME] + // - - - - - - - - -/ + + /** The attribute of imageName. */ + protected ConditionValue _imageName; + + /** + * Get the value of imageName. + * + * @return The value of imageName. + */ + public ConditionValue getImageName() { + if (_imageName == null) { + _imageName = new ConditionValue(); + } + return _imageName; + } + + protected ConditionValue getCValueImageName() { + return getImageName(); + } + + + /** + * Add order-by of imageName as ASC. + * + * @return this. (NotNull) + */ + public BsProductImageCQ addOrderBy_ImageName_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_IMAGE_NAME), null, true);return this; + } + + /** + * Add order-by of imageName as DESC. + * + * @return this. (NotNull) + */ + public BsProductImageCQ addOrderBy_ImageName_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_IMAGE_NAME), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [TYPE] + // - - - - - - - - -/ + + /** The attribute of type. */ + protected ConditionValue _type; + + /** + * Get the value of type. + * + * @return The value of type. + */ + public ConditionValue getType() { + if (_type == null) { + _type = new ConditionValue(); + } + return _type; + } + + protected ConditionValue getCValueType() { + return getType(); + } + + + /** + * Add order-by of type as ASC. + * + * @return this. (NotNull) + */ + public BsProductImageCQ addOrderBy_Type_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_TYPE), null, true);return this; + } + + /** + * Add order-by of type as DESC. + * + * @return this. (NotNull) + */ + public BsProductImageCQ addOrderBy_Type_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_TYPE), null, false);return this; + } + + // =================================================================================== + // Union Query + // =========== + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) { + final ProductImageCQ baseQuery = (ProductImageCQ)baseQueryAsSuper; + final ProductImageCQ unionQuery = (ProductImageCQ)unionQueryAsSuper; + if (baseQuery.hasConditionQueryProduct()) { + unionQuery.queryProduct().reflectRelationOnUnionQuery(baseQuery.queryProduct(), unionQuery.queryProduct()); + } + + } + + // =================================================================================== + // Foreign Query + // ============= + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [PRODUCT] + // ForeignProperty = [product] + // * * * * * * * * */ + + /** + * Query for product. + * + * @return Instance of ProductCQ as product. (NotNull) + */ + public ProductCQ queryProduct() { + return getConditionQueryProduct(); + } + + /** Condition-query for product. */ + protected ProductCQ _conditionQueryProduct; + + /** + * Get condition-query for product. + * + * @return Instance of ProductCQ as product. (NotNull) + */ + public ProductCQ getConditionQueryProduct() { + if (_conditionQueryProduct == null) { + _conditionQueryProduct = newQueryProduct(); + setupOuterJoin_Product(); + } + return _conditionQueryProduct; + } + + /** + * Setup outer join for ${foreignPropertyName}. + */ + protected void setupOuterJoin_Product() { + final java.util.Map<String, String> joinOnMap = new java.util.LinkedHashMap<String, String>(); + String key = null; + String value = null; + + key = getRealColumnName("PRODUCT_ID"); + value = getConditionQueryProduct().getRealColumnName("PRODUCT_ID"); + joinOnMap.put(key, value); + + final String joinTableName = "PRODUCT"; + final String aliasName = getConditionQueryProduct().getRealAliasName(); + getSqlClause().registerOuterJoin(joinTableName, aliasName, joinOnMap); + } + + /** + * New query for product. + * + * @return Query for product. (NotNull) + */ + protected ProductCQ newQueryProduct() { + return new ProductCQ(this, getSqlClause(), "Product", getNextNestLevel()); + } + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQueryProduct() { + return _conditionQueryProduct != null; + } + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsProductImageCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrderNotificationCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrderNotificationCIQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrderNotificationCIQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,123 @@ +package jp.sf.pal.pompei.cbean.cq.ciq; + +import jp.sf.pal.pompei.cbean.cq.bs.*; + +import jp.sf.pal.pompei.allcommon.cbean.*; +import jp.sf.pal.pompei.allcommon.cbean.ckey.*; +import jp.sf.pal.pompei.allcommon.cbean.coption.ConditionOption; +import jp.sf.pal.pompei.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.pompei.allcommon.cbean.sqlclause.SqlClause; + +/** + * The condition-inline-query of ORDER_NOTIFICATION. + * + * @author DBFlute(AutoGenerator) + */ +public class OrderNotificationCIQ extends AbstractBsOrderNotificationCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding condition query. */ + protected BsOrderNotificationCQ _myCQ; + + // =================================================================================== + // 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. + * @param myCQ Target wrapped condition-qyery. (NotNull) + */ + public OrderNotificationCIQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel, BsOrderNotificationCQ myCQ) { + super(childQuery, sqlClause, aliasName, nestLevel); + _myCQ = myCQ; + } + + // =================================================================================== + // Override about Register + // ======================= + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) { + throw new UnsupportedOperationException("InlineQuery must not need UNION method: " + baseQueryAsSuper + " : " + unionQueryAsSuper); + } + + protected void setupConditionValueAndRegisterWhereClause(ConditionKey key, Object value, ConditionValue cvalue + , String colName, String capPropName, String uncapPropName) { + registerInlineQuery(key, value, cvalue, colName, capPropName, uncapPropName); + } + + 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); + } + + protected void registerWhereClause(String whereClause) { + registerInlineWhereClause(whereClause); + } + + protected String getInScopeSubQueryRealColumnName(String columnName) { + return columnName;// No append alias name! + } + + 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 + // ==================== + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [ORDER_NOTIFICATION] + // * * * * * * * * */ + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ORDER_NOTIFICATION_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueOrderNotificationId() { + return _myCQ.getOrderNotificationId(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ORDER_STATUS_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueOrderStatusId() { + return _myCQ.getOrderStatusId(); + } + + + public void keepOrderStatusId_InScopeSubQuery_OrderStatus(jp.sf.pal.pompei.cbean.cq.OrderStatusCQ subQuery) { + _myCQ.keepOrderStatusId_InScopeSubQuery_OrderStatus(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [EMAIL_ADDRESS] + // - - - - - - - - -/ + protected ConditionValue getCValueEmailAddress() { + return _myCQ.getEmailAddress(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [TEMPLATE_NAME] + // - - - - - - - - -/ + protected ConditionValue getCValueTemplateName() { + return _myCQ.getTemplateName(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [STATUS] + // - - - - - - - - -/ + protected ConditionValue getCValueStatus() { + return _myCQ.getStatus(); + } + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrderNotificationCIQ.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrderStatusCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrderStatusCIQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrderStatusCIQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -88,6 +88,10 @@ _myCQ.keepOrderStatusId_InScopeSubQuery_OrderFormList(subQuery); } + public void keepOrderStatusId_InScopeSubQuery_OrderNotificationList(jp.sf.pal.pompei.cbean.cq.OrderNotificationCQ subQuery) { + _myCQ.keepOrderStatusId_InScopeSubQuery_OrderNotificationList(subQuery); + } + public void keepOrderStatusId_InScopeSubQuery_OrderStatusDescriptionList(jp.sf.pal.pompei.cbean.cq.OrderStatusDescriptionCQ subQuery) { _myCQ.keepOrderStatusId_InScopeSubQuery_OrderStatusDescriptionList(subQuery); } @@ -101,6 +105,11 @@ // _myCQ.keepOrderStatusId_ExistsSubQuery_OrderFormList(subQuery); } + public void keepOrderStatusId_ExistsSubQuery_OrderNotificationList(jp.sf.pal.pompei.cbean.cq.OrderNotificationCQ subQuery) { + throw new UnsupportedOperationException("ExistsSubQuery at inline() is unsupported! Sorry!"); + // _myCQ.keepOrderStatusId_ExistsSubQuery_OrderNotificationList(subQuery); + } + public void keepOrderStatusId_ExistsSubQuery_OrderStatusDescriptionList(jp.sf.pal.pompei.cbean.cq.OrderStatusDescriptionCQ subQuery) { throw new UnsupportedOperationException("ExistsSubQuery at inline() is unsupported! Sorry!"); // _myCQ.keepOrderStatusId_ExistsSubQuery_OrderStatusDescriptionList(subQuery); @@ -112,14 +121,6 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - - // Column = [NOTIFICATION_TEMPLATE] - // - - - - - - - - -/ - protected ConditionValue getCValueNotificationTemplate() { - return _myCQ.getNotificationTemplate(); - } - - - // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [SORT_ORDER] // - - - - - - - - -/ protected ConditionValue getCValueSortOrder() { Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductCIQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductCIQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -116,6 +116,10 @@ _myCQ.keepProductId_InScopeSubQuery_ProductDescriptionList(subQuery); } + public void keepProductId_InScopeSubQuery_ProductImageList(jp.sf.pal.pompei.cbean.cq.ProductImageCQ subQuery) { + _myCQ.keepProductId_InScopeSubQuery_ProductImageList(subQuery); + } + public void keepProductId_InScopeSubQuery_ProductNotificationList(jp.sf.pal.pompei.cbean.cq.ProductNotificationCQ subQuery) { _myCQ.keepProductId_InScopeSubQuery_ProductNotificationList(subQuery); } @@ -168,6 +172,11 @@ // _myCQ.keepProductId_ExistsSubQuery_ProductDescriptionList(subQuery); } + public void keepProductId_ExistsSubQuery_ProductImageList(jp.sf.pal.pompei.cbean.cq.ProductImageCQ subQuery) { + throw new UnsupportedOperationException("ExistsSubQuery at inline() is unsupported! Sorry!"); + // _myCQ.keepProductId_ExistsSubQuery_ProductImageList(subQuery); + } + public void keepProductId_ExistsSubQuery_ProductNotificationList(jp.sf.pal.pompei.cbean.cq.ProductNotificationCQ subQuery) { throw new UnsupportedOperationException("ExistsSubQuery at inline() is unsupported! Sorry!"); // _myCQ.keepProductId_ExistsSubQuery_ProductNotificationList(subQuery); @@ -184,6 +193,14 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CODE] + // - - - - - - - - -/ + protected ConditionValue getCValueCode() { + return _myCQ.getCode(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [MODEL] // - - - - - - - - -/ protected ConditionValue getCValueModel() { @@ -216,29 +233,37 @@ // /- - - - - - - - - - - - - - - - - - - - - - - - // Column = [IMAGE] + // Column = [SIZE] // - - - - - - - - -/ - protected ConditionValue getCValueImage() { - return _myCQ.getImage(); + protected ConditionValue getCValueSize() { + return _myCQ.getSize(); } // /- - - - - - - - - - - - - - - - - - - - - - - - // Column = [THUMBNAIL] + // Column = [ORDERED] // - - - - - - - - -/ - protected ConditionValue getCValueThumbnail() { - return _myCQ.getThumbnail(); + protected ConditionValue getCValueOrdered() { + return _myCQ.getOrdered(); } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [REVIEWED] + // - - - - - - - - -/ + protected ConditionValue getCValueReviewed() { + return _myCQ.getReviewed(); + } + // /- - - - - - - - - - - - - - - - - - - - - - - - // Column = [ORDERED] + // Column = [RATING] // - - - - - - - - -/ - protected ConditionValue getCValueOrdered() { - return _myCQ.getOrdered(); + protected ConditionValue getCValueRating() { + return _myCQ.getRating(); } - + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [STATUS] // - - - - - - - - -/ Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductDescriptionCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductDescriptionCIQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductDescriptionCIQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -109,6 +109,14 @@ // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [TITLE] + // - - - - - - - - -/ + protected ConditionValue getCValueTitle() { + return _myCQ.getTitle(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [DESCRIPTION] // - - - - - - - - -/ protected ConditionValue getCValueDescription() { Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductImageCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductImageCIQ.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductImageCIQ.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,115 @@ +package jp.sf.pal.pompei.cbean.cq.ciq; + +import jp.sf.pal.pompei.cbean.cq.bs.*; + +import jp.sf.pal.pompei.allcommon.cbean.*; +import jp.sf.pal.pompei.allcommon.cbean.ckey.*; +import jp.sf.pal.pompei.allcommon.cbean.coption.ConditionOption; +import jp.sf.pal.pompei.allcommon.cbean.cvalue.ConditionValue; +import jp.sf.pal.pompei.allcommon.cbean.sqlclause.SqlClause; + +/** + * The condition-inline-query of PRODUCT_IMAGE. + * + * @author DBFlute(AutoGenerator) + */ +public class ProductImageCIQ extends AbstractBsProductImageCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding condition query. */ + protected BsProductImageCQ _myCQ; + + // =================================================================================== + // 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. + * @param myCQ Target wrapped condition-qyery. (NotNull) + */ + public ProductImageCIQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel, BsProductImageCQ myCQ) { + super(childQuery, sqlClause, aliasName, nestLevel); + _myCQ = myCQ; + } + + // =================================================================================== + // Override about Register + // ======================= + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) { + throw new UnsupportedOperationException("InlineQuery must not need UNION method: " + baseQueryAsSuper + " : " + unionQueryAsSuper); + } + + protected void setupConditionValueAndRegisterWhereClause(ConditionKey key, Object value, ConditionValue cvalue + , String colName, String capPropName, String uncapPropName) { + registerInlineQuery(key, value, cvalue, colName, capPropName, uncapPropName); + } + + 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); + } + + protected void registerWhereClause(String whereClause) { + registerInlineWhereClause(whereClause); + } + + protected String getInScopeSubQueryRealColumnName(String columnName) { + return columnName;// No append alias name! + } + + 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 + // ==================== + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [PRODUCT_IMAGE] + // * * * * * * * * */ + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [PRODUCT_IMAGE_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueProductImageId() { + return _myCQ.getProductImageId(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [PRODUCT_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueProductId() { + return _myCQ.getProductId(); + } + + + public void keepProductId_InScopeSubQuery_Product(jp.sf.pal.pompei.cbean.cq.ProductCQ subQuery) { + _myCQ.keepProductId_InScopeSubQuery_Product(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [IMAGE_NAME] + // - - - - - - - - -/ + protected ConditionValue getCValueImageName() { + return _myCQ.getImageName(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [TYPE] + // - - - - - - - - -/ + protected ConditionValue getCValueType() { + return _myCQ.getType(); + } + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/ProductImageCIQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/OrderNotificationNss.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/OrderNotificationNss.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/OrderNotificationNss.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,79 @@ +package jp.sf.pal.pompei.cbean.nss; + + +import jp.sf.pal.pompei.cbean.cq.OrderNotificationCQ; + + +/** + * The nest select setupper of ORDER_NOTIFICATION. + * + * @author DBFlute(AutoGenerator) + */ +public class OrderNotificationNss { + + // =================================================================================== + // Attribute + // ========= + /** Base query. */ + protected OrderNotificationCQ _query; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + * + * @param query Base query. (NotNull) + */ + public OrderNotificationNss(OrderNotificationCQ query) { + _query = query; + } + + // =================================================================================== + // Accessor + // ======== + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQuery() { + return _query != null; + } + + // =================================================================================== + // With... + // ======= + + /** Is select orderStatus? */ + protected boolean _isSelectOrderStatus; + + /** + * Is select orderStatus? + * + * @return Determination. + */ + public boolean isSelectOrderStatus() { + return _isSelectOrderStatus; + } + + /** + * Set up select with orderStatus. + */ + public void withOrderStatus() { + assertConditionQuery(); + _query.queryOrderStatus(); + _isSelectOrderStatus = true; + } + + // =================================================================================== + // Helper + // ====== + protected void assertConditionQuery() { + if (!hasConditionQuery()) { + String msg = "The query should not be null."; + throw new IllegalStateException(msg); + } + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/OrderNotificationNss.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/OrderStatusNss.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/OrderStatusNss.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/OrderStatusNss.java 2007-09-28 04:46:15 UTC (rev 590) @@ -45,7 +45,7 @@ // =================================================================================== // With... // ======= - + // =================================================================================== // Helper // ====== Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/ProductImageNss.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/ProductImageNss.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/ProductImageNss.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,79 @@ +package jp.sf.pal.pompei.cbean.nss; + + +import jp.sf.pal.pompei.cbean.cq.ProductImageCQ; + + +/** + * The nest select setupper of PRODUCT_IMAGE. + * + * @author DBFlute(AutoGenerator) + */ +public class ProductImageNss { + + // =================================================================================== + // Attribute + // ========= + /** Base query. */ + protected ProductImageCQ _query; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + * + * @param query Base query. (NotNull) + */ + public ProductImageNss(ProductImageCQ query) { + _query = query; + } + + // =================================================================================== + // Accessor + // ======== + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQuery() { + return _query != null; + } + + // =================================================================================== + // With... + // ======= + + /** Is select product? */ + protected boolean _isSelectProduct; + + /** + * Is select product? + * + * @return Determination. + */ + public boolean isSelectProduct() { + return _isSelectProduct; + } + + /** + * Set up select with product. + */ + public void withProduct() { + assertConditionQuery(); + _query.queryProduct(); + _isSelectProduct = true; + } + + // =================================================================================== + // Helper + // ====== + protected void assertConditionQuery() { + if (!hasConditionQuery()) { + String msg = "The query should not be null."; + throw new IllegalStateException(msg); + } + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/ProductImageNss.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/ProductNss.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/ProductNss.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/ProductNss.java 2007-09-28 04:46:15 UTC (rev 590) @@ -87,7 +87,7 @@ _query.queryTaxClass(); _isSelectTaxClass = true; } - + // =================================================================================== // Helper // ====== Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/OrderNotificationBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/OrderNotificationBhv.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/OrderNotificationBhv.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exbhv; + + +/** + * The behavior of ORDER_NOTIFICATION. + * + * @author DBFlute(AutoGenerator) + */ +public class OrderNotificationBhv extends jp.sf.pal.pompei.bsbhv.BsOrderNotificationBhv { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/OrderNotificationBhv.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/ProductImageBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/ProductImageBhv.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/ProductImageBhv.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exbhv; + + +/** + * The behavior of PRODUCT_IMAGE. + * + * @author DBFlute(AutoGenerator) + */ +public class ProductImageBhv extends jp.sf.pal.pompei.bsbhv.BsProductImageBhv { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/ProductImageBhv.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/OrderNotificationDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/OrderNotificationDao.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/OrderNotificationDao.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exdao; + + +/** + * The dao interface of ORDER_NOTIFICATION. + * + * @author DBFlute(AutoGenerator) + */ +public interface OrderNotificationDao extends jp.sf.pal.pompei.bsdao.BsOrderNotificationDao { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/OrderNotificationDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/ProductImageDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/ProductImageDao.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/ProductImageDao.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exdao; + + +/** + * The dao interface of PRODUCT_IMAGE. + * + * @author DBFlute(AutoGenerator) + */ +public interface ProductImageDao extends jp.sf.pal.pompei.bsdao.BsProductImageDao { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/ProductImageDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/OrderNotification.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/OrderNotification.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/OrderNotification.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,13 @@ +package jp.sf.pal.pompei.exentity; + + +/** + * The entity of ORDER_NOTIFICATION. + * + * @author DBFlute(AutoGenerator) + */ +public class OrderNotification extends jp.sf.pal.pompei.bsentity.BsOrderNotification { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/OrderNotification.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/ProductImage.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/ProductImage.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/ProductImage.java 2007-09-28 04:46:15 UTC (rev 590) @@ -0,0 +1,13 @@ +package jp.sf.pal.pompei.exentity; + + +/** + * The entity of PRODUCT_IMAGE. + * + * @author DBFlute(AutoGenerator) + */ +public class ProductImage extends jp.sf.pal.pompei.bsentity.BsProductImage { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/ProductImage.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/CustomerService.java 2007-09-28 04:46:15 UTC (rev 590) @@ -10,13 +10,12 @@ public interface CustomerService extends Serializable { - List<Customer> getCustomerList(); + public List<Customer> getCustomerList(); - Customer getCustomer(BigDecimal customersId); + public Customer getCustomer(BigDecimal customersId); - void deleteCustomer(BigDecimal customersId); + public void deleteCustomer(BigDecimal customersId); - //TODO above methods might not be needed.. public AddressBook getAddressBook(BigDecimal addressBookId); public AddressBook getDefaultAddressBook(BigDecimal customerId); @@ -27,7 +26,7 @@ public List<AddressBook> getAddressBookList(BigDecimal customerId); - public void addCustomer(Customer customers); + public void addCustomer(Customer customers, AddressBook addressBook); public Zone getZone(BigDecimal zoneId); Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CardTypeServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CardTypeServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CardTypeServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -13,7 +13,7 @@ */ private static final long serialVersionUID = -5687055982449308486L; - private CardTypeDescriptionBhv cardTypeDescriptionBhv; + private transient CardTypeDescriptionBhv cardTypeDescriptionBhv; /* (non-Javadoc) * @see jp.sf.pal.pompei.service.impl.CardTypeService#getCardTypeDescriptionList() Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CartServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CartServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CartServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -18,7 +18,7 @@ */ private static final long serialVersionUID = 2138228904280920698L; - private CustomerBasketBhv customerBasketBhv; + private transient CustomerBasketBhv customerBasketBhv; /** * @return customersBasketBhv Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CategoryServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CategoryServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CategoryServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -24,9 +24,9 @@ private LanguageService languageService; - private CategoryBhv categoryBhv; + private transient CategoryBhv categoryBhv; - private CategoryDescriptionBhv categoryDescriptionBhv; + private transient CategoryDescriptionBhv categoryDescriptionBhv; /** * @return languageService Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/CustomerServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -5,13 +5,19 @@ import jp.sf.pal.pompei.PompeiConstants; import jp.sf.pal.pompei.cbean.AddressBookCB; +import jp.sf.pal.pompei.cbean.CustomerBasketAttributeCB; +import jp.sf.pal.pompei.cbean.CustomerBasketCB; import jp.sf.pal.pompei.cbean.CustomerCB; import jp.sf.pal.pompei.cbean.ZoneCB; import jp.sf.pal.pompei.exbhv.AddressBookBhv; +import jp.sf.pal.pompei.exbhv.CustomerBasketAttributeBhv; +import jp.sf.pal.pompei.exbhv.CustomerBasketBhv; import jp.sf.pal.pompei.exbhv.CustomerBhv; import jp.sf.pal.pompei.exbhv.ZoneBhv; import jp.sf.pal.pompei.exentity.AddressBook; import jp.sf.pal.pompei.exentity.Customer; +import jp.sf.pal.pompei.exentity.CustomerBasket; +import jp.sf.pal.pompei.exentity.CustomerBasketAttribute; import jp.sf.pal.pompei.exentity.Zone; import jp.sf.pal.pompei.service.CustomerService; @@ -22,24 +28,16 @@ */ private static final long serialVersionUID = -5106715434338567436L; - private CustomerBhv customerBhv; + private transient CustomerBhv customerBhv; - private AddressBookBhv addressBookBhv; + private transient AddressBookBhv addressBookBhv; - private ZoneBhv zoneBhv; + private transient ZoneBhv zoneBhv; - public void addCustomer(AddressBook addressBook) { + private transient CustomerBasketBhv customerBasketBhv; - // addressBook.setCustomer(customers); - Customer customers = addressBook.getCustomer(); - //顧客を登録 - customerBhv.insert(customers); + private transient CustomerBasketAttributeBhv customerBasketAttributeBhv; - //アドレスブックを登録 - addressBook.setCustomerId(customers.getCustomerId()); - addressBookBhv.insert(addressBook); - } - public void updateCustomer(Customer customer, AddressBook addressBook) { getCustomerBhv().update(customer); @@ -48,36 +46,6 @@ } } - public AddressBookBhv getAddressBookBhv() { - return addressBookBhv; - } - - public void setAddressBookBhv(AddressBookBhv addressBookBhv) { - this.addressBookBhv = addressBookBhv; - } - - public CustomerBhv getCustomerBhv() { - return customerBhv; - } - - public void setCustomerBhv(CustomerBhv customersBhv) { - this.customerBhv = customersBhv; - } - - /** - * @return zonesBhv - */ - public ZoneBhv getZoneBhv() { - return zoneBhv; - } - - /** - * @param zonesBhv 設定する zonesBhv - */ - public void setZoneBhv(ZoneBhv zonesBhv) { - this.zoneBhv = zonesBhv; - } - public List<Customer> getCustomerList() { CustomerCB cb = new CustomerCB(); List<Customer> customersList = customerBhv.selectList(cb); @@ -102,10 +70,36 @@ public void deleteCustomer(BigDecimal customerId) { Customer customer = getCustomer(customerId); + // address book AddressBookCB addressBookCB = new AddressBookCB(); addressBookCB.query().setCustomerId_Equal(customer.getCustomerId()); - addressBookBhv.deleteList(addressBookBhv.selectList(addressBookCB)); + List<AddressBook> addressBookList = addressBookBhv + .selectList(addressBookCB); + if (addressBookList != null && !addressBookList.isEmpty()) { + addressBookBhv.deleteList(addressBookList); + } + // customer basket + CustomerBasketCB customerBasketCB = new CustomerBasketCB(); + customerBasketCB.query().setCustomerId_Equal(customer.getCustomerId()); + List<CustomerBasket> customerBasketList = getCustomerBasketBhv() + .selectList(customerBasketCB); + if (customerBasketList != null && !customerBasketList.isEmpty()) { + getCustomerBasketBhv().deleteList(customerBasketList); + } + + // customer basket attribute + CustomerBasketAttributeCB customerBasketAttributeCB = new CustomerBasketAttributeCB(); + customerBasketAttributeCB.query().setCustomerId_Equal( + customer.getCustomerId()); + List<CustomerBasketAttribute> customerBasketAttributeList = getCustomerBasketAttributeBhv() + .selectList(customerBasketAttributeCB); + if (customerBasketAttributeList != null + && !customerBasketAttributeList.isEmpty()) { + getCustomerBasketAttributeBhv().deleteList( + customerBasketAttributeList); + } + customerBhv.delete(customer); } @@ -142,8 +136,10 @@ } - public void addCustomer(Customer customers) { - getCustomerBhv().insert(customers); + public void addCustomer(Customer customer, AddressBook addressBook) { + getCustomerBhv().insert(customer); + addressBook.setCustomerId(customer.getCustomerId()); + getAddressBookBhv().insert(addressBook); } public Zone getZone(BigDecimal zoneId) { @@ -176,4 +172,63 @@ public void deleteAddressBook(AddressBook addressBook) { getAddressBookBhv().delete(addressBook); } + + public AddressBookBhv getAddressBookBhv() { + return addressBookBhv; + } + + public void setAddressBookBhv(AddressBookBhv addressBookBhv) { + this.addressBookBhv = addressBookBhv; + } + + public CustomerBhv getCustomerBhv() { + return customerBhv; + } + + public void setCustomerBhv(CustomerBhv customersBhv) { + this.customerBhv = customersBhv; + } + + /** + * @return zonesBhv + */ + public ZoneBhv getZoneBhv() { + return zoneBhv; + } + + /** + * @param zonesBhv 設定する zonesBhv + */ + public void setZoneBhv(ZoneBhv zonesBhv) { + this.zoneBhv = zonesBhv; + } + + /** + * @return customerBasketBhv + */ + public CustomerBasketBhv getCustomerBasketBhv() { + return customerBasketBhv; + } + + /** + * @param customerBasketBhv 設定する customerBasketBhv + */ + public void setCustomerBasketBhv(CustomerBasketBhv customerBasketBhv) { + this.customerBasketBhv = customerBasketBhv; + } + + /** + * @return customerBasketAttributeBhv + */ + public CustomerBasketAttributeBhv getCustomerBasketAttributeBhv() { + return customerBasketAttributeBhv; + } + + /** + * @param customerBasketAttributeBhv 設定する customerBasketAttributeBhv + */ + public void setCustomerBasketAttributeBhv( + CustomerBasketAttributeBhv customerBasketAttributeBhv) { + this.customerBasketAttributeBhv = customerBasketAttributeBhv; + } } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/DeliveryMethodServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/DeliveryMethodServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/DeliveryMethodServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -19,9 +19,9 @@ */ private static final long serialVersionUID = 5301108480977315517L; - private DeliveryMethodBhv deliveryMethodBhv; + private transient DeliveryMethodBhv deliveryMethodBhv; - private DeliveryMethodDescriptionBhv deliveryMethodDescriptionBhv; + private transient DeliveryMethodDescriptionBhv deliveryMethodDescriptionBhv; /** * @return deliveryMethodBhv Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/LanguageServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/LanguageServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/LanguageServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -19,7 +19,7 @@ */ private static final long serialVersionUID = -4897568594823098906L; - private LanguageBhv languageBhv; + private transient LanguageBhv languageBhv; private Language currentLanguage; Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ManufacturerServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ManufacturerServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ManufacturerServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -29,9 +29,9 @@ private LanguageService languageService; - ManufacturerBhv manufacturerBhv; + private transient ManufacturerBhv manufacturerBhv; - ManufacturerDescriptionBhv manufacturerDescriptionBhv; + private transient ManufacturerDescriptionBhv manufacturerDescriptionBhv; /** * @return languageService Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/OrderServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/OrderServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/OrderServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -53,27 +53,27 @@ */ private static final long serialVersionUID = -6452405711117279851L; - private OrderFormBhv orderFormBhv; + private transient OrderFormBhv orderFormBhv; - private CurrencyBhv currencyBhv; + private transient CurrencyBhv currencyBhv; - private OrderCardInfoBhv orderCardInfoBhv; + private transient OrderCardInfoBhv orderCardInfoBhv; - private CustomerBasketBhv customerBasketBhv; + private transient CustomerBasketBhv customerBasketBhv; - private OrderProductBhv orderProductBhv; + private transient OrderProductBhv orderProductBhv; - private ProductBhv productBhv; + private transient ProductBhv productBhv; - private OrderStatusDescriptionBhv orderStatusDescriptionBhv; + private transient OrderStatusDescriptionBhv orderStatusDescriptionBhv; - private OrderStatusHistoryBhv orderStatusHistoryBhv; + private transient OrderStatusHistoryBhv orderStatusHistoryBhv; - private OrderProductAttributeBhv orderProductAttributeBhv; + private transient OrderProductAttributeBhv orderProductAttributeBhv; - private OrderProductDownloadBhv orderProductDownloadBhv; + private transient OrderProductDownloadBhv orderProductDownloadBhv; - private OrderCommentBhv orderCommentBhv; + private transient OrderCommentBhv orderCommentBhv; private OrderFormDxo orderFormDxo; @@ -221,13 +221,11 @@ || billingAddressBook == null || paymentMethod == null || deliveryMethod == null || currency == null || totalPrice == null) { - //TODO put message - throw new CommonException("", "Some parameters are null."); + throw new CommonException("invaild.order.parameters", "Some parameters are null."); } if (customerBasketIdList.isEmpty()) { - //TODO put message - throw new CommonException("", "The basket is empty."); + throw new CommonException("cart.is.empty", "The basket is empty."); } Date now = new Date(); @@ -248,8 +246,7 @@ .getCode())) { //TODO insert card info if (orderCardInfo == null) { - //TODO put message - throw new CommonException("", "A card info is null."); + throw new CommonException("card.info.is.null", "A card info is null."); } getOrderCardInfoBhv().insert(orderCardInfo); orderForm.setOrderCardInfoId(orderCardInfo.getOrderCardInfoId()); @@ -289,15 +286,13 @@ CustomerBasket customerBasket = getCustomerBasketBhv() .selectEntity(cb); if (customerBasket == null) { - //TODO put message - throw new CommonException("", + throw new CommonException("could.not.find.cart.info", "Could not find a customer basket:" + customerBasketId.toString()); } if (customerBasket.getCustomer() == null || customerBasket.getProduct() == null) { - //TODO put message - throw new CommonException("", + throw new CommonException("invalid.cart.state", "Could not find a customer or product in the basket:" + customerBasket.getCustomer() + "," + customerBasket.getProduct()); @@ -305,8 +300,7 @@ // check customer info if (!customer.getCustomerId().equals( customerBasket.getCustomer().getCustomerId())) { - //TODO put message - throw new CommonException("", "Invalid customer info:" + throw new CommonException("invalid.customer.info.in.cart", "Invalid customer info:" + customer.getCustomerId()); } @@ -326,8 +320,7 @@ BigDecimal quantity = product.getQuantity().subtract( customerBasket.getQuantity()); if (quantity.intValue() < 0) { - //TODO put message - throw new CommonException("", "The product is a shortage." + throw new CommonException("prodocut.is.shortage", "The product is a shortage." + customer.getCustomerId()); } product.setQuantity(quantity); Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/PaymentMethodServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/PaymentMethodServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/PaymentMethodServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -15,9 +15,9 @@ */ private static final long serialVersionUID = 8750885593336801203L; - private PaymentMethodBhv paymentMethodBhv; + private transient PaymentMethodBhv paymentMethodBhv; - private PaymentMethodDescriptionBhv paymentMethodDescriptionBhv; + private transient PaymentMethodDescriptionBhv paymentMethodDescriptionBhv; /* (non-Javadoc) * @see jp.sf.pal.pompei.service.impl.PaymentMethodService#getPaymentMethodDescriptionList() Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/ProductServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -38,25 +38,25 @@ private LanguageService languageService; - private ProductBhv productBhv; + private transient ProductBhv productBhv; - private ManufacturerBhv manufacturerBhv; + private transient ManufacturerBhv manufacturerBhv; - private CustomerBasketAttributeBhv customerBasketAttributeBhv; + private transient CustomerBasketAttributeBhv customerBasketAttributeBhv; - private CustomerBasketBhv customerBasketBhv; + private transient CustomerBasketBhv customerBasketBhv; - private ProductAttributeBhv productAttributeBhv; + private transient ProductAttributeBhv productAttributeBhv; - private ProductDescriptionBhv productDescriptionBhv; + private transient ProductDescriptionBhv productDescriptionBhv; - private ProductNotificationBhv productNotificationBhv; + private transient ProductNotificationBhv productNotificationBhv; - private ProductToCategoryBhv productToCategoryBhv; + private transient ProductToCategoryBhv productToCategoryBhv; - private ReviewBhv reviewBhv; + private transient ReviewBhv reviewBhv; - private BargainBhv bargainBhv; + private transient BargainBhv bargainBhv; /** * @return languageService @@ -91,7 +91,7 @@ if (description.getImageFile() != null) { String filename = UploadedFileUtil.storeProduct(products .getProductId(), description.getImageFile()); - products.setImage(filename); + // products.setImage(filename); productBhv.update(products); } } @@ -189,7 +189,7 @@ if (description.getImageFile() != null) { String filename = UploadedFileUtil.storeProduct(products .getProductId(), description.getImageFile()); - products.setImage(filename); + // products.setImage(filename); } productBhv.update(products); Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/TaxServiceImpl.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/TaxServiceImpl.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/service/impl/TaxServiceImpl.java 2007-09-28 04:46:15 UTC (rev 590) @@ -18,9 +18,9 @@ */ private static final long serialVersionUID = -601580607276944509L; - private TaxClassBhv taxClassBhv; + private transient TaxClassBhv taxClassBhv; - private TaxRateBhv taxRateBhv; + private transient TaxRateBhv taxRateBhv; /* (non-Javadoc) * @see jp.sf.pal.pompei.service.impl.TaxService#getTaxRateByZoneId(java.math.BigDecimal) Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerConfirmAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerConfirmAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerConfirmAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -2,6 +2,7 @@ import java.io.Serializable; +import jp.sf.pal.common.util.FacesMessageUtil; import jp.sf.pal.pompei.PompeiConstants; import jp.sf.pal.pompei.dxo.CustomerDxo; import jp.sf.pal.pompei.exentity.AddressBook; @@ -36,7 +37,10 @@ AddressBook addressBook = getCustomerService() .getDefaultAddressBook( getCustomerConfirmPage().getCustomerId()); - getCustomerDxo().convert(addressBook, getCustomerConfirmPage()); + if (addressBook != null) { + getCustomerDxo().convert(addressBook, + getCustomerConfirmPage()); + } // customer Customer customer = getCustomerService().getCustomer( @@ -44,22 +48,31 @@ getCustomerDxo().convert(customer, getCustomerConfirmPage()); } } else { - // TODO put message + FacesMessageUtil + .addErrorMessage("unexpected.mode.in.customerconfirm"); return CustomerListPage.class; } + + // render faces message + FacesMessageUtil.renderMessages(); return null; } public Class<?> doFinish() { if (isUpdate()) { if (getCustomerConfirmPage().getCustomerId() == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("customer.is.not.specified.in.customerconfirm"); return CustomerListPage.class; } Customer customer = getCustomerService().getCustomer( getCustomerConfirmPage().getCustomerId()); if (customer == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage( + "could.not.find.customer.info.in.customerconfirm", + new Object[] { getCustomerConfirmPage() + .getCustomerId() }); return CustomerListPage.class; } @@ -74,21 +87,25 @@ getCustomerService().updateCustomer(customer, addressBook); - //TODO put message success + FacesMessageUtil + .addInfoMessage("updated.customer.in.customerconfirm"); return CustomerListPage.class; } else if (isDelete()) { if (getCustomerConfirmPage().getCustomerId() == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("customer.is.not.specified.in.customerconfirm.for.delete"); return CustomerListPage.class; } getCustomerService().deleteCustomer( getCustomerConfirmPage().getCustomerId()); - //TODO put message success + FacesMessageUtil + .addInfoMessage("deleted.customer.in.customerconfirm"); return CustomerListPage.class; } else { - //TODO put message + FacesMessageUtil + .addErrorMessage("unexpected.action.in.customerconfirm"); return null; } } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerEditAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerEditAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerEditAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -2,6 +2,7 @@ import java.io.Serializable; +import jp.sf.pal.common.util.FacesMessageUtil; import jp.sf.pal.pompei.PompeiConstants; import jp.sf.pal.pompei.dxo.CustomerDxo; import jp.sf.pal.pompei.exentity.AddressBook; @@ -30,7 +31,8 @@ public Class<?> prerender() { if (getCustomerEditPage().getCustomerId() == null || !isUpdate()) { - // TODO put message + FacesMessageUtil + .addErrorMessage("invalid.parameter.in.customeredit"); return CustomerListPage.class; } @@ -44,6 +46,8 @@ getCustomerEditPage().getCustomerId()); getCustomerDxo().convert(customer, getCustomerEditPage()); + //render faces message + FacesMessageUtil.renderMessages(); return null; } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerListAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerListAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/customer/CustomerListAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -3,6 +3,7 @@ import java.io.Serializable; import java.util.List; +import jp.sf.pal.common.util.FacesMessageUtil; import jp.sf.pal.pompei.dxo.CustomerDxo; import jp.sf.pal.pompei.exentity.Customer; import jp.sf.pal.pompei.service.CustomerService; @@ -32,6 +33,9 @@ List<Customer> customerList = getCustomerService().getCustomerList(); getCustomerListPage().setCustomerItems( getCustomerDxo().convert(customerList)); + + // render faces message + FacesMessageUtil.renderMessages(); return null; } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/order/OrderConfirmAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/order/OrderConfirmAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/order/OrderConfirmAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -3,6 +3,7 @@ import java.io.Serializable; import java.util.List; +import jp.sf.pal.common.util.FacesMessageUtil; import jp.sf.pal.pompei.PompeiConstants; import jp.sf.pal.pompei.dxo.OrderFormDxo; import jp.sf.pal.pompei.exentity.OrderCardInfo; @@ -71,9 +72,11 @@ } } + // render faces messages + FacesMessageUtil.renderMessages(); return null; } else { - //TODO put message + FacesMessageUtil.addErrorMessage("unexpected.mode.in.orderconfirm"); return OrderListPage.class; } } @@ -84,7 +87,10 @@ OrderForm orderForm = getOrderService().getOrderForm( getOrderConfirmPage().getOrderFormId()); if (orderForm == null) { - //TODO put message + FacesMessageUtil.addErrorMessage( + "could.not.find.order.in.orderconfirm", + new Object[] { getOrderConfirmPage() + .getOrderCardInfoId() }); return null; } getOrderFormDxo().convert(getOrderConfirmPage(), orderForm); @@ -103,24 +109,30 @@ // update getOrderService().updateOrderForm(orderForm, orderCardInfo); - //TODO put message success + FacesMessageUtil + .addInfoMessage("updated.order.info.in.orderconfirm"); return OrderListPage.class; } else if (isDelete()) { // order form OrderForm orderForm = getOrderService().getOrderForm( getOrderConfirmPage().getOrderFormId()); if (orderForm == null) { - //TODO put message + FacesMessageUtil.addErrorMessage( + "could.not.find.order.in.orderconfirm.for.delete", + new Object[] { getOrderConfirmPage() + .getOrderCardInfoId() }); return null; } // delete getOrderService().deleteOrderForm(orderForm); - //TODO put message success + FacesMessageUtil + .addInfoMessage("deleted.order.info.in.orderconfirm"); return OrderListPage.class; } else { - // TODO put message unknown mode.. + FacesMessageUtil + .addErrorMessage("unexpected.action.in.orderconfirm"); return null; } } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/order/OrderEditAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/order/OrderEditAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/order/OrderEditAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -3,6 +3,7 @@ import java.io.Serializable; import java.util.List; +import jp.sf.pal.common.util.FacesMessageUtil; import jp.sf.pal.pompei.PompeiConstants; import jp.sf.pal.pompei.dxo.OrderFormDxo; import jp.sf.pal.pompei.exentity.OrderCardInfo; @@ -34,16 +35,11 @@ } public Class<?> prerender() { - if (!isUpdate()) { - // TODO put message + if (!isUpdate() || getOrderEditPage().getOrderFormId() == null) { + FacesMessageUtil.addErrorMessage("invalid.mode.in.orderedit"); return OrderListPage.class; } - if (getOrderEditPage().getOrderFormId() == null) { - //TODO put message - return OrderListPage.class; - } - // order form OrderForm orderForm = getOrderService().getOrderForm( getOrderEditPage().getOrderFormId()); @@ -73,6 +69,8 @@ getOrderFormDxo().convertToOrderStatusItems( orderStatusDescriptionList)); + // render faces messages + FacesMessageUtil.renderMessages(); return null; } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/CategoryEditAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/CategoryEditAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/CategoryEditAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -87,7 +87,7 @@ // categoryEditPage.setSortOrder(null); } - // redner FacesMessages + // render Faces messages FacesMessageUtil.renderMessages(); return null; } @@ -115,6 +115,8 @@ categoryService.addCategoryDescription(d); categoryEditPage.setTargetId(d.getCategoryId()); + + FacesMessageUtil.addInfoMessage("added.category.in.categoryedit"); } else { // update CategoryDescription d = getCategoryService() @@ -131,12 +133,13 @@ c.setLastModified(new Timestamp(new Date().getTime())); c.setParentId(parentId); categoryService.updateCategoryDescription(d); + + FacesMessageUtil.addInfoMessage("updated.category.in.categoryedit"); } //needed? // categoryEditPage.setTargetId(parentId); - //TODO put message return CategoryListPage.class; } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/CategoryListAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/CategoryListAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/CategoryListAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -96,7 +96,7 @@ dxo.convert(list, cList); categoryListPage.setCategoryItems(cList); - // redner FacesMessages + // render FacesMessages FacesMessageUtil.renderMessages(); return null; } @@ -112,7 +112,7 @@ // TODO check if id is null if (categoryService.hasChildCategory(id)) { - //TODO put message + FacesMessageUtil.addWarnMessage("has.child.categories"); return null; } @@ -121,7 +121,7 @@ // TODO redirect wrong page?? - //TODO put message + FacesMessageUtil.addInfoMessage("deleted.category"); return CategoryListPage.class; } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ManufacturerEditAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ManufacturerEditAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ManufacturerEditAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -6,6 +6,7 @@ import org.seasar.teeda.extension.annotation.takeover.TakeOver; import org.seasar.teeda.extension.annotation.takeover.TakeOverType; +import jp.sf.pal.common.util.FacesMessageUtil; import jp.sf.pal.pompei.PompeiConstants; import jp.sf.pal.pompei.dxo.ManufacturerDxo; import jp.sf.pal.pompei.exentity.Manufacturer; @@ -76,7 +77,8 @@ manufacturers.setName(manufacturerEditPage.getName()); manufacturers.setImage(manufacturerEditPage.getImage()); manufacturerService.updateManufactureDescription(info); - // TODO put message + + FacesMessageUtil.addInfoMessage("updated.manufacturer"); return ManufacturerEditPage.class; } else { // insert @@ -89,7 +91,8 @@ manufacturers); info.setManufacturer(manufacturers); getManufacturerService().addManufactureDescription(info); - // TODO put message + + FacesMessageUtil.addInfoMessage("added.manufacturer"); return ManufacturerListPage.class; } } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ManufacturerListAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ManufacturerListAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ManufacturerListAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -32,24 +32,6 @@ private ManufacturerDxo manufacturersDxo; - public Class<?> doDelete() { - manufacturerService.deleteManufacture(getManufacturerListPage() - .getTargetId()); - - //TODO put message - return null; - } - - public Class<?> doUpdate() { - getManufacturerListPage().setManufacturerId( - getManufacturerListPage().getTargetId()); - return ManufacturerEditPage.class; - } - - public Class<?> doAdd() { - return ManufacturerEditPage.class; - } - public Class<?> initialize() { return null; } @@ -69,18 +51,24 @@ return null; } - // private List getMockList() { - // List list = new ArrayList(); - // Map m = new HashMap(); - // m.put("manufacturerName","サンプル"); - // m.put("manufacturerDesc","説明文"); - // m.put("manufacturerUrl","http://www.google.com"); - // list.add(m); - // list.add(m); - // list.add(m); - // return list; - // } + public Class<?> doDelete() { + manufacturerService.deleteManufacture(getManufacturerListPage() + .getTargetId()); + FacesMessageUtil.addInfoMessage("deleted.manufacturer"); + return null; + } + + public Class<?> doUpdate() { + getManufacturerListPage().setManufacturerId( + getManufacturerListPage().getTargetId()); + return ManufacturerEditPage.class; + } + + public Class<?> doAdd() { + return ManufacturerEditPage.class; + } + /** * @return manufacturerService */ Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ProductEditAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ProductEditAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ProductEditAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -1,14 +1,10 @@ package jp.sf.pal.pompei.web.admin.product; import java.io.Serializable; -import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import java.util.Map; -import org.seasar.teeda.extension.annotation.takeover.TakeOver; -import org.seasar.teeda.extension.annotation.takeover.TakeOverType; - import jp.sf.pal.common.CommonException; import jp.sf.pal.common.util.FacesMessageUtil; import jp.sf.pal.pompei.PompeiConstants; @@ -24,6 +20,9 @@ import jp.sf.pal.pompei.service.TaxService; import jp.sf.pal.pompei.service.impl.ProductServiceImpl; +import org.seasar.teeda.extension.annotation.takeover.TakeOver; +import org.seasar.teeda.extension.annotation.takeover.TakeOverType; + public class ProductEditAction implements Serializable { /** @@ -52,14 +51,6 @@ /** */ private ManufacturerDxo manufacturerDxo; - public ProductDxo getProductDxo() { - return productDxo; - } - - public void setProductDxo(ProductDxo productDxo) { - this.productDxo = productDxo; - } - public Class<?> initialize() { List<Map<String, String>> mList = getManufacturerIdList(); @@ -127,7 +118,7 @@ try { productService.addProductDescription(description, productEditPage.getParentId()); - //TODO put message + FacesMessageUtil.addInfoMessage("added.product"); } catch (CommonException e) { FacesMessageUtil.addErrorMessage(e.getMessageId()); } @@ -145,12 +136,14 @@ description.setImageFile(productEditPage.getImageFile()); try { productService.updateProductDescription(description); - //TODO put message + FacesMessageUtil.addInfoMessage("updated.product"); } catch (CommonException e) { FacesMessageUtil.addErrorMessage(e.getMessageId()); } } else { + FacesMessageUtil + .addErrorMessage("unexpected.action.in.productedit"); return null; } @@ -247,4 +240,11 @@ this.taxDxo = taxDxo; } + public ProductDxo getProductDxo() { + return productDxo; + } + + public void setProductDxo(ProductDxo productDxo) { + this.productDxo = productDxo; + } } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ProductListAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ProductListAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/admin/product/ProductListAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -46,7 +46,7 @@ public Class<?> doDelete() { productService.deleteProduct(productListPage.getProductId()); - //TODO put message + FacesMessageUtil.addInfoMessage("deleted.product"); return null; } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/cart/ProductListAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/cart/ProductListAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/cart/ProductListAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -118,7 +118,7 @@ public Class<?> doDelete() { getCartService().deleteCustomerBasket( getProductListPage().getCustomerBasketId()); - //TODO put message + FacesMessageUtil.addInfoMessage("deleted.product.from.cart"); return null; } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/CheckoutCompleteAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/CheckoutCompleteAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/CheckoutCompleteAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -41,7 +41,6 @@ } if (getCheckoutCompletePage().getOrderFormNumber() == null) { - // TODO put message return UserInfoEditPage.class; } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/CheckoutConfirmAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/CheckoutConfirmAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/CheckoutConfirmAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -74,7 +74,7 @@ private OrderFormDxo orderFormDxo; - private S2Container container; + private transient S2Container container; public Class<?> initialize() { return null; @@ -98,7 +98,8 @@ Map<String, Object> orderProcessMap = getOrderProcessMap(); if (orderProcessMap == null) { // expires session - //TODO put message + FacesMessageUtil + .addErrorMessage("expire.order.process.in.checkoutconfirm"); return UserInfoEditPage.class; } @@ -106,7 +107,8 @@ customers.getCustomerId()); if (baskets.isEmpty()) { // clean up in the cart - //TODO put message + FacesMessageUtil + .addErrorMessage("cart.is.empty.in.checkoutconfirm"); return UserInfoEditPage.class; } @@ -144,7 +146,8 @@ String deliveryAddressBookId = (String) orderProcessMap .get(PompeiConstants.DELIVERY_ADDRESS_BOOK_ID); if (deliveryAddressBookId == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.delivery.addressbook.id.in.checkoutconfirm"); return UserInfoEditPage.class; } AddressBook deliveryAddressBook; @@ -152,11 +155,13 @@ deliveryAddressBook = getCustomerService().getAddressBook( new BigDecimal(deliveryAddressBookId)); } catch (NumberFormatException e) { - //TODO put message(IllegalState..) + FacesMessageUtil + .addErrorMessage("invalid.delivery.addressbook.in.checkoutconfirm"); return UserInfoEditPage.class; } if (deliveryAddressBook == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.delivery.addressbook.in.checkoutconfirm"); return UserInfoEditPage.class; } getCustomerDxo().convert(deliveryAddressBook, getCheckoutConfirmPage()); @@ -165,7 +170,8 @@ TaxRate taxRates = getTaxService().getTaxRateByZoneId( deliveryAddressBook.getZone().getZoneId()); if (taxRates == null) { - //TODO put message(IllegalState..) + FacesMessageUtil + .addErrorMessage("could.not.find.tax.rate.incheckoutconfirm"); return UserInfoEditPage.class; } BigDecimal tax = subTotalPrice.multiply(taxRates.getRate()).divide( @@ -176,13 +182,15 @@ BigDecimal paymentMethodId = (BigDecimal) orderProcessMap .get(PompeiConstants.PAYMENT_METHOD_ID); if (paymentMethodId == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.payment.method.id.in.checkoutconfirm"); return UserInfoEditPage.class; } PaymentMethodDescription pmd = getPaymentMethodService() .getPaymentMethodDescription(paymentMethodId); if (pmd == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.payment.method.in.checkoutconfirm"); return UserInfoEditPage.class; } getCheckoutConfirmPage().setPaymentMethodName(pmd.getName()); @@ -191,13 +199,15 @@ BigDecimal deliveryMethodId = (BigDecimal) orderProcessMap .get(PompeiConstants.DELIVERY_METHOD_ID); if (deliveryMethodId == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.delivery.method.id.in.checkoutconfirm"); return UserInfoEditPage.class; } DeliveryMethodDescription dmd = getDeliveryMethodSerivce() .getDeliveryMethodDescription(deliveryMethodId); if (dmd == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.delivery.method.in.checkoutconfirm"); return UserInfoEditPage.class; } getCheckoutConfirmPage().setDeliveryMethodName(dmd.getName()); @@ -205,21 +215,24 @@ // delivery fee String deliveryMethodObjectName = dmd.getDeliveryMethod() .getObjectName(); - BigDecimal deliveryPrice = new BigDecimal(0); + BigDecimal deliveryPrice = PompeiConstants.DEFAULT_DELIVERY_PRICE; try { DeliveryMethodCalculator dmc = (DeliveryMethodCalculator) getContainer() .getComponent(deliveryMethodObjectName); deliveryPrice = dmc.calculate(baskets, deliveryAddressBook); getCheckoutConfirmPage().setDeliveryPrice(deliveryPrice); } catch (ComponentNotFoundRuntimeException e) { - //TODO put message + FacesMessageUtil.addErrorMessage("could.not.calculate.tax.1"); //TODO logger + return UserInfoEditPage.class; } catch (TooManyRegistrationRuntimeException e) { - //TODO put message + FacesMessageUtil.addErrorMessage("could.not.calculate.tax.2"); //TODO logger + return UserInfoEditPage.class; } catch (CyclicReferenceRuntimeException e) { - //TODO put message + FacesMessageUtil.addErrorMessage("could.not.calculate.tax.3"); //TODO logger + return UserInfoEditPage.class; } // total @@ -252,7 +265,8 @@ if (map == null) { // expires session // TODO clear session info for card - // TODO put message + FacesMessageUtil + .addErrorMessage("expire.order.process.in.checkoutconfirm.for.confirm"); return UserInfoEditPage.class; } @@ -271,7 +285,8 @@ if (paymentMethodId == null || deliveryMethodId == null || deliveryAddressBookIdStr == null || customerBasketIdList == null) { - // TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.cart.info.in.checkoutconfirm"); return null; } @@ -314,9 +329,11 @@ } catch (CommonException e) { FacesMessageUtil.addErrorMessage(e.getMessageId()); //TODO logger + return null; } catch (Exception e) { - //TODO put message + FacesMessageUtil.addErrorMessage("could.not.store.order"); //TODO logger + return null; } return CheckoutCompletePage.class; @@ -326,7 +343,7 @@ public Class<?> doCancel() { SessionUtil.removeFromLocalScope(getCheckoutConfirmPage() .getOrderProcessId()); - //TODO put message (cancel order process) + FacesMessageUtil.addInfoMessage("canceled.order"); return UserInfoEditPage.class; } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/PaymentSelectAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/PaymentSelectAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/PaymentSelectAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -114,7 +114,8 @@ if (map == null) { // expires session // TODO clear session info for card - // TODO put message + FacesMessageUtil + .addErrorMessage("expire.order.process.in.paymentselect"); return UserInfoEditPage.class; } @@ -122,7 +123,8 @@ .getTargetPaymentMethodId(); if (paymentMethodId == null) { // TODO clear session info for card - // TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.payment.method.id.in.paymentselect"); return null; } PaymentMethodDescription pmd = getPaymentMethodService() @@ -130,22 +132,23 @@ if (pmd == null) { // invalid payment string // TODO clear session info for card - // TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.payment.method.in.paymentselect"); return null; } map.put(PompeiConstants.PAYMENT_METHOD_ID, pmd.getPaymentMethodId()); // card - if (PompeiConstants.CREDITCARD_PAYMENT_METHOD.equals(pmd.getPaymentMethod() - .getCode())) { + if (PompeiConstants.CREDITCARD_PAYMENT_METHOD.equals(pmd + .getPaymentMethod().getCode())) { // card type if (!StringUtil.isEmpty(getPaymentSelectPage().getCcOwner())) { map.put(PompeiConstants.CARD_TYPE, getPaymentSelectPage() .getCardCode()); } else { // invalid card owner - // TODO clear session info for card - // TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.card.type.in.paymentselect"); return null; } // card number @@ -164,7 +167,8 @@ } else { // invalid card number // TODO clear session info for card - // TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.card.number.in.paymentselect"); return null; } // owner @@ -174,7 +178,8 @@ } else { // invalid card number // TODO clear session info for card - // TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.card.owner.in.paymentselect"); return null; } // expire @@ -187,7 +192,8 @@ } else { // invalid card number // TODO clear session info for card - // TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.card.expire.in.paymentselect"); return null; } } @@ -198,13 +204,11 @@ if (deliveryMethodId != null) { map.put(PompeiConstants.DELIVERY_METHOD_ID, deliveryMethodId); } else { - // invalid card number - // TODO clear session info for card - // TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.delivery.method.id.in.paymentselect"); return null; } - // TODO return CheckoutConfirmPage.class; } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/UserAddressSelectAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/UserAddressSelectAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/UserAddressSelectAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -65,6 +65,10 @@ if (defaultAddressBook != null) { getUserAddressSelectPage().setAddressBookId( defaultAddressBook.getAddressBookId().toString()); + } else { + FacesMessageUtil + .addWarnMessage("could.not.find.default.address.book"); + return UserInfoEditPage.class; } List<Map<String, String>> list = new ArrayList<Map<String, String>>(); @@ -125,7 +129,7 @@ addressBook.setDefaultAddress(PompeiConstants.FALSE_BIGDECIMAL); getCustomerService().addAddressBook(addressBook); - // TODO put message + FacesMessageUtil.addInfoMessage("added.addressbook"); return UserAddressSelectPage.class; } @@ -145,7 +149,8 @@ } if (getUserAddressSelectPage().getAddressBookId() == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.address.book.id.inuseraddressselect"); return UserAddressSelectPage.class; } @@ -154,7 +159,8 @@ addressBookId = new BigDecimal(getUserAddressSelectPage() .getAddressBookId()); } catch (NumberFormatException e) { - //TODO put message + FacesMessageUtil + .addErrorMessage("invalid.address.book.id.inuseraddressselect"); return UserAddressSelectPage.class; } @@ -163,19 +169,21 @@ .getDefaultAddressBook(customers.getCustomerId()); if (defaultAddressBook != null && addressBookId.equals(defaultAddressBook.getAddressBookId())) { - //TODO put message (can not delete a default value) + FacesMessageUtil + .addErrorMessage("could.not.delete.default.address.book.in.useraddressselect"); return UserAddressSelectPage.class; } AddressBook addressBook = getCustomerService().getAddressBook( addressBookId); if (addressBook == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.address.book.inuseraddressselect"); return UserAddressSelectPage.class; } getCustomerService().deleteAddressBook(addressBook); - //TODO put message + FacesMessageUtil.addInfoMessage("deleted.address.book"); return null; } @@ -186,7 +194,8 @@ .getOrderProcessId()); if (map == null) { // expires session - //TODO put message + FacesMessageUtil + .addErrorMessage("expire.order.process.in.useraddressselect"); return UserInfoEditPage.class; } // set address book Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/UserInfoEditAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/UserInfoEditAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/checkout/UserInfoEditAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -85,9 +85,6 @@ getCustomerDxo().convert(getUserInfoEditPage(), customer); getCustomerDxo().convert(getUserInfoEditPage(), addressBook); - getCustomerService().addCustomer(customer); - - addressBook.setCustomerId(customer.getCustomerId()); //TODO zone and check if it's null Zone zones = getCustomerService().getZone(new BigDecimal(130)); addressBook.setZoneId(zones.getZoneId()); @@ -99,9 +96,9 @@ // set default address addressBook.setDefaultAddress(PompeiConstants.TRUE_BIGDECIMAL); - getCustomerService().addAddressBook(addressBook); + getCustomerService().addCustomer(customer, addressBook); - //TODO put message + FacesMessageUtil.addInfoMessage("added.customer"); return UserInfoEditPage.class; } @@ -109,7 +106,8 @@ public Class<?> doNext() { // start order process if (getUserInfoEditPage().getCustomerId() == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.customer.id.in.userinfoedit"); return UserInfoEditAction.class; } getUserInfoEditPage().setOrderProcessId( Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductDetailsAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductDetailsAction.java 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductDetailsAction.java 2007-09-28 04:46:15 UTC (rev 590) @@ -72,14 +72,15 @@ Customer customers = getCustomerService().getCustomerByPortalId( remoteUser); if (customers == null) { - // TODO put message + FacesMessageUtil.addWarnMessage("need.to.register.as.customer"); return null; } Product products = productService.getProdcut(productDetailsPage .getProductId()); if (products == null) { - //TODO put message + FacesMessageUtil + .addErrorMessage("could.not.find.product.in.productdetail"); return null; } getCartService().cleanupCustomerBasket(customers.getCustomerId()); @@ -96,7 +97,7 @@ customersBasket.setProduct(products); customersBasket.setFinalPrice(calculateFinalPrice(customersBasket)); cartService.addCustomerBasket(customersBasket); - FacesMessageUtil.addInfoMessage("added.product.to.cart"); + FacesMessageUtil.addInfoMessage("added.new.product.to.cart"); } else { // add customersBasket.setQuantity(customersBasket.getQuantity().add( @@ -104,7 +105,7 @@ customersBasket.setDateAdded(new Timestamp(new Date().getTime())); customersBasket.setFinalPrice(calculateFinalPrice(customersBasket)); cartService.updateCustomerBasket(customersBasket); - // TODO put message + FacesMessageUtil.addInfoMessage("added.product.to.cart"); } return null; Modified: pompei/portlets/pompei-core/trunk/src/main/resources/appMessages.properties =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/resources/appMessages.properties 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/resources/appMessages.properties 2007-09-28 04:46:15 UTC (rev 590) @@ -1,5 +1,4 @@ -added.product.to.cart=Added the product to a cart. # UploadedFileUtil could.not.retrive.image.path=Could not retrive an image path. Please contact a site administrator. @@ -10,7 +9,116 @@ could.not.delete.target.item=Could not delete the target item. If you see this error again, please contact a site administrator. target.item.does.not.exist=The target item does not exist. -added.delivery.method=Added a delivery method. -updated.delivery.method=Updated a delivery method. +added.delivery.method=\u914d\u9054\u65b9\u6cd5\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002 +updated.delivery.method=\u914d\u9054\u65b9\u6cd5\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002 -unknown.action=Unknown action. \ No newline at end of file +unknown.action=Unknown action. + +# OrderServiceImpl.java +invaild.order.parameters=\u6307\u5b9a\u3055\u308c\u305f\u6ce8\u6587\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u30ab\u30fc\u30c8\u306e\u671f\u9650\u304c\u5207\u308c\u305f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +cart.is.empty=\u30ab\u30fc\u30c8\u304c\u7a7a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30ab\u30fc\u30c8\u306e\u671f\u9650\u304c\u5207\u308c\u305f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +card.info.is.null=\u5165\u529b\u3057\u3066\u3044\u305f\u3060\u3044\u305f\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.cart.info=\u30ab\u30fc\u30c8\u306e\u60c5\u5831\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u5546\u54c1\u3092\u30ab\u30fc\u30c8\u306b\u5165\u308c\u3066\u304b\u3089\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +invalid.cart.state=\u30ab\u30fc\u30c8\u306e\u72b6\u614b\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u5546\u54c1\u3092\u30ab\u30fc\u30c8\u306b\u5165\u308c\u3066\u304b\u3089\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +invalid.customer.info.in.cart=\u30ab\u30fc\u30c8\u306e\u4f1a\u54e1\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u5546\u54c1\u3092\u30ab\u30fc\u30c8\u306b\u5165\u308c\u3066\u304b\u3089\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +prodocut.is.shortage=\u5728\u5eab\u5207\u308c\u306b\u306a\u3063\u305f\u5546\u54c1\u304c\u3042\u308a\u307e\u3059\u3002\u30ab\u30fc\u30c8\u5185\u306e\u5546\u54c1\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002 + +# CustomerConfirmAction.java +unexpected.mode.in.customerconfirm=\u6307\u5b9a\u3055\u308c\u305f\u4f1a\u54e1\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +customer.is.not.specified.in.customerconfirm=\u4f1a\u54e1\u60c5\u5831\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +could.not.find.customer.info.in.customerconfirm=\u4f1a\u54e1\u60c5\u5831(ID:{0})\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +updated.customer.in.customerconfirm=\u4f1a\u54e1\u60c5\u5831\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002 +customer.is.not.specified.in.customerconfirm.for.delete=\u4f1a\u54e1\u60c5\u5831\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +deleted.customer.in.customerconfirm=\u4f1a\u54e1\u60c5\u5831\u3092\u524a\u9664\u3057\u307e\u3057\u305f\u3002 +unexpected.action.in.customerconfirm=\u6307\u5b9a\u3055\u308c\u305f\u4f1a\u54e1\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 + +# CustomerEditAction.java +invalid.parameter.in.customeredit=\u4f1a\u54e1\u60c5\u5831\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 + +# OrderConfirmAction.java +unexpected.mode.in.orderconfirm=\u6307\u5b9a\u3055\u308c\u305f\u6ce8\u6587\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +could.not.find.order.in.orderconfirm=\u6ce8\u6587\u60c5\u5831(ID:{0})\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +updated.order.info.in.orderconfirm=\u6ce8\u6587\u60c5\u5831\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002 +could.not.find.order.in.orderconfirm.for.delete=\u6ce8\u6587\u60c5\u5831(ID:{0})\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +deleted.order.info.in.orderconfirm=\u6ce8\u6587\u60c5\u5831\u3092\u524a\u9664\u3057\u307e\u3057\u305f\u3002 +unexpected.action.in.orderconfirm=\u6307\u5b9a\u3055\u308c\u305f\u6ce8\u6587\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 + +# OrderEditAction.java +invalid.mode.in.orderedit=\u6307\u5b9a\u3055\u308c\u305f\u6ce8\u6587\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 + +# CategoryEditAction.java +updated.category.in.categoryedit=\u30ab\u30c6\u30b4\u30ea\u60c5\u5831\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002 +added.category.in.categoryedit=\u30ab\u30c6\u30b4\u30ea\u60c5\u5831\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002 + +# CategoryListAction.java +has.child.categories=\u524a\u9664\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u30ab\u30c6\u30b4\u30ea\u5185\u306b\u30b5\u30d6\u30ab\u30c6\u30b4\u30ea\u304c\u6b8b\u3063\u3066\u3044\u307e\u3059\u3002\u30b5\u30d6\u30ab\u30c6\u30b4\u30ea\u3092\u524a\u9664\u3057\u3066\u304b\u3089\u3001\u518d\u5ea6\u3001\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +deleted.category=\u30ab\u30c6\u30b4\u30ea\u3092\u524a\u9664\u3057\u307e\u3057\u305f\u3002 + +# ManufacturerEditAction.java +updated.manufacturer=\u30e1\u30fc\u30ab\u30fc\u60c5\u5831\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002 +added.manufacturer=\u30e1\u30fc\u30ab\u30fc\u60c5\u5831\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002 + +# ManufacturerListAction.java +deleted.manufacturer=\u30e1\u30fc\u30ab\u30fc\u60c5\u5831\u3092\u524a\u9664\u3057\u307e\u3057\u305f\u3002 + +# ProductEditAction.java +added.product=\u5546\u54c1\u60c5\u5831\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002 +updated.product=\u5546\u54c1\u60c5\u5831\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002 +unexpected.action.in.productedit=\u6307\u5b9a\u3055\u308c\u305f\u5546\u54c1\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 + +# ProductListAction.java +deleted.product=\u5546\u54c1\u60c5\u5831\u3092\u524a\u9664\u3057\u307e\u3057\u305f\u3002 + +# ProductListAction.java for cart +deleted.product.from.cart=\u30ab\u30fc\u30c8\u304b\u3089\u5546\u54c1\u60c5\u5831\u3092\u524a\u9664\u3057\u307e\u3057\u305f\u3002 + +# CheckoutConfirmAction.java +expire.order.process.in.checkoutconfirm=\u6ce8\u6587\u30d7\u30ed\u30bb\u30b9\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u307e\u3057\u305f\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +cart.is.empty.in.checkoutconfirm=\u30ab\u30fc\u30c8\u304c\u7a7a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30ab\u30fc\u30c8\u306e\u671f\u9650\u304c\u5207\u308c\u305f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.delivery.addressbook.id.in.checkoutconfirm=\u6b63\u3057\u3044\u914d\u9054\u65b9\u6cd5\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +invalid.delivery.addressbook.in.checkoutconfirm=\u6307\u5b9a\u3055\u308c\u305f\u914d\u9054\u65b9\u6cd5\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.delivery.addressbook.in.checkoutconfirm=\u6b63\u3057\u3044\u914d\u9054\u65b9\u6cd5\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.tax.rate.incheckoutconfirm=\u7a0e\u91d1\u60c5\u5831\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.payment.method.id.in.checkoutconfirm=\u6307\u5b9a\u3055\u308c\u305f\u652f\u6255\u3044\u65b9\u6cd5\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.payment.method.in.checkoutconfirm=\u6307\u5b9a\u3055\u308c\u305f\u652f\u6255\u3044\u65b9\u6cd5\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.delivery.method.id.in.checkoutconfirm=\u6307\u5b9a\u3055\u308c\u305f\u914d\u9054\u65b9\u6cd5\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.delivery.method.in.checkoutconfirm=\u6307\u5b9a\u3055\u308c\u305f\u914d\u9054\u65b9\u6cd5\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.calculate.tax.1=\u6d88\u8cbb\u7a0e\u3092\u6d88\u8cbb\u7a0e\u3092\u8a08\u7b97\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +could.not.calculate.tax.2=\u6d88\u8cbb\u7a0e\u3092\u6d88\u8cbb\u7a0e\u3092\u8a08\u7b97\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +could.not.calculate.tax.3=\u6d88\u8cbb\u7a0e\u3092\u6d88\u8cbb\u7a0e\u3092\u8a08\u7b97\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +expire.order.process.in.checkoutconfirm.for.confirm=\u6ce8\u6587\u30d7\u30ed\u30bb\u30b9\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u307e\u3057\u305f\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.cart.info.in.checkoutconfirm=\u30ab\u30fc\u30c8\u5185\u306e\u5546\u54c1\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u30ab\u30fc\u30c8\u306e\u671f\u9650\u304c\u5207\u308c\u305f\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +could.not.store.order=\u6ce8\u6587\u78ba\u5b9a\u51e6\u7406\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +canceled.order=\u6ce8\u6587\u51e6\u7406\u3092\u53d6\u308a\u6d88\u3057\u307e\u3057\u305f\u3002 + +# PaymentSelectAction.java +expire.order.process.in.paymentselect=\u6ce8\u6587\u30d7\u30ed\u30bb\u30b9\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u307e\u3057\u305f\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.payment.method.id.in.paymentselect=\u6307\u5b9a\u3055\u308c\u305f\u652f\u6255\u3044\u65b9\u6cd5\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +could.not.find.payment.method.in.paymentselect=\u6307\u5b9a\u3055\u308c\u305f\u652f\u6255\u3044\u65b9\u6cd5\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5165\u529b\u3057\u305f\u5024\u3092\u78ba\u8a8d\u3057\u3066\u3001\u518d\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.card.owner.in.paymentselect=\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u6240\u6709\u8005\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u5165\u529b\u3057\u305f\u5024\u3092\u78ba\u8a8d\u3057\u3066\u3001\u518d\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.card.number.in.paymentselect=\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u756a\u53f7\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5165\u529b\u3057\u305f\u5024\u3092\u78ba\u8a8d\u3057\u3066\u3001\u518d\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.card.type.in.paymentselect=\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u7a2e\u985e\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5165\u529b\u3057\u305f\u5024\u3092\u78ba\u8a8d\u3057\u3066\u3001\u518d\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.card.expire.in.paymentselect=\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u6709\u52b9\u671f\u9650\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5165\u529b\u3057\u305f\u5024\u3092\u78ba\u8a8d\u3057\u3066\u3001\u518d\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.delivery.method.id.in.paymentselect=\u6307\u5b9a\u3055\u308c\u305f\u914d\u9054\u65b9\u6cd5\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 + +# UserAddressSelectAction.java +added.addressbook=\u4f4f\u6240\u60c5\u5831\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002 +could.not.find.address.book.id.inuseraddressselect=\u6307\u5b9a\u3055\u308c\u305f\u4f4f\u6240\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5165\u529b\u3057\u305f\u5024\u3092\u78ba\u8a8d\u3057\u3066\u3001\u518d\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +invalid.address.book.id.inuseraddressselect=\u6307\u5b9a\u3055\u308c\u305f\u4f4f\u6240\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5165\u529b\u3057\u305f\u5024\u3092\u78ba\u8a8d\u3057\u3066\u3001\u518d\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.delete.default.address.book.in.useraddressselect=\u4f1a\u54e1\u60c5\u5831\u3068\u3057\u3066\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u4f4f\u6240\u60c5\u5831\u306f\u524a\u9664\u3067\u304d\u307e\u305b\u3093\u3002 +could.not.find.address.book.inuseraddressselect=\u6307\u5b9a\u3055\u308c\u305f\u4f4f\u6240\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5165\u529b\u3057\u305f\u5024\u3092\u78ba\u8a8d\u3057\u3066\u3001\u518d\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +deleted.address.book=\u4f4f\u6240\u60c5\u5831\u3092\u524a\u9664\u3057\u307e\u3057\u305f\u3002 +expire.order.process.in.useraddressselect=\u6ce8\u6587\u30d7\u30ed\u30bb\u30b9\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u307e\u3057\u305f\u3002\u518d\u5ea6\u3001\u6ce8\u6587\u3057\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002 +could.not.find.default.address.book=\u4f4f\u6240\u60c5\u5831\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\u5c11\u306a\u304f\u3066\u3082 1 \u3064\u306e\u4f4f\u6240\u60c5\u5831\u306e\u767b\u9332\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002 + +# UserInfoEditAction.java +added.customer=\u4f1a\u54e1\u60c5\u5831\u3092\u767b\u9332\u3057\u307e\u3057\u305f\u3002 +could.not.find.customer.id.in.userinfoedit=\u6307\u5b9a\u3055\u308c\u305f\u4f1a\u54e1\u60c5\u5831\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002\u5165\u529b\u3057\u305f\u5024\u3092\u78ba\u8a8d\u3057\u3066\u3001\u518d\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002 + +# ProductDetailsAction.java +could.not.find.product.in.productdetail=\u5bfe\u8c61\u306e\u5546\u54c1\u60c5\u5831\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\u518d\u5ea6\u3001\u8a66\u3057\u3066\u3082\u3001\u3053\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u306b\u306f\u7ba1\u7406\u8005\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 +added.new.product.to.cart=\u5546\u54c1\u3092\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002 +added.product.to.cart=\u5546\u54c1\u3092\u30ab\u30fc\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002 +need.to.register.as.customer=\u30ab\u30fc\u30c8\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u4f1a\u54e1\u767b\u9332\u304c\u5fc5\u8981\u3067\u3059\u3002\u4f1a\u54e1\u767b\u9332\u5f8c\u3001\u518d\u5ea6\u3001\u30ab\u30fc\u30c8\u306b\u5546\u54c1\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002 + + Modified: pompei/portlets/pompei-core/trunk/src/main/resources/creator.dicon =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/resources/creator.dicon 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/resources/creator.dicon 2007-09-28 04:46:15 UTC (rev 590) @@ -15,4 +15,5 @@ <component class="org.seasar.framework.container.creator.InterceptorCreator"/> <component class="org.seasar.framework.container.creator.ValidatorCreator"/> <component class="org.seasar.framework.container.creator.ConverterCreator"/> -</components> \ No newline at end of file + <component class="jp.sf.pal.common.creator.PagerCreator"/> +</components> Modified: pompei/portlets/pompei-core/trunk/src/main/resources/customizer.dicon =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/resources/customizer.dicon 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/resources/customizer.dicon 2007-09-28 04:46:15 UTC (rev 590) @@ -68,4 +68,6 @@ <arg>traceCustomizer</arg> </initMethod> </component> + <component name="pagerCustomizer" class="org.seasar.framework.container.customizer.CustomizerChain"> + </component> </components> Modified: pompei/portlets/pompei-core/trunk/src/main/resources/dbflute.dicon =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/resources/dbflute.dicon 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/resources/dbflute.dicon 2007-09-28 04:46:15 UTC (rev 590) @@ -290,6 +290,18 @@ </component> + <!-- ORDER_NOTIFICATION --> + + <component name="orderNotificationDao" class="jp.sf.pal.pompei.exdao.OrderNotificationDao"> + <aspect>dbflute.interceptor</aspect> + </component> + + <component name="orderNotificationBhv" class="jp.sf.pal.pompei.exbhv.OrderNotificationBhv"> + <aspect pointcut=".*NewTx">requiresNewTx</aspect> + <aspect pointcut=".*Tx">requiredTx</aspect> + + </component> + <!-- ORDER_PRODUCT --> <component name="orderProductDao" class="jp.sf.pal.pompei.exdao.OrderProductDao"> @@ -434,6 +446,18 @@ </component> + <!-- PRODUCT_IMAGE --> + + <component name="productImageDao" class="jp.sf.pal.pompei.exdao.ProductImageDao"> + <aspect>dbflute.interceptor</aspect> + </component> + + <component name="productImageBhv" class="jp.sf.pal.pompei.exbhv.ProductImageBhv"> + <aspect pointcut=".*NewTx">requiresNewTx</aspect> + <aspect pointcut=".*Tx">requiredTx</aspect> + + </component> + <!-- PRODUCT_NOTIFICATION --> <component name="productNotificationDao" class="jp.sf.pal.pompei.exdao.ProductNotificationDao"> Modified: pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/create_table.sql =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/create_table.sql 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/create_table.sql 2007-09-28 04:46:15 UTC (rev 590) @@ -53,7 +53,6 @@ CREATE TABLE ORDER_STATUS ( ORDER_STATUS_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 100, INCREMENT BY 1) - , NOTIFICATION_TEMPLATE VARCHAR(32) , SORT_ORDER INTEGER NOT NULL , DATE_ADDED TIMESTAMP NOT NULL , LAST_MODIFIED TIMESTAMP NOT NULL @@ -188,13 +187,15 @@ CREATE TABLE PRODUCT ( PRODUCT_ID BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 100, INCREMENT BY 1) + , CODE VARCHAR(64) , MODEL VARCHAR(64) , QUANTITY INTEGER , PRICE DECIMAL(15, 4) NOT NULL , WEIGHT DECIMAL(5, 2) - , IMAGE VARCHAR(64) - , THUMBNAIL VARCHAR(64) + , SIZE VARCHAR(32) , ORDERED INTEGER NOT NULL DEFAULT 0 + , REVIEWED INTEGER + , RATING INTEGER , STATUS INTEGER NOT NULL , DATE_ADDED TIMESTAMP NOT NULL , LAST_MODIFIED TIMESTAMP NOT NULL @@ -350,6 +351,7 @@ PRODUCT_ID BIGINT NOT NULL , LANGUAGE_ID INTEGER NOT NULL DEFAULT 1 , NAME VARCHAR(64) NOT NULL DEFAULT '' + , TITLE VARCHAR(255) , DESCRIPTION LONG VARCHAR , URL VARCHAR(255) , VIEWED INTEGER DEFAULT 0 @@ -466,6 +468,23 @@ , PRIMARY KEY (CARD_TYPE_ID, LANGUAGE_ID) ); +CREATE TABLE ORDER_NOTIFICATION ( + ORDER_NOTIFICATION_ID INTEGER NOT NULL + , ORDER_STATUS_ID INTEGER NOT NULL + , EMAIL_ADDRESS VARCHAR(128) + , TEMPLATE_NAME VARCHAR(32) NOT NULL + , STATUS INTEGER NOT NULL + , PRIMARY KEY (ORDER_NOTIFICATION_ID) +); + +CREATE TABLE PRODUCT_IMAGE ( + PRODUCT_IMAGE_ID BIGINT NOT NULL + , PRODUCT_ID BIGINT NOT NULL + , IMAGE_NAME VARCHAR(32) NOT NULL + , TYPE INTEGER NOT NULL + , PRIMARY KEY (PRODUCT_IMAGE_ID) +); + CREATE TABLE ADDRESS_BOOK ( ADDRESS_BOOK_ID BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 100, INCREMENT BY 1) , CUSTOMER_ID BIGINT NOT NULL @@ -808,6 +827,16 @@ FOREIGN KEY (LANGUAGE_ID) REFERENCES LANGUAGE (LANGUAGE_ID); +ALTER TABLE ORDER_NOTIFICATION + ADD CONSTRAINT FK_ORDER_NOTIFICATION_1 + FOREIGN KEY (ORDER_STATUS_ID) + REFERENCES ORDER_STATUS (ORDER_STATUS_ID); + +ALTER TABLE PRODUCT_IMAGE + ADD CONSTRAINT FK_PRODUCT_IMAGE_1 + FOREIGN KEY (PRODUCT_ID) + REFERENCES PRODUCT (PRODUCT_ID); + ALTER TABLE ADDRESS_BOOK ADD CONSTRAINT FK_ADDRESS_BOOK_2 FOREIGN KEY (ZONE_ID) Modified: pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/insert_data.sql =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/insert_data.sql 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/insert_data.sql 2007-09-28 04:46:15 UTC (rev 590) @@ -6,15 +6,19 @@ INSERT INTO CURRENCY_DESCRIPTION VALUES (1,1,'Japanese Yen',''); -INSERT INTO ORDER_STATUS VALUES ( 1,null,1,'2007-01-01 00:00:00','2007-01-01 00:00:00'); -INSERT INTO ORDER_STATUS VALUES ( 2,null,2,'2007-01-01 00:00:00','2007-01-01 00:00:00'); -INSERT INTO ORDER_STATUS VALUES ( 3,null,3,'2007-01-01 00:00:00','2007-01-01 00:00:00'); -INSERT INTO ORDER_STATUS VALUES ( 4,null,4,'2007-01-01 00:00:00','2007-01-01 00:00:00'); +INSERT INTO ORDER_STATUS VALUES ( 1,1,'2007-01-01 00:00:00','2007-01-01 00:00:00'); +INSERT INTO ORDER_STATUS VALUES ( 2,2,'2007-01-01 00:00:00','2007-01-01 00:00:00'); +INSERT INTO ORDER_STATUS VALUES ( 3,3,'2007-01-01 00:00:00','2007-01-01 00:00:00'); +INSERT INTO ORDER_STATUS VALUES ( 4,4,'2007-01-01 00:00:00','2007-01-01 00:00:00'); +INSERT INTO ORDER_STATUS VALUES ( 5,5,'2007-01-01 00:00:00','2007-01-01 00:00:00'); +INSERT INTO ORDER_STATUS VALUES ( 6,6,'2007-01-01 00:00:00','2007-01-01 00:00:00'); -INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 1, 1, '注文処理待ち',''); -INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 2, 1, '入金確認中',''); -INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 3, 1, '注文処理中',''); -INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 4, 1, '配送完了',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 1, 1, '新規注文',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 2, 1, '入金処理',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 3, 1, 'クレジット処理',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 4, 1, '出荷処理',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 5, 1, '出荷完了',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 6, 1, '保留',''); INSERT INTO ZONE VALUES (130,107,'JP','Japan'); Modified: pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/insert_sample_data.sql =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/insert_sample_data.sql 2007-09-28 04:43:22 UTC (rev 589) +++ pompei/portlets/pompei-core/trunk/src/main/webapp/WEB-INF/db/insert_sample_data.sql 2007-09-28 04:46:15 UTC (rev 590) @@ -243,10 +243,12 @@ INSERT INTO CURRENCY_DESCRIPTION VALUES (2,2,'US Dollar',''); -INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 1, 2, 'Process Waiting',''); -INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 2, 2, 'Checking Received Money',''); -INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 3, 2, 'Processing',''); -INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 4, 2, 'Delivered',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 1, 2, 'New Order',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 2, 2, 'Received Money Processing',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 3, 2, 'Credit Card Processing',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 4, 2, 'Delivering',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 5, 2, 'Delivered',''); +INSERT INTO ORDER_STATUS_DESCRIPTION VALUES ( 6, 2, 'Pending',''); -- USA INSERT INTO ZONE VALUES (1,223,'AL','Alabama'); @@ -355,13 +357,13 @@ INSERT INTO MANUFACTURER_DESCRIPTION VALUES (2,1,'http://www.microsoft.com/','ソフトウェア会社',NULL); INSERT INTO MANUFACTURER_DESCRIPTION VALUES (3,1,'http://www.warner.com',NULL,NULL); -INSERT INTO PRODUCT VALUES (1,'MG200MMS',100,1000.0000,100.00,NULL,NULL,0,1,'2007-09-20 12:31:53','2007-09-20 12:31:53',NULL,1,1); -INSERT INTO PRODUCT VALUES (2,'MG400-32MB',100,2000.0000,200.00,NULL,NULL,0,1,'2007-09-20 12:32:34','2007-09-20 12:32:34',NULL,1,1); -INSERT INTO PRODUCT VALUES (3,'WINDOWS-XP',100,10000.0000,100.00,NULL,NULL,0,1,'2007-09-20 12:33:59','2007-09-20 12:33:59',NULL,1,2); +INSERT INTO PRODUCT VALUES (1,'12345','MG200MMS',100,1000.0000,100.00,NULL,0,0,0,1,'2007-09-20 12:31:53','2007-09-20 12:31:53',NULL,1,1); +INSERT INTO PRODUCT VALUES (2,'123456','MG400-32MB',100,2000.0000,200.00,NULL,0,0,0,1,'2007-09-20 12:32:34','2007-09-20 12:32:34',NULL,1,1); +INSERT INTO PRODUCT VALUES (3,'123457','WINDOWS-XP',100,10000.0000,100.00,NULL,0,0,0,1,'2007-09-20 12:33:59','2007-09-20 12:33:59',NULL,1,2); -INSERT INTO PRODUCT_DESCRIPTION VALUES (1,1,'Matrox G200 MMS',NULL,NULL,0); -INSERT INTO PRODUCT_DESCRIPTION VALUES (2,1,'Matrox G400 32MB',NULL,NULL,0); -INSERT INTO PRODUCT_DESCRIPTION VALUES (3,1,'Windows XP',NULL,NULL,0); +INSERT INTO PRODUCT_DESCRIPTION VALUES (1,1,'Matrox G200 MMS',NULL,NULL,NULL,0); +INSERT INTO PRODUCT_DESCRIPTION VALUES (2,1,'Matrox G400 32MB',NULL,NULL,NULL,0); +INSERT INTO PRODUCT_DESCRIPTION VALUES (3,1,'Windows XP',NULL,NULL,NULL,0); INSERT INTO PRODUCT_TO_CATEGORY VALUES (1,2,NULL); INSERT INTO PRODUCT_TO_CATEGORY VALUES (2,2,NULL);