svnno****@sourc*****
svnno****@sourc*****
2007年 9月 20日 (木) 09:35:10 JST
Revision: 570 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=570 Author: shinsuke Date: 2007-09-20 09:35:06 +0900 (Thu, 20 Sep 2007) Log Message: ----------- sync up with db. the compile is passed, but it does not work yet.. Modified Paths: -------------- pompei/portlets/pompei-core/trunk/dbflute/build-pompei.properties pompei/portlets/pompei-core/trunk/dbflute/schema/project-schema-pompei.xml Added Paths: ----------- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsAddressBookBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodDescriptionBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsTaxClassBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsAddressBookDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDescriptionDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsTaxClassDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsAddressBook.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsDeliveryMethod.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsDeliveryMethodDescription.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsTaxClass.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/AddressBookDbm.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/DeliveryMethodDbm.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/DeliveryMethodDescriptionDbm.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/TaxClassDbm.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/AddressBookCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodDescriptionCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/TaxClassCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsAddressBookCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodDescriptionCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsTaxClassCB.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/AddressBookCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodDescriptionCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/TaxClassCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsAddressBookCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsDeliveryMethodCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsDeliveryMethodDescriptionCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsTaxClassCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsAddressBookCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodDescriptionCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsTaxClassCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/AddressBookCIQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodCIQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodDescriptionCIQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/TaxClassCIQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/AddressBookNss.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/DeliveryMethodDescriptionNss.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/DeliveryMethodNss.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/TaxClassNss.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/AddressBookBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodDescriptionBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/TaxClassBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/AddressBookDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDescriptionDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/TaxClassDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/AddressBook.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethod.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethodDescription.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/TaxClass.java -------------- next part -------------- Modified: pompei/portlets/pompei-core/trunk/dbflute/build-pompei.properties =================================================================== --- pompei/portlets/pompei-core/trunk/dbflute/build-pompei.properties 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/dbflute/build-pompei.properties 2007-09-20 00:35:06 UTC (rev 570) @@ -155,69 +155,76 @@ #torque.sequenceReturnType = java.lang.Integer # [Additional ForeignKey] torque.additionalForeignKeyMap = map:{ \ - SQL070831021756810 = map:{ localTableName = ORDERS; localColumnName = CUSTOMERS_ID; foreignTableName = CUSTOMERS; foreignColumnName = CUSTOMERS_ID } \ - ;SQL070831021756860 = map:{ localTableName = ORDERS; localColumnName = ORDERS_STATUS_ID; foreignTableName = ORDERS_STATUS; foreignColumnName = ORDERS_STATUS_ID } \ - ;FK_ORDERS_3 = map:{ localTableName = ORDERS; localColumnName = BILLING_ADDRESS_FORMAT_ID; foreignTableName = ADDRESS_FORMAT; foreignColumnName = ADDRESS_FORMAT_ID } \ - ;FK_ORDERS_4 = map:{ localTableName = ORDERS; localColumnName = DELIVERY_ADDRESS_FORMAT_ID; foreignTableName = ADDRESS_FORMAT; foreignColumnName = ADDRESS_FORMAT_ID } \ - ;FK_ORDERS_5 = map:{ localTableName = ORDERS; localColumnName = CUSTOMERS_ADDRESS_FORMAT_ID; foreignTableName = ADDRESS_FORMAT; foreignColumnName = ADDRESS_FORMAT_ID } \ - ;SQL070831021755391 = map:{ localTableName = PRODUCTS; localColumnName = MANUFACTURERS_ID; foreignTableName = MANUFACTURERS; foreignColumnName = MANUFACTURERS_ID } \ - ;FK_PRODUCTS_2 = map:{ localTableName = PRODUCTS; localColumnName = PRODUCTS_TAX_CLASS_ID; foreignTableName = TAX_CLASS; foreignColumnName = TAX_CLASS_ID } \ - ;FK_CATEGORIES_1 = map:{ localTableName = CATEGORIES; localColumnName = PARENT_ID; foreignTableName = CATEGORIES; foreignColumnName = CATEGORIES_ID } \ - ;FK_REVIEWS_1 = map:{ localTableName = REVIEWS; localColumnName = PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;FK_ZONES_1 = map:{ localTableName = ZONES; localColumnName = ZONE_COUNTRY_ID; foreignTableName = COUNTRIES; foreignColumnName = COUNTRIES_ID } \ - ;SQL070831021756760 = map:{ localTableName = PRODUCTS_ATTRIBUTES; localColumnName = PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;FK_PRODUCTS_ATTRIBUTES_2 = map:{ localTableName = PRODUCTS_ATTRIBUTES; localColumnName = OPTIONS_ID; foreignTableName = PRODUCTS_OPTIONS; foreignColumnName = PRODUCTS_OPTIONS_ID } \ - ;FK_PRODUCTS_ATTRIBUTES_3 = map:{ localTableName = PRODUCTS_ATTRIBUTES; localColumnName = OPTIONS_VALUES_ID; foreignTableName = PRODUCTS_OPTIONS_VALUES; foreignColumnName = PRODUCTS_OPTIONS_VALUES_ID } \ - ;FK_BANNERS_HISTORY_1 = map:{ localTableName = BANNERS_HISTORY; localColumnName = BANNERS_ID; foreignTableName = BANNERS; foreignColumnName = BANNERS_ID } \ - ;SQL070831021756620 = map:{ localTableName = CATEGORIES_DESCRIPTION; localColumnName = CATEGORIES_ID; foreignTableName = CATEGORIES; foreignColumnName = CATEGORIES_ID } \ - ;FK_CATEGORIES_DESCRIPTION_2 = map:{ localTableName = CATEGORIES_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGES; foreignColumnName = LANGUAGES_ID } \ - ;FK_CONFIGURATION_1 = map:{ localTableName = CONFIGURATION; localColumnName = CONFIGURATION_GROUP_ID; foreignTableName = CONFIGURATION_GROUP; foreignColumnName = CONFIGURATION_GROUP_ID } \ - ;FK_CUSTOMERS_BASKET_1 = map:{ localTableName = CUSTOMERS_BASKET; localColumnName = CUSTOMERS_ID; foreignTableName = CUSTOMERS; foreignColumnName = CUSTOMERS_ID } \ - ;FK_CUSTOMERS_BASKET_2 = map:{ localTableName = CUSTOMERS_BASKET; localColumnName = PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;FK_CUSTOMERS_BASKET_ATTRIBUTES_1 = map:{ localTableName = CUSTOMERS_BASKET_ATTRIBUTES; localColumnName = CUSTOMERS_ID; foreignTableName = CUSTOMERS; foreignColumnName = CUSTOMERS_ID } \ - ;FK_CUSTOMERS_BASKET_ATTRIBUTES_2 = map:{ localTableName = CUSTOMERS_BASKET_ATTRIBUTES; localColumnName = PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;FK_CUSTOMERS_BASKET_ATTRIBUTES_4 = map:{ localTableName = CUSTOMERS_BASKET_ATTRIBUTES; localColumnName = PRODUCTS_OPTIONS_VALUE_ID; foreignTableName = PRODUCTS_OPTIONS_VALUES; foreignColumnName = PRODUCTS_OPTIONS_VALUES_ID } \ - ;FK_CUSTOMERS_BASKET_ATTRIBUTES_5 = map:{ localTableName = CUSTOMERS_BASKET_ATTRIBUTES; localColumnName = PRODUCTS_OPTIONS_ID; foreignTableName = PRODUCTS_OPTIONS; foreignColumnName = PRODUCTS_OPTIONS_ID } \ - ;FK_CUSTOMERS_INFO_1 = map:{ localTableName = CUSTOMERS_INFO; localColumnName = CUSTOMERS_INFO_ID; foreignTableName = CUSTOMERS; foreignColumnName = CUSTOMERS_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 } \ + ;FK_ORDERS_6 = map:{ localTableName = ORDER_FORM; localColumnName = CURRENCY_ID; foreignTableName = CURRENCY; foreignColumnName = CURRENCY_ID } \ + ;FK_ORDER_6 = map:{ localTableName = ORDER_FORM; localColumnName = ORDER_CARD_INFO_ID; foreignTableName = ORDER_CARD_INFO; foreignColumnName = ORDER_CARD_INFO_ID } \ + ;SQL070831021755391 = map:{ localTableName = PRODUCT; localColumnName = MANUFACTURER_ID; foreignTableName = MANUFACTURER; foreignColumnName = MANUFACTURER_ID } \ + ;FK_PRODUCTS_2 = map:{ localTableName = PRODUCT; localColumnName = TAX_CLASS_ID; foreignTableName = TAX_CLASS; foreignColumnName = TAX_CLASS_ID } \ + ;FK_CATEGORIES_1 = map:{ localTableName = CATEGORY; localColumnName = PARENT_ID; foreignTableName = CATEGORY; foreignColumnName = CATEGORY_ID } \ + ;FK_REVIEWS_1 = map:{ localTableName = REVIEW; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;FK_REVIEWS_2 = map:{ localTableName = REVIEW; localColumnName = CUSTOMER_ID; foreignTableName = CUSTOMER; foreignColumnName = CUSTOMER_ID } \ + ;FK_ZONES_1 = map:{ localTableName = ZONE; localColumnName = COUNTRY_ID; foreignTableName = COUNTRY; foreignColumnName = COUNTRY_ID } \ + ;FK_ORDER_CARD_INFO_1 = map:{ localTableName = ORDER_CARD_INFO; localColumnName = CARD_TYPE_ID; foreignTableName = CARD_TYPE; foreignColumnName = CARD_TYPE_ID } \ + ;SQL070831021756760 = map:{ localTableName = PRODUCT_ATTRIBUTE; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;FK_PRODUCTS_ATTRIBUTES_2 = map:{ localTableName = PRODUCT_ATTRIBUTE; localColumnName = PRODUCT_OPTION_ID; foreignTableName = PRODUCT_OPTION; foreignColumnName = PRODUCT_OPTION_ID } \ + ;FK_PRODUCTS_ATTRIBUTES_3 = map:{ localTableName = PRODUCT_ATTRIBUTE; localColumnName = PRODUCT_OPTION_VALUE_ID; foreignTableName = PRODUCT_OPTION_VALUE; foreignColumnName = PRODUCT_OPTION_VALUE_ID } \ + ;SQL070831021756620 = map:{ localTableName = CATEGORY_DESCRIPTION; localColumnName = CATEGORY_ID; foreignTableName = CATEGORY; foreignColumnName = CATEGORY_ID } \ + ;FK_CATEGORIES_DESCRIPTION_2 = map:{ localTableName = CATEGORY_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ + ;FK_CUSTOMERS_BASKET_1 = map:{ localTableName = CUSTOMER_BASKET; localColumnName = CUSTOMER_ID; foreignTableName = CUSTOMER; foreignColumnName = CUSTOMER_ID } \ + ;FK_CUSTOMERS_BASKET_2 = map:{ localTableName = CUSTOMER_BASKET; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;FK_CUSTOMERS_BASKET_ATTRIBUTES_1 = map:{ localTableName = CUSTOMER_BASKET_ATTRIBUTE; localColumnName = CUSTOMER_ID; foreignTableName = CUSTOMER; foreignColumnName = CUSTOMER_ID } \ + ;FK_CUSTOMERS_BASKET_ATTRIBUTES_2 = map:{ localTableName = CUSTOMER_BASKET_ATTRIBUTE; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;FK_CUSTOMERS_BASKET_ATTRIBUTES_4 = map:{ localTableName = CUSTOMER_BASKET_ATTRIBUTE; localColumnName = PRODUCTS_OPTION_VALUE_ID; foreignTableName = PRODUCT_OPTION_VALUE; foreignColumnName = PRODUCT_OPTION_VALUE_ID } \ + ;FK_CUSTOMERS_BASKET_ATTRIBUTES_5 = map:{ localTableName = CUSTOMER_BASKET_ATTRIBUTE; localColumnName = PRODUCTS_OPTION_ID; foreignTableName = PRODUCT_OPTION; foreignColumnName = PRODUCT_OPTION_ID } \ ;SQL070831021756940 = map:{ localTableName = DELIVERY_METHOD_DESCRIPTION; localColumnName = DELIVERY_METHOD_ID; foreignTableName = DELIVERY_METHOD; foreignColumnName = DELIVERY_METHOD_ID } \ - ;FK_DELIVERY_METHOD_DESCRIPTION_2 = map:{ localTableName = DELIVERY_METHOD_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGES; foreignColumnName = LANGUAGES_ID } \ - ;SQL070831021756730 = map:{ localTableName = MANUFACTURERS_INFO; localColumnName = MANUFACTURERS_ID; foreignTableName = MANUFACTURERS; foreignColumnName = MANUFACTURERS_ID } \ - ;FK_MANUFACTURERS_INFO_2 = map:{ localTableName = MANUFACTURERS_INFO; localColumnName = LANGUAGES_ID; foreignTableName = LANGUAGES; foreignColumnName = LANGUAGES_ID } \ - ;SQL070831021755891 = map:{ localTableName = ORDERS_PRODUCTS; localColumnName = ORDERS_ID; foreignTableName = ORDERS; foreignColumnName = ORDERS_ID } \ - ;SQL070831021755892 = map:{ localTableName = ORDERS_PRODUCTS; localColumnName = PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;FK_ORDERS_PRODUCTS_ATTRIBUTES_1 = map:{ localTableName = ORDERS_PRODUCTS_ATTRIBUTES; localColumnName = ORDERS_ID; foreignTableName = ORDERS; foreignColumnName = ORDERS_ID } \ - ;FK_ORDERS_PRODUCTS_ATTRIBUTES_2 = map:{ localTableName = ORDERS_PRODUCTS_ATTRIBUTES; localColumnName = ORDERS_PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;FK_ORDERS_PRODUCTS_DOWNLOAD_1 = map:{ localTableName = ORDERS_PRODUCTS_DOWNLOAD; localColumnName = ORDERS_ID; foreignTableName = ORDERS; foreignColumnName = ORDERS_ID } \ - ;FK_ORDERS_PRODUCTS_DOWNLOAD_2 = map:{ localTableName = ORDERS_PRODUCTS_DOWNLOAD; localColumnName = ORDERS_PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;SQL070831021756900 = map:{ localTableName = ORDERS_STATUS_HISTORY; localColumnName = ORDERS_STATUS_ID; foreignTableName = ORDERS_STATUS; foreignColumnName = ORDERS_STATUS_ID } \ - ;FK_ORDERS_STATUS_HISTORY_2 = map:{ localTableName = ORDERS_STATUS_HISTORY; localColumnName = ORDERS_ID; foreignTableName = ORDERS; foreignColumnName = ORDERS_ID } \ - ;FK_ORDERS_TOTAL_1 = map:{ localTableName = ORDERS_TOTAL; localColumnName = ORDERS_ID; foreignTableName = ORDERS; foreignColumnName = ORDERS_ID } \ - ;FK_PRODUCTS_ATTRIBUTES_DOWNLOAD_1 = map:{ localTableName = PRODUCTS_ATTRIBUTES_DOWNLOAD; localColumnName = PRODUCTS_ATTRIBUTES_ID; foreignTableName = PRODUCTS_ATTRIBUTES; foreignColumnName = PRODUCTS_ATTRIBUTES_ID } \ - ;SQL070831021755591 = map:{ localTableName = PRODUCTS_DESCRIPTION; localColumnName = PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;FK_PRODUCTS_DESCRIPTION_2 = map:{ localTableName = PRODUCTS_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGES; foreignColumnName = LANGUAGES_ID } \ - ;FK_PRODUCTS_NOTIFICATIONS_1 = map:{ localTableName = PRODUCTS_NOTIFICATIONS; localColumnName = PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;FK_PRODUCTS_NOTIFICATIONS_2 = map:{ localTableName = PRODUCTS_NOTIFICATIONS; localColumnName = CUSTOMERS_ID; foreignTableName = CUSTOMERS; foreignColumnName = CUSTOMERS_ID } \ - ;FK_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS_1 = map:{ localTableName = PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS; localColumnName = PRODUCTS_OPTIONS_ID; foreignTableName = PRODUCTS_OPTIONS; foreignColumnName = PRODUCTS_OPTIONS_ID } \ - ;FK_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS_2 = map:{ localTableName = PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS; localColumnName = PRODUCTS_OPTIONS_VALUES_ID; foreignTableName = PRODUCTS_OPTIONS_VALUES; foreignColumnName = PRODUCTS_OPTIONS_VALUES_ID } \ - ;SQL070831021755780 = map:{ localTableName = PRODUCTS_TO_CATEGORIES; localColumnName = PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;FK_PRODUCTS_TO_CATEGORIES_2 = map:{ localTableName = PRODUCTS_TO_CATEGORIES; localColumnName = CATEGORIES_ID; foreignTableName = CATEGORIES; foreignColumnName = CATEGORIES_ID } \ - ;FK_REVIEWS_DESCRIPTION_1 = map:{ localTableName = REVIEWS_DESCRIPTION; localColumnName = REVIEWS_ID; foreignTableName = REVIEWS; foreignColumnName = REVIEWS_ID } \ - ;FK_REVIEWS_DESCRIPTION_2 = map:{ localTableName = REVIEWS_DESCRIPTION; localColumnName = LANGUAGES_ID; foreignTableName = LANGUAGES; foreignColumnName = LANGUAGES_ID } \ - ;FK_SPECIALS_1 = map:{ localTableName = SPECIALS; localColumnName = PRODUCTS_ID; foreignTableName = PRODUCTS; foreignColumnName = PRODUCTS_ID } \ - ;FK_TAX_RATES_1 = map:{ localTableName = TAX_RATES; localColumnName = TAX_CLASS_ID; foreignTableName = TAX_CLASS; foreignColumnName = TAX_CLASS_ID } \ - ;FK_TAX_RATES_2 = map:{ localTableName = TAX_RATES; localColumnName = TAX_ZONE_ID; foreignTableName = ZONES; foreignColumnName = ZONE_ID } \ - ;FK_WHOS_ONLINE_1 = map:{ localTableName = WHOS_ONLINE; localColumnName = CUSTOMER_ID; foreignTableName = CUSTOMERS; foreignColumnName = CUSTOMERS_ID } \ - ;FK_ZONES_TO_GEO_ZONES_1 = map:{ localTableName = ZONES_TO_GEO_ZONES; localColumnName = ZONE_ID; foreignTableName = ZONES; foreignColumnName = ZONE_ID } \ - ;FK_ZONES_TO_GEO_ZONES_2 = map:{ localTableName = ZONES_TO_GEO_ZONES; localColumnName = GEO_ZONE_ID; foreignTableName = GEO_ZONES; foreignColumnName = GEO_ZONE_ID } \ - ;FK_ORDERS_STATUS_DESCRIPTION_1 = map:{ localTableName = ORDERS_STATUS_DESCRIPTION; localColumnName = ORDERS_STATUS_ID; foreignTableName = ORDERS_STATUS; foreignColumnName = ORDERS_STATUS_ID } \ - ;FK_ORDERS_STATUS_DESCRIPTION_2 = map:{ localTableName = ORDERS_STATUS_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGES; foreignColumnName = LANGUAGES_ID } \ - ;FK_PRODUCTS_OPTIONS_DESCRIPTION_1 = map:{ localTableName = PRODUCTS_OPTIONS_DESCRIPTION; localColumnName = PRODUCTS_OPTIONS_ID; foreignTableName = PRODUCTS_OPTIONS; foreignColumnName = PRODUCTS_OPTIONS_ID } \ - ;FK_PRODUCTS_OPTIONS_DESCRIPTION_2 = map:{ localTableName = PRODUCTS_OPTIONS_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGES; foreignColumnName = LANGUAGES_ID } \ - ;FK_PRODUCTS_OPTIONS_VALUES_DESCRIPTION_1 = map:{ localTableName = PRODUCTS_OPTIONS_VALUES_DESCRIPTION; localColumnName = PRODUCTS_OPTIONS_VALUES_ID; foreignTableName = PRODUCTS_OPTIONS_VALUES; foreignColumnName = PRODUCTS_OPTIONS_VALUES_ID } \ - ;FK_PRODUCTS_OPTIONS_VALUES_DESCRIPTION_2 = map:{ localTableName = PRODUCTS_OPTIONS_VALUES_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGES; foreignColumnName = LANGUAGES_ID } \ - ;FK_ADDRESS_BOOK_2 = map:{ localTableName = ADDRESS_BOOK; localColumnName = ENTRY_ZONE_ID; foreignTableName = ZONES; foreignColumnName = ZONE_ID } \ - ;FK_ADDRESS_BOOK_3 = map:{ localTableName = ADDRESS_BOOK; localColumnName = ENTRY_COUNTRY_ID; foreignTableName = COUNTRIES; foreignColumnName = COUNTRIES_ID } \ - ;FK_ADDRESS_BOOK_4 = map:{ localTableName = ADDRESS_BOOK; localColumnName = CUSTOMERS_ID; foreignTableName = CUSTOMERS; foreignColumnName = CUSTOMERS_ID } \ + ;FK_DELIVERY_METHOD_DESCRIPTION_2 = map:{ localTableName = DELIVERY_METHOD_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ + ;SQL070831021756730 = map:{ localTableName = MANUFACTURER_DESCRIPTION; localColumnName = MANUFACTURER_ID; foreignTableName = MANUFACTURER; foreignColumnName = MANUFACTURER_ID } \ + ;FK_MANUFACTURERS_INFO_2 = map:{ localTableName = MANUFACTURER_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ + ;SQL070831021755891 = map:{ localTableName = ORDER_PRODUCT; localColumnName = ORDER_FORM_ID; foreignTableName = ORDER_FORM; foreignColumnName = ORDER_FORM_ID } \ + ;SQL070831021755892 = map:{ localTableName = ORDER_PRODUCT; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;FK_ORDERS_PRODUCTS_ATTRIBUTES_1 = map:{ localTableName = ORDER_PRODUCT_ATTRIBUTE; localColumnName = ORDER_FORM_ID; foreignTableName = ORDER_FORM; foreignColumnName = ORDER_FORM_ID } \ + ;FK_ORDERS_PRODUCTS_ATTRIBUTES_2 = map:{ localTableName = ORDER_PRODUCT_ATTRIBUTE; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;FK_ORDERS_PRODUCTS_DOWNLOAD_1 = map:{ localTableName = ORDER_PRODUCT_DOWNLOAD; localColumnName = ORDER_FORM_ID; foreignTableName = ORDER_FORM; foreignColumnName = ORDER_FORM_ID } \ + ;FK_ORDERS_PRODUCTS_DOWNLOAD_2 = map:{ localTableName = ORDER_PRODUCT_DOWNLOAD; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;SQL070831021756900 = map:{ localTableName = ORDER_STATUS_HISTORY; localColumnName = ORDER_STATUS_ID; foreignTableName = ORDER_STATUS; foreignColumnName = ORDER_STATUS_ID } \ + ;FK_ORDERS_STATUS_HISTORY_2 = map:{ localTableName = ORDER_STATUS_HISTORY; localColumnName = ORDER_FORM_ID; foreignTableName = ORDER_FORM; foreignColumnName = ORDER_FORM_ID } \ + ;FK_ORDERS_TOTAL_1 = map:{ localTableName = ORDER_COMMENT; localColumnName = ORDER_FORM_ID; foreignTableName = ORDER_FORM; foreignColumnName = ORDER_FORM_ID } \ + ;FK_PRODUCTS_ATTRIBUTES_DOWNLOAD_1 = map:{ localTableName = PRODUCT_ATTRIBUTE_DOWNLOAD; localColumnName = PRODUCT_ATTRIBUTE_ID; foreignTableName = PRODUCT_ATTRIBUTE; foreignColumnName = PRODUCT_ATTRIBUTE_ID } \ + ;SQL070831021755591 = map:{ localTableName = PRODUCT_DESCRIPTION; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;FK_PRODUCTS_DESCRIPTION_2 = map:{ localTableName = PRODUCT_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ + ;FK_PRODUCTS_NOTIFICATIONS_1 = map:{ localTableName = PRODUCT_NOTIFICATION; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;FK_PRODUCTS_NOTIFICATIONS_2 = map:{ localTableName = PRODUCT_NOTIFICATION; localColumnName = CUSTOMER_ID; foreignTableName = CUSTOMER; foreignColumnName = CUSTOMER_ID } \ + ;FK_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS_1 = map:{ localTableName = PRODUCT_OPTION_VALUE_TO_PRODUCT_OPTION; localColumnName = PRODUCT_OPTION_ID; foreignTableName = PRODUCT_OPTION; foreignColumnName = PRODUCT_OPTION_ID } \ + ;FK_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS_2 = map:{ localTableName = PRODUCT_OPTION_VALUE_TO_PRODUCT_OPTION; localColumnName = PRODUCT_OPTION_VALUE_ID; foreignTableName = PRODUCT_OPTION_VALUE; foreignColumnName = PRODUCT_OPTION_VALUE_ID } \ + ;SQL070831021755780 = map:{ localTableName = PRODUCT_TO_CATEGORY; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;FK_PRODUCTS_TO_CATEGORIES_2 = map:{ localTableName = PRODUCT_TO_CATEGORY; localColumnName = CATEGORY_ID; foreignTableName = CATEGORY; foreignColumnName = CATEGORY_ID } \ + ;FK_REVIEWS_DESCRIPTION_1 = map:{ localTableName = REVIEW_DESCRIPTION; localColumnName = REVIEW_ID; foreignTableName = REVIEW; foreignColumnName = REVIEW_ID } \ + ;FK_REVIEWS_DESCRIPTION_2 = map:{ localTableName = REVIEW_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ + ;FK_SPECIALS_1 = map:{ localTableName = BARGAIN; localColumnName = PRODUCT_ID; foreignTableName = PRODUCT; foreignColumnName = PRODUCT_ID } \ + ;FK_TAX_RATES_1 = map:{ localTableName = TAX_RATE; localColumnName = TAX_CLASS_ID; foreignTableName = TAX_CLASS; foreignColumnName = TAX_CLASS_ID } \ + ;FK_TAX_RATES_2 = map:{ localTableName = TAX_RATE; localColumnName = ZONE_ID; foreignTableName = ZONE; foreignColumnName = ZONE_ID } \ + ;FK_ZONES_TO_GEO_ZONES_1 = map:{ localTableName = ZONE_TO_GEO_ZONE; localColumnName = ZONE_ID; foreignTableName = ZONE; foreignColumnName = ZONE_ID } \ + ;FK_ZONES_TO_GEO_ZONES_2 = map:{ localTableName = ZONE_TO_GEO_ZONE; localColumnName = GEO_ZONE_ID; foreignTableName = GEO_ZONE; foreignColumnName = GEO_ZONE_ID } \ + ;FK_ZONES_TO_GEO_ZONES_3 = map:{ localTableName = ZONE_TO_GEO_ZONE; localColumnName = COUNTRY_ID; foreignTableName = COUNTRY; foreignColumnName = COUNTRY_ID } \ + ;FK_ORDERS_STATUS_DESCRIPTION_1 = map:{ localTableName = ORDER_STATUS_DESCRIPTION; localColumnName = ORDER_STATUS_ID; foreignTableName = ORDER_STATUS; foreignColumnName = ORDER_STATUS_ID } \ + ;FK_ORDERS_STATUS_DESCRIPTION_2 = map:{ localTableName = ORDER_STATUS_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ + ;FK_PRODUCTS_OPTIONS_DESCRIPTION_1 = map:{ localTableName = PRODUCT_OPTION_DESCRIPTION; localColumnName = PRODUCT_OPTION_ID; foreignTableName = PRODUCT_OPTION; foreignColumnName = PRODUCT_OPTION_ID } \ + ;FK_PRODUCTS_OPTIONS_DESCRIPTION_2 = map:{ localTableName = PRODUCT_OPTION_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ + ;FK_PRODUCTS_OPTIONS_VALUES_DESCRIPTION_1 = map:{ localTableName = PRODUCT_OPTION_VALUE_DESCRIPTION; localColumnName = PRODUCT_OPTION_VALUE_ID; foreignTableName = PRODUCT_OPTION_VALUE; foreignColumnName = PRODUCT_OPTION_VALUE_ID } \ + ;FK_PRODUCTS_OPTIONS_VALUES_DESCRIPTION_2 = map:{ localTableName = PRODUCT_OPTION_VALUE_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ + ;FK_CURRENCIES_DESCRIPTION_1 = map:{ localTableName = CURRENCY_DESCRIPTION; localColumnName = CURRENCY_ID; foreignTableName = CURRENCY; foreignColumnName = CURRENCY_ID } \ + ;FK_CURRENCIES_DESCRIPTION_2 = map:{ localTableName = CURRENCY_DESCRIPTION; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ + ;FK_PAYMENT_METHODS_DESCRIPTION_1 = map:{ localTableName = PAYMENT_METHOD_DESCRIPTION; localColumnName = PAYMENT_METHOD_ID; foreignTableName = PAYMENT_METHOD; foreignColumnName = PAYMENT_METHOD_ID } \ + ;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_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 } \ + ;FK_ADDRESS_BOOKS_4 = map:{ localTableName = ADDRESS_BOOK; localColumnName = LANGUAGE_ID; foreignTableName = LANGUAGE; foreignColumnName = LANGUAGE_ID } \ } 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-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/dbflute/schema/project-schema-pompei.xml 2007-09-20 00:35:06 UTC (rev 570) @@ -3,119 +3,119 @@ <!-- Autogenerated by JDBCToXMLSchema! --> <database name="APP"> <table name="ADDRESS_BOOK" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" name="ADDRESS_BOOK_ID" - primaryKey="true" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMERS_ID" required="true" type="INTEGER"/> - <column dbType="CHAR" javaType="String" name="ENTRY_GENDER" - required="true" size="1" type="CHAR"/> - <column dbType="VARCHAR" javaType="String" name="ENTRY_COMPANY" - size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="ENTRY_DEPARTMENT" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="ENTRY_FIRSTNAME" required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="ENTRY_LASTNAME" + primaryKey="true" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="CUSTOMER_ID" required="true" type="BIGINT"/> + <column dbType="VARCHAR" javaType="String" name="COMPANY" + size="128" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="DEPARTMENT" + size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="FIRSTNAME" required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="ENTRY_STREET_ADDRESS" required="true" size="64" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="ENTRY_SUBURB" + <column dbType="VARCHAR" javaType="String" name="LASTNAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="STREET_ADDRESS" + required="true" size="255" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="SUBURB" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="ENTRY_POSTCODE" + <column dbType="VARCHAR" javaType="String" name="CITY" + required="true" size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="STATE" + size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="POSTCODE" required="true" size="10" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="ENTRY_CITY" - required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="ENTRY_STATE" + <column dbType="VARCHAR" javaType="String" name="TELEPHONE" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="ENTRY_TELEPHONE" required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="ENTRY_FAX" + <column dbType="VARCHAR" javaType="String" name="FAX" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="CELLPHONE" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="ENTRY_CELLPHONE" size="32" type="VARCHAR"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="DEFAULT_ADDRESS" required="true" type="INTEGER"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="LANGUAGE_ID" required="true" type="INTEGER"/> <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="ENTRY_COUNTRY_ID" + javaType="java.math.BigDecimal" name="COUNTRY_ID" required="true" type="INTEGER"/> <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="ENTRY_ZONE_ID" + javaType="java.math.BigDecimal" name="ZONE_ID" required="true" type="INTEGER"/> - <foreign-key foreignTable="COUNTRIES" name="FK_ADDRESS_BOOK_3"> - <reference foreign="COUNTRIES_ID" local="ENTRY_COUNTRY_ID"/> + <foreign-key foreignTable="COUNTRY" name="FK_ADDRESS_BOOK_3"> + <reference foreign="COUNTRY_ID" local="COUNTRY_ID"/> </foreign-key> - <foreign-key foreignTable="CUSTOMERS" name="FK_ADDRESS_BOOK_4"> - <reference foreign="CUSTOMERS_ID" local="CUSTOMERS_ID"/> + <foreign-key foreignTable="CUSTOMER" name="FK_ADDRESS_BOOK_4"> + <reference foreign="CUSTOMER_ID" local="CUSTOMER_ID"/> </foreign-key> - <foreign-key foreignTable="ZONES" name="FK_ADDRESS_BOOK_2"> - <reference foreign="ZONE_ID" local="ENTRY_ZONE_ID"/> + <foreign-key foreignTable="LANGUAGE" name="FK_ADDRESS_BOOKS_4"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> </foreign-key> + <foreign-key foreignTable="ZONE" name="FK_ADDRESS_BOOK_2"> + <reference foreign="ZONE_ID" local="ZONE_ID"/> + </foreign-key> </table> - <table name="ADDRESS_FORMAT" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="BARGAIN" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="ADDRESS_FORMAT_ID" - primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="ADDRESS_FORMAT" - required="true" size="128" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="ADDRESS_SUMMARY" required="true" size="48" type="VARCHAR"/> - </table> - <table name="BANNERS" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" - default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="BANNERS_ID" - primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="BANNERS_TITLE" - required="true" size="64" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="BANNERS_URL" - required="true" size="255" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="BANNERS_IMAGE" - required="true" size="64" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="BANNERS_GROUP" - required="true" size="10" type="VARCHAR"/> - <column dbType="LONG VARCHAR" javaType="String" - name="BANNERS_HTML_TEXT" size="32700" type="LONGVARCHAR"/> - <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="EXPIRES_IMPRESSIONS" type="INTEGER"/> - <column dbType="TIMESTAMP" default="NULL" - javaType="java.sql.Timestamp" name="EXPIRES_DATE" type="TIMESTAMP"/> - <column dbType="TIMESTAMP" default="NULL" - javaType="java.sql.Timestamp" name="DATE_SCHEDULED" type="TIMESTAMP"/> + javaType="java.math.BigDecimal" name="BARGAIN_ID" + primaryKey="true" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" required="true" type="BIGINT"/> + <column dbType="DECIMAL" javaType="java.math.BigDecimal" + name="BARGAIN_PRICE" required="true" size="15" type="DECIMAL"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="DATE_ADDED" required="true" type="TIMESTAMP"/> - <column dbType="TIMESTAMP" default="NULL" - javaType="java.sql.Timestamp" name="DATE_STATUS_CHANGE" type="TIMESTAMP"/> + name="DATE_ADDED" type="TIMESTAMP"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="LAST_MODIFIED" type="TIMESTAMP"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="START_DATE" type="TIMESTAMP"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="EXPIRE_DATE" type="TIMESTAMP"/> <column dbType="INTEGER" default="1" javaType="java.math.BigDecimal" name="STATUS" required="true" type="INTEGER"/> + <foreign-key foreignTable="PRODUCT" name="FK_SPECIALS_1"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> + </foreign-key> </table> - <table name="BANNERS_HISTORY" schema="APP" type="TABLE"> + <table name="CARD_TYPE" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="BANNERS_HISTORY_ID" + javaType="java.math.BigDecimal" name="CARD_TYPE_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="VARCHAR" javaType="String" name="CODE" + required="true" size="32" type="VARCHAR"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="BANNERS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="BANNERS_SHOWN" - required="true" type="INTEGER"/> - <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="BANNERS_CLICKED" - required="true" type="INTEGER"/> + name="SORT_ORDER" required="true" type="INTEGER"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="BANNERS_HISTORY_DATE" required="true" type="TIMESTAMP"/> - <foreign-key foreignTable="BANNERS" name="FK_BANNERS_HISTORY_1"> - <reference foreign="BANNERS_ID" local="BANNERS_ID"/> + name="DATE_ADDED" required="true" type="TIMESTAMP"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="LAST_MODIFIED" required="true" type="TIMESTAMP"/> + </table> + <table name="CARD_TYPE_DESCRIPTION" schema="APP" type="TABLE"> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="CARD_TYPE_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="VARCHAR" javaType="String" name="NAME" + required="true" size="64" type="VARCHAR"/> + <column dbType="LONG VARCHAR" javaType="String" + name="DESCRIPTION" size="32700" type="LONGVARCHAR"/> + <foreign-key foreignTable="CARD_TYPE" name="FK_CARD_TYPES_DESCRIPTION_1"> + <reference foreign="CARD_TYPE_ID" local="CARD_TYPE_ID"/> </foreign-key> + <foreign-key foreignTable="LANGUAGE" name="FK_CARD_TYPES_DESCRIPTION_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> + </foreign-key> </table> - <table name="CATEGORIES" schema="APP" type="TABLE"> + <table name="CATEGORY" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="CATEGORIES_ID" + javaType="java.math.BigDecimal" name="CATEGORY_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="CATEGORIES_IMAGE" size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="IMAGE" + size="64" type="VARCHAR"/> <column dbType="INTEGER" default="0" javaType="java.math.BigDecimal" name="PARENT_ID" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" @@ -124,233 +124,163 @@ name="DATE_ADDED" type="TIMESTAMP"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="LAST_MODIFIED" type="TIMESTAMP"/> - <foreign-key foreignTable="CATEGORIES" name="FK_CATEGORIES_1"> - <reference foreign="CATEGORIES_ID" local="PARENT_ID"/> + <foreign-key foreignTable="CATEGORY" name="FK_CATEGORIES_1"> + <reference foreign="CATEGORY_ID" local="PARENT_ID"/> </foreign-key> </table> - <table name="CATEGORIES_DESCRIPTION" schema="APP" type="TABLE"> + <table name="CATEGORY_DESCRIPTION" schema="APP" type="TABLE"> <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="CATEGORIES_ID" + javaType="java.math.BigDecimal" name="CATEGORY_ID" primaryKey="true" required="true" type="INTEGER"/> <column dbType="INTEGER" default="1" javaType="java.math.BigDecimal" name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="CATEGORIES_NAME" required="true" size="32" type="VARCHAR"/> - <foreign-key foreignTable="CATEGORIES" name="SQL070831021756620"> - <reference foreign="CATEGORIES_ID" local="CATEGORIES_ID"/> + <column dbType="VARCHAR" javaType="String" name="NAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="DESCRIPTION" + size="255" type="VARCHAR"/> + <foreign-key foreignTable="CATEGORY" name="SQL070831021756620"> + <reference foreign="CATEGORY_ID" local="CATEGORY_ID"/> </foreign-key> - <foreign-key foreignTable="LANGUAGES" name="FK_CATEGORIES_DESCRIPTION_2"> - <reference foreign="LANGUAGES_ID" local="LANGUAGE_ID"/> + <foreign-key foreignTable="LANGUAGE" name="FK_CATEGORIES_DESCRIPTION_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> </foreign-key> </table> - <table name="CONFIGURATION" schema="APP" type="TABLE"> + <table name="COUNTRY" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="CONFIGURATION_ID" + javaType="java.math.BigDecimal" name="COUNTRY_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="CONFIGURATION_TITLE" required="true" size="64" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="CONFIGURATION_KEY" required="true" size="64" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="CONFIGURATION_VALUE" required="true" size="255" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="CONFIGURATION_DESCRIPTION" required="true" size="255" type="VARCHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CONFIGURATION_GROUP_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="SORT_ORDER" type="INTEGER"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="LAST_MODIFIED" type="TIMESTAMP"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="DATE_ADDED" required="true" type="TIMESTAMP"/> - <column dbType="VARCHAR" javaType="String" name="USE_FUNCTION" - size="255" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="SET_FUNCTION" - size="255" type="VARCHAR"/> - <foreign-key foreignTable="CONFIGURATION_GROUP" name="FK_CONFIGURATION_1"> - <reference foreign="CONFIGURATION_GROUP_ID" local="CONFIGURATION_GROUP_ID"/> - </foreign-key> - </table> - <table name="CONFIGURATION_GROUP" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" - default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" - name="CONFIGURATION_GROUP_ID" primaryKey="true" - required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="CONFIGURATION_GROUP_TITLE" required="true" size="64" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="CONFIGURATION_GROUP_DESCRIPTION" required="true" - size="255" type="VARCHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="SORT_ORDER" type="INTEGER"/> - <column dbType="INTEGER" default="1" - javaType="java.math.BigDecimal" name="VISIBLE" type="INTEGER"/> - </table> - <table name="COUNTER" schema="APP" type="TABLE"> - <column dbType="CHAR" javaType="String" name="STARTDATE" - size="8" type="CHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="COUNTER" type="INTEGER"/> - </table> - <table name="COUNTER_HISTORY" schema="APP" type="TABLE"> - <column dbType="CHAR" javaType="String" name="MONTH" size="8" type="CHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="COUNTER" type="INTEGER"/> - </table> - <table name="COUNTRIES" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" - default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="COUNTRIES_ID" - primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="COUNTRIES_NAME" + <column dbType="VARCHAR" javaType="String" name="NAME" required="true" size="64" type="VARCHAR"/> - <column dbType="CHAR" javaType="String" - name="COUNTRIES_ISO_CODE_2" required="true" size="2" type="CHAR"/> - <column dbType="CHAR" javaType="String" - name="COUNTRIES_ISO_CODE_3" required="true" size="3" type="CHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ADDRESS_FORMAT_ID" required="true" type="INTEGER"/> + <column dbType="CHAR" javaType="String" name="ISO_CODE_2" + required="true" size="2" type="CHAR"/> + <column dbType="CHAR" javaType="String" name="ISO_CODE_3" + required="true" size="3" type="CHAR"/> </table> - <table name="CURRENCIES" schema="APP" type="TABLE"> + <table name="CURRENCY" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="CURRENCIES_ID" + javaType="java.math.BigDecimal" name="CURRENCY_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="TITLE" - required="true" size="32" type="VARCHAR"/> <column dbType="CHAR" javaType="String" name="CODE" required="true" size="3" type="CHAR"/> <column dbType="VARCHAR" javaType="String" name="SYMBOL_LEFT" size="12" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" name="SYMBOL_RIGHT" size="12" type="VARCHAR"/> - <column dbType="CHAR" javaType="String" name="DECIMAL_POINT" - size="1" type="CHAR"/> - <column dbType="CHAR" javaType="String" name="THOUSANDS_POINT" - size="1" type="CHAR"/> - <column dbType="CHAR" javaType="String" name="DECIMAL_PLACES" - size="1" type="CHAR"/> - <column dbType="DOUBLE" javaType="java.math.BigDecimal" - name="VALUE" type="DOUBLE"/> + <column dbType="VARCHAR" javaType="String" + name="CURRENCY_FORMAT" required="true" size="32" type="VARCHAR"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="LAST_UPDATED" type="TIMESTAMP"/> + name="DATE_ADDED" required="true" type="TIMESTAMP"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="LAST_MODIFIED" required="true" type="TIMESTAMP"/> </table> - <table name="CUSTOMERS" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="CURRENCY_DESCRIPTION" schema="APP" type="TABLE"> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="CURRENCY_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="VARCHAR" javaType="String" name="NAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="DESCRIPTION" + size="255" type="VARCHAR"/> + <foreign-key foreignTable="CURRENCY" name="FK_CURRENCIES_DESCRIPTION_1"> + <reference foreign="CURRENCY_ID" local="CURRENCY_ID"/> + </foreign-key> + <foreign-key foreignTable="LANGUAGE" name="FK_CURRENCIES_DESCRIPTION_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> + </foreign-key> + </table> + <table name="CUSTOMER" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="CUSTOMERS_ID" - primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_PORTAL_ID" required="true" size="255" type="VARCHAR"/> - <column dbType="CHAR" javaType="String" name="CUSTOMERS_GENDER" + javaType="java.math.BigDecimal" name="CUSTOMER_ID" + primaryKey="true" required="true" type="BIGINT"/> + <column dbType="VARCHAR" javaType="String" name="PORTAL_ID" + required="true" size="255" type="VARCHAR"/> + <column dbType="CHAR" javaType="String" name="GENDER" required="true" size="1" type="CHAR"/> - <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_FIRSTNAME" required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_LASTNAME" required="true" size="32" type="VARCHAR"/> - <column dbType="TIMESTAMP" default="0000-00-00 00:00:00" - javaType="java.sql.Timestamp" name="CUSTOMERS_DOB" - required="true" type="TIMESTAMP"/> - <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_EMAIL_ADDRESS" required="true" size="96" type="VARCHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMERS_DEFAULT_ADDRESS_ID" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_TELEPHONE" required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="CUSTOMERS_FAX" - size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_CELLPHONE" size="32" type="VARCHAR"/> - <column dbType="CHAR" javaType="String" - name="CUSTOMERS_NEWSLETTER" size="1" type="CHAR"/> + <column dbType="VARCHAR" javaType="String" name="FIRSTNAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="LASTNAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="NICKNAME" + size="64" type="VARCHAR"/> + <column dbType="DATE" default="0000-00-00 00:00:00" + javaType="java.util.Date" name="DAY_OF_BIRTH" + required="true" type="DATE"/> + <column dbType="VARCHAR" javaType="String" name="EMAIL_ADDRESS" + required="true" size="128" type="VARCHAR"/> </table> - <table name="CUSTOMERS_BASKET" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="CUSTOMER_BASKET" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="CUSTOMERS_BASKET_ID" - primaryKey="true" required="true" type="INTEGER"/> + javaType="java.math.BigDecimal" name="CUSTOMER_BASKET_ID" + primaryKey="true" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="CUSTOMER_ID" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" required="true" type="BIGINT"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMERS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMERS_BASKET_QUANTITY" required="true" type="INTEGER"/> + name="QUANTITY" required="true" type="INTEGER"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" name="FINAL_PRICE" size="15" type="DECIMAL"/> - <column dbType="CHAR" javaType="String" - name="CUSTOMERS_BASKET_DATE_ADDED" size="8" type="CHAR"/> - <foreign-key foreignTable="CUSTOMERS" name="FK_CUSTOMERS_BASKET_1"> - <reference foreign="CUSTOMERS_ID" local="CUSTOMERS_ID"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="DATE_ADDED" required="true" type="TIMESTAMP"/> + <foreign-key foreignTable="CUSTOMER" name="FK_CUSTOMERS_BASKET_1"> + <reference foreign="CUSTOMER_ID" local="CUSTOMER_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS" name="FK_CUSTOMERS_BASKET_2"> - <reference foreign="PRODUCTS_ID" local="PRODUCTS_ID"/> + <foreign-key foreignTable="PRODUCT" name="FK_CUSTOMERS_BASKET_2"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> </foreign-key> </table> - <table name="CUSTOMERS_BASKET_ATTRIBUTES" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="CUSTOMER_BASKET_ATTRIBUTE" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" - name="CUSTOMERS_BASKET_ATTRIBUTES_ID" primaryKey="true" - required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMERS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_OPTIONS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_OPTIONS_VALUE_ID" required="true" type="INTEGER"/> - <foreign-key foreignTable="CUSTOMERS" name="FK_CUSTOMERS_BASKET_ATTRIBUTES_1"> - <reference foreign="CUSTOMERS_ID" local="CUSTOMERS_ID"/> + name="CUSTOMERS_BASKET_ATTRIBUTE_ID" primaryKey="true" + required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="CUSTOMER_ID" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCTS_OPTION_ID" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCTS_OPTION_VALUE_ID" required="true" type="BIGINT"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="DATE_ADDED" type="TIMESTAMP"/> + <foreign-key foreignTable="CUSTOMER" name="FK_CUSTOMERS_BASKET_ATTRIBUTES_1"> + <reference foreign="CUSTOMER_ID" local="CUSTOMER_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS" name="FK_CUSTOMERS_BASKET_ATTRIBUTES_2"> - <reference foreign="PRODUCTS_ID" local="PRODUCTS_ID"/> + <foreign-key foreignTable="PRODUCT" name="FK_CUSTOMERS_BASKET_ATTRIBUTES_2"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS_OPTIONS" name="FK_CUSTOMERS_BASKET_ATTRIBUTES_5"> - <reference foreign="PRODUCTS_OPTIONS_ID" local="PRODUCTS_OPTIONS_ID"/> + <foreign-key foreignTable="PRODUCT_OPTION" name="FK_CUSTOMERS_BASKET_ATTRIBUTES_5"> + <reference foreign="PRODUCT_OPTION_ID" local="PRODUCTS_OPTION_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS_OPTIONS_VALUES" name="FK_CUSTOMERS_BASKET_ATTRIBUTES_4"> - <reference foreign="PRODUCTS_OPTIONS_VALUES_ID" local="PRODUCTS_OPTIONS_VALUE_ID"/> + <foreign-key foreignTable="PRODUCT_OPTION_VALUE" name="FK_CUSTOMERS_BASKET_ATTRIBUTES_4"> + <reference foreign="PRODUCT_OPTION_VALUE_ID" local="PRODUCTS_OPTION_VALUE_ID"/> </foreign-key> </table> - <table name="CUSTOMERS_INFO" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" - default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="CUSTOMERS_INFO_ID" - primaryKey="true" required="true" type="INTEGER"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="CUSTOMERS_INFO_DATE_OF_LAST_LOGON" type="TIMESTAMP"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMERS_INFO_NUMBER_OF_LOGONS" type="INTEGER"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="CUSTOMERS_INFO_DATE_ACCOUNT_CREATED" type="TIMESTAMP"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="CUSTOMERS_INFO_DATE_ACCOUNT_LAST_MODIFIED" type="TIMESTAMP"/> - <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" - name="GLOBAL_PRODUCT_NOTIFICATIONS" type="INTEGER"/> - <foreign-key foreignTable="CUSTOMERS" name="FK_CUSTOMERS_INFO_1"> - <reference foreign="CUSTOMERS_ID" local="CUSTOMERS_INFO_ID"/> - </foreign-key> - </table> <table name="DELIVERY_METHOD" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" name="DELIVERY_METHOD_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="DELIVERY_CLASS" + <column dbType="VARCHAR" javaType="String" name="CODE" + required="true" size="16" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="OBJECT_NAME" required="true" size="128" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="DELIVERY_STATUS" required="true" size="1" type="VARCHAR"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="SORT_ORDER" type="INTEGER"/> + name="STATUS" required="true" type="INTEGER"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="SORT_ORDER" required="true" type="INTEGER"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="DATE_ADDED" type="TIMESTAMP"/> + name="DATE_ADDED" required="true" type="TIMESTAMP"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="LAST_MODIFIED" type="TIMESTAMP"/> + name="LAST_MODIFIED" required="true" type="TIMESTAMP"/> </table> <table name="DELIVERY_METHOD_DESCRIPTION" schema="APP" type="TABLE"> <column dbType="INTEGER" default="0" @@ -359,650 +289,654 @@ <column dbType="INTEGER" default="1" javaType="java.math.BigDecimal" name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="DELIVERY_METHOD_NAME" required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="NAME" + required="true" size="64" type="VARCHAR"/> + <column dbType="LONG VARCHAR" javaType="String" + name="DESCRIPTION" size="32700" type="LONGVARCHAR"/> <foreign-key foreignTable="DELIVERY_METHOD" name="SQL070831021756940"> <reference foreign="DELIVERY_METHOD_ID" local="DELIVERY_METHOD_ID"/> </foreign-key> - <foreign-key foreignTable="LANGUAGES" name="FK_DELIVERY_METHOD_DESCRIPTION_2"> - <reference foreign="LANGUAGES_ID" local="LANGUAGE_ID"/> + <foreign-key foreignTable="LANGUAGE" name="FK_DELIVERY_METHOD_DESCRIPTION_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> </foreign-key> </table> - <table name="GEO_ZONES" schema="APP" type="TABLE"> + <table name="GEO_ZONE" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" name="GEO_ZONE_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="GEO_ZONE_NAME" + <column dbType="VARCHAR" javaType="String" name="NAME" required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="GEO_ZONE_DESCRIPTION" required="true" size="255" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="DESCRIPTION" + required="true" size="255" type="VARCHAR"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="LAST_MODIFIED" type="TIMESTAMP"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="DATE_ADDED" required="true" type="TIMESTAMP"/> </table> - <table name="LANGUAGES" schema="APP" type="TABLE"> + <table name="LANGUAGE" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="LANGUAGES_ID" + javaType="java.math.BigDecimal" name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> <column dbType="VARCHAR" javaType="String" name="NAME" required="true" size="32" type="VARCHAR"/> - <column dbType="CHAR" javaType="String" name="CODE" - required="true" size="2" type="CHAR"/> + <column dbType="VARCHAR" javaType="String" name="LOCALE_NAME" + required="true" size="16" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" name="IMAGE" size="64" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="DIRECTORY" + <column dbType="VARCHAR" javaType="String" name="DIRECTORY_NAME" size="32" type="VARCHAR"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" name="SORT_ORDER" type="INTEGER"/> </table> - <table name="MANUFACTURERS" schema="APP" type="TABLE"> + <table name="MANUFACTURER" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="MANUFACTURERS_ID" + javaType="java.math.BigDecimal" name="MANUFACTURER_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="MANUFACTURERS_NAME" required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="MANUFACTURERS_IMAGE" size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="NAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="IMAGE" + size="64" type="VARCHAR"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="DATE_ADDED" type="TIMESTAMP"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="LAST_MODIFIED" type="TIMESTAMP"/> </table> - <table name="MANUFACTURERS_INFO" schema="APP" type="TABLE"> + <table name="MANUFACTURER_DESCRIPTION" schema="APP" type="TABLE"> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="MANUFACTURERS_ID" primaryKey="true" required="true" type="INTEGER"/> + name="MANUFACTURER_ID" primaryKey="true" required="true" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="LANGUAGES_ID" primaryKey="true" required="true" type="INTEGER"/> + name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="VARCHAR" javaType="String" name="URL" + required="true" size="255" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="MANUFACTURERS_URL" required="true" size="255" type="VARCHAR"/> + name="SHORT_DESCRIPTION" size="100" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="MANUFACTURERS_SHORT_DESC" size="100" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="MANUFACTURERS_LONG_DESC" size="1000" type="VARCHAR"/> - <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="URL_CLICKED" - required="true" type="INTEGER"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="DATE_LAST_CLICK" type="TIMESTAMP"/> - <foreign-key foreignTable="LANGUAGES" name="FK_MANUFACTURERS_INFO_2"> - <reference foreign="LANGUAGES_ID" local="LANGUAGES_ID"/> + name="LONG_DESCRIPTION" size="1000" type="VARCHAR"/> + <foreign-key foreignTable="LANGUAGE" name="FK_MANUFACTURERS_INFO_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> </foreign-key> - <foreign-key foreignTable="MANUFACTURERS" name="SQL070831021756730"> - <reference foreign="MANUFACTURERS_ID" local="MANUFACTURERS_ID"/> + <foreign-key foreignTable="MANUFACTURER" name="SQL070831021756730"> + <reference foreign="MANUFACTURER_ID" local="MANUFACTURER_ID"/> </foreign-key> </table> - <table name="NEWSLETTERS" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" - default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="NEWSLETTERS_ID" - primaryKey="true" required="true" type="INTEGER"/> + <table name="ORDER_CARD_INFO" schema="APP" type="TABLE"> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="ORDER_CARD_INFO_ID" primaryKey="true" required="true" type="BIGINT"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="CARD_TYPE_ID" type="INTEGER"/> + <column dbType="VARCHAR" javaType="String" name="CARD_CODE" + size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="CARD_OWNER" + size="255" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="CARD_NUMBER" + size="255" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="CARD_EXPIRES" + size="255" type="VARCHAR"/> + <foreign-key foreignTable="CARD_TYPE" name="FK_ORDER_CARD_INFO_1"> + <reference foreign="CARD_TYPE_ID" local="CARD_TYPE_ID"/> + </foreign-key> + </table> + <table name="ORDER_COMMENT" schema="APP" type="TABLE"> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="ORDER_FORM_ID" primaryKey="true" required="true" type="BIGINT"/> <column dbType="VARCHAR" javaType="String" name="TITLE" required="true" size="255" type="VARCHAR"/> - <column dbType="LONG VARCHAR" javaType="String" name="CONTENT" + <column dbType="LONG VARCHAR" javaType="String" name="TEXT" required="true" size="32700" type="LONGVARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="MODULE" - required="true" size="255" type="VARCHAR"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="DATE_ADDED" required="true" type="TIMESTAMP"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="DATE_SENT" type="TIMESTAMP"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="STATUS" type="INTEGER"/> - <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="LOCKED" type="INTEGER"/> + <foreign-key foreignTable="ORDER_FORM" name="FK_ORDERS_TOTAL_1"> + <reference foreign="ORDER_FORM_ID" local="ORDER_FORM_ID"/> + </foreign-key> </table> - <table name="ORDERS" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="ORDER_FORM" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="ORDERS_ID" - primaryKey="true" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMERS_ID" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="CUSTOMERS_NAME" - required="true" size="64" type="VARCHAR"/> + javaType="java.math.BigDecimal" name="ORDER_FORM_ID" + primaryKey="true" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="CUSTOMER_ID" required="true" type="BIGINT"/> + <column dbType="CHAR" javaType="String" name="CUSTOMER_GENDER" + required="true" size="1" type="CHAR"/> <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_COMPANY" size="32" type="VARCHAR"/> + name="CUSTOMER_FIRSTNAME" required="true" size="32" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_STREET_ADDRESS" required="true" size="64" type="VARCHAR"/> + name="CUSTOMER_LASTNAME" size="32" type="VARCHAR"/> + <column dbType="DATE" javaType="java.util.Date" + name="CUSTOMER_DAY_OF_BIRTH" required="true" type="DATE"/> <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_SUBURB" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="CUSTOMERS_CITY" - required="true" size="32" type="VARCHAR"/> + name="CUSTOMER_EMAIL_ADDRESS" required="true" size="128" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_POSTCODE" required="true" size="10" type="VARCHAR"/> + name="CUSTOMER_COMPANY" size="128" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_STATE" size="32" type="VARCHAR"/> + name="CUSTOMER_DEPARTMENT" size="64" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_COUNTRY" required="true" size="32" type="VARCHAR"/> + name="CUSTOMER_STREET_ADDRESS" required="true" size="255" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_TELEPHONE" required="true" size="32" type="VARCHAR"/> + name="CUSTOMER_SUBURB" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="CUSTOMER_CITY" + required="true" size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="CUSTOMER_STATE" + size="32" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_CELLPHONE" size="32" type="VARCHAR"/> + name="CUSTOMER_POSTCODE" required="true" size="10" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="CUSTOMERS_EMAIL_ADDRESS" required="true" size="96" type="VARCHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMERS_ADDRESS_FORMAT_ID" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="DELIVERY_NAME" - required="true" size="64" type="VARCHAR"/> + name="CUSTOMER_COUNTRY_NAME" required="true" size="32" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="DELIVERY_COMPANY" size="32" type="VARCHAR"/> + name="CUSTOMER_TELEPHONE" size="32" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="DELIVERY_DEPARTMENT" size="32" type="VARCHAR"/> + name="CUSTOMER_LOCALE_NAME" required="true" size="16" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="DELIVERY_STREET_ADDRESS" required="true" size="64" type="VARCHAR"/> + name="DELIVERY_COMPANY" size="128" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" + name="DELIVERY_DEPARTMENT" size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" + name="DELIVERY_FIRSTNAME" required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" + name="DELIVERY_LASTNAME" required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" + name="DELIVERY_STREET_ADDRESS" required="true" size="255" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="DELIVERY_SUBURB" size="32" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" name="DELIVERY_CITY" - required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="DELIVERY_POSTCODE" required="true" size="10" type="VARCHAR"/> + required="true" size="64" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" name="DELIVERY_STATE" size="32" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="DELIVERY_COUNTRY" required="true" size="32" type="VARCHAR"/> + name="DELIVERY_POSTCODE" required="true" size="10" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" + name="DELIVERY_COUNTRY_NAME" required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="DELIVERY_TELEPHONE" size="32" type="VARCHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="DELIVERY_ADDRESS_FORMAT_ID" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="BILLING_NAME" - required="true" size="64" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="BILLING_COMPANY" size="32" type="VARCHAR"/> + name="DELIVERY_LOCALE_NAME" required="true" size="16" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="BILLING_DEPARTMENT" size="32" type="VARCHAR"/> + name="BILLING_COMPANY" size="128" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="BILLING_STREET_ADDRESS" required="true" size="64" type="VARCHAR"/> + name="BILLING_DEPARTMENT" size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" + name="BILLING_FIRSTNAME" required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" + name="BILLING_LASTNAME" required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" + name="BILLING_STREET_ADDRESS" required="true" size="255" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" name="BILLING_SUBURB" size="32" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" name="BILLING_CITY" - required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="BILLING_POSTCODE" required="true" size="10" type="VARCHAR"/> + required="true" size="64" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" name="BILLING_STATE" size="32" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="BILLING_COUNTRY" required="true" size="32" type="VARCHAR"/> + name="BILLING_POSTCODE" required="true" size="10" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" + name="BILLING_COUNTRY_NAME" required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="BILLING_TELEPHONE" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" + name="BILLING_LOCALE_NAME" required="true" size="16" type="VARCHAR"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="BILLING_ADDRESS_FORMAT_ID" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="PAYMENT_METHOD" - required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="CC_TYPE" - size="20" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="CC_OWNER" - size="64" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="CC_NUMBER" - size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="CC_EXPIRES" - size="4" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="DELIVERY_CLASS" - required="true" size="128" type="VARCHAR"/> + name="PAYMENT_METHOD_ID" type="INTEGER"/> + <column dbType="CHAR" javaType="String" + name="PAYMENT_METHOD_CODE" required="true" size="16" type="CHAR"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="ORDER_CARD_INFO_ID" type="BIGINT"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="DELIVERY_METHOD_ID" type="INTEGER"/> + <column dbType="VARCHAR" javaType="String" + name="DELIVERY_METHOD_CODE" required="true" size="16" type="VARCHAR"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="LAST_MODIFIED" type="TIMESTAMP"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="DATE_PURCHASED" type="TIMESTAMP"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ORDERS_STATUS_ID" required="true" type="INTEGER"/> + name="ORDER_STATUS_ID" required="true" type="INTEGER"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="ORDERS_DATE_FINISHED" type="TIMESTAMP"/> - <column dbType="CHAR" javaType="String" name="CURRENCY" size="3" type="CHAR"/> + name="PURCHASED_DATE" type="TIMESTAMP"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="FINISHED_DATE" type="TIMESTAMP"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="CURRENCY_ID" type="INTEGER"/> + <column dbType="CHAR" javaType="String" name="CURRENCY_CODE" + required="true" size="3" type="CHAR"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" - name="CURRENCY_VALUE" size="14" type="DECIMAL"/> - <foreign-key foreignTable="ADDRESS_FORMAT" name="FK_ORDERS_5"> - <reference foreign="ADDRESS_FORMAT_ID" local="CUSTOMERS_ADDRESS_FORMAT_ID"/> + name="DELIVERY_PRICE" required="true" size="14" type="DECIMAL"/> + <column dbType="DECIMAL" javaType="java.math.BigDecimal" + name="FINAL_PRICE" required="true" size="14" type="DECIMAL"/> + <column dbType="DECIMAL" javaType="java.math.BigDecimal" + name="TAX" required="true" size="14" type="DECIMAL"/> + <foreign-key foreignTable="CURRENCY" name="FK_ORDERS_6"> + <reference foreign="CURRENCY_ID" local="CURRENCY_ID"/> </foreign-key> - <foreign-key foreignTable="ADDRESS_FORMAT" name="FK_ORDERS_4"> - <reference foreign="ADDRESS_FORMAT_ID" local="DELIVERY_ADDRESS_FORMAT_ID"/> + <foreign-key foreignTable="CUSTOMER" name="SQL070831021756810"> + <reference foreign="CUSTOMER_ID" local="CUSTOMER_ID"/> </foreign-key> - <foreign-key foreignTable="ADDRESS_FORMAT" name="FK_ORDERS_3"> - <reference foreign="ADDRESS_FORMAT_ID" local="BILLING_ADDRESS_FORMAT_ID"/> + <foreign-key foreignTable="DELIVERY_METHOD" name="FK_ORDERS_4"> + <reference foreign="DELIVERY_METHOD_ID" local="DELIVERY_METHOD_ID"/> </foreign-key> - <foreign-key foreignTable="CUSTOMERS" name="SQL070831021756810"> - <reference foreign="CUSTOMERS_ID" local="CUSTOMERS_ID"/> + <foreign-key foreignTable="ORDER_CARD_INFO" name="FK_ORDER_6"> + <reference foreign="ORDER_CARD_INFO_ID" local="ORDER_CARD_INFO_ID"/> </foreign-key> - <foreign-key foreignTable="ORDERS_STATUS" name="SQL070831021756860"> - <reference foreign="ORDERS_STATUS_ID" local="ORDERS_STATUS_ID"/> + <foreign-key foreignTable="ORDER_STATUS" name="SQL070831021756860"> + <reference foreign="ORDER_STATUS_ID" local="ORDER_STATUS_ID"/> </foreign-key> + <foreign-key foreignTable="PAYMENT_METHOD" name="FK_ORDERS_3"> + <reference foreign="PAYMENT_METHOD_ID" local="PAYMENT_METHOD_ID"/> + </foreign-key> </table> - <table name="ORDERS_PRODUCTS" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="ORDER_PRODUCT" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="ORDERS_PRODUCTS_ID" - primaryKey="true" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ORDERS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_ID" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="PRODUCTS_MODEL" - size="12" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="PRODUCTS_NAME" + javaType="java.math.BigDecimal" name="ORDER_PRODUCT_ID" + primaryKey="true" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="ORDER_FORM_ID" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" required="true" type="BIGINT"/> + <column dbType="VARCHAR" javaType="String" name="MODEL" + size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="NAME" required="true" size="64" type="VARCHAR"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" - name="PRODUCTS_PRICE" required="true" size="15" type="DECIMAL"/> + name="PRICE" required="true" size="15" type="DECIMAL"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" name="FINAL_PRICE" required="true" size="15" type="DECIMAL"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" - name="PRODUCTS_TAX" required="true" size="7" type="DECIMAL"/> + name="TAX" required="true" size="7" type="DECIMAL"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_QUANTITY" required="true" type="INTEGER"/> - <foreign-key foreignTable="ORDERS" name="SQL070831021755891"> - <reference foreign="ORDERS_ID" local="ORDERS_ID"/> + name="QUANTITY" required="true" type="INTEGER"/> + <foreign-key foreignTable="ORDER_FORM" name="SQL070831021755891"> + <reference foreign="ORDER_FORM_ID" local="ORDER_FORM_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS" name="SQL070831021755892"> - <reference foreign="PRODUCTS_ID" local="PRODUCTS_ID"/> + <foreign-key foreignTable="PRODUCT" name="SQL070831021755892"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> </foreign-key> </table> - <table name="ORDERS_PRODUCTS_ATTRIBUTES" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="ORDER_PRODUCT_ATTRIBUTE" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" - name="ORDERS_PRODUCTS_ATTRIBUTES_ID" primaryKey="true" - required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ORDERS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ORDERS_PRODUCTS_ID" required="true" type="INTEGER"/> + name="ORDER_PRODUCT_ATTRIBUTE_ID" primaryKey="true" + required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="ORDER_FORM_ID" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" required="true" type="BIGINT"/> <column dbType="VARCHAR" javaType="String" name="PRODUCTS_OPTIONS" required="true" size="32" type="VARCHAR"/> <column dbType="VARCHAR" javaType="String" - name="PRODUCTS_OPTIONS_VALUES" required="true" size="32" type="VARCHAR"/> + name="PRODUCT_OPTION_VALUE" required="true" size="32" type="VARCHAR"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" name="OPTIONS_VALUES_PRICE" required="true" size="15" type="DECIMAL"/> <column dbType="CHAR" javaType="String" name="PRICE_PREFIX" required="true" size="1" type="CHAR"/> - <foreign-key foreignTable="ORDERS" name="FK_ORDERS_PRODUCTS_ATTRIBUTES_1"> - <reference foreign="ORDERS_ID" local="ORDERS_ID"/> + <foreign-key foreignTable="ORDER_FORM" name="FK_ORDERS_PRODUCTS_ATTRIBUTES_1"> + <reference foreign="ORDER_FORM_ID" local="ORDER_FORM_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS" name="FK_ORDERS_PRODUCTS_ATTRIBUTES_2"> - <reference foreign="PRODUCTS_ID" local="ORDERS_PRODUCTS_ID"/> + <foreign-key foreignTable="PRODUCT" name="FK_ORDERS_PRODUCTS_ATTRIBUTES_2"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> </foreign-key> </table> - <table name="ORDERS_PRODUCTS_DOWNLOAD" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="ORDER_PRODUCT_DOWNLOAD" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" - name="ORDERS_PRODUCTS_DOWNLOAD_ID" primaryKey="true" - required="true" type="INTEGER"/> - <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="ORDERS_ID" - required="true" type="INTEGER"/> - <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="ORDERS_PRODUCTS_ID" - required="true" type="INTEGER"/> + name="ORDER_PRODUCT_DOWNLOAD_ID" primaryKey="true" + required="true" type="BIGINT"/> + <column dbType="BIGINT" default="0" + javaType="java.math.BigDecimal" name="ORDER_FORM_ID" + required="true" type="BIGINT"/> + <column dbType="BIGINT" default="0" + javaType="java.math.BigDecimal" name="PRODUCT_ID" + required="true" type="BIGINT"/> <column dbType="VARCHAR" default="" javaType="String" - name="ORDERS_PRODUCTS_FILENAME" required="true" size="255" type="VARCHAR"/> + name="FILENAME" required="true" size="255" type="VARCHAR"/> <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="DOWNLOAD_MAXDAYS" + javaType="java.math.BigDecimal" name="MAXDAYS" required="true" type="INTEGER"/> <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="DOWNLOAD_COUNT" - required="true" type="INTEGER"/> - <foreign-key foreignTable="ORDERS" name="FK_ORDERS_PRODUCTS_DOWNLOAD_1"> - <reference foreign="ORDERS_ID" local="ORDERS_ID"/> + javaType="java.math.BigDecimal" name="COUNT" required="true" type="INTEGER"/> + <foreign-key foreignTable="ORDER_FORM" name="FK_ORDERS_PRODUCTS_DOWNLOAD_1"> + <reference foreign="ORDER_FORM_ID" local="ORDER_FORM_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS" name="FK_ORDERS_PRODUCTS_DOWNLOAD_2"> - <reference foreign="PRODUCTS_ID" local="ORDERS_PRODUCTS_ID"/> + <foreign-key foreignTable="PRODUCT" name="FK_ORDERS_PRODUCTS_DOWNLOAD_2"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> </foreign-key> </table> - <table name="ORDERS_STATUS" schema="APP" type="TABLE"> - <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="ORDERS_STATUS_ID" + <table name="ORDER_STATUS" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="INTEGER" + default="GENERATED_BY_DEFAULT" + javaType="java.math.BigDecimal" name="ORDER_STATUS_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="SORT_ORDER" required="true" type="INTEGER"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="DATE_ADDED" required="true" type="TIMESTAMP"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="LAST_MODIFIED" required="true" type="TIMESTAMP"/> </table> - <table name="ORDERS_STATUS_DESCRIPTION" schema="APP" type="TABLE"> + <table name="ORDER_STATUS_DESCRIPTION" schema="APP" type="TABLE"> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ORDERS_STATUS_ID" primaryKey="true" required="true" type="INTEGER"/> + name="ORDER_STATUS_ID" primaryKey="true" required="true" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="ORDERS_STATUS_NAME" required="true" size="32" type="VARCHAR"/> - <foreign-key foreignTable="LANGUAGES" name="FK_ORDERS_STATUS_DESCRIPTION_2"> - <reference foreign="LANGUAGES_ID" local="LANGUAGE_ID"/> + <column dbType="VARCHAR" javaType="String" name="NAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="DESCRIPTION" + size="255" type="VARCHAR"/> + <foreign-key foreignTable="LANGUAGE" name="FK_ORDERS_STATUS_DESCRIPTION_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> </foreign-key> - <foreign-key foreignTable="ORDERS_STATUS" name="FK_ORDERS_STATUS_DESCRIPTION_1"> - <reference foreign="ORDERS_STATUS_ID" local="ORDERS_STATUS_ID"/> + <foreign-key foreignTable="ORDER_STATUS" name="FK_ORDERS_STATUS_DESCRIPTION_1"> + <reference foreign="ORDER_STATUS_ID" local="ORDER_STATUS_ID"/> </foreign-key> </table> - <table name="ORDERS_STATUS_HISTORY" schema="APP" type="TABLE"> + <table name="ORDER_STATUS_HISTORY" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" - name="ORDERS_STATUS_HISTORY_ID" primaryKey="true" + name="ORDER_STATUS_HISTORY_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="ORDER_FORM_ID" required="true" type="BIGINT"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ORDERS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ORDERS_STATUS_ID" required="true" type="INTEGER"/> + name="ORDER_STATUS_ID" required="true" type="INTEGER"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="DATE_ADDED" required="true" type="TIMESTAMP"/> <column dbType="INTEGER" default="0" javaType="java.math.BigDecimal" name="CUSTOMER_NOTIFIED" type="INTEGER"/> <column dbType="LONG VARCHAR" javaType="String" name="COMMENTS" size="32700" type="LONGVARCHAR"/> - <foreign-key foreignTable="ORDERS" name="FK_ORDERS_STATUS_HISTORY_2"> - <reference foreign="ORDERS_ID" local="ORDERS_ID"/> + <foreign-key foreignTable="ORDER_FORM" name="FK_ORDERS_STATUS_HISTORY_2"> + <reference foreign="ORDER_FORM_ID" local="ORDER_FORM_ID"/> </foreign-key> - <foreign-key foreignTable="ORDERS_STATUS" name="SQL070831021756900"> - <reference foreign="ORDERS_STATUS_ID" local="ORDERS_STATUS_ID"/> + <foreign-key foreignTable="ORDER_STATUS" name="SQL070831021756900"> + <reference foreign="ORDER_STATUS_ID" local="ORDER_STATUS_ID"/> </foreign-key> </table> - <table name="ORDERS_TOTAL" schema="APP" type="TABLE"> + <table name="PAYMENT_METHOD" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="ORDERS_TOTAL_ID" + javaType="java.math.BigDecimal" name="PAYMENT_METHOD_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="VARCHAR" javaType="String" name="CODE" + required="true" size="16" type="VARCHAR"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ORDERS_ID" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="TITLE" - required="true" size="255" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="TEXT" - required="true" size="255" type="VARCHAR"/> - <column dbType="DECIMAL" javaType="java.math.BigDecimal" - name="VALUE" required="true" size="15" type="DECIMAL"/> - <column dbType="VARCHAR" javaType="String" name="OT_CLASS" - required="true" size="32" type="VARCHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" name="SORT_ORDER" required="true" type="INTEGER"/> - <foreign-key foreignTable="ORDERS" name="FK_ORDERS_TOTAL_1"> - <reference foreign="ORDERS_ID" local="ORDERS_ID"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="DATE_ADDED" required="true" type="TIMESTAMP"/> + <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" + name="LAST_MODIFIED" required="true" type="TIMESTAMP"/> + </table> + <table name="PAYMENT_METHOD_DESCRIPTION" schema="APP" type="TABLE"> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="PAYMENT_METHOD_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="INTEGER" javaType="java.math.BigDecimal" + name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> + <column dbType="VARCHAR" javaType="String" name="NAME" + required="true" size="64" type="VARCHAR"/> + <column dbType="LONG VARCHAR" javaType="String" + name="DESCRIPTION" size="32700" type="LONGVARCHAR"/> + <foreign-key foreignTable="LANGUAGE" name="FK_PAYMENT_METHODS_DESCRIPTION_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> </foreign-key> + <foreign-key foreignTable="PAYMENT_METHOD" name="FK_PAYMENT_METHODS_DESCRIPTION_1"> + <reference foreign="PAYMENT_METHOD_ID" local="PAYMENT_METHOD_ID"/> + </foreign-key> </table> - <table name="PRODUCTS" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="PRODUCT" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="PRODUCTS_ID" - primaryKey="true" required="true" type="INTEGER"/> + javaType="java.math.BigDecimal" name="PRODUCT_ID" + primaryKey="true" required="true" type="BIGINT"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_QUANTITY" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="PRODUCTS_MODEL" - size="12" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="PRODUCTS_IMAGE" + name="QUANTITY" required="true" type="INTEGER"/> + <column dbType="VARCHAR" javaType="String" name="MODEL" + size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="THUMBNAIL" size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="IMAGE" + size="64" type="VARCHAR"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" - name="PRODUCTS_PRICE" required="true" size="15" type="DECIMAL"/> + name="PRICE" required="true" size="15" type="DECIMAL"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="PRODUCTS_DATE_ADDED" required="true" type="TIMESTAMP"/> + name="DATE_ADDED" required="true" type="TIMESTAMP"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="PRODUCTS_LAST_MODIFIED" type="TIMESTAMP"/> + name="LAST_MODIFIED" type="TIMESTAMP"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="PRODUCTS_DATE_AVAILABLE" type="TIMESTAMP"/> + name="DATE_AVAILABLE" type="TIMESTAMP"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" - name="PRODUCTS_WEIGHT" required="true" size="5" type="DECIMAL"/> + name="WEIGHT" required="true" size="5" type="DECIMAL"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_STATUS" required="true" type="INTEGER"/> + name="STATUS" required="true" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_TAX_CLASS_ID" required="true" type="INTEGER"/> + name="TAX_CLASS_ID" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="MANUFACTURERS_ID" type="INTEGER"/> + name="MANUFACTURER_ID" type="INTEGER"/> <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="PRODUCTS_ORDERED" + javaType="java.math.BigDecimal" name="ORDERED" required="true" type="INTEGER"/> - <foreign-key foreignTable="MANUFACTURERS" name="SQL070831021755391"> - <reference foreign="MANUFACTURERS_ID" local="MANUFACTURERS_ID"/> + <foreign-key foreignTable="MANUFACTURER" name="SQL070831021755391"> + <reference foreign="MANUFACTURER_ID" local="MANUFACTURER_ID"/> </foreign-key> <foreign-key foreignTable="TAX_CLASS" name="FK_PRODUCTS_2"> - <reference foreign="TAX_CLASS_ID" local="PRODUCTS_TAX_CLASS_ID"/> + <reference foreign="TAX_CLASS_ID" local="TAX_CLASS_ID"/> </foreign-key> </table> - <table name="PRODUCTS_ATTRIBUTES" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="PRODUCT_ATTRIBUTE" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" - name="PRODUCTS_ATTRIBUTES_ID" primaryKey="true" - required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="OPTIONS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="OPTIONS_VALUES_ID" required="true" type="INTEGER"/> + javaType="java.math.BigDecimal" name="PRODUCT_ATTRIBUTE_ID" + primaryKey="true" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_OPTION_ID" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_OPTION_VALUE_ID" required="true" type="BIGINT"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" - name="OPTIONS_VALUES_PRICE" required="true" size="15" type="DECIMAL"/> + name="OPTION_VALUE_PRICE" required="true" size="15" type="DECIMAL"/> <column dbType="CHAR" javaType="String" name="PRICE_PREFIX" required="true" size="1" type="CHAR"/> - <foreign-key foreignTable="PRODUCTS" name="SQL070831021756760"> - <reference foreign="PRODUCTS_ID" local="PRODUCTS_ID"/> + <foreign-key foreignTable="PRODUCT" name="SQL070831021756760"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS_OPTIONS" name="FK_PRODUCTS_ATTRIBUTES_2"> - <reference foreign="PRODUCTS_OPTIONS_ID" local="OPTIONS_ID"/> + <foreign-key foreignTable="PRODUCT_OPTION" name="FK_PRODUCTS_ATTRIBUTES_2"> + <reference foreign="PRODUCT_OPTION_ID" local="PRODUCT_OPTION_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS_OPTIONS_VALUES" name="FK_PRODUCTS_ATTRIBUTES_3"> - <reference foreign="PRODUCTS_OPTIONS_VALUES_ID" local="OPTIONS_VALUES_ID"/> + <foreign-key foreignTable="PRODUCT_OPTION_VALUE" name="FK_PRODUCTS_ATTRIBUTES_3"> + <reference foreign="PRODUCT_OPTION_VALUE_ID" local="PRODUCT_OPTION_VALUE_ID"/> </foreign-key> </table> - <table name="PRODUCTS_ATTRIBUTES_DOWNLOAD" schema="APP" type="TABLE"> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_ATTRIBUTES_ID" primaryKey="true" - required="true" type="INTEGER"/> + <table name="PRODUCT_ATTRIBUTE_DOWNLOAD" schema="APP" type="TABLE"> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ATTRIBUTE_ID" primaryKey="true" + required="true" type="BIGINT"/> <column dbType="VARCHAR" default="" javaType="String" - name="PRODUCTS_ATTRIBUTES_FILENAME" required="true" - size="255" type="VARCHAR"/> + name="FILENAME" required="true" size="255" type="VARCHAR"/> <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" - name="PRODUCTS_ATTRIBUTES_MAXDAYS" type="INTEGER"/> + javaType="java.math.BigDecimal" name="MAXDAYS" type="INTEGER"/> <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" - name="PRODUCTS_ATTRIBUTES_MAXCOUNT" type="INTEGER"/> - <foreign-key foreignTable="PRODUCTS_ATTRIBUTES" name="FK_PRODUCTS_ATTRIBUTES_DOWNLOAD_1"> - <reference foreign="PRODUCTS_ATTRIBUTES_ID" local="PRODUCTS_ATTRIBUTES_ID"/> + javaType="java.math.BigDecimal" name="MAXCOUNT" type="INTEGER"/> + <foreign-key foreignTable="PRODUCT_ATTRIBUTE" name="FK_PRODUCTS_ATTRIBUTES_DOWNLOAD_1"> + <reference foreign="PRODUCT_ATTRIBUTE_ID" local="PRODUCT_ATTRIBUTE_ID"/> </foreign-key> </table> - <table name="PRODUCTS_DESCRIPTION" schema="APP" type="TABLE"> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_ID" primaryKey="true" required="true" type="INTEGER"/> + <table name="PRODUCT_DESCRIPTION" schema="APP" type="TABLE"> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" primaryKey="true" required="true" type="BIGINT"/> <column dbType="INTEGER" default="1" javaType="java.math.BigDecimal" name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> <column dbType="VARCHAR" default="" javaType="String" - name="PRODUCTS_NAME" required="true" size="64" type="VARCHAR"/> + name="NAME" required="true" size="64" type="VARCHAR"/> <column dbType="LONG VARCHAR" javaType="String" - name="PRODUCTS_DESCRIPTION" size="32700" type="LONGVARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="PRODUCTS_URL" - size="255" type="VARCHAR"/> + name="DESCRIPTION" size="32700" type="LONGVARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="URL" size="255" type="VARCHAR"/> <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="PRODUCTS_VIEWED" type="INTEGER"/> - <foreign-key foreignTable="LANGUAGES" name="FK_PRODUCTS_DESCRIPTION_2"> - <reference foreign="LANGUAGES_ID" local="LANGUAGE_ID"/> + javaType="java.math.BigDecimal" name="VIEWED" type="INTEGER"/> + <foreign-key foreignTable="LANGUAGE" name="FK_PRODUCTS_DESCRIPTION_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS" name="SQL070831021755591"> - <reference foreign="PRODUCTS_ID" local="PRODUCTS_ID"/> + <foreign-key foreignTable="PRODUCT" name="SQL070831021755591"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> </foreign-key> </table> - <table name="PRODUCTS_NOTIFICATIONS" schema="APP" type="TABLE"> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMERS_ID" primaryKey="true" required="true" type="INTEGER"/> + <table name="PRODUCT_NOTIFICATION" schema="APP" type="TABLE"> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" primaryKey="true" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="CUSTOMER_ID" primaryKey="true" required="true" type="BIGINT"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="DATE_ADDED" required="true" type="TIMESTAMP"/> - <foreign-key foreignTable="CUSTOMERS" name="FK_PRODUCTS_NOTIFICATIONS_2"> - <reference foreign="CUSTOMERS_ID" local="CUSTOMERS_ID"/> + <foreign-key foreignTable="CUSTOMER" name="FK_PRODUCTS_NOTIFICATIONS_2"> + <reference foreign="CUSTOMER_ID" local="CUSTOMER_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS" name="FK_PRODUCTS_NOTIFICATIONS_1"> - <reference foreign="PRODUCTS_ID" local="PRODUCTS_ID"/> + <foreign-key foreignTable="PRODUCT" name="FK_PRODUCTS_NOTIFICATIONS_1"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> </foreign-key> </table> - <table name="PRODUCTS_OPTIONS" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="PRODUCT_OPTION" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="PRODUCTS_OPTIONS_ID" - primaryKey="true" required="true" type="INTEGER"/> + javaType="java.math.BigDecimal" name="PRODUCT_OPTION_ID" + primaryKey="true" required="true" type="BIGINT"/> </table> - <table name="PRODUCTS_OPTIONS_DESCRIPTION" schema="APP" type="TABLE"> + <table name="PRODUCT_OPTION_DESCRIPTION" schema="APP" type="TABLE"> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_OPTION_ID" primaryKey="true" required="true" type="BIGINT"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_OPTIONS_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="PRODUCTS_OPTIONS_NAME" required="true" size="32" type="VARCHAR"/> - <foreign-key foreignTable="LANGUAGES" name="FK_PRODUCTS_OPTIONS_DESCRIPTION_2"> - <reference foreign="LANGUAGES_ID" local="LANGUAGE_ID"/> + <column dbType="VARCHAR" javaType="String" name="NAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="DESCRIPTION" + size="255" type="VARCHAR"/> + <foreign-key foreignTable="LANGUAGE" name="FK_PRODUCTS_OPTIONS_DESCRIPTION_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS_OPTIONS" name="FK_PRODUCTS_OPTIONS_DESCRIPTION_1"> - <reference foreign="PRODUCTS_OPTIONS_ID" local="PRODUCTS_OPTIONS_ID"/> + <foreign-key foreignTable="PRODUCT_OPTION" name="FK_PRODUCTS_OPTIONS_DESCRIPTION_1"> + <reference foreign="PRODUCT_OPTION_ID" local="PRODUCT_OPTION_ID"/> </foreign-key> </table> - <table name="PRODUCTS_OPTIONS_VALUES" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="PRODUCT_OPTION_VALUE" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" - name="PRODUCTS_OPTIONS_VALUES_ID" primaryKey="true" - required="true" type="INTEGER"/> + name="PRODUCT_OPTION_VALUE_ID" primaryKey="true" + required="true" type="BIGINT"/> </table> - <table name="PRODUCTS_OPTIONS_VALUES_DESCRIPTION" schema="APP" type="TABLE"> + <table name="PRODUCT_OPTION_VALUE_DESCRIPTION" schema="APP" type="TABLE"> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_OPTION_VALUE_ID" primaryKey="true" + required="true" type="BIGINT"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_OPTIONS_VALUES_ID" primaryKey="true" - required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="PRODUCTS_OPTIONS_VALUES_NAME" required="true" - size="64" type="VARCHAR"/> - <foreign-key foreignTable="LANGUAGES" name="FK_PRODUCTS_OPTIONS_VALUES_DESCRIPTION_2"> - <reference foreign="LANGUAGES_ID" local="LANGUAGE_ID"/> + <column dbType="VARCHAR" javaType="String" name="NAME" + required="true" size="64" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="DESCRIPTION" + size="255" type="VARCHAR"/> + <foreign-key foreignTable="LANGUAGE" name="FK_PRODUCTS_OPTIONS_VALUES_DESCRIPTION_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS_OPTIONS_VALUES" name="FK_PRODUCTS_OPTIONS_VALUES_DESCRIPTION_1"> - <reference foreign="PRODUCTS_OPTIONS_VALUES_ID" local="PRODUCTS_OPTIONS_VALUES_ID"/> + <foreign-key foreignTable="PRODUCT_OPTION_VALUE" name="FK_PRODUCTS_OPTIONS_VALUES_DESCRIPTION_1"> + <reference foreign="PRODUCT_OPTION_VALUE_ID" local="PRODUCT_OPTION_VALUE_ID"/> </foreign-key> </table> - <table name="PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS" - schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="PRODUCT_OPTION_VALUE_TO_PRODUCT_OPTION" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" - name="PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS_ID" - primaryKey="true" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_OPTIONS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_OPTIONS_VALUES_ID" required="true" type="INTEGER"/> - <foreign-key foreignTable="PRODUCTS_OPTIONS" name="FK_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS_1"> - <reference foreign="PRODUCTS_OPTIONS_ID" local="PRODUCTS_OPTIONS_ID"/> + javaType="java.math.BigDecimal" name="ASSOCIATION_ID" + primaryKey="true" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_OPTION_ID" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_OPTION_VALUE_ID" required="true" type="BIGINT"/> + <foreign-key foreignTable="PRODUCT_OPTION" name="FK_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS_1"> + <reference foreign="PRODUCT_OPTION_ID" local="PRODUCT_OPTION_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS_OPTIONS_VALUES" name="FK_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS_2"> - <reference foreign="PRODUCTS_OPTIONS_VALUES_ID" local="PRODUCTS_OPTIONS_VALUES_ID"/> + <foreign-key foreignTable="PRODUCT_OPTION_VALUE" name="FK_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS_2"> + <reference foreign="PRODUCT_OPTION_VALUE_ID" local="PRODUCT_OPTION_VALUE_ID"/> </foreign-key> </table> - <table name="PRODUCTS_TO_CATEGORIES" schema="APP" type="TABLE"> + <table name="PRODUCT_TO_CATEGORY" schema="APP" type="TABLE"> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" primaryKey="true" required="true" type="BIGINT"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CATEGORIES_ID" primaryKey="true" required="true" type="INTEGER"/> + name="CATEGORY_ID" primaryKey="true" required="true" type="INTEGER"/> <column dbType="VARCHAR" javaType="String" name="COMMENT" - size="40" type="VARCHAR"/> - <foreign-key foreignTable="CATEGORIES" name="FK_PRODUCTS_TO_CATEGORIES_2"> - <reference foreign="CATEGORIES_ID" local="CATEGORIES_ID"/> + size="64" type="VARCHAR"/> + <foreign-key foreignTable="CATEGORY" name="FK_PRODUCTS_TO_CATEGORIES_2"> + <reference foreign="CATEGORY_ID" local="CATEGORY_ID"/> </foreign-key> - <foreign-key foreignTable="PRODUCTS" name="SQL070831021755780"> - <reference foreign="PRODUCTS_ID" local="PRODUCTS_ID"/> + <foreign-key foreignTable="PRODUCT" name="SQL070831021755780"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> </foreign-key> </table> - <table name="REVIEWS" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" + <table name="REVIEW" schema="APP" type="TABLE"> + <column autoIncrement="true" dbType="BIGINT" default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="REVIEWS_ID" - primaryKey="true" required="true" type="INTEGER"/> + javaType="java.math.BigDecimal" name="REVIEW_ID" + primaryKey="true" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="PRODUCT_ID" required="true" type="BIGINT"/> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="CUSTOMER_ID" type="BIGINT"/> + <column dbType="VARCHAR" javaType="String" + name="CUSTOMER_NICKNAME" required="true" size="64" type="VARCHAR"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_ID" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMERS_ID" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="CUSTOMERS_NAME" - required="true" size="64" type="VARCHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="REVIEWS_RATING" type="INTEGER"/> + name="RATING" type="INTEGER"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="DATE_ADDED" type="TIMESTAMP"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="LAST_MODIFIED" type="TIMESTAMP"/> - <column dbType="INTEGER" default="0" - javaType="java.math.BigDecimal" name="REVIEWS_READ" - required="true" type="INTEGER"/> - <foreign-key foreignTable="PRODUCTS" name="FK_REVIEWS_1"> - <reference foreign="PRODUCTS_ID" local="PRODUCTS_ID"/> + <foreign-key foreignTable="CUSTOMER" name="FK_REVIEWS_2"> + <reference foreign="CUSTOMER_ID" local="CUSTOMER_ID"/> </foreign-key> + <foreign-key foreignTable="PRODUCT" name="FK_REVIEWS_1"> + <reference foreign="PRODUCT_ID" local="PRODUCT_ID"/> + </foreign-key> </table> - <table name="REVIEWS_DESCRIPTION" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" - default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="REVIEWS_ID" - primaryKey="true" required="true" type="INTEGER"/> + <table name="REVIEW_DESCRIPTION" schema="APP" type="TABLE"> + <column dbType="BIGINT" javaType="java.math.BigDecimal" + name="REVIEW_ID" primaryKey="true" required="true" type="BIGINT"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="LANGUAGES_ID" primaryKey="true" required="true" type="INTEGER"/> + name="LANGUAGE_ID" primaryKey="true" required="true" type="INTEGER"/> <column dbType="LONG VARCHAR" javaType="String" - name="REVIEWS_TEXT" required="true" size="32700" type="LONGVARCHAR"/> - <foreign-key foreignTable="LANGUAGES" name="FK_REVIEWS_DESCRIPTION_2"> - <reference foreign="LANGUAGES_ID" local="LANGUAGES_ID"/> + name="REVIEW_TEXT" required="true" size="32700" type="LONGVARCHAR"/> + <foreign-key foreignTable="LANGUAGE" name="FK_REVIEWS_DESCRIPTION_2"> + <reference foreign="LANGUAGE_ID" local="LANGUAGE_ID"/> </foreign-key> - <foreign-key foreignTable="REVIEWS" name="FK_REVIEWS_DESCRIPTION_1"> - <reference foreign="REVIEWS_ID" local="REVIEWS_ID"/> + <foreign-key foreignTable="REVIEW" name="FK_REVIEWS_DESCRIPTION_1"> + <reference foreign="REVIEW_ID" local="REVIEW_ID"/> </foreign-key> </table> - <table name="SESSIONS" schema="APP" type="TABLE"> - <column dbType="VARCHAR" javaType="String" name="SESSKEY" - primaryKey="true" required="true" size="32" type="VARCHAR"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="EXPIRY" required="true" type="INTEGER"/> - <column dbType="LONG VARCHAR" javaType="String" name="VALUE" - required="true" size="32700" type="LONGVARCHAR"/> - </table> - <table name="SPECIALS" schema="APP" type="TABLE"> - <column autoIncrement="true" dbType="INTEGER" - default="GENERATED_BY_DEFAULT" - javaType="java.math.BigDecimal" name="SPECIALS_ID" - primaryKey="true" required="true" type="INTEGER"/> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="PRODUCTS_ID" required="true" type="INTEGER"/> - <column dbType="DECIMAL" javaType="java.math.BigDecimal" - name="SPECIALS_NEW_PRODUCTS_PRICE" required="true" size="15" type="DECIMAL"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="SPECIALS_DATE_ADDED" type="TIMESTAMP"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="SPECIALS_LAST_MODIFIED" type="TIMESTAMP"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="EXPIRES_DATE" type="TIMESTAMP"/> - <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" - name="DATE_STATUS_CHANGE" type="TIMESTAMP"/> - <column dbType="INTEGER" default="1" - javaType="java.math.BigDecimal" name="STATUS" - required="true" type="INTEGER"/> - <foreign-key foreignTable="PRODUCTS" name="FK_SPECIALS_1"> - <reference foreign="PRODUCTS_ID" local="PRODUCTS_ID"/> - </foreign-key> - </table> <table name="TAX_CLASS" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" name="TAX_CLASS_ID" primaryKey="true" required="true" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" - name="TAX_CLASS_TITLE" required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="TAX_CLASS_DESCRIPTION" required="true" size="255" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="NAME" + required="true" size="32" type="VARCHAR"/> + <column dbType="VARCHAR" javaType="String" name="DESCRIPTION" + required="true" size="255" type="VARCHAR"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="LAST_MODIFIED" type="TIMESTAMP"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="DATE_ADDED" required="true" type="TIMESTAMP"/> </table> - <table name="TAX_RATES" schema="APP" type="TABLE"> + <table name="TAX_RATE" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" name="TAX_RATES_ID" primaryKey="true" required="true" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="TAX_ZONE_ID" required="true" type="INTEGER"/> + name="ZONE_ID" required="true" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" name="TAX_CLASS_ID" required="true" type="INTEGER"/> <column dbType="INTEGER" default="1" - javaType="java.math.BigDecimal" name="TAX_PRIORITY" type="INTEGER"/> + javaType="java.math.BigDecimal" name="PRIORITY" type="INTEGER"/> <column dbType="DECIMAL" javaType="java.math.BigDecimal" - name="TAX_RATE" required="true" size="7" type="DECIMAL"/> - <column dbType="VARCHAR" javaType="String" - name="TAX_DESCRIPTION" required="true" size="255" type="VARCHAR"/> + name="RATE" required="true" size="7" type="DECIMAL"/> + <column dbType="VARCHAR" javaType="String" name="DESCRIPTION" + required="true" size="255" type="VARCHAR"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="LAST_MODIFIED" type="TIMESTAMP"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" @@ -1010,51 +944,32 @@ <foreign-key foreignTable="TAX_CLASS" name="FK_TAX_RATES_1"> <reference foreign="TAX_CLASS_ID" local="TAX_CLASS_ID"/> </foreign-key> - <foreign-key foreignTable="ZONES" name="FK_TAX_RATES_2"> - <reference foreign="ZONE_ID" local="TAX_ZONE_ID"/> + <foreign-key foreignTable="ZONE" name="FK_TAX_RATES_2"> + <reference foreign="ZONE_ID" local="ZONE_ID"/> </foreign-key> </table> - <table name="WHOS_ONLINE" schema="APP" type="TABLE"> - <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="CUSTOMER_ID" type="INTEGER"/> - <column dbType="VARCHAR" javaType="String" name="FULL_NAME" - required="true" size="64" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="SESSION_ID" - required="true" size="128" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="IP_ADDRESS" - required="true" size="15" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="TIME_ENTRY" - required="true" size="14" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" - name="TIME_LAST_CLICK" required="true" size="14" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="LAST_PAGE_URL" - required="true" size="255" type="VARCHAR"/> - <foreign-key foreignTable="CUSTOMERS" name="FK_WHOS_ONLINE_1"> - <reference foreign="CUSTOMERS_ID" local="CUSTOMER_ID"/> - </foreign-key> - </table> - <table name="ZONES" schema="APP" type="TABLE"> + <table name="ZONE" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" name="ZONE_ID" primaryKey="true" required="true" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ZONE_COUNTRY_ID" required="true" type="INTEGER"/> + name="COUNTRY_ID" required="true" type="INTEGER"/> <column dbType="VARCHAR" javaType="String" name="ZONE_CODE" required="true" size="32" type="VARCHAR"/> - <column dbType="VARCHAR" javaType="String" name="ZONE_NAME" + <column dbType="VARCHAR" javaType="String" name="NAME" required="true" size="32" type="VARCHAR"/> - <foreign-key foreignTable="COUNTRIES" name="FK_ZONES_1"> - <reference foreign="COUNTRIES_ID" local="ZONE_COUNTRY_ID"/> + <foreign-key foreignTable="COUNTRY" name="FK_ZONES_1"> + <reference foreign="COUNTRY_ID" local="COUNTRY_ID"/> </foreign-key> </table> - <table name="ZONES_TO_GEO_ZONES" schema="APP" type="TABLE"> + <table name="ZONE_TO_GEO_ZONE" schema="APP" type="TABLE"> <column autoIncrement="true" dbType="INTEGER" default="GENERATED_BY_DEFAULT" javaType="java.math.BigDecimal" name="ASSOCIATION_ID" primaryKey="true" required="true" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" - name="ZONE_COUNTRY_ID" required="true" type="INTEGER"/> + name="COUNTRY_ID" required="true" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" name="ZONE_ID" type="INTEGER"/> <column dbType="INTEGER" javaType="java.math.BigDecimal" @@ -1063,10 +978,13 @@ name="LAST_MODIFIED" type="TIMESTAMP"/> <column dbType="TIMESTAMP" javaType="java.sql.Timestamp" name="DATE_ADDED" required="true" type="TIMESTAMP"/> - <foreign-key foreignTable="GEO_ZONES" name="FK_ZONES_TO_GEO_ZONES_2"> + <foreign-key foreignTable="COUNTRY" name="FK_ZONES_TO_GEO_ZONES_3"> + <reference foreign="COUNTRY_ID" local="COUNTRY_ID"/> + </foreign-key> + <foreign-key foreignTable="GEO_ZONE" name="FK_ZONES_TO_GEO_ZONES_2"> <reference foreign="GEO_ZONE_ID" local="GEO_ZONE_ID"/> </foreign-key> - <foreign-key foreignTable="ZONES" name="FK_ZONES_TO_GEO_ZONES_1"> + <foreign-key foreignTable="ZONE" name="FK_ZONES_TO_GEO_ZONES_1"> <reference foreign="ZONE_ID" local="ZONE_ID"/> </foreign-key> </table> Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsAddressBookBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsAddressBookBhv.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsAddressBookBhv.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,893 @@ +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 ADDRESS_BOOK. + * + * <pre> + * [primary-key] + * ADDRESS_BOOK_ID + * + * [column-property] + * ADDRESS_BOOK_ID, CUSTOMER_ID, COMPANY, DEPARTMENT, FIRSTNAME, LASTNAME, STREET_ADDRESS, SUBURB, CITY, STATE, POSTCODE, TELEPHONE, FAX, CELLPHONE, DEFAULT_ADDRESS, LANGUAGE_ID, COUNTRY_ID, ZONE_ID + * + * [foreign-property] + * country, customer, language, zone + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * addressBookId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsAddressBookBhv extends jp.sf.pal.pompei.allcommon.bhv.AbstractBehaviorWritable { + + // =================================================================================== + // Attribute + // ========= + /** Dao instance. */ + protected AddressBookDao _dao; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsAddressBookBhv() { + } + + // =================================================================================== + // Table name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return "ADDRESS_BOOK"; + } + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return AddressBookDbm.getInstance(); + } + + /** + * Get my dbmeta. + * + * @return DBMeta. (NotNull) + */ + public AddressBookDbm getMyDBMeta() { + return AddressBookDbm.getInstance(); + } + + // =================================================================================== + // Dao Accessor + // ============ + /** + * Get my dao. + * + * @return My dao. + */ + public AddressBookDao getMyDao() { + return _dao; + } + + /** + * Set my dao. + * + * @param dao My dao. (NotNull) + */ + public void setMyDao(AddressBookDao 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 AddressBook newMyEntity() { + return new AddressBook(); + } + + /** + * New my condition-bean. + * + * @return My condition-bean. (NotNull) + */ + public AddressBookCB newMyConditionBean() { + return new AddressBookCB(); + } + + // =================================================================================== + // 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<AddressBook> delegateGetListAll() { + return getMyDao().getListAll(); + } + + // + // Get entity. {delegate method, internal for interceptor} + // + // @param Primary-keys (NotNull) + // @return Entity. (NotNull) + // + public AddressBook delegateGetEntity(java.math.BigDecimal addressBookId) { + return getMyDao().getEntity(addressBookId); + } + + /** + * Select count by condition-bean. {delegate method, internal for interceptor} + * + * @param cb Condition-bean. (NotNull) + * @return Selected count. (NotNull) + */ + public int delegateSelectCount(AddressBookCB 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 AddressBook delegateSelectEntity(AddressBookCB 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<AddressBook> delegateSelectList(AddressBookCB 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(AddressBook 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(AddressBook 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(AddressBook 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<AddressBook> 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<AddressBook> 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<AddressBook> 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(AddressBookCB 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 AddressBook selectEntity(AddressBookCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<AddressBook> 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 (AddressBook)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 AddressBook selectEntityWithDeletedCheck(AddressBookCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<AddressBook> 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 (AddressBook)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 AddressBook selectByPKValueWithDeletedCheck(java.math.BigDecimal addressBookId) { + AddressBook entity = new AddressBook(); + entity.setAddressBookId(addressBookId); + final AddressBookCB 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<AddressBook> selectList(AddressBookCB cb) { + assertConditionBeanNotNull(cb); + return new ResultBeanBuilder<AddressBook>(this).buildListResultBean(cb, delegateSelectList(cb)); + } + + /** + * Select page as result-bean. + * + * @param cb Condition-bean. (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<AddressBook> selectPage(final AddressBookCB cb) { + assertConditionBeanNotNull(cb); + return selectPage(cb, new SelectPageSimpleInvoker<AddressBook>(this)); + } + + /** + * Select page. + * + * @param cb Condition-bean. (NotNull) + * @param invoker Select-page-invoker (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<AddressBook> selectPage(final AddressBookCB cb, SelectPageInvoker<AddressBook> invoker) { + assertConditionBeanNotNull(cb); + final SelectPageCallback<AddressBook> pageCallback = new SelectPageCallback<AddressBook>() { + public PagingBean getPagingBean() { return cb; } + public int selectCountIgnoreFetchScope() { + return selectCount(cb); + } + public java.util.List<AddressBook> 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(AddressBookCB cb, ValueLabelSetupper<AddressBook> valueLabelSetupper) { + return createValueLabelList(selectList(cb), valueLabelSetupper); + } + + // =================================================================================== + // Load Referer + // ============ + + // =================================================================================== + // Pull Out Foreign + // ================ + + /** + * Pull out the list of foreign table 'Country'. + * + * @param addressBookList The list of addressBook. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public java.util.List<Country> pulloutCountry(java.util.List<AddressBook> addressBookList) { + assertObjectNotNull("addressBookList", addressBookList); + final java.util.Set<Country> foreignSet = new java.util.LinkedHashSet<Country>(); + for (java.util.Iterator ite = addressBookList.iterator(); ite.hasNext(); ) { + final AddressBook addressBook = (AddressBook)ite.next(); + final Country foreignEntity = addressBook.getCountry(); + if (foreignEntity == null || foreignSet.contains(foreignEntity)) { + continue; + } + foreignSet.add(foreignEntity); + } + return new java.util.ArrayList<Country>(foreignSet); + } + + /** + * Pull out the list of foreign table 'Customer'. + * + * @param addressBookList The list of addressBook. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public java.util.List<Customer> pulloutCustomer(java.util.List<AddressBook> addressBookList) { + assertObjectNotNull("addressBookList", addressBookList); + final java.util.Set<Customer> foreignSet = new java.util.LinkedHashSet<Customer>(); + for (java.util.Iterator ite = addressBookList.iterator(); ite.hasNext(); ) { + final AddressBook addressBook = (AddressBook)ite.next(); + final Customer foreignEntity = addressBook.getCustomer(); + if (foreignEntity == null || foreignSet.contains(foreignEntity)) { + continue; + } + foreignSet.add(foreignEntity); + } + return new java.util.ArrayList<Customer>(foreignSet); + } + + /** + * Pull out the list of foreign table 'Language'. + * + * @param addressBookList The list of addressBook. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public java.util.List<Language> pulloutLanguage(java.util.List<AddressBook> addressBookList) { + assertObjectNotNull("addressBookList", addressBookList); + final java.util.Set<Language> foreignSet = new java.util.LinkedHashSet<Language>(); + for (java.util.Iterator ite = addressBookList.iterator(); ite.hasNext(); ) { + final AddressBook addressBook = (AddressBook)ite.next(); + final Language foreignEntity = addressBook.getLanguage(); + if (foreignEntity == null || foreignSet.contains(foreignEntity)) { + continue; + } + foreignSet.add(foreignEntity); + } + return new java.util.ArrayList<Language>(foreignSet); + } + + /** + * Pull out the list of foreign table 'Zone'. + * + * @param addressBookList The list of addressBook. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public java.util.List<Zone> pulloutZone(java.util.List<AddressBook> addressBookList) { + assertObjectNotNull("addressBookList", addressBookList); + final java.util.Set<Zone> foreignSet = new java.util.LinkedHashSet<Zone>(); + for (java.util.Iterator ite = addressBookList.iterator(); ite.hasNext(); ) { + final AddressBook addressBook = (AddressBook)ite.next(); + final Zone foreignEntity = addressBook.getZone(); + if (foreignEntity == null || foreignSet.contains(foreignEntity)) { + continue; + } + foreignSet.add(foreignEntity); + } + return new java.util.ArrayList<Zone>(foreignSet); + } + + // =================================================================================== + // Basic Entity Update + // =================== + /** + * Insert. + * + * @param addressBook Entity. (NotNull) + */ + public void insert(AddressBook addressBook) { + assertEntityNotNull(addressBook); + delegateInsert(addressBook); + } + + protected void doCreate(Entity addressBook) { + insert((AddressBook)addressBook); + } + + /** + * 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 addressBook Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void update(AddressBook addressBook) { + assertEntityNotNull(addressBook); + final int updatedCount = delegateUpdate(addressBook); + if (updatedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(addressBook.toString()); + } else if (updatedCount > 1) { + String msg = "updatedCount=" + updatedCount + ": " + addressBook.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doModify(Entity entity) { + update((AddressBook)entity); + } + + + protected void doModifyNonstrict(Entity entity) { + update((AddressBook)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 addressBook Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void updateAfterSelect(AddressBook addressBook) { + assertEntityNotNullAndHasPrimaryKeyValue(addressBook); + final AddressBookCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(addressBook)); + final AddressBook currentEntity = selectEntityWithDeletedCheck(cb); + mergeEntity(addressBook, currentEntity); + update(currentEntity); + } + + protected void doModifyAfterSelect(Entity entity) { + updateAfterSelect((AddressBook)entity); + } + + /** + * Insert or update. {update: modified only} + * + * @param addressBook Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdate(AddressBook addressBook) { + assertEntityNotNull(addressBook); + if (!addressBook.hasPrimaryKeyValue()) { + insert(addressBook); + } else { + RuntimeException exception = null; + try { + update(addressBook); + } 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 AddressBookCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(addressBook)); + if (selectCount(cb) == 0) { + insert(addressBook); + } else { + throw exception; + } + } + } + } + + protected void doCreateOrUpdate(Entity addressBook) { + insertOrUpdate((AddressBook)addressBook); + } + + + protected void doCreateOrUpdateNonstrict(Entity entity) { + insertOrUpdate((AddressBook)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 addressBook Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdateAfterSelect(AddressBook addressBook) { + assertEntityNotNull(addressBook); + if (!addressBook.hasPrimaryKeyValue()) { + insert(addressBook); + return; + } + AddressBook currentEntity = null; + try { + final AddressBookCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(addressBook)); + currentEntity = selectEntityWithDeletedCheck(cb); + } catch (jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException e) { + insert(addressBook); + return; + } + assertEntityNotNullAndHasPrimaryKeyValue(addressBook); + mergeEntity(addressBook, currentEntity); + update(currentEntity); + } + + protected void doCreateOrModifyAfterSelect(Entity entity) { + insertOrUpdateAfterSelect((AddressBook)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 AddressBook sourceMyEntity = (AddressBook)sourceEntity; + final AddressBook destinationMyEntity = (AddressBook)destinationEntity; + destinationMyEntity.clearModifiedPropertyNames(); + final java.util.Set<String> names = sourceMyEntity.getModifiedPropertyNames(); + + if (names.contains("addressBookId")) { destinationMyEntity.setAddressBookId(sourceMyEntity.getAddressBookId()); } + if (names.contains("customerId")) { destinationMyEntity.setCustomerId(sourceMyEntity.getCustomerId()); } + if (names.contains("company")) { destinationMyEntity.setCompany(sourceMyEntity.getCompany()); } + if (names.contains("department")) { destinationMyEntity.setDepartment(sourceMyEntity.getDepartment()); } + if (names.contains("firstname")) { destinationMyEntity.setFirstname(sourceMyEntity.getFirstname()); } + if (names.contains("lastname")) { destinationMyEntity.setLastname(sourceMyEntity.getLastname()); } + if (names.contains("streetAddress")) { destinationMyEntity.setStreetAddress(sourceMyEntity.getStreetAddress()); } + if (names.contains("suburb")) { destinationMyEntity.setSuburb(sourceMyEntity.getSuburb()); } + if (names.contains("city")) { destinationMyEntity.setCity(sourceMyEntity.getCity()); } + if (names.contains("state")) { destinationMyEntity.setState(sourceMyEntity.getState()); } + if (names.contains("postcode")) { destinationMyEntity.setPostcode(sourceMyEntity.getPostcode()); } + if (names.contains("telephone")) { destinationMyEntity.setTelephone(sourceMyEntity.getTelephone()); } + if (names.contains("fax")) { destinationMyEntity.setFax(sourceMyEntity.getFax()); } + if (names.contains("cellphone")) { destinationMyEntity.setCellphone(sourceMyEntity.getCellphone()); } + if (names.contains("defaultAddress")) { destinationMyEntity.setDefaultAddress(sourceMyEntity.getDefaultAddress()); } + if (names.contains("languageId")) { destinationMyEntity.setLanguageId(sourceMyEntity.getLanguageId()); } + if (names.contains("countryId")) { destinationMyEntity.setCountryId(sourceMyEntity.getCountryId()); } + if (names.contains("zoneId")) { destinationMyEntity.setZoneId(sourceMyEntity.getZoneId()); } + + } + + /** + * Delete. + * + * @param addressBook Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void delete(AddressBook addressBook) { + assertEntityNotNull(addressBook); + final int deletedCount = delegateDelete(addressBook); + if (deletedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(addressBook.toString()); + } else if (deletedCount > 1) { + String msg = "deletedCount=" + deletedCount + ": " + addressBook.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doRemove(Entity addressBook) { + delete((AddressBook)addressBook); + } + + /** + * 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 addressBook Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void deleteAfterSelect(AddressBook addressBook) { + assertEntityNotNullAndHasPrimaryKeyValue(addressBook); + final AddressBookCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(addressBook)); + selectEntityWithDeletedCheck(cb); + delete(addressBook); + } + + protected void doRemoveAfterSelect(Entity entity) { + deleteAfterSelect((AddressBook)entity); + } + + // =================================================================================== + // Basic Batch Update + // ================== + /** + * Insert list. + * + * @param addressBookList Entity-list. (NotNull & NotEmpty) + * @return Inserted count. + */ + public int insertList(java.util.List<AddressBook> addressBookList) { + assertListNotNullAndNotEmpty(addressBookList); + return delegateInsertList(addressBookList); + } + + /** + * Update list. + * + * @param addressBookList Entity-list. (NotNull & NotEmpty) + * @return Updated count. + */ + public int updateList(java.util.List<AddressBook> addressBookList) { + assertListNotNullAndNotEmpty(addressBookList); + return delegateUpdateList(addressBookList); + } + + /** + * Delete list. + * + * @param addressBookList Entity-list. (NotNull & NotEmpty) + * @return Deleted count. + */ + public int deleteList(java.util.List<AddressBook> addressBookList) { + assertListNotNullAndNotEmpty(addressBookList); + return delegateDeleteList(addressBookList); + } + + // =================================================================================== + // Various Insert + // ============== + + /* (non-javadoc) + * Copy-insert. + * + * @param primaryKey Primary-keys. (NotNull) + * @return Inserted count. + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public int copyInsertByPKValueAfterSelect(java.math.BigDecimal addressBookId) { + AddressBook entity = new AddressBook(); + entity.setAddressBookId(addressBookId); + final AddressBookCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(entity)); + final AddressBook currentEntity = selectEntityWithDeletedCheck(cb); + return delegateInsert(currentEntity); + } + + /** + * Filter 'copy-insert' entity. + * + * @param addressBook Entity. (NotNull) + */ + protected void filterCopyInsertEntity(AddressBook addressBook) { + } + + // =================================================================================== + // Hierarchy + // ========= + /** + * Create the basic request of hierarchy of AddressBook.. + * + * @param sourceList The list of source. (NotNull) + * @param <SOURCE> The type of source. + * @return Hierarchy request of AddressBook. (NotNull) + */ + public <SOURCE> HierarchyBasicRequest<AddressBook, AddressBookDbm.AddressBookRelationTrace> createHierarchyBasicRequest(java.util.List<SOURCE> sourceList) { + final HierarchyBasicRequest<AddressBook, AddressBookDbm.AddressBookRelationTrace> request = new HierarchyBasicRequest<AddressBook, AddressBookDbm.AddressBookRelationTrace>(AddressBook.class); + request.registerSourceList(sourceList); + return request; + } + + /** + * Arrange hierarchy. + * + * @param request Hierarchy request of AddressBook. (NotNull) + * @return The list of AddressBook. (NotNull) + */ + public java.util.List<AddressBook> arrangeHierarchy(HierarchyRequest<AddressBook> request) { + return new HierarchyArranger<AddressBook>().arrangeHierarchy(request); + } + + // =================================================================================== + // CBSetupper + // ========== + /** + * The interface of condition-bean setupper. + */ + public static interface CBSetupper extends ConditionBeanSetupper<AddressBookCB> { + + /** + * Set up condition. + * + * @param cb Condition-bean. (NotNull) + */ + public void setup(AddressBookCB cb); + } +} Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodBhv.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodBhv.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,1096 @@ +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.exbhv.*; + +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 DELIVERY_METHOD. + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID + * + * [column-property] + * DELIVERY_METHOD_ID, CODE, OBJECT_NAME, STATUS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * + * [foreign-property] + * + * + * [refferer-property] + * deliveryMethodDescriptionList, orderFormList + * + * [sequence] + * + * + * [identity] + * deliveryMethodId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsDeliveryMethodBhv extends jp.sf.pal.pompei.allcommon.bhv.AbstractBehaviorWritable { + + // =================================================================================== + // Attribute + // ========= + /** Dao instance. */ + protected DeliveryMethodDao _dao; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsDeliveryMethodBhv() { + } + + // =================================================================================== + // Table name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return "DELIVERY_METHOD"; + } + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return DeliveryMethodDbm.getInstance(); + } + + /** + * Get my dbmeta. + * + * @return DBMeta. (NotNull) + */ + public DeliveryMethodDbm getMyDBMeta() { + return DeliveryMethodDbm.getInstance(); + } + + // =================================================================================== + // Dao Accessor + // ============ + /** + * Get my dao. + * + * @return My dao. + */ + public DeliveryMethodDao getMyDao() { + return _dao; + } + + /** + * Set my dao. + * + * @param dao My dao. (NotNull) + */ + public void setMyDao(DeliveryMethodDao 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 DeliveryMethod newMyEntity() { + return new DeliveryMethod(); + } + + /** + * New my condition-bean. + * + * @return My condition-bean. (NotNull) + */ + public DeliveryMethodCB newMyConditionBean() { + return new DeliveryMethodCB(); + } + + // =================================================================================== + // 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<DeliveryMethod> delegateGetListAll() { + return getMyDao().getListAll(); + } + + // + // Get entity. {delegate method, internal for interceptor} + // + // @param Primary-keys (NotNull) + // @return Entity. (NotNull) + // + public DeliveryMethod delegateGetEntity(java.math.BigDecimal deliveryMethodId) { + return getMyDao().getEntity(deliveryMethodId); + } + + /** + * Select count by condition-bean. {delegate method, internal for interceptor} + * + * @param cb Condition-bean. (NotNull) + * @return Selected count. (NotNull) + */ + public int delegateSelectCount(DeliveryMethodCB 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 DeliveryMethod delegateSelectEntity(DeliveryMethodCB 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<DeliveryMethod> delegateSelectList(DeliveryMethodCB 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(DeliveryMethod 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(DeliveryMethod 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(DeliveryMethod 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<DeliveryMethod> 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<DeliveryMethod> 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<DeliveryMethod> 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(DeliveryMethodCB 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 DeliveryMethod selectEntity(DeliveryMethodCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<DeliveryMethod> 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 (DeliveryMethod)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 DeliveryMethod selectEntityWithDeletedCheck(DeliveryMethodCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<DeliveryMethod> 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 (DeliveryMethod)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 DeliveryMethod selectByPKValueWithDeletedCheck(java.math.BigDecimal deliveryMethodId) { + DeliveryMethod entity = new DeliveryMethod(); + entity.setDeliveryMethodId(deliveryMethodId); + final DeliveryMethodCB 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<DeliveryMethod> selectList(DeliveryMethodCB cb) { + assertConditionBeanNotNull(cb); + return new ResultBeanBuilder<DeliveryMethod>(this).buildListResultBean(cb, delegateSelectList(cb)); + } + + /** + * Select page as result-bean. + * + * @param cb Condition-bean. (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<DeliveryMethod> selectPage(final DeliveryMethodCB cb) { + assertConditionBeanNotNull(cb); + return selectPage(cb, new SelectPageSimpleInvoker<DeliveryMethod>(this)); + } + + /** + * Select page. + * + * @param cb Condition-bean. (NotNull) + * @param invoker Select-page-invoker (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<DeliveryMethod> selectPage(final DeliveryMethodCB cb, SelectPageInvoker<DeliveryMethod> invoker) { + assertConditionBeanNotNull(cb); + final SelectPageCallback<DeliveryMethod> pageCallback = new SelectPageCallback<DeliveryMethod>() { + public PagingBean getPagingBean() { return cb; } + public int selectCountIgnoreFetchScope() { + return selectCount(cb); + } + public java.util.List<DeliveryMethod> 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(DeliveryMethodCB cb, ValueLabelSetupper<DeliveryMethod> valueLabelSetupper) { + return createValueLabelList(selectList(cb), valueLabelSetupper); + } + + // =================================================================================== + // Load Referer + // ============ + + // /* * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [DELIVERY_METHOD_DESCRIPTION] + // RefererProperty = [deliveryMethodDescriptionList] + // * * * * * * * * */ + + /** + * Load referer of deliveryMethodDescriptionList. + * <pre> + * You can load referer. + * + * ex) {Client Example} + * final DeliveryMethodCB cb = new DeliveryMethodCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<DeliveryMethod> deliveryMethodList = deliveryMethodBhv.selectList(cb); + * deliveryMethodBhv.loadDeliveryMethodDescriptionList(deliveryMethodList); + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param deliveryMethodList Entity list of deliveryMethod. (NotNull) + */ + public void loadDeliveryMethodDescriptionList(java.util.List<DeliveryMethod> deliveryMethodList) { + final ConditionBeanSetupper<DeliveryMethodDescriptionCB> conditionBeanSetupper = new ConditionBeanSetupper<DeliveryMethodDescriptionCB>() { + public void setup(DeliveryMethodDescriptionCB cb) { + } + }; + loadDeliveryMethodDescriptionList(deliveryMethodList, conditionBeanSetupper); + } + + /** + * Load referer of deliveryMethodDescriptionList. + * <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 DeliveryMethodCB cb = new DeliveryMethodCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<DeliveryMethod> deliveryMethodList = deliveryMethodBhv.selectList(cb); + * final ConditionBeanSetupper<DeliveryMethodDescriptionCB> conditionBeanSetupper = new ConditionBeanSetupper<DeliveryMethodDescriptionCB>() { + * public void setup(DeliveryMethodDescriptionCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * deliveryMethodBhv.loadDeliveryMethodDescriptionList(deliveryMethodList, conditionBeanSetupper); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setDeliveryMethodId_InScope(pkList); + * cb.query().addOrderBy_DeliveryMethodId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param deliveryMethodList Entity list of deliveryMethod. (NotNull) + * @param conditionBeanSetupper Referer condition setupper instance for registering referer condition. (NotNull) + */ + public void loadDeliveryMethodDescriptionList(java.util.List<DeliveryMethod> deliveryMethodList, ConditionBeanSetupper<DeliveryMethodDescriptionCB> conditionBeanSetupper) { + assertObjectNotNull("deliveryMethodList<DeliveryMethod>", deliveryMethodList); + assertObjectNotNull("conditionBeanSetupper<DeliveryMethodDescriptionCB>", conditionBeanSetupper); + if (deliveryMethodList.isEmpty()) { + return; + } + loadDeliveryMethodDescriptionList(deliveryMethodList, new jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<DeliveryMethodDescriptionCB, DeliveryMethodDescription>(conditionBeanSetupper)); + } + + /** + * Load referer of deliveryMethodDescriptionList. + * <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 DeliveryMethodCB cb = new DeliveryMethodCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<DeliveryMethod> deliveryMethodList = deliveryMethodBhv.selectList(cb); + * final ConditionBeanSetupper<DeliveryMethodDescriptionCB> cbSetupper = new ConditionBeanSetupper<DeliveryMethodDescriptionCB>() { + * public void setup(DeliveryMethodDescriptionCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * deliveryMethodBhv.loadDeliveryMethodDescriptionList(deliveryMethodList, new LoadRefererOption<DeliveryMethodDescriptionCB, DeliveryMethodDescription>(cbSetupper)); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setDeliveryMethodId_InScope(pkList); + * cb.query().addOrderBy_DeliveryMethodId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param deliveryMethodList Entity list of deliveryMethod. (NotNull) + * @param loadRefererOption Load-referer option. (NotNull) + */ + public void loadDeliveryMethodDescriptionList(java.util.List<DeliveryMethod> deliveryMethodList, jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<DeliveryMethodDescriptionCB, DeliveryMethodDescription> loadRefererOption) { + assertObjectNotNull("deliveryMethodList<DeliveryMethod>", deliveryMethodList); + assertObjectNotNull("loadRefererOption<DeliveryMethodDescription, DeliveryMethodDescriptionCB>", loadRefererOption); + if (deliveryMethodList.isEmpty()) { + return; + } + + final java.util.Map<java.math.BigDecimal, DeliveryMethod> pkMyEntityMap = new java.util.LinkedHashMap<java.math.BigDecimal, DeliveryMethod>(); + final java.util.List<java.math.BigDecimal> pkList = new java.util.ArrayList<java.math.BigDecimal>(); + for (DeliveryMethod deliveryMethod : deliveryMethodList) { + pkList.add(deliveryMethod.getDeliveryMethodId()); + pkMyEntityMap.put((java.math.BigDecimal)toLowerCaseIfString(deliveryMethod.getDeliveryMethodId()), deliveryMethod); + } + final DeliveryMethodDescriptionBhv refererBhv = getDaoSelector().getBehavior(DeliveryMethodDescriptionBhv.class); + final DeliveryMethodDescriptionCB cb = loadRefererOption.getRefererConditionBean() != null ? loadRefererOption.getRefererConditionBean() : refererBhv.newMyConditionBean(); + cb.query().setDeliveryMethodId_InScope(pkList); + loadRefererOption.delegateKeyConditionExchangingFirstWhereClauseForLastOne(cb); + if (!loadRefererOption.isStopOrderByKey()) { + cb.query().addOrderBy_DeliveryMethodId_Asc(); + cb.getSqlComponentOfOrderByClause().exchangeFirstOrderByElementForLastOne(); + } + loadRefererOption.delegateConditionBeanSettingUp(cb); + final java.util.List<DeliveryMethodDescription> reffererList = refererBhv.selectList(cb); + loadRefererOption.delegateEntitySettingUp(reffererList); + + final java.util.Map<java.math.BigDecimal, java.util.List<DeliveryMethodDescription>> pkReffererListMap = new java.util.LinkedHashMap<java.math.BigDecimal, java.util.List<DeliveryMethodDescription>>(); + for (DeliveryMethodDescription reffererEntity : reffererList) { + if (!pkReffererListMap.containsKey(toLowerCaseIfString(reffererEntity.getDeliveryMethodId()))) { + pkReffererListMap.put((java.math.BigDecimal)toLowerCaseIfString(reffererEntity.getDeliveryMethodId()), new java.util.ArrayList<DeliveryMethodDescription>()); + } + (pkReffererListMap.get(toLowerCaseIfString(reffererEntity.getDeliveryMethodId()))).add(reffererEntity); + + // for Reverse Reference. + final DeliveryMethod myEntity = pkMyEntityMap.get(toLowerCaseIfString(reffererEntity.getDeliveryMethodId())); + reffererEntity.setDeliveryMethod(myEntity); + } + + for (DeliveryMethod deliveryMethod : deliveryMethodList) { + if (pkReffererListMap.containsKey(toLowerCaseIfString(deliveryMethod.getDeliveryMethodId()))) { + deliveryMethod.setDeliveryMethodDescriptionList((java.util.List<DeliveryMethodDescription>)pkReffererListMap.get(toLowerCaseIfString(deliveryMethod.getDeliveryMethodId()))); + } else { + deliveryMethod.setDeliveryMethodDescriptionList(new java.util.ArrayList<DeliveryMethodDescription>()); + } + } + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [ORDER_FORM] + // RefererProperty = [orderFormList] + // * * * * * * * * */ + + /** + * Load referer of orderFormList. + * <pre> + * You can load referer. + * + * ex) {Client Example} + * final DeliveryMethodCB cb = new DeliveryMethodCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<DeliveryMethod> deliveryMethodList = deliveryMethodBhv.selectList(cb); + * deliveryMethodBhv.loadOrderFormList(deliveryMethodList); + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param deliveryMethodList Entity list of deliveryMethod. (NotNull) + */ + public void loadOrderFormList(java.util.List<DeliveryMethod> deliveryMethodList) { + final ConditionBeanSetupper<OrderFormCB> conditionBeanSetupper = new ConditionBeanSetupper<OrderFormCB>() { + public void setup(OrderFormCB cb) { + } + }; + loadOrderFormList(deliveryMethodList, conditionBeanSetupper); + } + + /** + * Load referer of orderFormList. + * <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 DeliveryMethodCB cb = new DeliveryMethodCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<DeliveryMethod> deliveryMethodList = deliveryMethodBhv.selectList(cb); + * final ConditionBeanSetupper<OrderFormCB> conditionBeanSetupper = new ConditionBeanSetupper<OrderFormCB>() { + * public void setup(OrderFormCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * deliveryMethodBhv.loadOrderFormList(deliveryMethodList, conditionBeanSetupper); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setDeliveryMethodId_InScope(pkList); + * cb.query().addOrderBy_DeliveryMethodId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param deliveryMethodList Entity list of deliveryMethod. (NotNull) + * @param conditionBeanSetupper Referer condition setupper instance for registering referer condition. (NotNull) + */ + public void loadOrderFormList(java.util.List<DeliveryMethod> deliveryMethodList, ConditionBeanSetupper<OrderFormCB> conditionBeanSetupper) { + assertObjectNotNull("deliveryMethodList<DeliveryMethod>", deliveryMethodList); + assertObjectNotNull("conditionBeanSetupper<OrderFormCB>", conditionBeanSetupper); + if (deliveryMethodList.isEmpty()) { + return; + } + loadOrderFormList(deliveryMethodList, new jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<OrderFormCB, OrderForm>(conditionBeanSetupper)); + } + + /** + * Load referer of orderFormList. + * <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 DeliveryMethodCB cb = new DeliveryMethodCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<DeliveryMethod> deliveryMethodList = deliveryMethodBhv.selectList(cb); + * final ConditionBeanSetupper<OrderFormCB> cbSetupper = new ConditionBeanSetupper<OrderFormCB>() { + * public void setup(OrderFormCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * deliveryMethodBhv.loadOrderFormList(deliveryMethodList, new LoadRefererOption<OrderFormCB, OrderForm>(cbSetupper)); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setDeliveryMethodId_InScope(pkList); + * cb.query().addOrderBy_DeliveryMethodId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param deliveryMethodList Entity list of deliveryMethod. (NotNull) + * @param loadRefererOption Load-referer option. (NotNull) + */ + public void loadOrderFormList(java.util.List<DeliveryMethod> deliveryMethodList, jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<OrderFormCB, OrderForm> loadRefererOption) { + assertObjectNotNull("deliveryMethodList<DeliveryMethod>", deliveryMethodList); + assertObjectNotNull("loadRefererOption<OrderForm, OrderFormCB>", loadRefererOption); + if (deliveryMethodList.isEmpty()) { + return; + } + + final java.util.Map<java.math.BigDecimal, DeliveryMethod> pkMyEntityMap = new java.util.LinkedHashMap<java.math.BigDecimal, DeliveryMethod>(); + final java.util.List<java.math.BigDecimal> pkList = new java.util.ArrayList<java.math.BigDecimal>(); + for (DeliveryMethod deliveryMethod : deliveryMethodList) { + pkList.add(deliveryMethod.getDeliveryMethodId()); + pkMyEntityMap.put((java.math.BigDecimal)toLowerCaseIfString(deliveryMethod.getDeliveryMethodId()), deliveryMethod); + } + final OrderFormBhv refererBhv = getDaoSelector().getBehavior(OrderFormBhv.class); + final OrderFormCB cb = loadRefererOption.getRefererConditionBean() != null ? loadRefererOption.getRefererConditionBean() : refererBhv.newMyConditionBean(); + cb.query().setDeliveryMethodId_InScope(pkList); + loadRefererOption.delegateKeyConditionExchangingFirstWhereClauseForLastOne(cb); + if (!loadRefererOption.isStopOrderByKey()) { + cb.query().addOrderBy_DeliveryMethodId_Asc(); + cb.getSqlComponentOfOrderByClause().exchangeFirstOrderByElementForLastOne(); + } + loadRefererOption.delegateConditionBeanSettingUp(cb); + final java.util.List<OrderForm> reffererList = refererBhv.selectList(cb); + loadRefererOption.delegateEntitySettingUp(reffererList); + + final java.util.Map<java.math.BigDecimal, java.util.List<OrderForm>> pkReffererListMap = new java.util.LinkedHashMap<java.math.BigDecimal, java.util.List<OrderForm>>(); + for (OrderForm reffererEntity : reffererList) { + if (!pkReffererListMap.containsKey(toLowerCaseIfString(reffererEntity.getDeliveryMethodId()))) { + pkReffererListMap.put((java.math.BigDecimal)toLowerCaseIfString(reffererEntity.getDeliveryMethodId()), new java.util.ArrayList<OrderForm>()); + } + (pkReffererListMap.get(toLowerCaseIfString(reffererEntity.getDeliveryMethodId()))).add(reffererEntity); + + // for Reverse Reference. + final DeliveryMethod myEntity = pkMyEntityMap.get(toLowerCaseIfString(reffererEntity.getDeliveryMethodId())); + reffererEntity.setDeliveryMethod(myEntity); + } + + for (DeliveryMethod deliveryMethod : deliveryMethodList) { + if (pkReffererListMap.containsKey(toLowerCaseIfString(deliveryMethod.getDeliveryMethodId()))) { + deliveryMethod.setOrderFormList((java.util.List<OrderForm>)pkReffererListMap.get(toLowerCaseIfString(deliveryMethod.getDeliveryMethodId()))); + } else { + deliveryMethod.setOrderFormList(new java.util.ArrayList<OrderForm>()); + } + } + } + + // =================================================================================== + // Pull Out Foreign + // ================ + + // =================================================================================== + // Basic Entity Update + // =================== + /** + * Insert. + * + * @param deliveryMethod Entity. (NotNull) + */ + public void insert(DeliveryMethod deliveryMethod) { + assertEntityNotNull(deliveryMethod); + delegateInsert(deliveryMethod); + } + + protected void doCreate(Entity deliveryMethod) { + insert((DeliveryMethod)deliveryMethod); + } + + /** + * 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 deliveryMethod Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void update(DeliveryMethod deliveryMethod) { + assertEntityNotNull(deliveryMethod); + final int updatedCount = delegateUpdate(deliveryMethod); + if (updatedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(deliveryMethod.toString()); + } else if (updatedCount > 1) { + String msg = "updatedCount=" + updatedCount + ": " + deliveryMethod.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doModify(Entity entity) { + update((DeliveryMethod)entity); + } + + + protected void doModifyNonstrict(Entity entity) { + update((DeliveryMethod)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 deliveryMethod Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void updateAfterSelect(DeliveryMethod deliveryMethod) { + assertEntityNotNullAndHasPrimaryKeyValue(deliveryMethod); + final DeliveryMethodCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(deliveryMethod)); + final DeliveryMethod currentEntity = selectEntityWithDeletedCheck(cb); + mergeEntity(deliveryMethod, currentEntity); + update(currentEntity); + } + + protected void doModifyAfterSelect(Entity entity) { + updateAfterSelect((DeliveryMethod)entity); + } + + /** + * Insert or update. {update: modified only} + * + * @param deliveryMethod Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdate(DeliveryMethod deliveryMethod) { + assertEntityNotNull(deliveryMethod); + if (!deliveryMethod.hasPrimaryKeyValue()) { + insert(deliveryMethod); + } else { + RuntimeException exception = null; + try { + update(deliveryMethod); + } 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 DeliveryMethodCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(deliveryMethod)); + if (selectCount(cb) == 0) { + insert(deliveryMethod); + } else { + throw exception; + } + } + } + } + + protected void doCreateOrUpdate(Entity deliveryMethod) { + insertOrUpdate((DeliveryMethod)deliveryMethod); + } + + + protected void doCreateOrUpdateNonstrict(Entity entity) { + insertOrUpdate((DeliveryMethod)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 deliveryMethod Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdateAfterSelect(DeliveryMethod deliveryMethod) { + assertEntityNotNull(deliveryMethod); + if (!deliveryMethod.hasPrimaryKeyValue()) { + insert(deliveryMethod); + return; + } + DeliveryMethod currentEntity = null; + try { + final DeliveryMethodCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(deliveryMethod)); + currentEntity = selectEntityWithDeletedCheck(cb); + } catch (jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException e) { + insert(deliveryMethod); + return; + } + assertEntityNotNullAndHasPrimaryKeyValue(deliveryMethod); + mergeEntity(deliveryMethod, currentEntity); + update(currentEntity); + } + + protected void doCreateOrModifyAfterSelect(Entity entity) { + insertOrUpdateAfterSelect((DeliveryMethod)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 DeliveryMethod sourceMyEntity = (DeliveryMethod)sourceEntity; + final DeliveryMethod destinationMyEntity = (DeliveryMethod)destinationEntity; + destinationMyEntity.clearModifiedPropertyNames(); + final java.util.Set<String> names = sourceMyEntity.getModifiedPropertyNames(); + + if (names.contains("deliveryMethodId")) { destinationMyEntity.setDeliveryMethodId(sourceMyEntity.getDeliveryMethodId()); } + if (names.contains("code")) { destinationMyEntity.setCode(sourceMyEntity.getCode()); } + if (names.contains("objectName")) { destinationMyEntity.setObjectName(sourceMyEntity.getObjectName()); } + if (names.contains("status")) { destinationMyEntity.setStatus(sourceMyEntity.getStatus()); } + if (names.contains("sortOrder")) { destinationMyEntity.setSortOrder(sourceMyEntity.getSortOrder()); } + if (names.contains("dateAdded")) { destinationMyEntity.setDateAdded(sourceMyEntity.getDateAdded()); } + if (names.contains("lastModified")) { destinationMyEntity.setLastModified(sourceMyEntity.getLastModified()); } + + } + + /** + * Delete. + * + * @param deliveryMethod Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void delete(DeliveryMethod deliveryMethod) { + assertEntityNotNull(deliveryMethod); + final int deletedCount = delegateDelete(deliveryMethod); + if (deletedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(deliveryMethod.toString()); + } else if (deletedCount > 1) { + String msg = "deletedCount=" + deletedCount + ": " + deliveryMethod.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doRemove(Entity deliveryMethod) { + delete((DeliveryMethod)deliveryMethod); + } + + /** + * 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 deliveryMethod Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void deleteAfterSelect(DeliveryMethod deliveryMethod) { + assertEntityNotNullAndHasPrimaryKeyValue(deliveryMethod); + final DeliveryMethodCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(deliveryMethod)); + selectEntityWithDeletedCheck(cb); + delete(deliveryMethod); + } + + protected void doRemoveAfterSelect(Entity entity) { + deleteAfterSelect((DeliveryMethod)entity); + } + + // =================================================================================== + // Basic Batch Update + // ================== + /** + * Insert list. + * + * @param deliveryMethodList Entity-list. (NotNull & NotEmpty) + * @return Inserted count. + */ + public int insertList(java.util.List<DeliveryMethod> deliveryMethodList) { + assertListNotNullAndNotEmpty(deliveryMethodList); + return delegateInsertList(deliveryMethodList); + } + + /** + * Update list. + * + * @param deliveryMethodList Entity-list. (NotNull & NotEmpty) + * @return Updated count. + */ + public int updateList(java.util.List<DeliveryMethod> deliveryMethodList) { + assertListNotNullAndNotEmpty(deliveryMethodList); + return delegateUpdateList(deliveryMethodList); + } + + /** + * Delete list. + * + * @param deliveryMethodList Entity-list. (NotNull & NotEmpty) + * @return Deleted count. + */ + public int deleteList(java.util.List<DeliveryMethod> deliveryMethodList) { + assertListNotNullAndNotEmpty(deliveryMethodList); + return delegateDeleteList(deliveryMethodList); + } + + // =================================================================================== + // Various Insert + // ============== + + /* (non-javadoc) + * Copy-insert. + * + * @param primaryKey Primary-keys. (NotNull) + * @return Inserted count. + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public int copyInsertByPKValueAfterSelect(java.math.BigDecimal deliveryMethodId) { + DeliveryMethod entity = new DeliveryMethod(); + entity.setDeliveryMethodId(deliveryMethodId); + final DeliveryMethodCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(entity)); + final DeliveryMethod currentEntity = selectEntityWithDeletedCheck(cb); + return delegateInsert(currentEntity); + } + + /** + * Filter 'copy-insert' entity. + * + * @param deliveryMethod Entity. (NotNull) + */ + protected void filterCopyInsertEntity(DeliveryMethod deliveryMethod) { + } + + // =================================================================================== + // Hierarchy + // ========= + /** + * Create the basic request of hierarchy of DeliveryMethod.. + * + * @param sourceList The list of source. (NotNull) + * @param <SOURCE> The type of source. + * @return Hierarchy request of DeliveryMethod. (NotNull) + */ + public <SOURCE> HierarchyBasicRequest<DeliveryMethod, DeliveryMethodDbm.DeliveryMethodRelationTrace> createHierarchyBasicRequest(java.util.List<SOURCE> sourceList) { + final HierarchyBasicRequest<DeliveryMethod, DeliveryMethodDbm.DeliveryMethodRelationTrace> request = new HierarchyBasicRequest<DeliveryMethod, DeliveryMethodDbm.DeliveryMethodRelationTrace>(DeliveryMethod.class); + request.registerSourceList(sourceList); + return request; + } + + /** + * Arrange hierarchy. + * + * @param request Hierarchy request of DeliveryMethod. (NotNull) + * @return The list of DeliveryMethod. (NotNull) + */ + public java.util.List<DeliveryMethod> arrangeHierarchy(HierarchyRequest<DeliveryMethod> request) { + return new HierarchyArranger<DeliveryMethod>().arrangeHierarchy(request); + } + + // =================================================================================== + // CBSetupper + // ========== + /** + * The interface of condition-bean setupper. + */ + public static interface CBSetupper extends ConditionBeanSetupper<DeliveryMethodCB> { + + /** + * Set up condition. + * + * @param cb Condition-bean. (NotNull) + */ + public void setup(DeliveryMethodCB cb); + } +} Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodDescriptionBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodDescriptionBhv.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodDescriptionBhv.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,811 @@ +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 DELIVERY_METHOD_DESCRIPTION. + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID, LANGUAGE_ID + * + * [column-property] + * DELIVERY_METHOD_ID, LANGUAGE_ID, NAME, DESCRIPTION + * + * [foreign-property] + * deliveryMethod, language + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsDeliveryMethodDescriptionBhv extends jp.sf.pal.pompei.allcommon.bhv.AbstractBehaviorWritable { + + // =================================================================================== + // Attribute + // ========= + /** Dao instance. */ + protected DeliveryMethodDescriptionDao _dao; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsDeliveryMethodDescriptionBhv() { + } + + // =================================================================================== + // Table name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return "DELIVERY_METHOD_DESCRIPTION"; + } + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return DeliveryMethodDescriptionDbm.getInstance(); + } + + /** + * Get my dbmeta. + * + * @return DBMeta. (NotNull) + */ + public DeliveryMethodDescriptionDbm getMyDBMeta() { + return DeliveryMethodDescriptionDbm.getInstance(); + } + + // =================================================================================== + // Dao Accessor + // ============ + /** + * Get my dao. + * + * @return My dao. + */ + public DeliveryMethodDescriptionDao getMyDao() { + return _dao; + } + + /** + * Set my dao. + * + * @param dao My dao. (NotNull) + */ + public void setMyDao(DeliveryMethodDescriptionDao 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 DeliveryMethodDescription newMyEntity() { + return new DeliveryMethodDescription(); + } + + /** + * New my condition-bean. + * + * @return My condition-bean. (NotNull) + */ + public DeliveryMethodDescriptionCB newMyConditionBean() { + return new DeliveryMethodDescriptionCB(); + } + + // =================================================================================== + // 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<DeliveryMethodDescription> delegateGetListAll() { + return getMyDao().getListAll(); + } + + // + // Get entity. {delegate method, internal for interceptor} + // + // @param Primary-keys (NotNull) + // @return Entity. (NotNull) + // + public DeliveryMethodDescription delegateGetEntity(java.math.BigDecimal deliveryMethodId, java.math.BigDecimal languageId) { + return getMyDao().getEntity(deliveryMethodId, languageId); + } + + /** + * Select count by condition-bean. {delegate method, internal for interceptor} + * + * @param cb Condition-bean. (NotNull) + * @return Selected count. (NotNull) + */ + public int delegateSelectCount(DeliveryMethodDescriptionCB 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 DeliveryMethodDescription delegateSelectEntity(DeliveryMethodDescriptionCB 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<DeliveryMethodDescription> delegateSelectList(DeliveryMethodDescriptionCB 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(DeliveryMethodDescription 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(DeliveryMethodDescription 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(DeliveryMethodDescription 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<DeliveryMethodDescription> 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<DeliveryMethodDescription> 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<DeliveryMethodDescription> 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(DeliveryMethodDescriptionCB 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 DeliveryMethodDescription selectEntity(DeliveryMethodDescriptionCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<DeliveryMethodDescription> 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 (DeliveryMethodDescription)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 DeliveryMethodDescription selectEntityWithDeletedCheck(DeliveryMethodDescriptionCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<DeliveryMethodDescription> 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 (DeliveryMethodDescription)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 DeliveryMethodDescription selectByPKValueWithDeletedCheck(java.math.BigDecimal deliveryMethodId, java.math.BigDecimal languageId) { + DeliveryMethodDescription entity = new DeliveryMethodDescription(); + entity.setDeliveryMethodId(deliveryMethodId);entity.setLanguageId(languageId); + final DeliveryMethodDescriptionCB 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<DeliveryMethodDescription> selectList(DeliveryMethodDescriptionCB cb) { + assertConditionBeanNotNull(cb); + return new ResultBeanBuilder<DeliveryMethodDescription>(this).buildListResultBean(cb, delegateSelectList(cb)); + } + + /** + * Select page as result-bean. + * + * @param cb Condition-bean. (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<DeliveryMethodDescription> selectPage(final DeliveryMethodDescriptionCB cb) { + assertConditionBeanNotNull(cb); + return selectPage(cb, new SelectPageSimpleInvoker<DeliveryMethodDescription>(this)); + } + + /** + * Select page. + * + * @param cb Condition-bean. (NotNull) + * @param invoker Select-page-invoker (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<DeliveryMethodDescription> selectPage(final DeliveryMethodDescriptionCB cb, SelectPageInvoker<DeliveryMethodDescription> invoker) { + assertConditionBeanNotNull(cb); + final SelectPageCallback<DeliveryMethodDescription> pageCallback = new SelectPageCallback<DeliveryMethodDescription>() { + public PagingBean getPagingBean() { return cb; } + public int selectCountIgnoreFetchScope() { + return selectCount(cb); + } + public java.util.List<DeliveryMethodDescription> 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(DeliveryMethodDescriptionCB cb, ValueLabelSetupper<DeliveryMethodDescription> valueLabelSetupper) { + return createValueLabelList(selectList(cb), valueLabelSetupper); + } + + // =================================================================================== + // Pull Out Foreign + // ================ + + /** + * Pull out the list of foreign table 'DeliveryMethod'. + * + * @param deliveryMethodDescriptionList The list of deliveryMethodDescription. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public java.util.List<DeliveryMethod> pulloutDeliveryMethod(java.util.List<DeliveryMethodDescription> deliveryMethodDescriptionList) { + assertObjectNotNull("deliveryMethodDescriptionList", deliveryMethodDescriptionList); + final java.util.Set<DeliveryMethod> foreignSet = new java.util.LinkedHashSet<DeliveryMethod>(); + for (java.util.Iterator ite = deliveryMethodDescriptionList.iterator(); ite.hasNext(); ) { + final DeliveryMethodDescription deliveryMethodDescription = (DeliveryMethodDescription)ite.next(); + final DeliveryMethod foreignEntity = deliveryMethodDescription.getDeliveryMethod(); + if (foreignEntity == null || foreignSet.contains(foreignEntity)) { + continue; + } + foreignSet.add(foreignEntity); + } + return new java.util.ArrayList<DeliveryMethod>(foreignSet); + } + + /** + * Pull out the list of foreign table 'Language'. + * + * @param deliveryMethodDescriptionList The list of deliveryMethodDescription. (NotNull) + * @return The list of foreign table. (NotNull) + */ + public java.util.List<Language> pulloutLanguage(java.util.List<DeliveryMethodDescription> deliveryMethodDescriptionList) { + assertObjectNotNull("deliveryMethodDescriptionList", deliveryMethodDescriptionList); + final java.util.Set<Language> foreignSet = new java.util.LinkedHashSet<Language>(); + for (java.util.Iterator ite = deliveryMethodDescriptionList.iterator(); ite.hasNext(); ) { + final DeliveryMethodDescription deliveryMethodDescription = (DeliveryMethodDescription)ite.next(); + final Language foreignEntity = deliveryMethodDescription.getLanguage(); + if (foreignEntity == null || foreignSet.contains(foreignEntity)) { + continue; + } + foreignSet.add(foreignEntity); + } + return new java.util.ArrayList<Language>(foreignSet); + } + + // =================================================================================== + // Basic Entity Update + // =================== + /** + * Insert. + * + * @param deliveryMethodDescription Entity. (NotNull) + */ + public void insert(DeliveryMethodDescription deliveryMethodDescription) { + assertEntityNotNull(deliveryMethodDescription); + delegateInsert(deliveryMethodDescription); + } + + protected void doCreate(Entity deliveryMethodDescription) { + insert((DeliveryMethodDescription)deliveryMethodDescription); + } + + /** + * 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 deliveryMethodDescription Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void update(DeliveryMethodDescription deliveryMethodDescription) { + assertEntityNotNull(deliveryMethodDescription); + final int updatedCount = delegateUpdate(deliveryMethodDescription); + if (updatedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(deliveryMethodDescription.toString()); + } else if (updatedCount > 1) { + String msg = "updatedCount=" + updatedCount + ": " + deliveryMethodDescription.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doModify(Entity entity) { + update((DeliveryMethodDescription)entity); + } + + + protected void doModifyNonstrict(Entity entity) { + update((DeliveryMethodDescription)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 deliveryMethodDescription Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void updateAfterSelect(DeliveryMethodDescription deliveryMethodDescription) { + assertEntityNotNullAndHasPrimaryKeyValue(deliveryMethodDescription); + final DeliveryMethodDescriptionCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(deliveryMethodDescription)); + final DeliveryMethodDescription currentEntity = selectEntityWithDeletedCheck(cb); + mergeEntity(deliveryMethodDescription, currentEntity); + update(currentEntity); + } + + protected void doModifyAfterSelect(Entity entity) { + updateAfterSelect((DeliveryMethodDescription)entity); + } + + /** + * Insert or update. {update: modified only} + * + * @param deliveryMethodDescription Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdate(DeliveryMethodDescription deliveryMethodDescription) { + assertEntityNotNull(deliveryMethodDescription); + if (!deliveryMethodDescription.hasPrimaryKeyValue()) { + insert(deliveryMethodDescription); + } else { + RuntimeException exception = null; + try { + update(deliveryMethodDescription); + } 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 DeliveryMethodDescriptionCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(deliveryMethodDescription)); + if (selectCount(cb) == 0) { + insert(deliveryMethodDescription); + } else { + throw exception; + } + } + } + } + + protected void doCreateOrUpdate(Entity deliveryMethodDescription) { + insertOrUpdate((DeliveryMethodDescription)deliveryMethodDescription); + } + + + protected void doCreateOrUpdateNonstrict(Entity entity) { + insertOrUpdate((DeliveryMethodDescription)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 deliveryMethodDescription Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdateAfterSelect(DeliveryMethodDescription deliveryMethodDescription) { + assertEntityNotNull(deliveryMethodDescription); + if (!deliveryMethodDescription.hasPrimaryKeyValue()) { + insert(deliveryMethodDescription); + return; + } + DeliveryMethodDescription currentEntity = null; + try { + final DeliveryMethodDescriptionCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(deliveryMethodDescription)); + currentEntity = selectEntityWithDeletedCheck(cb); + } catch (jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException e) { + insert(deliveryMethodDescription); + return; + } + assertEntityNotNullAndHasPrimaryKeyValue(deliveryMethodDescription); + mergeEntity(deliveryMethodDescription, currentEntity); + update(currentEntity); + } + + protected void doCreateOrModifyAfterSelect(Entity entity) { + insertOrUpdateAfterSelect((DeliveryMethodDescription)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 DeliveryMethodDescription sourceMyEntity = (DeliveryMethodDescription)sourceEntity; + final DeliveryMethodDescription destinationMyEntity = (DeliveryMethodDescription)destinationEntity; + destinationMyEntity.clearModifiedPropertyNames(); + final java.util.Set<String> names = sourceMyEntity.getModifiedPropertyNames(); + + if (names.contains("deliveryMethodId")) { destinationMyEntity.setDeliveryMethodId(sourceMyEntity.getDeliveryMethodId()); } + if (names.contains("languageId")) { destinationMyEntity.setLanguageId(sourceMyEntity.getLanguageId()); } + if (names.contains("name")) { destinationMyEntity.setName(sourceMyEntity.getName()); } + if (names.contains("description")) { destinationMyEntity.setDescription(sourceMyEntity.getDescription()); } + + } + + /** + * Delete. + * + * @param deliveryMethodDescription Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void delete(DeliveryMethodDescription deliveryMethodDescription) { + assertEntityNotNull(deliveryMethodDescription); + final int deletedCount = delegateDelete(deliveryMethodDescription); + if (deletedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(deliveryMethodDescription.toString()); + } else if (deletedCount > 1) { + String msg = "deletedCount=" + deletedCount + ": " + deliveryMethodDescription.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doRemove(Entity deliveryMethodDescription) { + delete((DeliveryMethodDescription)deliveryMethodDescription); + } + + /** + * 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 deliveryMethodDescription Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void deleteAfterSelect(DeliveryMethodDescription deliveryMethodDescription) { + assertEntityNotNullAndHasPrimaryKeyValue(deliveryMethodDescription); + final DeliveryMethodDescriptionCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(deliveryMethodDescription)); + selectEntityWithDeletedCheck(cb); + delete(deliveryMethodDescription); + } + + protected void doRemoveAfterSelect(Entity entity) { + deleteAfterSelect((DeliveryMethodDescription)entity); + } + + // =================================================================================== + // Basic Batch Update + // ================== + /** + * Insert list. + * + * @param deliveryMethodDescriptionList Entity-list. (NotNull & NotEmpty) + * @return Inserted count. + */ + public int insertList(java.util.List<DeliveryMethodDescription> deliveryMethodDescriptionList) { + assertListNotNullAndNotEmpty(deliveryMethodDescriptionList); + return delegateInsertList(deliveryMethodDescriptionList); + } + + /** + * Update list. + * + * @param deliveryMethodDescriptionList Entity-list. (NotNull & NotEmpty) + * @return Updated count. + */ + public int updateList(java.util.List<DeliveryMethodDescription> deliveryMethodDescriptionList) { + assertListNotNullAndNotEmpty(deliveryMethodDescriptionList); + return delegateUpdateList(deliveryMethodDescriptionList); + } + + /** + * Delete list. + * + * @param deliveryMethodDescriptionList Entity-list. (NotNull & NotEmpty) + * @return Deleted count. + */ + public int deleteList(java.util.List<DeliveryMethodDescription> deliveryMethodDescriptionList) { + assertListNotNullAndNotEmpty(deliveryMethodDescriptionList); + return delegateDeleteList(deliveryMethodDescriptionList); + } + + // =================================================================================== + // Various Insert + // ============== + + // =================================================================================== + // Hierarchy + // ========= + /** + * Create the basic request of hierarchy of DeliveryMethodDescription.. + * + * @param sourceList The list of source. (NotNull) + * @param <SOURCE> The type of source. + * @return Hierarchy request of DeliveryMethodDescription. (NotNull) + */ + public <SOURCE> HierarchyBasicRequest<DeliveryMethodDescription, DeliveryMethodDescriptionDbm.DeliveryMethodDescriptionRelationTrace> createHierarchyBasicRequest(java.util.List<SOURCE> sourceList) { + final HierarchyBasicRequest<DeliveryMethodDescription, DeliveryMethodDescriptionDbm.DeliveryMethodDescriptionRelationTrace> request = new HierarchyBasicRequest<DeliveryMethodDescription, DeliveryMethodDescriptionDbm.DeliveryMethodDescriptionRelationTrace>(DeliveryMethodDescription.class); + request.registerSourceList(sourceList); + return request; + } + + /** + * Arrange hierarchy. + * + * @param request Hierarchy request of DeliveryMethodDescription. (NotNull) + * @return The list of DeliveryMethodDescription. (NotNull) + */ + public java.util.List<DeliveryMethodDescription> arrangeHierarchy(HierarchyRequest<DeliveryMethodDescription> request) { + return new HierarchyArranger<DeliveryMethodDescription>().arrangeHierarchy(request); + } + + // =================================================================================== + // CBSetupper + // ========== + /** + * The interface of condition-bean setupper. + */ + public static interface CBSetupper extends ConditionBeanSetupper<DeliveryMethodDescriptionCB> { + + /** + * Set up condition. + * + * @param cb Condition-bean. (NotNull) + */ + public void setup(DeliveryMethodDescriptionCB cb); + } +} Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsTaxClassBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsTaxClassBhv.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsTaxClassBhv.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,1094 @@ +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.exbhv.*; + +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 TAX_CLASS. + * + * <pre> + * [primary-key] + * TAX_CLASS_ID + * + * [column-property] + * TAX_CLASS_ID, NAME, DESCRIPTION, LAST_MODIFIED, DATE_ADDED + * + * [foreign-property] + * + * + * [refferer-property] + * productList, taxRateList + * + * [sequence] + * + * + * [identity] + * taxClassId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsTaxClassBhv extends jp.sf.pal.pompei.allcommon.bhv.AbstractBehaviorWritable { + + // =================================================================================== + // Attribute + // ========= + /** Dao instance. */ + protected TaxClassDao _dao; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsTaxClassBhv() { + } + + // =================================================================================== + // Table name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return "TAX_CLASS"; + } + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return TaxClassDbm.getInstance(); + } + + /** + * Get my dbmeta. + * + * @return DBMeta. (NotNull) + */ + public TaxClassDbm getMyDBMeta() { + return TaxClassDbm.getInstance(); + } + + // =================================================================================== + // Dao Accessor + // ============ + /** + * Get my dao. + * + * @return My dao. + */ + public TaxClassDao getMyDao() { + return _dao; + } + + /** + * Set my dao. + * + * @param dao My dao. (NotNull) + */ + public void setMyDao(TaxClassDao 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 TaxClass newMyEntity() { + return new TaxClass(); + } + + /** + * New my condition-bean. + * + * @return My condition-bean. (NotNull) + */ + public TaxClassCB newMyConditionBean() { + return new TaxClassCB(); + } + + // =================================================================================== + // 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<TaxClass> delegateGetListAll() { + return getMyDao().getListAll(); + } + + // + // Get entity. {delegate method, internal for interceptor} + // + // @param Primary-keys (NotNull) + // @return Entity. (NotNull) + // + public TaxClass delegateGetEntity(java.math.BigDecimal taxClassId) { + return getMyDao().getEntity(taxClassId); + } + + /** + * Select count by condition-bean. {delegate method, internal for interceptor} + * + * @param cb Condition-bean. (NotNull) + * @return Selected count. (NotNull) + */ + public int delegateSelectCount(TaxClassCB 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 TaxClass delegateSelectEntity(TaxClassCB 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<TaxClass> delegateSelectList(TaxClassCB 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(TaxClass 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(TaxClass 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(TaxClass 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<TaxClass> 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<TaxClass> 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<TaxClass> 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(TaxClassCB 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 TaxClass selectEntity(TaxClassCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<TaxClass> 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 (TaxClass)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 TaxClass selectEntityWithDeletedCheck(TaxClassCB cb) { + assertConditionBeanNotNull(cb); + cb.checkSafetyResult(1); + java.util.List<TaxClass> 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 (TaxClass)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 TaxClass selectByPKValueWithDeletedCheck(java.math.BigDecimal taxClassId) { + TaxClass entity = new TaxClass(); + entity.setTaxClassId(taxClassId); + final TaxClassCB 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<TaxClass> selectList(TaxClassCB cb) { + assertConditionBeanNotNull(cb); + return new ResultBeanBuilder<TaxClass>(this).buildListResultBean(cb, delegateSelectList(cb)); + } + + /** + * Select page as result-bean. + * + * @param cb Condition-bean. (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<TaxClass> selectPage(final TaxClassCB cb) { + assertConditionBeanNotNull(cb); + return selectPage(cb, new SelectPageSimpleInvoker<TaxClass>(this)); + } + + /** + * Select page. + * + * @param cb Condition-bean. (NotNull) + * @param invoker Select-page-invoker (NotNull) + * @return Selected paging-result-bean. (NotNull) + */ + public PagingResultBean<TaxClass> selectPage(final TaxClassCB cb, SelectPageInvoker<TaxClass> invoker) { + assertConditionBeanNotNull(cb); + final SelectPageCallback<TaxClass> pageCallback = new SelectPageCallback<TaxClass>() { + public PagingBean getPagingBean() { return cb; } + public int selectCountIgnoreFetchScope() { + return selectCount(cb); + } + public java.util.List<TaxClass> 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(TaxClassCB cb, ValueLabelSetupper<TaxClass> valueLabelSetupper) { + return createValueLabelList(selectList(cb), valueLabelSetupper); + } + + // =================================================================================== + // Load Referer + // ============ + + // /* * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [PRODUCT] + // RefererProperty = [productList] + // * * * * * * * * */ + + /** + * Load referer of productList. + * <pre> + * You can load referer. + * + * ex) {Client Example} + * final TaxClassCB cb = new TaxClassCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<TaxClass> taxClassList = taxClassBhv.selectList(cb); + * taxClassBhv.loadProductList(taxClassList); + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param taxClassList Entity list of taxClass. (NotNull) + */ + public void loadProductList(java.util.List<TaxClass> taxClassList) { + final ConditionBeanSetupper<ProductCB> conditionBeanSetupper = new ConditionBeanSetupper<ProductCB>() { + public void setup(ProductCB cb) { + } + }; + loadProductList(taxClassList, conditionBeanSetupper); + } + + /** + * Load referer of productList. + * <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 TaxClassCB cb = new TaxClassCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<TaxClass> taxClassList = taxClassBhv.selectList(cb); + * final ConditionBeanSetupper<ProductCB> conditionBeanSetupper = new ConditionBeanSetupper<ProductCB>() { + * public void setup(ProductCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * taxClassBhv.loadProductList(taxClassList, conditionBeanSetupper); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setTaxClassId_InScope(pkList); + * cb.query().addOrderBy_TaxClassId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param taxClassList Entity list of taxClass. (NotNull) + * @param conditionBeanSetupper Referer condition setupper instance for registering referer condition. (NotNull) + */ + public void loadProductList(java.util.List<TaxClass> taxClassList, ConditionBeanSetupper<ProductCB> conditionBeanSetupper) { + assertObjectNotNull("taxClassList<TaxClass>", taxClassList); + assertObjectNotNull("conditionBeanSetupper<ProductCB>", conditionBeanSetupper); + if (taxClassList.isEmpty()) { + return; + } + loadProductList(taxClassList, new jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<ProductCB, Product>(conditionBeanSetupper)); + } + + /** + * Load referer of productList. + * <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 TaxClassCB cb = new TaxClassCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<TaxClass> taxClassList = taxClassBhv.selectList(cb); + * final ConditionBeanSetupper<ProductCB> cbSetupper = new ConditionBeanSetupper<ProductCB>() { + * public void setup(ProductCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * taxClassBhv.loadProductList(taxClassList, new LoadRefererOption<ProductCB, Product>(cbSetupper)); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setTaxClassId_InScope(pkList); + * cb.query().addOrderBy_TaxClassId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param taxClassList Entity list of taxClass. (NotNull) + * @param loadRefererOption Load-referer option. (NotNull) + */ + public void loadProductList(java.util.List<TaxClass> taxClassList, jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<ProductCB, Product> loadRefererOption) { + assertObjectNotNull("taxClassList<TaxClass>", taxClassList); + assertObjectNotNull("loadRefererOption<Product, ProductCB>", loadRefererOption); + if (taxClassList.isEmpty()) { + return; + } + + final java.util.Map<java.math.BigDecimal, TaxClass> pkMyEntityMap = new java.util.LinkedHashMap<java.math.BigDecimal, TaxClass>(); + final java.util.List<java.math.BigDecimal> pkList = new java.util.ArrayList<java.math.BigDecimal>(); + for (TaxClass taxClass : taxClassList) { + pkList.add(taxClass.getTaxClassId()); + pkMyEntityMap.put((java.math.BigDecimal)toLowerCaseIfString(taxClass.getTaxClassId()), taxClass); + } + final ProductBhv refererBhv = getDaoSelector().getBehavior(ProductBhv.class); + final ProductCB cb = loadRefererOption.getRefererConditionBean() != null ? loadRefererOption.getRefererConditionBean() : refererBhv.newMyConditionBean(); + cb.query().setTaxClassId_InScope(pkList); + loadRefererOption.delegateKeyConditionExchangingFirstWhereClauseForLastOne(cb); + if (!loadRefererOption.isStopOrderByKey()) { + cb.query().addOrderBy_TaxClassId_Asc(); + cb.getSqlComponentOfOrderByClause().exchangeFirstOrderByElementForLastOne(); + } + loadRefererOption.delegateConditionBeanSettingUp(cb); + final java.util.List<Product> reffererList = refererBhv.selectList(cb); + loadRefererOption.delegateEntitySettingUp(reffererList); + + final java.util.Map<java.math.BigDecimal, java.util.List<Product>> pkReffererListMap = new java.util.LinkedHashMap<java.math.BigDecimal, java.util.List<Product>>(); + for (Product reffererEntity : reffererList) { + if (!pkReffererListMap.containsKey(toLowerCaseIfString(reffererEntity.getTaxClassId()))) { + pkReffererListMap.put((java.math.BigDecimal)toLowerCaseIfString(reffererEntity.getTaxClassId()), new java.util.ArrayList<Product>()); + } + (pkReffererListMap.get(toLowerCaseIfString(reffererEntity.getTaxClassId()))).add(reffererEntity); + + // for Reverse Reference. + final TaxClass myEntity = pkMyEntityMap.get(toLowerCaseIfString(reffererEntity.getTaxClassId())); + reffererEntity.setTaxClass(myEntity); + } + + for (TaxClass taxClass : taxClassList) { + if (pkReffererListMap.containsKey(toLowerCaseIfString(taxClass.getTaxClassId()))) { + taxClass.setProductList((java.util.List<Product>)pkReffererListMap.get(toLowerCaseIfString(taxClass.getTaxClassId()))); + } else { + taxClass.setProductList(new java.util.ArrayList<Product>()); + } + } + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [TAX_RATE] + // RefererProperty = [taxRateList] + // * * * * * * * * */ + + /** + * Load referer of taxRateList. + * <pre> + * You can load referer. + * + * ex) {Client Example} + * final TaxClassCB cb = new TaxClassCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<TaxClass> taxClassList = taxClassBhv.selectList(cb); + * taxClassBhv.loadTaxRateList(taxClassList); + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param taxClassList Entity list of taxClass. (NotNull) + */ + public void loadTaxRateList(java.util.List<TaxClass> taxClassList) { + final ConditionBeanSetupper<TaxRateCB> conditionBeanSetupper = new ConditionBeanSetupper<TaxRateCB>() { + public void setup(TaxRateCB cb) { + } + }; + loadTaxRateList(taxClassList, conditionBeanSetupper); + } + + /** + * Load referer of taxRateList. + * <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 TaxClassCB cb = new TaxClassCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<TaxClass> taxClassList = taxClassBhv.selectList(cb); + * final ConditionBeanSetupper<TaxRateCB> conditionBeanSetupper = new ConditionBeanSetupper<TaxRateCB>() { + * public void setup(TaxRateCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * taxClassBhv.loadTaxRateList(taxClassList, conditionBeanSetupper); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setTaxClassId_InScope(pkList); + * cb.query().addOrderBy_TaxClassId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param taxClassList Entity list of taxClass. (NotNull) + * @param conditionBeanSetupper Referer condition setupper instance for registering referer condition. (NotNull) + */ + public void loadTaxRateList(java.util.List<TaxClass> taxClassList, ConditionBeanSetupper<TaxRateCB> conditionBeanSetupper) { + assertObjectNotNull("taxClassList<TaxClass>", taxClassList); + assertObjectNotNull("conditionBeanSetupper<TaxRateCB>", conditionBeanSetupper); + if (taxClassList.isEmpty()) { + return; + } + loadTaxRateList(taxClassList, new jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<TaxRateCB, TaxRate>(conditionBeanSetupper)); + } + + /** + * Load referer of taxRateList. + * <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 TaxClassCB cb = new TaxClassCB(); + * cb.query().setXxx_Equal("xxx"); + * final List<TaxClass> taxClassList = taxClassBhv.selectList(cb); + * final ConditionBeanSetupper<TaxRateCB> cbSetupper = new ConditionBeanSetupper<TaxRateCB>() { + * public void setup(TaxRateCB cb) { + * cb.query().setXxx_IsNotNull(); + * cb.query().addOrderBy_Yyy_Desc(); + * } + * }; + * taxClassBhv.loadTaxRateList(taxClassList, new LoadRefererOption<TaxRateCB, TaxRate>(cbSetupper)); + * - - - - - - - - - -/ + * + * The condition-bean that the setupper provides have settings before you touch it. It is as follows: + * /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * cb.query().setTaxClassId_InScope(pkList); + * cb.query().addOrderBy_TaxClassId_Asc(); + * - - - - - - - - - -/ + * + * *About internal policy, the value of primary key(and others too) is treated as CaseInsensitive. + * </pre> + * + * @param taxClassList Entity list of taxClass. (NotNull) + * @param loadRefererOption Load-referer option. (NotNull) + */ + public void loadTaxRateList(java.util.List<TaxClass> taxClassList, jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption<TaxRateCB, TaxRate> loadRefererOption) { + assertObjectNotNull("taxClassList<TaxClass>", taxClassList); + assertObjectNotNull("loadRefererOption<TaxRate, TaxRateCB>", loadRefererOption); + if (taxClassList.isEmpty()) { + return; + } + + final java.util.Map<java.math.BigDecimal, TaxClass> pkMyEntityMap = new java.util.LinkedHashMap<java.math.BigDecimal, TaxClass>(); + final java.util.List<java.math.BigDecimal> pkList = new java.util.ArrayList<java.math.BigDecimal>(); + for (TaxClass taxClass : taxClassList) { + pkList.add(taxClass.getTaxClassId()); + pkMyEntityMap.put((java.math.BigDecimal)toLowerCaseIfString(taxClass.getTaxClassId()), taxClass); + } + final TaxRateBhv refererBhv = getDaoSelector().getBehavior(TaxRateBhv.class); + final TaxRateCB cb = loadRefererOption.getRefererConditionBean() != null ? loadRefererOption.getRefererConditionBean() : refererBhv.newMyConditionBean(); + cb.query().setTaxClassId_InScope(pkList); + loadRefererOption.delegateKeyConditionExchangingFirstWhereClauseForLastOne(cb); + if (!loadRefererOption.isStopOrderByKey()) { + cb.query().addOrderBy_TaxClassId_Asc(); + cb.getSqlComponentOfOrderByClause().exchangeFirstOrderByElementForLastOne(); + } + loadRefererOption.delegateConditionBeanSettingUp(cb); + final java.util.List<TaxRate> reffererList = refererBhv.selectList(cb); + loadRefererOption.delegateEntitySettingUp(reffererList); + + final java.util.Map<java.math.BigDecimal, java.util.List<TaxRate>> pkReffererListMap = new java.util.LinkedHashMap<java.math.BigDecimal, java.util.List<TaxRate>>(); + for (TaxRate reffererEntity : reffererList) { + if (!pkReffererListMap.containsKey(toLowerCaseIfString(reffererEntity.getTaxClassId()))) { + pkReffererListMap.put((java.math.BigDecimal)toLowerCaseIfString(reffererEntity.getTaxClassId()), new java.util.ArrayList<TaxRate>()); + } + (pkReffererListMap.get(toLowerCaseIfString(reffererEntity.getTaxClassId()))).add(reffererEntity); + + // for Reverse Reference. + final TaxClass myEntity = pkMyEntityMap.get(toLowerCaseIfString(reffererEntity.getTaxClassId())); + reffererEntity.setTaxClass(myEntity); + } + + for (TaxClass taxClass : taxClassList) { + if (pkReffererListMap.containsKey(toLowerCaseIfString(taxClass.getTaxClassId()))) { + taxClass.setTaxRateList((java.util.List<TaxRate>)pkReffererListMap.get(toLowerCaseIfString(taxClass.getTaxClassId()))); + } else { + taxClass.setTaxRateList(new java.util.ArrayList<TaxRate>()); + } + } + } + + // =================================================================================== + // Pull Out Foreign + // ================ + + // =================================================================================== + // Basic Entity Update + // =================== + /** + * Insert. + * + * @param taxClass Entity. (NotNull) + */ + public void insert(TaxClass taxClass) { + assertEntityNotNull(taxClass); + delegateInsert(taxClass); + } + + protected void doCreate(Entity taxClass) { + insert((TaxClass)taxClass); + } + + /** + * 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 taxClass Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void update(TaxClass taxClass) { + assertEntityNotNull(taxClass); + final int updatedCount = delegateUpdate(taxClass); + if (updatedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(taxClass.toString()); + } else if (updatedCount > 1) { + String msg = "updatedCount=" + updatedCount + ": " + taxClass.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doModify(Entity entity) { + update((TaxClass)entity); + } + + + protected void doModifyNonstrict(Entity entity) { + update((TaxClass)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 taxClass Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void updateAfterSelect(TaxClass taxClass) { + assertEntityNotNullAndHasPrimaryKeyValue(taxClass); + final TaxClassCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(taxClass)); + final TaxClass currentEntity = selectEntityWithDeletedCheck(cb); + mergeEntity(taxClass, currentEntity); + update(currentEntity); + } + + protected void doModifyAfterSelect(Entity entity) { + updateAfterSelect((TaxClass)entity); + } + + /** + * Insert or update. {update: modified only} + * + * @param taxClass Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdate(TaxClass taxClass) { + assertEntityNotNull(taxClass); + if (!taxClass.hasPrimaryKeyValue()) { + insert(taxClass); + } else { + RuntimeException exception = null; + try { + update(taxClass); + } 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 TaxClassCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(taxClass)); + if (selectCount(cb) == 0) { + insert(taxClass); + } else { + throw exception; + } + } + } + } + + protected void doCreateOrUpdate(Entity taxClass) { + insertOrUpdate((TaxClass)taxClass); + } + + + protected void doCreateOrUpdateNonstrict(Entity entity) { + insertOrUpdate((TaxClass)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 taxClass Entity. This should contain primary-key value at least(Except use identity). (NotNull) + */ + public void insertOrUpdateAfterSelect(TaxClass taxClass) { + assertEntityNotNull(taxClass); + if (!taxClass.hasPrimaryKeyValue()) { + insert(taxClass); + return; + } + TaxClass currentEntity = null; + try { + final TaxClassCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(taxClass)); + currentEntity = selectEntityWithDeletedCheck(cb); + } catch (jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException e) { + insert(taxClass); + return; + } + assertEntityNotNullAndHasPrimaryKeyValue(taxClass); + mergeEntity(taxClass, currentEntity); + update(currentEntity); + } + + protected void doCreateOrModifyAfterSelect(Entity entity) { + insertOrUpdateAfterSelect((TaxClass)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 TaxClass sourceMyEntity = (TaxClass)sourceEntity; + final TaxClass destinationMyEntity = (TaxClass)destinationEntity; + destinationMyEntity.clearModifiedPropertyNames(); + final java.util.Set<String> names = sourceMyEntity.getModifiedPropertyNames(); + + if (names.contains("taxClassId")) { destinationMyEntity.setTaxClassId(sourceMyEntity.getTaxClassId()); } + if (names.contains("name")) { destinationMyEntity.setName(sourceMyEntity.getName()); } + if (names.contains("description")) { destinationMyEntity.setDescription(sourceMyEntity.getDescription()); } + if (names.contains("lastModified")) { destinationMyEntity.setLastModified(sourceMyEntity.getLastModified()); } + if (names.contains("dateAdded")) { destinationMyEntity.setDateAdded(sourceMyEntity.getDateAdded()); } + + } + + /** + * Delete. + * + * @param taxClass Entity. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException + */ + public void delete(TaxClass taxClass) { + assertEntityNotNull(taxClass); + final int deletedCount = delegateDelete(taxClass); + if (deletedCount == 0) { + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException(taxClass.toString()); + } else if (deletedCount > 1) { + String msg = "deletedCount=" + deletedCount + ": " + taxClass.toString(); + throw new jp.sf.pal.pompei.allcommon.exception.RecordHasOverlappedException(msg); + } + } + + protected void doRemove(Entity taxClass) { + delete((TaxClass)taxClass); + } + + /** + * 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 taxClass Entity. This must contain primary-key value at least. (NotNull) + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public void deleteAfterSelect(TaxClass taxClass) { + assertEntityNotNullAndHasPrimaryKeyValue(taxClass); + final TaxClassCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(taxClass)); + selectEntityWithDeletedCheck(cb); + delete(taxClass); + } + + protected void doRemoveAfterSelect(Entity entity) { + deleteAfterSelect((TaxClass)entity); + } + + // =================================================================================== + // Basic Batch Update + // ================== + /** + * Insert list. + * + * @param taxClassList Entity-list. (NotNull & NotEmpty) + * @return Inserted count. + */ + public int insertList(java.util.List<TaxClass> taxClassList) { + assertListNotNullAndNotEmpty(taxClassList); + return delegateInsertList(taxClassList); + } + + /** + * Update list. + * + * @param taxClassList Entity-list. (NotNull & NotEmpty) + * @return Updated count. + */ + public int updateList(java.util.List<TaxClass> taxClassList) { + assertListNotNullAndNotEmpty(taxClassList); + return delegateUpdateList(taxClassList); + } + + /** + * Delete list. + * + * @param taxClassList Entity-list. (NotNull & NotEmpty) + * @return Deleted count. + */ + public int deleteList(java.util.List<TaxClass> taxClassList) { + assertListNotNullAndNotEmpty(taxClassList); + return delegateDeleteList(taxClassList); + } + + // =================================================================================== + // Various Insert + // ============== + + /* (non-javadoc) + * Copy-insert. + * + * @param primaryKey Primary-keys. (NotNull) + * @return Inserted count. + * @exception jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException + */ + public int copyInsertByPKValueAfterSelect(java.math.BigDecimal taxClassId) { + TaxClass entity = new TaxClass(); + entity.setTaxClassId(taxClassId); + final TaxClassCB cb = newMyConditionBean(); + cb.acceptPrimaryKeyMapString(getDBMeta().extractPrimaryKeyMapString(entity)); + final TaxClass currentEntity = selectEntityWithDeletedCheck(cb); + return delegateInsert(currentEntity); + } + + /** + * Filter 'copy-insert' entity. + * + * @param taxClass Entity. (NotNull) + */ + protected void filterCopyInsertEntity(TaxClass taxClass) { + } + + // =================================================================================== + // Hierarchy + // ========= + /** + * Create the basic request of hierarchy of TaxClass.. + * + * @param sourceList The list of source. (NotNull) + * @param <SOURCE> The type of source. + * @return Hierarchy request of TaxClass. (NotNull) + */ + public <SOURCE> HierarchyBasicRequest<TaxClass, TaxClassDbm.TaxClassRelationTrace> createHierarchyBasicRequest(java.util.List<SOURCE> sourceList) { + final HierarchyBasicRequest<TaxClass, TaxClassDbm.TaxClassRelationTrace> request = new HierarchyBasicRequest<TaxClass, TaxClassDbm.TaxClassRelationTrace>(TaxClass.class); + request.registerSourceList(sourceList); + return request; + } + + /** + * Arrange hierarchy. + * + * @param request Hierarchy request of TaxClass. (NotNull) + * @return The list of TaxClass. (NotNull) + */ + public java.util.List<TaxClass> arrangeHierarchy(HierarchyRequest<TaxClass> request) { + return new HierarchyArranger<TaxClass>().arrangeHierarchy(request); + } + + // =================================================================================== + // CBSetupper + // ========== + /** + * The interface of condition-bean setupper. + */ + public static interface CBSetupper extends ConditionBeanSetupper<TaxClassCB> { + + /** + * Set up condition. + * + * @param cb Condition-bean. (NotNull) + */ + public void setup(TaxClassCB cb); + } +} Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsAddressBookDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsAddressBookDao.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsAddressBookDao.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,186 @@ +package jp.sf.pal.pompei.bsdao; + + +import jp.sf.pal.pompei.exentity.AddressBook; + +/** + * The dao interface of ADDRESS_BOOK. + * + * <pre> + * [primary-key] + * ADDRESS_BOOK_ID + * + * [column-property] + * ADDRESS_BOOK_ID, CUSTOMER_ID, COMPANY, DEPARTMENT, FIRSTNAME, LASTNAME, STREET_ADDRESS, SUBURB, CITY, STATE, POSTCODE, TELEPHONE, FAX, CELLPHONE, DEFAULT_ADDRESS, LANGUAGE_ID, COUNTRY_ID, ZONE_ID + * + * [foreign-property] + * country, customer, language, zone + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * addressBookId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public interface BsAddressBookDao extends jp.sf.pal.pompei.allcommon.DaoWritable { + + /** BEAN-Annotation. */ + public Class BEAN = jp.sf.pal.pompei.exentity.AddressBook.class; + + /** SQL-Annotation for getCountAll(). */ + public static final String getCountAll_SQL = "select count(*) from ADDRESS_BOOK"; + + /** + * Get count as all. + * + * @return All count. + */ + public int getCountAll(); + + /** SQL-Annotation for getListAll(). */ + public static final String getListAll_SQL = "select ADDRESS_BOOK_ID, CUSTOMER_ID, COMPANY, DEPARTMENT, FIRSTNAME, LASTNAME, STREET_ADDRESS, SUBURB, CITY, STATE, POSTCODE, TELEPHONE, FAX, CELLPHONE, DEFAULT_ADDRESS, LANGUAGE_ID, COUNTRY_ID, ZONE_ID from ADDRESS_BOOK"; + + /** + * Get list as all. + * + * @return All list. (NotNull) + */ + public java.util.List<AddressBook> getListAll(); + + /** SQL-Annotation for getEntity(). */ + public static final String getEntity_SQL = "select ADDRESS_BOOK_ID, CUSTOMER_ID, COMPANY, DEPARTMENT, FIRSTNAME, LASTNAME, STREET_ADDRESS, SUBURB, CITY, STATE, POSTCODE, TELEPHONE, FAX, CELLPHONE, DEFAULT_ADDRESS, LANGUAGE_ID, COUNTRY_ID, ZONE_ID from ADDRESS_BOOK where ADDRESS_BOOK.ADDRESS_BOOK_ID = /*addressBookId*/null"; + + /** Args-Annotation for getEntity(). */ + public static final String getEntity_ARGS = "addressBookId"; + + /* (non-javadoc) + * Get entity by primary key. + * + * @param primaryKey Primary key. (NotNull) + */ + public AddressBook getEntity(java.math.BigDecimal addressBookId); + + /** + * 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 AddressBookCB cb = new AddressBookCB(); + * 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.AddressBookCB cb); + + /** + * Select entity 'AddressBook' by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final AddressBookCB cb = new AddressBookCB(); + * cb.query().setXxxCode_Equal("abc");// It is assumed that this is the primary key... + * cb.lockForUpdate(); + * final AddressBook entity = dao.selectEntity(cb); + * </pre> + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. If the select result is zero, it returns null. (Nullable) + */ + public AddressBook selectEntity(jp.sf.pal.pompei.cbean.AddressBookCB cb); + + /** + * Select list by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final AddressBookCB cb = new AddressBookCB(); + * 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<AddressBook> selectList(jp.sf.pal.pompei.cbean.AddressBookCB cb); + + + /** + * Insert one entity. + * + * @param entity Entity. (NotNull) + * @return Inserted count. + */ + public int insert(AddressBook entity); + + /** + * Update one entity. + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int update(AddressBook entity); + + /** + * Update one entity. (modified only) + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int updateModifiedOnly(AddressBook entity); + + /** + * Delete one entity. + * + * @param entity Entity. (NotNull) + * @return Deleted count. + */ + public int delete(AddressBook entity); + + /** + * Insert several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Inserted count. + */ + public int insertList(java.util.List<AddressBook> entityList); + + /** + * Update several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Updated count. + */ + public int updateList(java.util.List<AddressBook> entityList); + + /** + * Delete several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Deleted count. + */ + public int deleteList(java.util.List<AddressBook> entityList); +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsAddressBookDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDao.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDao.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,186 @@ +package jp.sf.pal.pompei.bsdao; + + +import jp.sf.pal.pompei.exentity.DeliveryMethod; + +/** + * The dao interface of DELIVERY_METHOD. + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID + * + * [column-property] + * DELIVERY_METHOD_ID, CODE, OBJECT_NAME, STATUS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * + * [foreign-property] + * + * + * [refferer-property] + * deliveryMethodDescriptionList, orderFormList + * + * [sequence] + * + * + * [identity] + * deliveryMethodId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public interface BsDeliveryMethodDao extends jp.sf.pal.pompei.allcommon.DaoWritable { + + /** BEAN-Annotation. */ + public Class BEAN = jp.sf.pal.pompei.exentity.DeliveryMethod.class; + + /** SQL-Annotation for getCountAll(). */ + public static final String getCountAll_SQL = "select count(*) from DELIVERY_METHOD"; + + /** + * Get count as all. + * + * @return All count. + */ + public int getCountAll(); + + /** SQL-Annotation for getListAll(). */ + public static final String getListAll_SQL = "select DELIVERY_METHOD_ID, CODE, OBJECT_NAME, STATUS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED from DELIVERY_METHOD"; + + /** + * Get list as all. + * + * @return All list. (NotNull) + */ + public java.util.List<DeliveryMethod> getListAll(); + + /** SQL-Annotation for getEntity(). */ + public static final String getEntity_SQL = "select DELIVERY_METHOD_ID, CODE, OBJECT_NAME, STATUS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED from DELIVERY_METHOD where DELIVERY_METHOD.DELIVERY_METHOD_ID = /*deliveryMethodId*/null"; + + /** Args-Annotation for getEntity(). */ + public static final String getEntity_ARGS = "deliveryMethodId"; + + /* (non-javadoc) + * Get entity by primary key. + * + * @param primaryKey Primary key. (NotNull) + */ + public DeliveryMethod getEntity(java.math.BigDecimal deliveryMethodId); + + /** + * 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 DeliveryMethodCB cb = new DeliveryMethodCB(); + * 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.DeliveryMethodCB cb); + + /** + * Select entity 'DeliveryMethod' by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final DeliveryMethodCB cb = new DeliveryMethodCB(); + * cb.query().setXxxCode_Equal("abc");// It is assumed that this is the primary key... + * cb.lockForUpdate(); + * final DeliveryMethod entity = dao.selectEntity(cb); + * </pre> + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. If the select result is zero, it returns null. (Nullable) + */ + public DeliveryMethod selectEntity(jp.sf.pal.pompei.cbean.DeliveryMethodCB cb); + + /** + * Select list by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final DeliveryMethodCB cb = new DeliveryMethodCB(); + * 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<DeliveryMethod> selectList(jp.sf.pal.pompei.cbean.DeliveryMethodCB cb); + + + /** + * Insert one entity. + * + * @param entity Entity. (NotNull) + * @return Inserted count. + */ + public int insert(DeliveryMethod entity); + + /** + * Update one entity. + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int update(DeliveryMethod entity); + + /** + * Update one entity. (modified only) + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int updateModifiedOnly(DeliveryMethod entity); + + /** + * Delete one entity. + * + * @param entity Entity. (NotNull) + * @return Deleted count. + */ + public int delete(DeliveryMethod entity); + + /** + * Insert several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Inserted count. + */ + public int insertList(java.util.List<DeliveryMethod> entityList); + + /** + * Update several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Updated count. + */ + public int updateList(java.util.List<DeliveryMethod> entityList); + + /** + * Delete several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Deleted count. + */ + public int deleteList(java.util.List<DeliveryMethod> entityList); +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDescriptionDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDescriptionDao.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDescriptionDao.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,186 @@ +package jp.sf.pal.pompei.bsdao; + + +import jp.sf.pal.pompei.exentity.DeliveryMethodDescription; + +/** + * The dao interface of DELIVERY_METHOD_DESCRIPTION. + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID, LANGUAGE_ID + * + * [column-property] + * DELIVERY_METHOD_ID, LANGUAGE_ID, NAME, DESCRIPTION + * + * [foreign-property] + * deliveryMethod, language + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public interface BsDeliveryMethodDescriptionDao extends jp.sf.pal.pompei.allcommon.DaoWritable { + + /** BEAN-Annotation. */ + public Class BEAN = jp.sf.pal.pompei.exentity.DeliveryMethodDescription.class; + + /** SQL-Annotation for getCountAll(). */ + public static final String getCountAll_SQL = "select count(*) from DELIVERY_METHOD_DESCRIPTION"; + + /** + * Get count as all. + * + * @return All count. + */ + public int getCountAll(); + + /** SQL-Annotation for getListAll(). */ + public static final String getListAll_SQL = "select DELIVERY_METHOD_ID, LANGUAGE_ID, NAME, DESCRIPTION from DELIVERY_METHOD_DESCRIPTION"; + + /** + * Get list as all. + * + * @return All list. (NotNull) + */ + public java.util.List<DeliveryMethodDescription> getListAll(); + + /** SQL-Annotation for getEntity(). */ + public static final String getEntity_SQL = "select DELIVERY_METHOD_ID, LANGUAGE_ID, NAME, DESCRIPTION from DELIVERY_METHOD_DESCRIPTION where DELIVERY_METHOD_DESCRIPTION.DELIVERY_METHOD_ID = /*deliveryMethodId*/null and DELIVERY_METHOD_DESCRIPTION.LANGUAGE_ID = /*languageId*/null"; + + /** Args-Annotation for getEntity(). */ + public static final String getEntity_ARGS = "deliveryMethodId, languageId"; + + /* (non-javadoc) + * Get entity by primary key. + * + * @param primaryKey Primary key. (NotNull) + */ + public DeliveryMethodDescription getEntity(java.math.BigDecimal deliveryMethodId, java.math.BigDecimal languageId); + + /** + * 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 DeliveryMethodDescriptionCB cb = new DeliveryMethodDescriptionCB(); + * 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.DeliveryMethodDescriptionCB cb); + + /** + * Select entity 'DeliveryMethodDescription' by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final DeliveryMethodDescriptionCB cb = new DeliveryMethodDescriptionCB(); + * cb.query().setXxxCode_Equal("abc");// It is assumed that this is the primary key... + * cb.lockForUpdate(); + * final DeliveryMethodDescription entity = dao.selectEntity(cb); + * </pre> + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. If the select result is zero, it returns null. (Nullable) + */ + public DeliveryMethodDescription selectEntity(jp.sf.pal.pompei.cbean.DeliveryMethodDescriptionCB cb); + + /** + * Select list by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final DeliveryMethodDescriptionCB cb = new DeliveryMethodDescriptionCB(); + * 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<DeliveryMethodDescription> selectList(jp.sf.pal.pompei.cbean.DeliveryMethodDescriptionCB cb); + + + /** + * Insert one entity. + * + * @param entity Entity. (NotNull) + * @return Inserted count. + */ + public int insert(DeliveryMethodDescription entity); + + /** + * Update one entity. + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int update(DeliveryMethodDescription entity); + + /** + * Update one entity. (modified only) + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int updateModifiedOnly(DeliveryMethodDescription entity); + + /** + * Delete one entity. + * + * @param entity Entity. (NotNull) + * @return Deleted count. + */ + public int delete(DeliveryMethodDescription entity); + + /** + * Insert several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Inserted count. + */ + public int insertList(java.util.List<DeliveryMethodDescription> entityList); + + /** + * Update several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Updated count. + */ + public int updateList(java.util.List<DeliveryMethodDescription> entityList); + + /** + * Delete several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Deleted count. + */ + public int deleteList(java.util.List<DeliveryMethodDescription> entityList); +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDescriptionDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsTaxClassDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsTaxClassDao.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsTaxClassDao.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,186 @@ +package jp.sf.pal.pompei.bsdao; + + +import jp.sf.pal.pompei.exentity.TaxClass; + +/** + * The dao interface of TAX_CLASS. + * + * <pre> + * [primary-key] + * TAX_CLASS_ID + * + * [column-property] + * TAX_CLASS_ID, NAME, DESCRIPTION, LAST_MODIFIED, DATE_ADDED + * + * [foreign-property] + * + * + * [refferer-property] + * productList, taxRateList + * + * [sequence] + * + * + * [identity] + * taxClassId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public interface BsTaxClassDao extends jp.sf.pal.pompei.allcommon.DaoWritable { + + /** BEAN-Annotation. */ + public Class BEAN = jp.sf.pal.pompei.exentity.TaxClass.class; + + /** SQL-Annotation for getCountAll(). */ + public static final String getCountAll_SQL = "select count(*) from TAX_CLASS"; + + /** + * Get count as all. + * + * @return All count. + */ + public int getCountAll(); + + /** SQL-Annotation for getListAll(). */ + public static final String getListAll_SQL = "select TAX_CLASS_ID, NAME, DESCRIPTION, LAST_MODIFIED, DATE_ADDED from TAX_CLASS"; + + /** + * Get list as all. + * + * @return All list. (NotNull) + */ + public java.util.List<TaxClass> getListAll(); + + /** SQL-Annotation for getEntity(). */ + public static final String getEntity_SQL = "select TAX_CLASS_ID, NAME, DESCRIPTION, LAST_MODIFIED, DATE_ADDED from TAX_CLASS where TAX_CLASS.TAX_CLASS_ID = /*taxClassId*/null"; + + /** Args-Annotation for getEntity(). */ + public static final String getEntity_ARGS = "taxClassId"; + + /* (non-javadoc) + * Get entity by primary key. + * + * @param primaryKey Primary key. (NotNull) + */ + public TaxClass getEntity(java.math.BigDecimal taxClassId); + + /** + * 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 TaxClassCB cb = new TaxClassCB(); + * 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.TaxClassCB cb); + + /** + * Select entity 'TaxClass' by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final TaxClassCB cb = new TaxClassCB(); + * cb.query().setXxxCode_Equal("abc");// It is assumed that this is the primary key... + * cb.lockForUpdate(); + * final TaxClass entity = dao.selectEntity(cb); + * </pre> + * + * @param cb Condition-bean. (NotNull) + * @return Selected entity. If the select result is zero, it returns null. (Nullable) + */ + public TaxClass selectEntity(jp.sf.pal.pompei.cbean.TaxClassCB cb); + + /** + * Select list by condition-bean. + * <pre> + * This select method generates SQL based on condition-bean. + * + * Example) + * final TaxClassCB cb = new TaxClassCB(); + * 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<TaxClass> selectList(jp.sf.pal.pompei.cbean.TaxClassCB cb); + + + /** + * Insert one entity. + * + * @param entity Entity. (NotNull) + * @return Inserted count. + */ + public int insert(TaxClass entity); + + /** + * Update one entity. + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int update(TaxClass entity); + + /** + * Update one entity. (modified only) + * + * @param entity Entity. (NotNull) + * @return Updated count. + */ + public int updateModifiedOnly(TaxClass entity); + + /** + * Delete one entity. + * + * @param entity Entity. (NotNull) + * @return Deleted count. + */ + public int delete(TaxClass entity); + + /** + * Insert several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Inserted count. + */ + public int insertList(java.util.List<TaxClass> entityList); + + /** + * Update several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Updated count. + */ + public int updateList(java.util.List<TaxClass> entityList); + + /** + * Delete several entities. + * + * @param entityList Entity-list. (NotNull) + * @return Deleted count. + */ + public int deleteList(java.util.List<TaxClass> entityList); +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsTaxClassDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsAddressBook.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsAddressBook.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsAddressBook.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,954 @@ +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 ADDRESS_BOOK(TABLE). <br /> + * + * <pre> + * [primary-key] + * ADDRESS_BOOK_ID + * + * [column-property] + * ADDRESS_BOOK_ID, CUSTOMER_ID, COMPANY, DEPARTMENT, FIRSTNAME, LASTNAME, STREET_ADDRESS, SUBURB, CITY, STATE, POSTCODE, TELEPHONE, FAX, CELLPHONE, DEFAULT_ADDRESS, LANGUAGE_ID, COUNTRY_ID, ZONE_ID + * + * [foreign-property] + * country, customer, language, zone + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * addressBookId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsAddressBook implements Entity, java.io.Serializable { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; + + /** TABLE-Annotation for S2Dao. The value is ADDRESS_BOOK. */ + public static final String TABLE = "ADDRESS_BOOK"; + + + /** ID-Annotation */ + public static final String addressBookId_ID = "identity"; + + // =================================================================================== + // Attribute + // ========= + /** Entity modified properties. (for S2Dao) */ + protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties(); + + /** The value of addressBookId. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ + protected java.math.BigDecimal _addressBookId; + + /** The value of customerId. BIGINT : NotNull : FK to CUSTOMER */ + protected java.math.BigDecimal _customerId; + + /** The value of company. VARCHAR(128) */ + protected String _company; + + /** The value of department. VARCHAR(64) */ + protected String _department; + + /** The value of firstname. VARCHAR(32) : NotNull */ + protected String _firstname; + + /** The value of lastname. VARCHAR(32) : NotNull */ + protected String _lastname; + + /** The value of streetAddress. VARCHAR(255) : NotNull */ + protected String _streetAddress; + + /** The value of suburb. VARCHAR(32) */ + protected String _suburb; + + /** The value of city. VARCHAR(64) : NotNull */ + protected String _city; + + /** The value of state. VARCHAR(32) */ + protected String _state; + + /** The value of postcode. VARCHAR(10) : NotNull */ + protected String _postcode; + + /** The value of telephone. VARCHAR(32) */ + protected String _telephone; + + /** The value of fax. VARCHAR(32) */ + protected String _fax; + + /** The value of cellphone. VARCHAR(32) */ + protected String _cellphone; + + /** The value of defaultAddress. INTEGER : NotNull */ + protected java.math.BigDecimal _defaultAddress; + + /** The value of languageId. INTEGER : NotNull : FK to LANGUAGE */ + protected java.math.BigDecimal _languageId; + + /** The value of countryId. INTEGER : NotNull : Default=[0] : FK to COUNTRY */ + protected java.math.BigDecimal _countryId; + + /** The value of zoneId. INTEGER : NotNull : Default=[0] : FK to ZONE */ + protected java.math.BigDecimal _zoneId; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsAddressBook() { + } + + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return DBMetaInstanceHandler.findDBMeta(getTableDbName()); + } + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name of ADDRESS_BOOK(TABLE). (NotNull) + */ + public String getTableDbName() { + return "ADDRESS_BOOK"; + } + + /** + * The implementation. + * + * @return Table prop-name(JavaBeansRule) of ADDRESS_BOOK(TABLE). (NotNull) + */ + public String getTablePropName() { + return "addressBook"; + } + + /** + * The implementation. + * + * @return Table cap-prop-name of ADDRESS_BOOK(TABLE). (NotNull) + */ + public String getTableCapPropName() { + return "AddressBook"; + } + + /** + * The implementation. + * + * @return Table uncap-prop-name of ADDRESS_BOOK(TABLE). (NotNull) + */ + public String getTableUncapPropName() { + return "addressBook"; + } + + // =================================================================================== + // Accessor + // ======== + + /** Column Annotation for S2Dao. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String addressBookId_COLUMN = "ADDRESS_BOOK_ID"; + + /** + * Get the value of addressBookId. <br /> + * {PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT]} + * + * @return The value of addressBookId. (Nullable) + */ + public java.math.BigDecimal getAddressBookId() { + return _addressBookId; + } + + /** + * Set the value of addressBookId. <br /> + * {PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT]} + * + * @param addressBookId The value of addressBookId. (Nullable) + */ + public void setAddressBookId(java.math.BigDecimal addressBookId) { + _modifiedProperties.addPropertyName("addressBookId"); + this._addressBookId = addressBookId; + } + + /** Column Annotation for S2Dao. BIGINT : NotNull : FK to CUSTOMER */ + public static final String customerId_COLUMN = "CUSTOMER_ID"; + + /** + * Get the value of customerId. <br /> + * {BIGINT : NotNull : FK to CUSTOMER} + * + * @return The value of customerId. (Nullable) + */ + public java.math.BigDecimal getCustomerId() { + return _customerId; + } + + /** + * Set the value of customerId. <br /> + * {BIGINT : NotNull : FK to CUSTOMER} + * + * @param customerId The value of customerId. (Nullable) + */ + public void setCustomerId(java.math.BigDecimal customerId) { + _modifiedProperties.addPropertyName("customerId"); + this._customerId = customerId; + } + + /** Column Annotation for S2Dao. VARCHAR(128) */ + public static final String company_COLUMN = "COMPANY"; + + /** + * Get the value of company. <br /> + * {VARCHAR(128)} + * + * @return The value of company. (Nullable) + */ + public String getCompany() { + return _company; + } + + /** + * Set the value of company. <br /> + * {VARCHAR(128)} + * + * @param company The value of company. (Nullable) + */ + public void setCompany(String company) { + _modifiedProperties.addPropertyName("company"); + this._company = company; + } + + /** Column Annotation for S2Dao. VARCHAR(64) */ + public static final String department_COLUMN = "DEPARTMENT"; + + /** + * Get the value of department. <br /> + * {VARCHAR(64)} + * + * @return The value of department. (Nullable) + */ + public String getDepartment() { + return _department; + } + + /** + * Set the value of department. <br /> + * {VARCHAR(64)} + * + * @param department The value of department. (Nullable) + */ + public void setDepartment(String department) { + _modifiedProperties.addPropertyName("department"); + this._department = department; + } + + /** Column Annotation for S2Dao. VARCHAR(32) : NotNull */ + public static final String firstname_COLUMN = "FIRSTNAME"; + + /** + * Get the value of firstname. <br /> + * {VARCHAR(32) : NotNull} + * + * @return The value of firstname. (Nullable) + */ + public String getFirstname() { + return _firstname; + } + + /** + * Set the value of firstname. <br /> + * {VARCHAR(32) : NotNull} + * + * @param firstname The value of firstname. (Nullable) + */ + public void setFirstname(String firstname) { + _modifiedProperties.addPropertyName("firstname"); + this._firstname = firstname; + } + + /** Column Annotation for S2Dao. VARCHAR(32) : NotNull */ + public static final String lastname_COLUMN = "LASTNAME"; + + /** + * Get the value of lastname. <br /> + * {VARCHAR(32) : NotNull} + * + * @return The value of lastname. (Nullable) + */ + public String getLastname() { + return _lastname; + } + + /** + * Set the value of lastname. <br /> + * {VARCHAR(32) : NotNull} + * + * @param lastname The value of lastname. (Nullable) + */ + public void setLastname(String lastname) { + _modifiedProperties.addPropertyName("lastname"); + this._lastname = lastname; + } + + /** Column Annotation for S2Dao. VARCHAR(255) : NotNull */ + public static final String streetAddress_COLUMN = "STREET_ADDRESS"; + + /** + * Get the value of streetAddress. <br /> + * {VARCHAR(255) : NotNull} + * + * @return The value of streetAddress. (Nullable) + */ + public String getStreetAddress() { + return _streetAddress; + } + + /** + * Set the value of streetAddress. <br /> + * {VARCHAR(255) : NotNull} + * + * @param streetAddress The value of streetAddress. (Nullable) + */ + public void setStreetAddress(String streetAddress) { + _modifiedProperties.addPropertyName("streetAddress"); + this._streetAddress = streetAddress; + } + + /** Column Annotation for S2Dao. VARCHAR(32) */ + public static final String suburb_COLUMN = "SUBURB"; + + /** + * Get the value of suburb. <br /> + * {VARCHAR(32)} + * + * @return The value of suburb. (Nullable) + */ + public String getSuburb() { + return _suburb; + } + + /** + * Set the value of suburb. <br /> + * {VARCHAR(32)} + * + * @param suburb The value of suburb. (Nullable) + */ + public void setSuburb(String suburb) { + _modifiedProperties.addPropertyName("suburb"); + this._suburb = suburb; + } + + /** Column Annotation for S2Dao. VARCHAR(64) : NotNull */ + public static final String city_COLUMN = "CITY"; + + /** + * Get the value of city. <br /> + * {VARCHAR(64) : NotNull} + * + * @return The value of city. (Nullable) + */ + public String getCity() { + return _city; + } + + /** + * Set the value of city. <br /> + * {VARCHAR(64) : NotNull} + * + * @param city The value of city. (Nullable) + */ + public void setCity(String city) { + _modifiedProperties.addPropertyName("city"); + this._city = city; + } + + /** Column Annotation for S2Dao. VARCHAR(32) */ + public static final String state_COLUMN = "STATE"; + + /** + * Get the value of state. <br /> + * {VARCHAR(32)} + * + * @return The value of state. (Nullable) + */ + public String getState() { + return _state; + } + + /** + * Set the value of state. <br /> + * {VARCHAR(32)} + * + * @param state The value of state. (Nullable) + */ + public void setState(String state) { + _modifiedProperties.addPropertyName("state"); + this._state = state; + } + + /** Column Annotation for S2Dao. VARCHAR(10) : NotNull */ + public static final String postcode_COLUMN = "POSTCODE"; + + /** + * Get the value of postcode. <br /> + * {VARCHAR(10) : NotNull} + * + * @return The value of postcode. (Nullable) + */ + public String getPostcode() { + return _postcode; + } + + /** + * Set the value of postcode. <br /> + * {VARCHAR(10) : NotNull} + * + * @param postcode The value of postcode. (Nullable) + */ + public void setPostcode(String postcode) { + _modifiedProperties.addPropertyName("postcode"); + this._postcode = postcode; + } + + /** Column Annotation for S2Dao. VARCHAR(32) */ + public static final String telephone_COLUMN = "TELEPHONE"; + + /** + * Get the value of telephone. <br /> + * {VARCHAR(32)} + * + * @return The value of telephone. (Nullable) + */ + public String getTelephone() { + return _telephone; + } + + /** + * Set the value of telephone. <br /> + * {VARCHAR(32)} + * + * @param telephone The value of telephone. (Nullable) + */ + public void setTelephone(String telephone) { + _modifiedProperties.addPropertyName("telephone"); + this._telephone = telephone; + } + + /** Column Annotation for S2Dao. VARCHAR(32) */ + public static final String fax_COLUMN = "FAX"; + + /** + * Get the value of fax. <br /> + * {VARCHAR(32)} + * + * @return The value of fax. (Nullable) + */ + public String getFax() { + return _fax; + } + + /** + * Set the value of fax. <br /> + * {VARCHAR(32)} + * + * @param fax The value of fax. (Nullable) + */ + public void setFax(String fax) { + _modifiedProperties.addPropertyName("fax"); + this._fax = fax; + } + + /** Column Annotation for S2Dao. VARCHAR(32) */ + public static final String cellphone_COLUMN = "CELLPHONE"; + + /** + * Get the value of cellphone. <br /> + * {VARCHAR(32)} + * + * @return The value of cellphone. (Nullable) + */ + public String getCellphone() { + return _cellphone; + } + + /** + * Set the value of cellphone. <br /> + * {VARCHAR(32)} + * + * @param cellphone The value of cellphone. (Nullable) + */ + public void setCellphone(String cellphone) { + _modifiedProperties.addPropertyName("cellphone"); + this._cellphone = cellphone; + } + + /** Column Annotation for S2Dao. INTEGER : NotNull */ + public static final String defaultAddress_COLUMN = "DEFAULT_ADDRESS"; + + /** + * Get the value of defaultAddress. <br /> + * {INTEGER : NotNull} + * + * @return The value of defaultAddress. (Nullable) + */ + public java.math.BigDecimal getDefaultAddress() { + return _defaultAddress; + } + + /** + * Set the value of defaultAddress. <br /> + * {INTEGER : NotNull} + * + * @param defaultAddress The value of defaultAddress. (Nullable) + */ + public void setDefaultAddress(java.math.BigDecimal defaultAddress) { + _modifiedProperties.addPropertyName("defaultAddress"); + this._defaultAddress = defaultAddress; + } + + /** Column Annotation for S2Dao. INTEGER : NotNull : FK to LANGUAGE */ + public static final String languageId_COLUMN = "LANGUAGE_ID"; + + /** + * Get the value of languageId. <br /> + * {INTEGER : NotNull : FK to LANGUAGE} + * + * @return The value of languageId. (Nullable) + */ + public java.math.BigDecimal getLanguageId() { + return _languageId; + } + + /** + * Set the value of languageId. <br /> + * {INTEGER : NotNull : FK to LANGUAGE} + * + * @param languageId The value of languageId. (Nullable) + */ + public void setLanguageId(java.math.BigDecimal languageId) { + _modifiedProperties.addPropertyName("languageId"); + this._languageId = languageId; + } + + /** Column Annotation for S2Dao. INTEGER : NotNull : Default=[0] : FK to COUNTRY */ + public static final String countryId_COLUMN = "COUNTRY_ID"; + + /** + * Get the value of countryId. <br /> + * {INTEGER : NotNull : Default=[0] : FK to COUNTRY} + * + * @return The value of countryId. (Nullable) + */ + public java.math.BigDecimal getCountryId() { + return _countryId; + } + + /** + * Set the value of countryId. <br /> + * {INTEGER : NotNull : Default=[0] : FK to COUNTRY} + * + * @param countryId The value of countryId. (Nullable) + */ + public void setCountryId(java.math.BigDecimal countryId) { + _modifiedProperties.addPropertyName("countryId"); + this._countryId = countryId; + } + + /** Column Annotation for S2Dao. INTEGER : NotNull : Default=[0] : FK to ZONE */ + public static final String zoneId_COLUMN = "ZONE_ID"; + + /** + * Get the value of zoneId. <br /> + * {INTEGER : NotNull : Default=[0] : FK to ZONE} + * + * @return The value of zoneId. (Nullable) + */ + public java.math.BigDecimal getZoneId() { + return _zoneId; + } + + /** + * Set the value of zoneId. <br /> + * {INTEGER : NotNull : Default=[0] : FK to ZONE} + * + * @param zoneId The value of zoneId. (Nullable) + */ + public void setZoneId(java.math.BigDecimal zoneId) { + _modifiedProperties.addPropertyName("zoneId"); + this._zoneId = zoneId; + } + + + // =================================================================================== + // Classify Method + // =============== + + // =================================================================================== + // Classification Determination + // ============================ + + + // =================================================================================== + // Classification Getter + // ===================== + + + // =================================================================================== + // Foreign Table + // ============= + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [COUNTRY(TABLE)] + // ForeignProperty = [country] + // * * * * * * * * */ + + /** RELNO of foreign table for s2dao. */ + public static final int country_RELNO = 0; + + /** RELKEYS of foreign table for s2dao. */ + public static final String country_RELKEYS = "COUNTRY_ID:COUNTRY_ID"; + + /** The entity of foreign table. */ + protected jp.sf.pal.pompei.exentity.Country _parentCountry; + + /** + * Get the entity of foreign table of country. {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.Country getCountry() { + return _parentCountry; + } + + /** + * Set the entity of foreign table of country. + * + * @param country The entity of foreign table. (Nullable) + */ + public void setCountry(jp.sf.pal.pompei.exentity.Country country) { + this._parentCountry = country; + } + + /** + * Has relation object of country. + * + * @return Determination. + */ + public boolean hasRelationCountry() { + return _parentCountry != null && _parentCountry.hasPrimaryKeyValue(); + } + + /** + * Trace relation object (for read) of country. + * + * @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.Country traceCountry() { + return _parentCountry != null ? _parentCountry : new jp.sf.pal.pompei.exentity.Country(); + } + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [CUSTOMER(TABLE)] + // ForeignProperty = [customer] + // * * * * * * * * */ + + /** RELNO of foreign table for s2dao. */ + public static final int customer_RELNO = 1; + + /** RELKEYS of foreign table for s2dao. */ + public static final String customer_RELKEYS = "CUSTOMER_ID:CUSTOMER_ID"; + + /** The entity of foreign table. */ + protected jp.sf.pal.pompei.exentity.Customer _parentCustomer; + + /** + * Get the entity of foreign table of customer. {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.Customer getCustomer() { + return _parentCustomer; + } + + /** + * Set the entity of foreign table of customer. + * + * @param customer The entity of foreign table. (Nullable) + */ + public void setCustomer(jp.sf.pal.pompei.exentity.Customer customer) { + this._parentCustomer = customer; + } + + /** + * Has relation object of customer. + * + * @return Determination. + */ + public boolean hasRelationCustomer() { + return _parentCustomer != null && _parentCustomer.hasPrimaryKeyValue(); + } + + /** + * Trace relation object (for read) of customer. + * + * @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.Customer traceCustomer() { + return _parentCustomer != null ? _parentCustomer : new jp.sf.pal.pompei.exentity.Customer(); + } + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [LANGUAGE(TABLE)] + // ForeignProperty = [language] + // * * * * * * * * */ + + /** RELNO of foreign table for s2dao. */ + public static final int language_RELNO = 2; + + /** RELKEYS of foreign table for s2dao. */ + public static final String language_RELKEYS = "LANGUAGE_ID:LANGUAGE_ID"; + + /** The entity of foreign table. */ + protected jp.sf.pal.pompei.exentity.Language _parentLanguage; + + /** + * Get the entity of foreign table of language. {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.Language getLanguage() { + return _parentLanguage; + } + + /** + * Set the entity of foreign table of language. + * + * @param language The entity of foreign table. (Nullable) + */ + public void setLanguage(jp.sf.pal.pompei.exentity.Language language) { + this._parentLanguage = language; + } + + /** + * Has relation object of language. + * + * @return Determination. + */ + public boolean hasRelationLanguage() { + return _parentLanguage != null && _parentLanguage.hasPrimaryKeyValue(); + } + + /** + * Trace relation object (for read) of language. + * + * @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.Language traceLanguage() { + return _parentLanguage != null ? _parentLanguage : new jp.sf.pal.pompei.exentity.Language(); + } + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [ZONE(TABLE)] + // ForeignProperty = [zone] + // * * * * * * * * */ + + /** RELNO of foreign table for s2dao. */ + public static final int zone_RELNO = 3; + + /** RELKEYS of foreign table for s2dao. */ + public static final String zone_RELKEYS = "ZONE_ID:ZONE_ID"; + + /** The entity of foreign table. */ + protected jp.sf.pal.pompei.exentity.Zone _parentZone; + + /** + * Get the entity of foreign table of zone. {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.Zone getZone() { + return _parentZone; + } + + /** + * Set the entity of foreign table of zone. + * + * @param zone The entity of foreign table. (Nullable) + */ + public void setZone(jp.sf.pal.pompei.exentity.Zone zone) { + this._parentZone = zone; + } + + /** + * Has relation object of zone. + * + * @return Determination. + */ + public boolean hasRelationZone() { + return _parentZone != null && _parentZone.hasPrimaryKeyValue(); + } + + /** + * Trace relation object (for read) of zone. + * + * @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.Zone traceZone() { + return _parentZone != null ? _parentZone : new jp.sf.pal.pompei.exentity.Zone(); + } + + // =================================================================================== + // Referer Table + // ============= + + // =================================================================================== + // Determination + // ============= + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasPrimaryKeyValue() { + + if (_addressBookId == 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 BsAddressBook)) { + return false; + } + final BsAddressBook otherEntity = (BsAddressBook)other; + + if (getAddressBookId() == null || !getAddressBookId().equals(otherEntity.getAddressBookId())) { + 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.getAddressBookId() != null) { + result = result + getAddressBookId().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(getAddressBookId()); + sb.append(delimiter).append(getCustomerId()); + sb.append(delimiter).append(getCompany()); + sb.append(delimiter).append(getDepartment()); + sb.append(delimiter).append(getFirstname()); + sb.append(delimiter).append(getLastname()); + sb.append(delimiter).append(getStreetAddress()); + sb.append(delimiter).append(getSuburb()); + sb.append(delimiter).append(getCity()); + sb.append(delimiter).append(getState()); + sb.append(delimiter).append(getPostcode()); + sb.append(delimiter).append(getTelephone()); + sb.append(delimiter).append(getFax()); + sb.append(delimiter).append(getCellphone()); + sb.append(delimiter).append(getDefaultAddress()); + sb.append(delimiter).append(getLanguageId()); + sb.append(delimiter).append(getCountryId()); + sb.append(delimiter).append(getZoneId()); + + 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/BsDeliveryMethod.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsDeliveryMethod.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsDeliveryMethod.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,504 @@ +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 DELIVERY_METHOD(TABLE). <br /> + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID + * + * [column-property] + * DELIVERY_METHOD_ID, CODE, OBJECT_NAME, STATUS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * + * [foreign-property] + * + * + * [refferer-property] + * deliveryMethodDescriptionList, orderFormList + * + * [sequence] + * + * + * [identity] + * deliveryMethodId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsDeliveryMethod implements Entity, java.io.Serializable { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; + + /** TABLE-Annotation for S2Dao. The value is DELIVERY_METHOD. */ + public static final String TABLE = "DELIVERY_METHOD"; + + + /** ID-Annotation */ + public static final String deliveryMethodId_ID = "identity"; + + // =================================================================================== + // Attribute + // ========= + /** Entity modified properties. (for S2Dao) */ + protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties(); + + /** The value of deliveryMethodId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + protected java.math.BigDecimal _deliveryMethodId; + + /** The value of code. VARCHAR(16) : NotNull */ + protected String _code; + + /** The value of objectName. VARCHAR(128) : NotNull */ + protected String _objectName; + + /** The value of status. INTEGER : NotNull */ + protected java.math.BigDecimal _status; + + /** The value of sortOrder. INTEGER : NotNull */ + protected java.math.BigDecimal _sortOrder; + + /** The value of dateAdded. TIMESTAMP : NotNull */ + protected java.sql.Timestamp _dateAdded; + + /** The value of lastModified. TIMESTAMP : NotNull */ + protected java.sql.Timestamp _lastModified; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsDeliveryMethod() { + } + + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return DBMetaInstanceHandler.findDBMeta(getTableDbName()); + } + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name of DELIVERY_METHOD(TABLE). (NotNull) + */ + public String getTableDbName() { + return "DELIVERY_METHOD"; + } + + /** + * The implementation. + * + * @return Table prop-name(JavaBeansRule) of DELIVERY_METHOD(TABLE). (NotNull) + */ + public String getTablePropName() { + return "deliveryMethod"; + } + + /** + * The implementation. + * + * @return Table cap-prop-name of DELIVERY_METHOD(TABLE). (NotNull) + */ + public String getTableCapPropName() { + return "DeliveryMethod"; + } + + /** + * The implementation. + * + * @return Table uncap-prop-name of DELIVERY_METHOD(TABLE). (NotNull) + */ + public String getTableUncapPropName() { + return "deliveryMethod"; + } + + // =================================================================================== + // Accessor + // ======== + + /** Column Annotation for S2Dao. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String deliveryMethodId_COLUMN = "DELIVERY_METHOD_ID"; + + /** + * Get the value of deliveryMethodId. <br /> + * {PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT]} + * + * @return The value of deliveryMethodId. (Nullable) + */ + public java.math.BigDecimal getDeliveryMethodId() { + return _deliveryMethodId; + } + + /** + * Set the value of deliveryMethodId. <br /> + * {PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT]} + * + * @param deliveryMethodId The value of deliveryMethodId. (Nullable) + */ + public void setDeliveryMethodId(java.math.BigDecimal deliveryMethodId) { + _modifiedProperties.addPropertyName("deliveryMethodId"); + this._deliveryMethodId = deliveryMethodId; + } + + /** Column Annotation for S2Dao. VARCHAR(16) : NotNull */ + public static final String code_COLUMN = "CODE"; + + /** + * Get the value of code. <br /> + * {VARCHAR(16) : NotNull} + * + * @return The value of code. (Nullable) + */ + public String getCode() { + return _code; + } + + /** + * Set the value of code. <br /> + * {VARCHAR(16) : NotNull} + * + * @param code The value of code. (Nullable) + */ + public void setCode(String code) { + _modifiedProperties.addPropertyName("code"); + this._code = code; + } + + /** Column Annotation for S2Dao. VARCHAR(128) : NotNull */ + public static final String objectName_COLUMN = "OBJECT_NAME"; + + /** + * Get the value of objectName. <br /> + * {VARCHAR(128) : NotNull} + * + * @return The value of objectName. (Nullable) + */ + public String getObjectName() { + return _objectName; + } + + /** + * Set the value of objectName. <br /> + * {VARCHAR(128) : NotNull} + * + * @param objectName The value of objectName. (Nullable) + */ + public void setObjectName(String objectName) { + _modifiedProperties.addPropertyName("objectName"); + this._objectName = objectName; + } + + /** 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; + } + + /** Column Annotation for S2Dao. INTEGER : NotNull */ + public static final String sortOrder_COLUMN = "SORT_ORDER"; + + /** + * Get the value of sortOrder. <br /> + * {INTEGER : NotNull} + * + * @return The value of sortOrder. (Nullable) + */ + public java.math.BigDecimal getSortOrder() { + return _sortOrder; + } + + /** + * Set the value of sortOrder. <br /> + * {INTEGER : NotNull} + * + * @param sortOrder The value of sortOrder. (Nullable) + */ + public void setSortOrder(java.math.BigDecimal sortOrder) { + _modifiedProperties.addPropertyName("sortOrder"); + this._sortOrder = sortOrder; + } + + /** Column Annotation for S2Dao. TIMESTAMP : NotNull */ + public static final String dateAdded_COLUMN = "DATE_ADDED"; + + /** + * Get the value of dateAdded. <br /> + * {TIMESTAMP : NotNull} + * + * @return The value of dateAdded. (Nullable) + */ + public java.sql.Timestamp getDateAdded() { + return _dateAdded; + } + + /** + * Set the value of dateAdded. <br /> + * {TIMESTAMP : NotNull} + * + * @param dateAdded The value of dateAdded. (Nullable) + */ + public void setDateAdded(java.sql.Timestamp dateAdded) { + _modifiedProperties.addPropertyName("dateAdded"); + this._dateAdded = dateAdded; + } + + /** Column Annotation for S2Dao. TIMESTAMP : NotNull */ + public static final String lastModified_COLUMN = "LAST_MODIFIED"; + + /** + * Get the value of lastModified. <br /> + * {TIMESTAMP : NotNull} + * + * @return The value of lastModified. (Nullable) + */ + public java.sql.Timestamp getLastModified() { + return _lastModified; + } + + /** + * Set the value of lastModified. <br /> + * {TIMESTAMP : NotNull} + * + * @param lastModified The value of lastModified. (Nullable) + */ + public void setLastModified(java.sql.Timestamp lastModified) { + _modifiedProperties.addPropertyName("lastModified"); + this._lastModified = lastModified; + } + + + // =================================================================================== + // Classify Method + // =============== + + // =================================================================================== + // Classification Determination + // ============================ + + + // =================================================================================== + // Classification Getter + // ===================== + + + // =================================================================================== + // Foreign Table + // ============= + + // =================================================================================== + // Referer Table + // ============= + + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [DELIVERY_METHOD_DESCRIPTION(TABLE)] + // RefererProperty = [deliveryMethodDescriptionList] + // * * * * * * * * */ + + + /** The list of referer table. */ + protected java.util.List<jp.sf.pal.pompei.exentity.DeliveryMethodDescription> _childrenDeliveryMethodDescriptionList; + + /** + * 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.DeliveryMethodDescription> getDeliveryMethodDescriptionList() { + return _childrenDeliveryMethodDescriptionList; + } + + /** + * Set the list of referer table. + * + * @param deliveryMethodDescriptionList The list of refferer table. (Nullable) + */ + public void setDeliveryMethodDescriptionList(java.util.List<jp.sf.pal.pompei.exentity.DeliveryMethodDescription> deliveryMethodDescriptionList) { + this._childrenDeliveryMethodDescriptionList = deliveryMethodDescriptionList; + } + + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [ORDER_FORM(TABLE)] + // RefererProperty = [orderFormList] + // * * * * * * * * */ + + + /** The list of referer table. */ + protected java.util.List<jp.sf.pal.pompei.exentity.OrderForm> _childrenOrderFormList; + + /** + * 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.OrderForm> getOrderFormList() { + return _childrenOrderFormList; + } + + /** + * Set the list of referer table. + * + * @param orderFormList The list of refferer table. (Nullable) + */ + public void setOrderFormList(java.util.List<jp.sf.pal.pompei.exentity.OrderForm> orderFormList) { + this._childrenOrderFormList = orderFormList; + } + + // =================================================================================== + // Determination + // ============= + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasPrimaryKeyValue() { + + if (_deliveryMethodId == 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 BsDeliveryMethod)) { + return false; + } + final BsDeliveryMethod otherEntity = (BsDeliveryMethod)other; + + if (getDeliveryMethodId() == null || !getDeliveryMethodId().equals(otherEntity.getDeliveryMethodId())) { + 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.getDeliveryMethodId() != null) { + result = result + getDeliveryMethodId().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(getDeliveryMethodId()); + sb.append(delimiter).append(getCode()); + sb.append(delimiter).append(getObjectName()); + sb.append(delimiter).append(getStatus()); + sb.append(delimiter).append(getSortOrder()); + sb.append(delimiter).append(getDateAdded()); + sb.append(delimiter).append(getLastModified()); + + 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/BsDeliveryMethodDescription.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsDeliveryMethodDescription.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsDeliveryMethodDescription.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,468 @@ +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 DELIVERY_METHOD_DESCRIPTION(TABLE). <br /> + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID, LANGUAGE_ID + * + * [column-property] + * DELIVERY_METHOD_ID, LANGUAGE_ID, NAME, DESCRIPTION + * + * [foreign-property] + * deliveryMethod, language + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsDeliveryMethodDescription implements Entity, java.io.Serializable { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; + + /** TABLE-Annotation for S2Dao. The value is DELIVERY_METHOD_DESCRIPTION. */ + public static final String TABLE = "DELIVERY_METHOD_DESCRIPTION"; + + + // =================================================================================== + // Attribute + // ========= + /** Entity modified properties. (for S2Dao) */ + protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties(); + + /** The value of deliveryMethodId. PK : INTEGER : NotNull : Default=[0] : FK to DELIVERY_METHOD */ + protected java.math.BigDecimal _deliveryMethodId; + + /** The value of languageId. PK : INTEGER : NotNull : Default=[1] : FK to LANGUAGE */ + protected java.math.BigDecimal _languageId; + + /** The value of name. VARCHAR(64) : NotNull */ + protected String _name; + + /** The value of description. LONG VARCHAR(32700) */ + protected String _description; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsDeliveryMethodDescription() { + } + + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return DBMetaInstanceHandler.findDBMeta(getTableDbName()); + } + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name of DELIVERY_METHOD_DESCRIPTION(TABLE). (NotNull) + */ + public String getTableDbName() { + return "DELIVERY_METHOD_DESCRIPTION"; + } + + /** + * The implementation. + * + * @return Table prop-name(JavaBeansRule) of DELIVERY_METHOD_DESCRIPTION(TABLE). (NotNull) + */ + public String getTablePropName() { + return "deliveryMethodDescription"; + } + + /** + * The implementation. + * + * @return Table cap-prop-name of DELIVERY_METHOD_DESCRIPTION(TABLE). (NotNull) + */ + public String getTableCapPropName() { + return "DeliveryMethodDescription"; + } + + /** + * The implementation. + * + * @return Table uncap-prop-name of DELIVERY_METHOD_DESCRIPTION(TABLE). (NotNull) + */ + public String getTableUncapPropName() { + return "deliveryMethodDescription"; + } + + // =================================================================================== + // Accessor + // ======== + + /** Column Annotation for S2Dao. PK : INTEGER : NotNull : Default=[0] : FK to DELIVERY_METHOD */ + public static final String deliveryMethodId_COLUMN = "DELIVERY_METHOD_ID"; + + /** + * Get the value of deliveryMethodId. <br /> + * {PK : INTEGER : NotNull : Default=[0] : FK to DELIVERY_METHOD} + * + * @return The value of deliveryMethodId. (Nullable) + */ + public java.math.BigDecimal getDeliveryMethodId() { + return _deliveryMethodId; + } + + /** + * Set the value of deliveryMethodId. <br /> + * {PK : INTEGER : NotNull : Default=[0] : FK to DELIVERY_METHOD} + * + * @param deliveryMethodId The value of deliveryMethodId. (Nullable) + */ + public void setDeliveryMethodId(java.math.BigDecimal deliveryMethodId) { + _modifiedProperties.addPropertyName("deliveryMethodId"); + this._deliveryMethodId = deliveryMethodId; + } + + /** Column Annotation for S2Dao. PK : INTEGER : NotNull : Default=[1] : FK to LANGUAGE */ + public static final String languageId_COLUMN = "LANGUAGE_ID"; + + /** + * Get the value of languageId. <br /> + * {PK : INTEGER : NotNull : Default=[1] : FK to LANGUAGE} + * + * @return The value of languageId. (Nullable) + */ + public java.math.BigDecimal getLanguageId() { + return _languageId; + } + + /** + * Set the value of languageId. <br /> + * {PK : INTEGER : NotNull : Default=[1] : FK to LANGUAGE} + * + * @param languageId The value of languageId. (Nullable) + */ + public void setLanguageId(java.math.BigDecimal languageId) { + _modifiedProperties.addPropertyName("languageId"); + this._languageId = languageId; + } + + /** Column Annotation for S2Dao. VARCHAR(64) : NotNull */ + public static final String name_COLUMN = "NAME"; + + /** + * Get the value of name. <br /> + * {VARCHAR(64) : NotNull} + * + * @return The value of name. (Nullable) + */ + public String getName() { + return _name; + } + + /** + * Set the value of name. <br /> + * {VARCHAR(64) : NotNull} + * + * @param name The value of name. (Nullable) + */ + public void setName(String name) { + _modifiedProperties.addPropertyName("name"); + this._name = name; + } + + /** Column Annotation for S2Dao. LONG VARCHAR(32700) */ + public static final String description_COLUMN = "DESCRIPTION"; + + /** + * Get the value of description. <br /> + * {LONG VARCHAR(32700)} + * + * @return The value of description. (Nullable) + */ + public String getDescription() { + return _description; + } + + /** + * Set the value of description. <br /> + * {LONG VARCHAR(32700)} + * + * @param description The value of description. (Nullable) + */ + public void setDescription(String description) { + _modifiedProperties.addPropertyName("description"); + this._description = description; + } + + + // =================================================================================== + // Classify Method + // =============== + + // =================================================================================== + // Classification Determination + // ============================ + + + // =================================================================================== + // Classification Getter + // ===================== + + + // =================================================================================== + // Foreign Table + // ============= + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [DELIVERY_METHOD(TABLE)] + // ForeignProperty = [deliveryMethod] + // * * * * * * * * */ + + /** RELNO of foreign table for s2dao. */ + public static final int deliveryMethod_RELNO = 0; + + /** RELKEYS of foreign table for s2dao. */ + public static final String deliveryMethod_RELKEYS = "DELIVERY_METHOD_ID:DELIVERY_METHOD_ID"; + + /** The entity of foreign table. */ + protected jp.sf.pal.pompei.exentity.DeliveryMethod _parentDeliveryMethod; + + /** + * Get the entity of foreign table of deliveryMethod. {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.DeliveryMethod getDeliveryMethod() { + return _parentDeliveryMethod; + } + + /** + * Set the entity of foreign table of deliveryMethod. + * + * @param deliveryMethod The entity of foreign table. (Nullable) + */ + public void setDeliveryMethod(jp.sf.pal.pompei.exentity.DeliveryMethod deliveryMethod) { + this._parentDeliveryMethod = deliveryMethod; + } + + /** + * Has relation object of deliveryMethod. + * + * @return Determination. + */ + public boolean hasRelationDeliveryMethod() { + return _parentDeliveryMethod != null && _parentDeliveryMethod.hasPrimaryKeyValue(); + } + + /** + * Trace relation object (for read) of deliveryMethod. + * + * @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.DeliveryMethod traceDeliveryMethod() { + return _parentDeliveryMethod != null ? _parentDeliveryMethod : new jp.sf.pal.pompei.exentity.DeliveryMethod(); + } + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [LANGUAGE(TABLE)] + // ForeignProperty = [language] + // * * * * * * * * */ + + /** RELNO of foreign table for s2dao. */ + public static final int language_RELNO = 1; + + /** RELKEYS of foreign table for s2dao. */ + public static final String language_RELKEYS = "LANGUAGE_ID:LANGUAGE_ID"; + + /** The entity of foreign table. */ + protected jp.sf.pal.pompei.exentity.Language _parentLanguage; + + /** + * Get the entity of foreign table of language. {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.Language getLanguage() { + return _parentLanguage; + } + + /** + * Set the entity of foreign table of language. + * + * @param language The entity of foreign table. (Nullable) + */ + public void setLanguage(jp.sf.pal.pompei.exentity.Language language) { + this._parentLanguage = language; + } + + /** + * Has relation object of language. + * + * @return Determination. + */ + public boolean hasRelationLanguage() { + return _parentLanguage != null && _parentLanguage.hasPrimaryKeyValue(); + } + + /** + * Trace relation object (for read) of language. + * + * @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.Language traceLanguage() { + return _parentLanguage != null ? _parentLanguage : new jp.sf.pal.pompei.exentity.Language(); + } + + // =================================================================================== + // Referer Table + // ============= + + // =================================================================================== + // Determination + // ============= + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasPrimaryKeyValue() { + + if (_deliveryMethodId == null) { + return false; + } + if (_languageId == 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 BsDeliveryMethodDescription)) { + return false; + } + final BsDeliveryMethodDescription otherEntity = (BsDeliveryMethodDescription)other; + + if (getDeliveryMethodId() == null || !getDeliveryMethodId().equals(otherEntity.getDeliveryMethodId())) { + return false; + } + if (getLanguageId() == null || !getLanguageId().equals(otherEntity.getLanguageId())) { + 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.getDeliveryMethodId() != null) { + result = result + getDeliveryMethodId().hashCode(); + } + if (this.getLanguageId() != null) { + result = result + getLanguageId().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(getDeliveryMethodId()); + sb.append(delimiter).append(getLanguageId()); + sb.append(delimiter).append(getName()); + sb.append(delimiter).append(getDescription()); + + 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/BsTaxClass.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsTaxClass.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsTaxClass.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,448 @@ +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 TAX_CLASS(TABLE). <br /> + * + * <pre> + * [primary-key] + * TAX_CLASS_ID + * + * [column-property] + * TAX_CLASS_ID, NAME, DESCRIPTION, LAST_MODIFIED, DATE_ADDED + * + * [foreign-property] + * + * + * [refferer-property] + * productList, taxRateList + * + * [sequence] + * + * + * [identity] + * taxClassId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ + @ SuppressWarnings("unchecked") +public abstract class BsTaxClass implements Entity, java.io.Serializable { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; + + /** TABLE-Annotation for S2Dao. The value is TAX_CLASS. */ + public static final String TABLE = "TAX_CLASS"; + + + /** ID-Annotation */ + public static final String taxClassId_ID = "identity"; + + // =================================================================================== + // Attribute + // ========= + /** Entity modified properties. (for S2Dao) */ + protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties(); + + /** The value of taxClassId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + protected java.math.BigDecimal _taxClassId; + + /** The value of name. VARCHAR(32) : NotNull */ + protected String _name; + + /** The value of description. VARCHAR(255) : NotNull */ + protected String _description; + + /** The value of lastModified. TIMESTAMP */ + protected java.sql.Timestamp _lastModified; + + /** The value of dateAdded. TIMESTAMP : NotNull */ + protected java.sql.Timestamp _dateAdded; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsTaxClass() { + } + + + // =================================================================================== + // DBMeta + // ====== + /** + * The implementation. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return DBMetaInstanceHandler.findDBMeta(getTableDbName()); + } + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name of TAX_CLASS(TABLE). (NotNull) + */ + public String getTableDbName() { + return "TAX_CLASS"; + } + + /** + * The implementation. + * + * @return Table prop-name(JavaBeansRule) of TAX_CLASS(TABLE). (NotNull) + */ + public String getTablePropName() { + return "taxClass"; + } + + /** + * The implementation. + * + * @return Table cap-prop-name of TAX_CLASS(TABLE). (NotNull) + */ + public String getTableCapPropName() { + return "TaxClass"; + } + + /** + * The implementation. + * + * @return Table uncap-prop-name of TAX_CLASS(TABLE). (NotNull) + */ + public String getTableUncapPropName() { + return "taxClass"; + } + + // =================================================================================== + // Accessor + // ======== + + /** Column Annotation for S2Dao. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String taxClassId_COLUMN = "TAX_CLASS_ID"; + + /** + * Get the value of taxClassId. <br /> + * {PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT]} + * + * @return The value of taxClassId. (Nullable) + */ + public java.math.BigDecimal getTaxClassId() { + return _taxClassId; + } + + /** + * Set the value of taxClassId. <br /> + * {PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT]} + * + * @param taxClassId The value of taxClassId. (Nullable) + */ + public void setTaxClassId(java.math.BigDecimal taxClassId) { + _modifiedProperties.addPropertyName("taxClassId"); + this._taxClassId = taxClassId; + } + + /** Column Annotation for S2Dao. VARCHAR(32) : NotNull */ + public static final String name_COLUMN = "NAME"; + + /** + * Get the value of name. <br /> + * {VARCHAR(32) : NotNull} + * + * @return The value of name. (Nullable) + */ + public String getName() { + return _name; + } + + /** + * Set the value of name. <br /> + * {VARCHAR(32) : NotNull} + * + * @param name The value of name. (Nullable) + */ + public void setName(String name) { + _modifiedProperties.addPropertyName("name"); + this._name = name; + } + + /** Column Annotation for S2Dao. VARCHAR(255) : NotNull */ + public static final String description_COLUMN = "DESCRIPTION"; + + /** + * Get the value of description. <br /> + * {VARCHAR(255) : NotNull} + * + * @return The value of description. (Nullable) + */ + public String getDescription() { + return _description; + } + + /** + * Set the value of description. <br /> + * {VARCHAR(255) : NotNull} + * + * @param description The value of description. (Nullable) + */ + public void setDescription(String description) { + _modifiedProperties.addPropertyName("description"); + this._description = description; + } + + /** Column Annotation for S2Dao. TIMESTAMP */ + public static final String lastModified_COLUMN = "LAST_MODIFIED"; + + /** + * Get the value of lastModified. <br /> + * {TIMESTAMP} + * + * @return The value of lastModified. (Nullable) + */ + public java.sql.Timestamp getLastModified() { + return _lastModified; + } + + /** + * Set the value of lastModified. <br /> + * {TIMESTAMP} + * + * @param lastModified The value of lastModified. (Nullable) + */ + public void setLastModified(java.sql.Timestamp lastModified) { + _modifiedProperties.addPropertyName("lastModified"); + this._lastModified = lastModified; + } + + /** Column Annotation for S2Dao. TIMESTAMP : NotNull */ + public static final String dateAdded_COLUMN = "DATE_ADDED"; + + /** + * Get the value of dateAdded. <br /> + * {TIMESTAMP : NotNull} + * + * @return The value of dateAdded. (Nullable) + */ + public java.sql.Timestamp getDateAdded() { + return _dateAdded; + } + + /** + * Set the value of dateAdded. <br /> + * {TIMESTAMP : NotNull} + * + * @param dateAdded The value of dateAdded. (Nullable) + */ + public void setDateAdded(java.sql.Timestamp dateAdded) { + _modifiedProperties.addPropertyName("dateAdded"); + this._dateAdded = dateAdded; + } + + + // =================================================================================== + // Classify Method + // =============== + + // =================================================================================== + // Classification Determination + // ============================ + + + // =================================================================================== + // Classification Getter + // ===================== + + + // =================================================================================== + // Foreign Table + // ============= + + // =================================================================================== + // Referer Table + // ============= + + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [PRODUCT(TABLE)] + // RefererProperty = [productList] + // * * * * * * * * */ + + + /** The list of referer table. */ + protected java.util.List<jp.sf.pal.pompei.exentity.Product> _childrenProductList; + + /** + * 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.Product> getProductList() { + return _childrenProductList; + } + + /** + * Set the list of referer table. + * + * @param productList The list of refferer table. (Nullable) + */ + public void setProductList(java.util.List<jp.sf.pal.pompei.exentity.Product> productList) { + this._childrenProductList = productList; + } + + + // /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + // RefererTable = [TAX_RATE(TABLE)] + // RefererProperty = [taxRateList] + // * * * * * * * * */ + + + /** The list of referer table. */ + protected java.util.List<jp.sf.pal.pompei.exentity.TaxRate> _childrenTaxRateList; + + /** + * 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.TaxRate> getTaxRateList() { + return _childrenTaxRateList; + } + + /** + * Set the list of referer table. + * + * @param taxRateList The list of refferer table. (Nullable) + */ + public void setTaxRateList(java.util.List<jp.sf.pal.pompei.exentity.TaxRate> taxRateList) { + this._childrenTaxRateList = taxRateList; + } + + // =================================================================================== + // Determination + // ============= + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasPrimaryKeyValue() { + + if (_taxClassId == 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 BsTaxClass)) { + return false; + } + final BsTaxClass otherEntity = (BsTaxClass)other; + + if (getTaxClassId() == null || !getTaxClassId().equals(otherEntity.getTaxClassId())) { + 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.getTaxClassId() != null) { + result = result + getTaxClassId().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(getTaxClassId()); + sb.append(delimiter).append(getName()); + sb.append(delimiter).append(getDescription()); + sb.append(delimiter).append(getLastModified()); + sb.append(delimiter).append(getDateAdded()); + + 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/AddressBookDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/AddressBookDbm.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/AddressBookDbm.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,1588 @@ +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.AddressBook; +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 ADDRESS_BOOK. (Singleton) + * + * <pre> + * [primary-key] + * ADDRESS_BOOK_ID + * + * [column-property] + * ADDRESS_BOOK_ID, CUSTOMER_ID, COMPANY, DEPARTMENT, FIRSTNAME, LASTNAME, STREET_ADDRESS, SUBURB, CITY, STATE, POSTCODE, TELEPHONE, FAX, CELLPHONE, DEFAULT_ADDRESS, LANGUAGE_ID, COUNTRY_ID, ZONE_ID + * + * [foreign-property] + * country, customer, language, zone + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * addressBookId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public class AddressBookDbm extends AbstractDBMeta { + + // =================================================================================== + // Definition + // ========== + /** The type of entity. */ + protected static final Class ENTITY_TYPE = AddressBook.class; + + /** Singleton instance. */ + private static final AddressBookDbm _instance = new AddressBookDbm(); + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + private AddressBookDbm() { + } + + // =================================================================================== + // Singleton + // ========= + /** + * Get instance. + * + * @return Singleton instance. (NotNull) + */ + public static AddressBookDbm getInstance() { + return _instance; + } + + // =================================================================================== + // Name Definition + // =============== + // ----------------------------------------------------- + // Table + // ----- + /** Table db name. */ + public static final String TABLE_DB_NAME = "ADDRESS_BOOK"; + + /** Table prop name(JavaBeansRule). */ + public static final String TABLE_PROPERTY_NAME = "addressBook"; + + /** Table cap-prop name. */ + public static final String TABLE_CAP_PROP_NAME = "AddressBook"; + + /** Table uncap-prop name. */ + public static final String TABLE_UNCAP_PROP_NAME = "addressBook"; + + // ----------------------------------------------------- + // Column DB-Name + // -------------- + /** Db-name of ADDRESS_BOOK_ID. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String DB_NAME_ADDRESS_BOOK_ID = "ADDRESS_BOOK_ID"; + /** Db-name of CUSTOMER_ID. BIGINT : NotNull : FK to CUSTOMER */ + public static final String DB_NAME_CUSTOMER_ID = "CUSTOMER_ID"; + /** Db-name of COMPANY. VARCHAR(128) */ + public static final String DB_NAME_COMPANY = "COMPANY"; + /** Db-name of DEPARTMENT. VARCHAR(64) */ + public static final String DB_NAME_DEPARTMENT = "DEPARTMENT"; + /** Db-name of FIRSTNAME. VARCHAR(32) : NotNull */ + public static final String DB_NAME_FIRSTNAME = "FIRSTNAME"; + /** Db-name of LASTNAME. VARCHAR(32) : NotNull */ + public static final String DB_NAME_LASTNAME = "LASTNAME"; + /** Db-name of STREET_ADDRESS. VARCHAR(255) : NotNull */ + public static final String DB_NAME_STREET_ADDRESS = "STREET_ADDRESS"; + /** Db-name of SUBURB. VARCHAR(32) */ + public static final String DB_NAME_SUBURB = "SUBURB"; + /** Db-name of CITY. VARCHAR(64) : NotNull */ + public static final String DB_NAME_CITY = "CITY"; + /** Db-name of STATE. VARCHAR(32) */ + public static final String DB_NAME_STATE = "STATE"; + /** Db-name of POSTCODE. VARCHAR(10) : NotNull */ + public static final String DB_NAME_POSTCODE = "POSTCODE"; + /** Db-name of TELEPHONE. VARCHAR(32) */ + public static final String DB_NAME_TELEPHONE = "TELEPHONE"; + /** Db-name of FAX. VARCHAR(32) */ + public static final String DB_NAME_FAX = "FAX"; + /** Db-name of CELLPHONE. VARCHAR(32) */ + public static final String DB_NAME_CELLPHONE = "CELLPHONE"; + /** Db-name of DEFAULT_ADDRESS. INTEGER : NotNull */ + public static final String DB_NAME_DEFAULT_ADDRESS = "DEFAULT_ADDRESS"; + /** Db-name of LANGUAGE_ID. INTEGER : NotNull : FK to LANGUAGE */ + public static final String DB_NAME_LANGUAGE_ID = "LANGUAGE_ID"; + /** Db-name of COUNTRY_ID. INTEGER : NotNull : Default=[0] : FK to COUNTRY */ + public static final String DB_NAME_COUNTRY_ID = "COUNTRY_ID"; + /** Db-name of ZONE_ID. INTEGER : NotNull : Default=[0] : FK to ZONE */ + public static final String DB_NAME_ZONE_ID = "ZONE_ID"; + + /** @deprecated Deprecated! So use DB_NAME_AddressBookId. */ + public static final String COLUMN_DB_NAME_OF_AddressBookId = "ADDRESS_BOOK_ID"; + /** @deprecated Deprecated! So use DB_NAME_CustomerId. */ + public static final String COLUMN_DB_NAME_OF_CustomerId = "CUSTOMER_ID"; + /** @deprecated Deprecated! So use DB_NAME_Company. */ + public static final String COLUMN_DB_NAME_OF_Company = "COMPANY"; + /** @deprecated Deprecated! So use DB_NAME_Department. */ + public static final String COLUMN_DB_NAME_OF_Department = "DEPARTMENT"; + /** @deprecated Deprecated! So use DB_NAME_Firstname. */ + public static final String COLUMN_DB_NAME_OF_Firstname = "FIRSTNAME"; + /** @deprecated Deprecated! So use DB_NAME_Lastname. */ + public static final String COLUMN_DB_NAME_OF_Lastname = "LASTNAME"; + /** @deprecated Deprecated! So use DB_NAME_StreetAddress. */ + public static final String COLUMN_DB_NAME_OF_StreetAddress = "STREET_ADDRESS"; + /** @deprecated Deprecated! So use DB_NAME_Suburb. */ + public static final String COLUMN_DB_NAME_OF_Suburb = "SUBURB"; + /** @deprecated Deprecated! So use DB_NAME_City. */ + public static final String COLUMN_DB_NAME_OF_City = "CITY"; + /** @deprecated Deprecated! So use DB_NAME_State. */ + public static final String COLUMN_DB_NAME_OF_State = "STATE"; + /** @deprecated Deprecated! So use DB_NAME_Postcode. */ + public static final String COLUMN_DB_NAME_OF_Postcode = "POSTCODE"; + /** @deprecated Deprecated! So use DB_NAME_Telephone. */ + public static final String COLUMN_DB_NAME_OF_Telephone = "TELEPHONE"; + /** @deprecated Deprecated! So use DB_NAME_Fax. */ + public static final String COLUMN_DB_NAME_OF_Fax = "FAX"; + /** @deprecated Deprecated! So use DB_NAME_Cellphone. */ + public static final String COLUMN_DB_NAME_OF_Cellphone = "CELLPHONE"; + /** @deprecated Deprecated! So use DB_NAME_DefaultAddress. */ + public static final String COLUMN_DB_NAME_OF_DefaultAddress = "DEFAULT_ADDRESS"; + /** @deprecated Deprecated! So use DB_NAME_LanguageId. */ + public static final String COLUMN_DB_NAME_OF_LanguageId = "LANGUAGE_ID"; + /** @deprecated Deprecated! So use DB_NAME_CountryId. */ + public static final String COLUMN_DB_NAME_OF_CountryId = "COUNTRY_ID"; + /** @deprecated Deprecated! So use DB_NAME_ZoneId. */ + public static final String COLUMN_DB_NAME_OF_ZoneId = "ZONE_ID"; + + // ----------------------------------------------------- + // Column Prop-Name(JavaBeansRule) + // ------------------------------- + /** Prop-name(JavaBeansRule) of addressBookId. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String PROPERTY_NAME_addressBookId = "addressBookId"; + /** Prop-name(JavaBeansRule) of customerId. BIGINT : NotNull : FK to CUSTOMER */ + public static final String PROPERTY_NAME_customerId = "customerId"; + /** Prop-name(JavaBeansRule) of company. VARCHAR(128) */ + public static final String PROPERTY_NAME_company = "company"; + /** Prop-name(JavaBeansRule) of department. VARCHAR(64) */ + public static final String PROPERTY_NAME_department = "department"; + /** Prop-name(JavaBeansRule) of firstname. VARCHAR(32) : NotNull */ + public static final String PROPERTY_NAME_firstname = "firstname"; + /** Prop-name(JavaBeansRule) of lastname. VARCHAR(32) : NotNull */ + public static final String PROPERTY_NAME_lastname = "lastname"; + /** Prop-name(JavaBeansRule) of streetAddress. VARCHAR(255) : NotNull */ + public static final String PROPERTY_NAME_streetAddress = "streetAddress"; + /** Prop-name(JavaBeansRule) of suburb. VARCHAR(32) */ + public static final String PROPERTY_NAME_suburb = "suburb"; + /** Prop-name(JavaBeansRule) of city. VARCHAR(64) : NotNull */ + public static final String PROPERTY_NAME_city = "city"; + /** Prop-name(JavaBeansRule) of state. VARCHAR(32) */ + public static final String PROPERTY_NAME_state = "state"; + /** Prop-name(JavaBeansRule) of postcode. VARCHAR(10) : NotNull */ + public static final String PROPERTY_NAME_postcode = "postcode"; + /** Prop-name(JavaBeansRule) of telephone. VARCHAR(32) */ + public static final String PROPERTY_NAME_telephone = "telephone"; + /** Prop-name(JavaBeansRule) of fax. VARCHAR(32) */ + public static final String PROPERTY_NAME_fax = "fax"; + /** Prop-name(JavaBeansRule) of cellphone. VARCHAR(32) */ + public static final String PROPERTY_NAME_cellphone = "cellphone"; + /** Prop-name(JavaBeansRule) of defaultAddress. INTEGER : NotNull */ + public static final String PROPERTY_NAME_defaultAddress = "defaultAddress"; + /** Prop-name(JavaBeansRule) of languageId. INTEGER : NotNull : FK to LANGUAGE */ + public static final String PROPERTY_NAME_languageId = "languageId"; + /** Prop-name(JavaBeansRule) of countryId. INTEGER : NotNull : Default=[0] : FK to COUNTRY */ + public static final String PROPERTY_NAME_countryId = "countryId"; + /** Prop-name(JavaBeansRule) of zoneId. INTEGER : NotNull : Default=[0] : FK to ZONE */ + public static final String PROPERTY_NAME_zoneId = "zoneId"; + + // ----------------------------------------------------- + // Column Cap-Prop-Name + // -------------------- + /** Cap-prop-name of addressBookId. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String CAP_PROP_NAME_AddressBookId = "AddressBookId"; + /** Cap-prop-name of customerId. BIGINT : NotNull : FK to CUSTOMER */ + public static final String CAP_PROP_NAME_CustomerId = "CustomerId"; + /** Cap-prop-name of company. VARCHAR(128) */ + public static final String CAP_PROP_NAME_Company = "Company"; + /** Cap-prop-name of department. VARCHAR(64) */ + public static final String CAP_PROP_NAME_Department = "Department"; + /** Cap-prop-name of firstname. VARCHAR(32) : NotNull */ + public static final String CAP_PROP_NAME_Firstname = "Firstname"; + /** Cap-prop-name of lastname. VARCHAR(32) : NotNull */ + public static final String CAP_PROP_NAME_Lastname = "Lastname"; + /** Cap-prop-name of streetAddress. VARCHAR(255) : NotNull */ + public static final String CAP_PROP_NAME_StreetAddress = "StreetAddress"; + /** Cap-prop-name of suburb. VARCHAR(32) */ + public static final String CAP_PROP_NAME_Suburb = "Suburb"; + /** Cap-prop-name of city. VARCHAR(64) : NotNull */ + public static final String CAP_PROP_NAME_City = "City"; + /** Cap-prop-name of state. VARCHAR(32) */ + public static final String CAP_PROP_NAME_State = "State"; + /** Cap-prop-name of postcode. VARCHAR(10) : NotNull */ + public static final String CAP_PROP_NAME_Postcode = "Postcode"; + /** Cap-prop-name of telephone. VARCHAR(32) */ + public static final String CAP_PROP_NAME_Telephone = "Telephone"; + /** Cap-prop-name of fax. VARCHAR(32) */ + public static final String CAP_PROP_NAME_Fax = "Fax"; + /** Cap-prop-name of cellphone. VARCHAR(32) */ + public static final String CAP_PROP_NAME_Cellphone = "Cellphone"; + /** Cap-prop-name of defaultAddress. INTEGER : NotNull */ + public static final String CAP_PROP_NAME_DefaultAddress = "DefaultAddress"; + /** Cap-prop-name of languageId. INTEGER : NotNull : FK to LANGUAGE */ + public static final String CAP_PROP_NAME_LanguageId = "LanguageId"; + /** Cap-prop-name of countryId. INTEGER : NotNull : Default=[0] : FK to COUNTRY */ + public static final String CAP_PROP_NAME_CountryId = "CountryId"; + /** Cap-prop-name of zoneId. INTEGER : NotNull : Default=[0] : FK to ZONE */ + public static final String CAP_PROP_NAME_ZoneId = "ZoneId"; + + /** @deprecated Deprecated! So use CAP_PROP_NAME_AddressBookId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_AddressBookId = "AddressBookId"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_CustomerId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_CustomerId = "CustomerId"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Company. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Company = "Company"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Department. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Department = "Department"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Firstname. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Firstname = "Firstname"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Lastname. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Lastname = "Lastname"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_StreetAddress. */ + public static final String COLUMN_CAP_PROP_NAME_OF_StreetAddress = "StreetAddress"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Suburb. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Suburb = "Suburb"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_City. */ + public static final String COLUMN_CAP_PROP_NAME_OF_City = "City"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_State. */ + public static final String COLUMN_CAP_PROP_NAME_OF_State = "State"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Postcode. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Postcode = "Postcode"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Telephone. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Telephone = "Telephone"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Fax. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Fax = "Fax"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_Cellphone. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Cellphone = "Cellphone"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_DefaultAddress. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DefaultAddress = "DefaultAddress"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_LanguageId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_LanguageId = "LanguageId"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_CountryId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_CountryId = "CountryId"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_ZoneId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_ZoneId = "ZoneId"; + + // ----------------------------------------------------- + // Column Uncap-Prop-Name + // ---------------------- + /** Uncap-prop-name of addressBookId. PK : INC : BIGINT : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String UNCAP_PROP_NAME_addressBookId = "addressBookId"; + /** Uncap-prop-name of customerId. BIGINT : NotNull : FK to CUSTOMER */ + public static final String UNCAP_PROP_NAME_customerId = "customerId"; + /** Uncap-prop-name of company. VARCHAR(128) */ + public static final String UNCAP_PROP_NAME_company = "company"; + /** Uncap-prop-name of department. VARCHAR(64) */ + public static final String UNCAP_PROP_NAME_department = "department"; + /** Uncap-prop-name of firstname. VARCHAR(32) : NotNull */ + public static final String UNCAP_PROP_NAME_firstname = "firstname"; + /** Uncap-prop-name of lastname. VARCHAR(32) : NotNull */ + public static final String UNCAP_PROP_NAME_lastname = "lastname"; + /** Uncap-prop-name of streetAddress. VARCHAR(255) : NotNull */ + public static final String UNCAP_PROP_NAME_streetAddress = "streetAddress"; + /** Uncap-prop-name of suburb. VARCHAR(32) */ + public static final String UNCAP_PROP_NAME_suburb = "suburb"; + /** Uncap-prop-name of city. VARCHAR(64) : NotNull */ + public static final String UNCAP_PROP_NAME_city = "city"; + /** Uncap-prop-name of state. VARCHAR(32) */ + public static final String UNCAP_PROP_NAME_state = "state"; + /** Uncap-prop-name of postcode. VARCHAR(10) : NotNull */ + public static final String UNCAP_PROP_NAME_postcode = "postcode"; + /** Uncap-prop-name of telephone. VARCHAR(32) */ + public static final String UNCAP_PROP_NAME_telephone = "telephone"; + /** Uncap-prop-name of fax. VARCHAR(32) */ + public static final String UNCAP_PROP_NAME_fax = "fax"; + /** Uncap-prop-name of cellphone. VARCHAR(32) */ + public static final String UNCAP_PROP_NAME_cellphone = "cellphone"; + /** Uncap-prop-name of defaultAddress. INTEGER : NotNull */ + public static final String UNCAP_PROP_NAME_defaultAddress = "defaultAddress"; + /** Uncap-prop-name of languageId. INTEGER : NotNull : FK to LANGUAGE */ + public static final String UNCAP_PROP_NAME_languageId = "languageId"; + /** Uncap-prop-name of countryId. INTEGER : NotNull : Default=[0] : FK to COUNTRY */ + public static final String UNCAP_PROP_NAME_countryId = "countryId"; + /** Uncap-prop-name of zoneId. INTEGER : NotNull : Default=[0] : FK to ZONE */ + public static final String UNCAP_PROP_NAME_zoneId = "zoneId"; + + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_AddressBookId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_AddressBookId = "addressBookId"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_CustomerId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_CustomerId = "customerId"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Company. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Company = "company"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Department. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Department = "department"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Firstname. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Firstname = "firstname"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Lastname. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Lastname = "lastname"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_StreetAddress. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_StreetAddress = "streetAddress"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Suburb. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Suburb = "suburb"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_City. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_City = "city"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_State. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_State = "state"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Postcode. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Postcode = "postcode"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Telephone. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Telephone = "telephone"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Fax. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Fax = "fax"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_Cellphone. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Cellphone = "cellphone"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_DefaultAddress. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DefaultAddress = "defaultAddress"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_LanguageId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_LanguageId = "languageId"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_CountryId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_CountryId = "countryId"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_ZoneId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_ZoneId = "zoneId"; + + // ----------------------------------------------------- + // Foreign Name + // ------------ + /** The foreign property name(JavaBeansRule) of country. */ + public static final String FOREIGN_PROPERTY_NAME_country = "country"; + /** The foreign property name(JavaBeansRule) of customer. */ + public static final String FOREIGN_PROPERTY_NAME_customer = "customer"; + /** The foreign property name(JavaBeansRule) of language. */ + public static final String FOREIGN_PROPERTY_NAME_language = "language"; + /** The foreign property name(JavaBeansRule) of zone. */ + public static final String FOREIGN_PROPERTY_NAME_zone = "zone"; + /** @deprecated Use FOREIGN_NAME_country. */ + public static final String FOREIGN_CAP_PROP_NAME_Country = "Country"; + /** @deprecated Use FOREIGN_NAME_customer. */ + public static final String FOREIGN_CAP_PROP_NAME_Customer = "Customer"; + /** @deprecated Use FOREIGN_NAME_language. */ + public static final String FOREIGN_CAP_PROP_NAME_Language = "Language"; + /** @deprecated Use FOREIGN_NAME_zone. */ + public static final String FOREIGN_CAP_PROP_NAME_Zone = "Zone"; + + /** @deprecated Use FOREIGN_NAME_country. */ + public static final String FOREIGN_UNCAP_PROP_NAME_country = "country"; + /** @deprecated Use FOREIGN_NAME_customer. */ + public static final String FOREIGN_UNCAP_PROP_NAME_customer = "customer"; + /** @deprecated Use FOREIGN_NAME_language. */ + public static final String FOREIGN_UNCAP_PROP_NAME_language = "language"; + /** @deprecated Use FOREIGN_NAME_zone. */ + public static final String FOREIGN_UNCAP_PROP_NAME_zone = "zone"; + + // ----------------------------------------------------- + // 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_ADDRESS_BOOK_ID.toLowerCase(), PROPERTY_NAME_addressBookId); + map.put(DB_NAME_CUSTOMER_ID.toLowerCase(), PROPERTY_NAME_customerId); + map.put(DB_NAME_COMPANY.toLowerCase(), PROPERTY_NAME_company); + map.put(DB_NAME_DEPARTMENT.toLowerCase(), PROPERTY_NAME_department); + map.put(DB_NAME_FIRSTNAME.toLowerCase(), PROPERTY_NAME_firstname); + map.put(DB_NAME_LASTNAME.toLowerCase(), PROPERTY_NAME_lastname); + map.put(DB_NAME_STREET_ADDRESS.toLowerCase(), PROPERTY_NAME_streetAddress); + map.put(DB_NAME_SUBURB.toLowerCase(), PROPERTY_NAME_suburb); + map.put(DB_NAME_CITY.toLowerCase(), PROPERTY_NAME_city); + map.put(DB_NAME_STATE.toLowerCase(), PROPERTY_NAME_state); + map.put(DB_NAME_POSTCODE.toLowerCase(), PROPERTY_NAME_postcode); + map.put(DB_NAME_TELEPHONE.toLowerCase(), PROPERTY_NAME_telephone); + map.put(DB_NAME_FAX.toLowerCase(), PROPERTY_NAME_fax); + map.put(DB_NAME_CELLPHONE.toLowerCase(), PROPERTY_NAME_cellphone); + map.put(DB_NAME_DEFAULT_ADDRESS.toLowerCase(), PROPERTY_NAME_defaultAddress); + map.put(DB_NAME_LANGUAGE_ID.toLowerCase(), PROPERTY_NAME_languageId); + map.put(DB_NAME_COUNTRY_ID.toLowerCase(), PROPERTY_NAME_countryId); + map.put(DB_NAME_ZONE_ID.toLowerCase(), PROPERTY_NAME_zoneId); + + _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_addressBookId.toLowerCase(), DB_NAME_ADDRESS_BOOK_ID); + map.put(PROPERTY_NAME_customerId.toLowerCase(), DB_NAME_CUSTOMER_ID); + map.put(PROPERTY_NAME_company.toLowerCase(), DB_NAME_COMPANY); + map.put(PROPERTY_NAME_department.toLowerCase(), DB_NAME_DEPARTMENT); + map.put(PROPERTY_NAME_firstname.toLowerCase(), DB_NAME_FIRSTNAME); + map.put(PROPERTY_NAME_lastname.toLowerCase(), DB_NAME_LASTNAME); + map.put(PROPERTY_NAME_streetAddress.toLowerCase(), DB_NAME_STREET_ADDRESS); + map.put(PROPERTY_NAME_suburb.toLowerCase(), DB_NAME_SUBURB); + map.put(PROPERTY_NAME_city.toLowerCase(), DB_NAME_CITY); + map.put(PROPERTY_NAME_state.toLowerCase(), DB_NAME_STATE); + map.put(PROPERTY_NAME_postcode.toLowerCase(), DB_NAME_POSTCODE); + map.put(PROPERTY_NAME_telephone.toLowerCase(), DB_NAME_TELEPHONE); + map.put(PROPERTY_NAME_fax.toLowerCase(), DB_NAME_FAX); + map.put(PROPERTY_NAME_cellphone.toLowerCase(), DB_NAME_CELLPHONE); + map.put(PROPERTY_NAME_defaultAddress.toLowerCase(), DB_NAME_DEFAULT_ADDRESS); + map.put(PROPERTY_NAME_languageId.toLowerCase(), DB_NAME_LANGUAGE_ID); + map.put(PROPERTY_NAME_countryId.toLowerCase(), DB_NAME_COUNTRY_ID); + map.put(PROPERTY_NAME_zoneId.toLowerCase(), DB_NAME_ZONE_ID); + + _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_ADDRESS_BOOK_ID, CAP_PROP_NAME_AddressBookId); + map.put(DB_NAME_CUSTOMER_ID, CAP_PROP_NAME_CustomerId); + map.put(DB_NAME_COMPANY, CAP_PROP_NAME_Company); + map.put(DB_NAME_DEPARTMENT, CAP_PROP_NAME_Department); + map.put(DB_NAME_FIRSTNAME, CAP_PROP_NAME_Firstname); + map.put(DB_NAME_LASTNAME, CAP_PROP_NAME_Lastname); + map.put(DB_NAME_STREET_ADDRESS, CAP_PROP_NAME_StreetAddress); + map.put(DB_NAME_SUBURB, CAP_PROP_NAME_Suburb); + map.put(DB_NAME_CITY, CAP_PROP_NAME_City); + map.put(DB_NAME_STATE, CAP_PROP_NAME_State); + map.put(DB_NAME_POSTCODE, CAP_PROP_NAME_Postcode); + map.put(DB_NAME_TELEPHONE, CAP_PROP_NAME_Telephone); + map.put(DB_NAME_FAX, CAP_PROP_NAME_Fax); + map.put(DB_NAME_CELLPHONE, CAP_PROP_NAME_Cellphone); + map.put(DB_NAME_DEFAULT_ADDRESS, CAP_PROP_NAME_DefaultAddress); + map.put(DB_NAME_LANGUAGE_ID, CAP_PROP_NAME_LanguageId); + map.put(DB_NAME_COUNTRY_ID, CAP_PROP_NAME_CountryId); + map.put(DB_NAME_ZONE_ID, CAP_PROP_NAME_ZoneId); + + _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_ADDRESS_BOOK_ID, UNCAP_PROP_NAME_addressBookId); + map.put(DB_NAME_CUSTOMER_ID, UNCAP_PROP_NAME_customerId); + map.put(DB_NAME_COMPANY, UNCAP_PROP_NAME_company); + map.put(DB_NAME_DEPARTMENT, UNCAP_PROP_NAME_department); + map.put(DB_NAME_FIRSTNAME, UNCAP_PROP_NAME_firstname); + map.put(DB_NAME_LASTNAME, UNCAP_PROP_NAME_lastname); + map.put(DB_NAME_STREET_ADDRESS, UNCAP_PROP_NAME_streetAddress); + map.put(DB_NAME_SUBURB, UNCAP_PROP_NAME_suburb); + map.put(DB_NAME_CITY, UNCAP_PROP_NAME_city); + map.put(DB_NAME_STATE, UNCAP_PROP_NAME_state); + map.put(DB_NAME_POSTCODE, UNCAP_PROP_NAME_postcode); + map.put(DB_NAME_TELEPHONE, UNCAP_PROP_NAME_telephone); + map.put(DB_NAME_FAX, UNCAP_PROP_NAME_fax); + map.put(DB_NAME_CELLPHONE, UNCAP_PROP_NAME_cellphone); + map.put(DB_NAME_DEFAULT_ADDRESS, UNCAP_PROP_NAME_defaultAddress); + map.put(DB_NAME_LANGUAGE_ID, UNCAP_PROP_NAME_languageId); + map.put(DB_NAME_COUNTRY_ID, UNCAP_PROP_NAME_countryId); + map.put(DB_NAME_ZONE_ID, UNCAP_PROP_NAME_zoneId); + + _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_AddressBookId, DB_NAME_ADDRESS_BOOK_ID); + map.put(CAP_PROP_NAME_CustomerId, DB_NAME_CUSTOMER_ID); + map.put(CAP_PROP_NAME_Company, DB_NAME_COMPANY); + map.put(CAP_PROP_NAME_Department, DB_NAME_DEPARTMENT); + map.put(CAP_PROP_NAME_Firstname, DB_NAME_FIRSTNAME); + map.put(CAP_PROP_NAME_Lastname, DB_NAME_LASTNAME); + map.put(CAP_PROP_NAME_StreetAddress, DB_NAME_STREET_ADDRESS); + map.put(CAP_PROP_NAME_Suburb, DB_NAME_SUBURB); + map.put(CAP_PROP_NAME_City, DB_NAME_CITY); + map.put(CAP_PROP_NAME_State, DB_NAME_STATE); + map.put(CAP_PROP_NAME_Postcode, DB_NAME_POSTCODE); + map.put(CAP_PROP_NAME_Telephone, DB_NAME_TELEPHONE); + map.put(CAP_PROP_NAME_Fax, DB_NAME_FAX); + map.put(CAP_PROP_NAME_Cellphone, DB_NAME_CELLPHONE); + map.put(CAP_PROP_NAME_DefaultAddress, DB_NAME_DEFAULT_ADDRESS); + map.put(CAP_PROP_NAME_LanguageId, DB_NAME_LANGUAGE_ID); + map.put(CAP_PROP_NAME_CountryId, DB_NAME_COUNTRY_ID); + map.put(CAP_PROP_NAME_ZoneId, DB_NAME_ZONE_ID); + + _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_AddressBookId, UNCAP_PROP_NAME_addressBookId); + map.put(CAP_PROP_NAME_CustomerId, UNCAP_PROP_NAME_customerId); + map.put(CAP_PROP_NAME_Company, UNCAP_PROP_NAME_company); + map.put(CAP_PROP_NAME_Department, UNCAP_PROP_NAME_department); + map.put(CAP_PROP_NAME_Firstname, UNCAP_PROP_NAME_firstname); + map.put(CAP_PROP_NAME_Lastname, UNCAP_PROP_NAME_lastname); + map.put(CAP_PROP_NAME_StreetAddress, UNCAP_PROP_NAME_streetAddress); + map.put(CAP_PROP_NAME_Suburb, UNCAP_PROP_NAME_suburb); + map.put(CAP_PROP_NAME_City, UNCAP_PROP_NAME_city); + map.put(CAP_PROP_NAME_State, UNCAP_PROP_NAME_state); + map.put(CAP_PROP_NAME_Postcode, UNCAP_PROP_NAME_postcode); + map.put(CAP_PROP_NAME_Telephone, UNCAP_PROP_NAME_telephone); + map.put(CAP_PROP_NAME_Fax, UNCAP_PROP_NAME_fax); + map.put(CAP_PROP_NAME_Cellphone, UNCAP_PROP_NAME_cellphone); + map.put(CAP_PROP_NAME_DefaultAddress, UNCAP_PROP_NAME_defaultAddress); + map.put(CAP_PROP_NAME_LanguageId, UNCAP_PROP_NAME_languageId); + map.put(CAP_PROP_NAME_CountryId, UNCAP_PROP_NAME_countryId); + map.put(CAP_PROP_NAME_ZoneId, UNCAP_PROP_NAME_zoneId); + + _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_addressBookId, DB_NAME_ADDRESS_BOOK_ID); + map.put(UNCAP_PROP_NAME_customerId, DB_NAME_CUSTOMER_ID); + map.put(UNCAP_PROP_NAME_company, DB_NAME_COMPANY); + map.put(UNCAP_PROP_NAME_department, DB_NAME_DEPARTMENT); + map.put(UNCAP_PROP_NAME_firstname, DB_NAME_FIRSTNAME); + map.put(UNCAP_PROP_NAME_lastname, DB_NAME_LASTNAME); + map.put(UNCAP_PROP_NAME_streetAddress, DB_NAME_STREET_ADDRESS); + map.put(UNCAP_PROP_NAME_suburb, DB_NAME_SUBURB); + map.put(UNCAP_PROP_NAME_city, DB_NAME_CITY); + map.put(UNCAP_PROP_NAME_state, DB_NAME_STATE); + map.put(UNCAP_PROP_NAME_postcode, DB_NAME_POSTCODE); + map.put(UNCAP_PROP_NAME_telephone, DB_NAME_TELEPHONE); + map.put(UNCAP_PROP_NAME_fax, DB_NAME_FAX); + map.put(UNCAP_PROP_NAME_cellphone, DB_NAME_CELLPHONE); + map.put(UNCAP_PROP_NAME_defaultAddress, DB_NAME_DEFAULT_ADDRESS); + map.put(UNCAP_PROP_NAME_languageId, DB_NAME_LANGUAGE_ID); + map.put(UNCAP_PROP_NAME_countryId, DB_NAME_COUNTRY_ID); + map.put(UNCAP_PROP_NAME_zoneId, DB_NAME_ZONE_ID); + + _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_addressBookId, CAP_PROP_NAME_AddressBookId); + map.put(UNCAP_PROP_NAME_customerId, CAP_PROP_NAME_CustomerId); + map.put(UNCAP_PROP_NAME_company, CAP_PROP_NAME_Company); + map.put(UNCAP_PROP_NAME_department, CAP_PROP_NAME_Department); + map.put(UNCAP_PROP_NAME_firstname, CAP_PROP_NAME_Firstname); + map.put(UNCAP_PROP_NAME_lastname, CAP_PROP_NAME_Lastname); + map.put(UNCAP_PROP_NAME_streetAddress, CAP_PROP_NAME_StreetAddress); + map.put(UNCAP_PROP_NAME_suburb, CAP_PROP_NAME_Suburb); + map.put(UNCAP_PROP_NAME_city, CAP_PROP_NAME_City); + map.put(UNCAP_PROP_NAME_state, CAP_PROP_NAME_State); + map.put(UNCAP_PROP_NAME_postcode, CAP_PROP_NAME_Postcode); + map.put(UNCAP_PROP_NAME_telephone, CAP_PROP_NAME_Telephone); + map.put(UNCAP_PROP_NAME_fax, CAP_PROP_NAME_Fax); + map.put(UNCAP_PROP_NAME_cellphone, CAP_PROP_NAME_Cellphone); + map.put(UNCAP_PROP_NAME_defaultAddress, CAP_PROP_NAME_DefaultAddress); + map.put(UNCAP_PROP_NAME_languageId, CAP_PROP_NAME_LanguageId); + map.put(UNCAP_PROP_NAME_countryId, CAP_PROP_NAME_CountryId); + map.put(UNCAP_PROP_NAME_zoneId, CAP_PROP_NAME_ZoneId); + + _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.AddressBook"; + } + + /** + * The implementation. + * + * @return The type-name of condition-bean. (NotNull) + */ + public String getConditionBeanTypeName() { + return "jp.sf.pal.pompei.cbean.bs.AddressBookCB"; + } + + /** + * The implementation. + * + * @return The type-name of dao. (NotNull) + */ + public String getDaoTypeName() { + return "jp.sf.pal.pompei.exdao.AddressBookDao"; + } + + /** + * The implementation. + * + * @return The type-name of behavior. (NotNull) + */ + public String getBehaviorTypeName() { + return "jp.sf.pal.pompei.exbhv.AddressBookBhv"; + } + + // =================================================================================== + // 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 AddressBook newMyEntity() { + return new AddressBook(); + } + + + // =================================================================================== + // 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(columnAddressBookId()); + columnInfoList.add(columnCustomerId()); + columnInfoList.add(columnCompany()); + columnInfoList.add(columnDepartment()); + columnInfoList.add(columnFirstname()); + columnInfoList.add(columnLastname()); + columnInfoList.add(columnStreetAddress()); + columnInfoList.add(columnSuburb()); + columnInfoList.add(columnCity()); + columnInfoList.add(columnState()); + columnInfoList.add(columnPostcode()); + columnInfoList.add(columnTelephone()); + columnInfoList.add(columnFax()); + columnInfoList.add(columnCellphone()); + columnInfoList.add(columnDefaultAddress()); + columnInfoList.add(columnLanguageId()); + columnInfoList.add(columnCountryId()); + columnInfoList.add(columnZoneId()); + 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 "ADDRESS_BOOK_ID, CUSTOMER_ID, COMPANY, DEPARTMENT, FIRSTNAME, LASTNAME, STREET_ADDRESS, SUBURB, CITY, STATE, POSTCODE, TELEPHONE, FAX, CELLPHONE, DEFAULT_ADDRESS, LANGUAGE_ID, COUNTRY_ID, ZONE_ID"; + } + + /** + * @return Column information of addressBookId. (NotNull) + */ + public ColumnInfo columnAddressBookId() { + return new ColumnInfo(this, "ADDRESS_BOOK_ID", "addressBookId", java.math.BigDecimal.class, true); + } + /** + * @return Column information of customerId. (NotNull) + */ + public ColumnInfo columnCustomerId() { + return new ColumnInfo(this, "CUSTOMER_ID", "customerId", java.math.BigDecimal.class, false); + } + /** + * @return Column information of company. (NotNull) + */ + public ColumnInfo columnCompany() { + return new ColumnInfo(this, "COMPANY", "company", String.class, false); + } + /** + * @return Column information of department. (NotNull) + */ + public ColumnInfo columnDepartment() { + return new ColumnInfo(this, "DEPARTMENT", "department", String.class, false); + } + /** + * @return Column information of firstname. (NotNull) + */ + public ColumnInfo columnFirstname() { + return new ColumnInfo(this, "FIRSTNAME", "firstname", String.class, false); + } + /** + * @return Column information of lastname. (NotNull) + */ + public ColumnInfo columnLastname() { + return new ColumnInfo(this, "LASTNAME", "lastname", String.class, false); + } + /** + * @return Column information of streetAddress. (NotNull) + */ + public ColumnInfo columnStreetAddress() { + return new ColumnInfo(this, "STREET_ADDRESS", "streetAddress", String.class, false); + } + /** + * @return Column information of suburb. (NotNull) + */ + public ColumnInfo columnSuburb() { + return new ColumnInfo(this, "SUBURB", "suburb", String.class, false); + } + /** + * @return Column information of city. (NotNull) + */ + public ColumnInfo columnCity() { + return new ColumnInfo(this, "CITY", "city", String.class, false); + } + /** + * @return Column information of state. (NotNull) + */ + public ColumnInfo columnState() { + return new ColumnInfo(this, "STATE", "state", String.class, false); + } + /** + * @return Column information of postcode. (NotNull) + */ + public ColumnInfo columnPostcode() { + return new ColumnInfo(this, "POSTCODE", "postcode", String.class, false); + } + /** + * @return Column information of telephone. (NotNull) + */ + public ColumnInfo columnTelephone() { + return new ColumnInfo(this, "TELEPHONE", "telephone", String.class, false); + } + /** + * @return Column information of fax. (NotNull) + */ + public ColumnInfo columnFax() { + return new ColumnInfo(this, "FAX", "fax", String.class, false); + } + /** + * @return Column information of cellphone. (NotNull) + */ + public ColumnInfo columnCellphone() { + return new ColumnInfo(this, "CELLPHONE", "cellphone", String.class, false); + } + /** + * @return Column information of defaultAddress. (NotNull) + */ + public ColumnInfo columnDefaultAddress() { + return new ColumnInfo(this, "DEFAULT_ADDRESS", "defaultAddress", java.math.BigDecimal.class, false); + } + /** + * @return Column information of languageId. (NotNull) + */ + public ColumnInfo columnLanguageId() { + return new ColumnInfo(this, "LANGUAGE_ID", "languageId", java.math.BigDecimal.class, false); + } + /** + * @return Column information of countryId. (NotNull) + */ + public ColumnInfo columnCountryId() { + return new ColumnInfo(this, "COUNTRY_ID", "countryId", java.math.BigDecimal.class, false); + } + /** + * @return Column information of zoneId. (NotNull) + */ + public ColumnInfo columnZoneId() { + return new ColumnInfo(this, "ZONE_ID", "zoneId", 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, "ADDRESS_BOOK_ID", "addressBookId", 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 country. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignCountry() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo(); + foreignInfo.setForeignPropertyName("country"); + foreignInfo.setLocalDBMeta(AddressBookDbm.getInstance()); + foreignInfo.setForeignDBMeta(CountryDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnCountryId(), CountryDbm.getInstance().columnCountryId()); + foreignInfo.setLocalForeignColumnInfoMap(map); + foreignInfo.setOneToOne(false); + return foreignInfo; + } + /** + * Get foreign information of customer. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignCustomer() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo(); + foreignInfo.setForeignPropertyName("customer"); + foreignInfo.setLocalDBMeta(AddressBookDbm.getInstance()); + foreignInfo.setForeignDBMeta(CustomerDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnCustomerId(), CustomerDbm.getInstance().columnCustomerId()); + foreignInfo.setLocalForeignColumnInfoMap(map); + foreignInfo.setOneToOne(false); + return foreignInfo; + } + /** + * Get foreign information of language. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignLanguage() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo(); + foreignInfo.setForeignPropertyName("language"); + foreignInfo.setLocalDBMeta(AddressBookDbm.getInstance()); + foreignInfo.setForeignDBMeta(LanguageDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnLanguageId(), LanguageDbm.getInstance().columnLanguageId()); + foreignInfo.setLocalForeignColumnInfoMap(map); + foreignInfo.setOneToOne(false); + return foreignInfo; + } + /** + * Get foreign information of zone. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignZone() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo(); + foreignInfo.setForeignPropertyName("zone"); + foreignInfo.setLocalDBMeta(AddressBookDbm.getInstance()); + foreignInfo.setForeignDBMeta(ZoneDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnZoneId(), ZoneDbm.getInstance().columnZoneId()); + 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 AddressBookRelationTrace createRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + return new AddressBookRelationTrace(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 AddressBookRelationTrace createRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + return new AddressBookRelationTrace(relationList, relationTraceList); + } + + /** + * Relation trace of ADDRESS_BOOK. + */ + public static class AddressBookRelationTrace extends AbstractRelationTrace { + + /** + * Constructor for first step. + * + * @param relationTraceFixHandler The handler of fixed relation trace. (Nullable) + */ + public AddressBookRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + super(relationTraceFixHandler); + } + + /** + * Constructor for relation step. + * + * @param relationList The list of relation. (NotNull) + * @param relationTraceList The list of relation trace. (NotNull) + */ + public AddressBookRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + super(relationList, relationTraceList); + } + + public CountryDbm.CountryRelationTrace foreignCountry() { + _relationList.add(AddressBookDbm.getInstance().foreignCountry()); + return CountryDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public CustomerDbm.CustomerRelationTrace foreignCustomer() { + _relationList.add(AddressBookDbm.getInstance().foreignCustomer()); + return CustomerDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public LanguageDbm.LanguageRelationTrace foreignLanguage() { + _relationList.add(AddressBookDbm.getInstance().foreignLanguage()); + return LanguageDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public ZoneDbm.ZoneRelationTrace foreignZone() { + _relationList.add(AddressBookDbm.getInstance().foreignZone()); + return ZoneDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public RelationTrace columnAddressBookId() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnAddressBookId()); } + public RelationTrace columnCustomerId() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnCustomerId()); } + public RelationTrace columnCompany() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnCompany()); } + public RelationTrace columnDepartment() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnDepartment()); } + public RelationTrace columnFirstname() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnFirstname()); } + public RelationTrace columnLastname() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnLastname()); } + public RelationTrace columnStreetAddress() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnStreetAddress()); } + public RelationTrace columnSuburb() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnSuburb()); } + public RelationTrace columnCity() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnCity()); } + public RelationTrace columnState() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnState()); } + public RelationTrace columnPostcode() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnPostcode()); } + public RelationTrace columnTelephone() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnTelephone()); } + public RelationTrace columnFax() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnFax()); } + public RelationTrace columnCellphone() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnCellphone()); } + public RelationTrace columnDefaultAddress() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnDefaultAddress()); } + public RelationTrace columnLanguageId() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnLanguageId()); } + public RelationTrace columnCountryId() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnCountryId()); } + public RelationTrace columnZoneId() { return fixTrace(_relationList, AddressBookDbm.getInstance().columnZoneId()); } + } + + // =================================================================================== + // 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 AddressBook myEntity = (AddressBook)entity; + MapAssertUtil.assertPrimaryKeyMapNotNullAndNotEmpty(primaryKeyMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(primaryKeyMap, entity.getModifiedPropertyNames()); + + MapAssertUtil.assertColumnExistingInPrimaryKeyMap(primaryKeyMap, "ADDRESS_BOOK_ID"); + if (analyzer.init("ADDRESS_BOOK_ID", "addressBookId", "addressBookId")) { myEntity.setAddressBookId(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 AddressBook myEntity = (AddressBook)entity; + MapAssertUtil.assertColumnValueMapNotNullAndNotEmpty(columnValueMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(columnValueMap, entity.getModifiedPropertyNames()); + + if (analyzer.init("ADDRESS_BOOK_ID", "addressBookId", "addressBookId")) { myEntity.setAddressBookId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("CUSTOMER_ID", "customerId", "customerId")) { myEntity.setCustomerId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("COMPANY", "company", "company")) { myEntity.setCompany(analyzer.analyzeString(String.class)); }; + if (analyzer.init("DEPARTMENT", "department", "department")) { myEntity.setDepartment(analyzer.analyzeString(String.class)); }; + if (analyzer.init("FIRSTNAME", "firstname", "firstname")) { myEntity.setFirstname(analyzer.analyzeString(String.class)); }; + if (analyzer.init("LASTNAME", "lastname", "lastname")) { myEntity.setLastname(analyzer.analyzeString(String.class)); }; + if (analyzer.init("STREET_ADDRESS", "streetAddress", "streetAddress")) { myEntity.setStreetAddress(analyzer.analyzeString(String.class)); }; + if (analyzer.init("SUBURB", "suburb", "suburb")) { myEntity.setSuburb(analyzer.analyzeString(String.class)); }; + if (analyzer.init("CITY", "city", "city")) { myEntity.setCity(analyzer.analyzeString(String.class)); }; + if (analyzer.init("STATE", "state", "state")) { myEntity.setState(analyzer.analyzeString(String.class)); }; + if (analyzer.init("POSTCODE", "postcode", "postcode")) { myEntity.setPostcode(analyzer.analyzeString(String.class)); }; + if (analyzer.init("TELEPHONE", "telephone", "telephone")) { myEntity.setTelephone(analyzer.analyzeString(String.class)); }; + if (analyzer.init("FAX", "fax", "fax")) { myEntity.setFax(analyzer.analyzeString(String.class)); }; + if (analyzer.init("CELLPHONE", "cellphone", "cellphone")) { myEntity.setCellphone(analyzer.analyzeString(String.class)); }; + if (analyzer.init("DEFAULT_ADDRESS", "defaultAddress", "defaultAddress")) { myEntity.setDefaultAddress(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("LANGUAGE_ID", "languageId", "languageId")) { myEntity.setLanguageId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("COUNTRY_ID", "countryId", "countryId")) { myEntity.setCountryId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("ZONE_ID", "zoneId", "zoneId")) { myEntity.setZoneId(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 AddressBook myEntity = (AddressBook)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "ADDRESS_BOOK_ID", myEntity.getAddressBookId()); + + 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 AddressBook myEntity = (AddressBook)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "ADDRESS_BOOK_ID", myEntity.getAddressBookId()); + helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMER_ID", myEntity.getCustomerId()); + helpAppendingColumnValueString(sb, delimiter, equal, "COMPANY", myEntity.getCompany()); + helpAppendingColumnValueString(sb, delimiter, equal, "DEPARTMENT", myEntity.getDepartment()); + helpAppendingColumnValueString(sb, delimiter, equal, "FIRSTNAME", myEntity.getFirstname()); + helpAppendingColumnValueString(sb, delimiter, equal, "LASTNAME", myEntity.getLastname()); + helpAppendingColumnValueString(sb, delimiter, equal, "STREET_ADDRESS", myEntity.getStreetAddress()); + helpAppendingColumnValueString(sb, delimiter, equal, "SUBURB", myEntity.getSuburb()); + helpAppendingColumnValueString(sb, delimiter, equal, "CITY", myEntity.getCity()); + helpAppendingColumnValueString(sb, delimiter, equal, "STATE", myEntity.getState()); + helpAppendingColumnValueString(sb, delimiter, equal, "POSTCODE", myEntity.getPostcode()); + helpAppendingColumnValueString(sb, delimiter, equal, "TELEPHONE", myEntity.getTelephone()); + helpAppendingColumnValueString(sb, delimiter, equal, "FAX", myEntity.getFax()); + helpAppendingColumnValueString(sb, delimiter, equal, "CELLPHONE", myEntity.getCellphone()); + helpAppendingColumnValueString(sb, delimiter, equal, "DEFAULT_ADDRESS", myEntity.getDefaultAddress()); + helpAppendingColumnValueString(sb, delimiter, equal, "LANGUAGE_ID", myEntity.getLanguageId()); + helpAppendingColumnValueString(sb, delimiter, equal, "COUNTRY_ID", myEntity.getCountryId()); + helpAppendingColumnValueString(sb, delimiter, equal, "ZONE_ID", myEntity.getZoneId()); + + 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 AddressBook myEntity = downcast(entity); + final java.util.Map<String, Object> valueMap = new java.util.LinkedHashMap<String, Object>(); + valueMap.put("ADDRESS_BOOK_ID", myEntity.getAddressBookId()); + valueMap.put("CUSTOMER_ID", myEntity.getCustomerId()); + valueMap.put("COMPANY", myEntity.getCompany()); + valueMap.put("DEPARTMENT", myEntity.getDepartment()); + valueMap.put("FIRSTNAME", myEntity.getFirstname()); + valueMap.put("LASTNAME", myEntity.getLastname()); + valueMap.put("STREET_ADDRESS", myEntity.getStreetAddress()); + valueMap.put("SUBURB", myEntity.getSuburb()); + valueMap.put("CITY", myEntity.getCity()); + valueMap.put("STATE", myEntity.getState()); + valueMap.put("POSTCODE", myEntity.getPostcode()); + valueMap.put("TELEPHONE", myEntity.getTelephone()); + valueMap.put("FAX", myEntity.getFax()); + valueMap.put("CELLPHONE", myEntity.getCellphone()); + valueMap.put("DEFAULT_ADDRESS", myEntity.getDefaultAddress()); + valueMap.put("LANGUAGE_ID", myEntity.getLanguageId()); + valueMap.put("COUNTRY_ID", myEntity.getCountryId()); + valueMap.put("ZONE_ID", myEntity.getZoneId()); + 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 AddressBook myEntity = downcast(entity); + final java.util.Map<String, String> valueMap = new java.util.LinkedHashMap<String, String>(); + valueMap.put("ADDRESS_BOOK_ID", helpGettingColumnStringValue(myEntity.getAddressBookId())); + valueMap.put("CUSTOMER_ID", helpGettingColumnStringValue(myEntity.getCustomerId())); + valueMap.put("COMPANY", helpGettingColumnStringValue(myEntity.getCompany())); + valueMap.put("DEPARTMENT", helpGettingColumnStringValue(myEntity.getDepartment())); + valueMap.put("FIRSTNAME", helpGettingColumnStringValue(myEntity.getFirstname())); + valueMap.put("LASTNAME", helpGettingColumnStringValue(myEntity.getLastname())); + valueMap.put("STREET_ADDRESS", helpGettingColumnStringValue(myEntity.getStreetAddress())); + valueMap.put("SUBURB", helpGettingColumnStringValue(myEntity.getSuburb())); + valueMap.put("CITY", helpGettingColumnStringValue(myEntity.getCity())); + valueMap.put("STATE", helpGettingColumnStringValue(myEntity.getState())); + valueMap.put("POSTCODE", helpGettingColumnStringValue(myEntity.getPostcode())); + valueMap.put("TELEPHONE", helpGettingColumnStringValue(myEntity.getTelephone())); + valueMap.put("FAX", helpGettingColumnStringValue(myEntity.getFax())); + valueMap.put("CELLPHONE", helpGettingColumnStringValue(myEntity.getCellphone())); + valueMap.put("DEFAULT_ADDRESS", helpGettingColumnStringValue(myEntity.getDefaultAddress())); + valueMap.put("LANGUAGE_ID", helpGettingColumnStringValue(myEntity.getLanguageId())); + valueMap.put("COUNTRY_ID", helpGettingColumnStringValue(myEntity.getCountryId())); + valueMap.put("ZONE_ID", helpGettingColumnStringValue(myEntity.getZoneId())); + 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 + "ADDRESS_BOOK(ADDRESS_BOOK_ID, CUSTOMER_ID, COMPANY, DEPARTMENT, FIRSTNAME, LASTNAME, STREET_ADDRESS, SUBURB, CITY, STATE, POSTCODE, TELEPHONE, FAX, CELLPHONE, DEFAULT_ADDRESS, LANGUAGE_ID, COUNTRY_ID, ZONE_ID) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; + } + return "insert into ADDRESS_BOOK(ADDRESS_BOOK_ID, CUSTOMER_ID, COMPANY, DEPARTMENT, FIRSTNAME, LASTNAME, STREET_ADDRESS, SUBURB, CITY, STATE, POSTCODE, TELEPHONE, FAX, CELLPHONE, DEFAULT_ADDRESS, LANGUAGE_ID, COUNTRY_ID, ZONE_ID) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; + } + + // =================================================================================== + // Helper + // ====== + protected AddressBook downcast(Entity entity) { + assertObjectNotNull("entity", entity); + try { + return (AddressBook)entity; + } catch (ClassCastException e) { + String msg = "The entity should be AddressBook 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/AddressBookDbm.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/DeliveryMethodDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/DeliveryMethodDbm.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/DeliveryMethodDbm.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,1160 @@ +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.DeliveryMethod; +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 DELIVERY_METHOD. (Singleton) + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID + * + * [column-property] + * DELIVERY_METHOD_ID, CODE, OBJECT_NAME, STATUS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * + * [foreign-property] + * + * + * [refferer-property] + * deliveryMethodDescriptionList, orderFormList + * + * [sequence] + * + * + * [identity] + * deliveryMethodId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodDbm extends AbstractDBMeta { + + // =================================================================================== + // Definition + // ========== + /** The type of entity. */ + protected static final Class ENTITY_TYPE = DeliveryMethod.class; + + /** Singleton instance. */ + private static final DeliveryMethodDbm _instance = new DeliveryMethodDbm(); + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + private DeliveryMethodDbm() { + } + + // =================================================================================== + // Singleton + // ========= + /** + * Get instance. + * + * @return Singleton instance. (NotNull) + */ + public static DeliveryMethodDbm getInstance() { + return _instance; + } + + // =================================================================================== + // Name Definition + // =============== + // ----------------------------------------------------- + // Table + // ----- + /** Table db name. */ + public static final String TABLE_DB_NAME = "DELIVERY_METHOD"; + + /** Table prop name(JavaBeansRule). */ + public static final String TABLE_PROPERTY_NAME = "deliveryMethod"; + + /** Table cap-prop name. */ + public static final String TABLE_CAP_PROP_NAME = "DeliveryMethod"; + + /** Table uncap-prop name. */ + public static final String TABLE_UNCAP_PROP_NAME = "deliveryMethod"; + + // ----------------------------------------------------- + // Column DB-Name + // -------------- + /** Db-name of DELIVERY_METHOD_ID. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String DB_NAME_DELIVERY_METHOD_ID = "DELIVERY_METHOD_ID"; + /** Db-name of CODE. VARCHAR(16) : NotNull */ + public static final String DB_NAME_CODE = "CODE"; + /** Db-name of OBJECT_NAME. VARCHAR(128) : NotNull */ + public static final String DB_NAME_OBJECT_NAME = "OBJECT_NAME"; + /** Db-name of STATUS. INTEGER : NotNull */ + public static final String DB_NAME_STATUS = "STATUS"; + /** Db-name of SORT_ORDER. INTEGER : NotNull */ + public static final String DB_NAME_SORT_ORDER = "SORT_ORDER"; + /** Db-name of DATE_ADDED. TIMESTAMP : NotNull */ + public static final String DB_NAME_DATE_ADDED = "DATE_ADDED"; + /** Db-name of LAST_MODIFIED. TIMESTAMP : NotNull */ + public static final String DB_NAME_LAST_MODIFIED = "LAST_MODIFIED"; + + /** @deprecated Deprecated! So use DB_NAME_DeliveryMethodId. */ + public static final String COLUMN_DB_NAME_OF_DeliveryMethodId = "DELIVERY_METHOD_ID"; + /** @deprecated Deprecated! So use DB_NAME_Code. */ + public static final String COLUMN_DB_NAME_OF_Code = "CODE"; + /** @deprecated Deprecated! So use DB_NAME_ObjectName. */ + public static final String COLUMN_DB_NAME_OF_ObjectName = "OBJECT_NAME"; + /** @deprecated Deprecated! So use DB_NAME_Status. */ + public static final String COLUMN_DB_NAME_OF_Status = "STATUS"; + /** @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. */ + public static final String COLUMN_DB_NAME_OF_DateAdded = "DATE_ADDED"; + /** @deprecated Deprecated! So use DB_NAME_LastModified. */ + public static final String COLUMN_DB_NAME_OF_LastModified = "LAST_MODIFIED"; + + // ----------------------------------------------------- + // Column Prop-Name(JavaBeansRule) + // ------------------------------- + /** Prop-name(JavaBeansRule) of deliveryMethodId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String PROPERTY_NAME_deliveryMethodId = "deliveryMethodId"; + /** Prop-name(JavaBeansRule) of code. VARCHAR(16) : NotNull */ + public static final String PROPERTY_NAME_code = "code"; + /** Prop-name(JavaBeansRule) of objectName. VARCHAR(128) : NotNull */ + public static final String PROPERTY_NAME_objectName = "objectName"; + /** Prop-name(JavaBeansRule) of status. INTEGER : NotNull */ + public static final String PROPERTY_NAME_status = "status"; + /** Prop-name(JavaBeansRule) of sortOrder. INTEGER : NotNull */ + public static final String PROPERTY_NAME_sortOrder = "sortOrder"; + /** Prop-name(JavaBeansRule) of dateAdded. TIMESTAMP : NotNull */ + public static final String PROPERTY_NAME_dateAdded = "dateAdded"; + /** Prop-name(JavaBeansRule) of lastModified. TIMESTAMP : NotNull */ + public static final String PROPERTY_NAME_lastModified = "lastModified"; + + // ----------------------------------------------------- + // Column Cap-Prop-Name + // -------------------- + /** Cap-prop-name of deliveryMethodId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String CAP_PROP_NAME_DeliveryMethodId = "DeliveryMethodId"; + /** Cap-prop-name of code. VARCHAR(16) : NotNull */ + public static final String CAP_PROP_NAME_Code = "Code"; + /** Cap-prop-name of objectName. VARCHAR(128) : NotNull */ + public static final String CAP_PROP_NAME_ObjectName = "ObjectName"; + /** Cap-prop-name of status. INTEGER : NotNull */ + public static final String CAP_PROP_NAME_Status = "Status"; + /** Cap-prop-name of sortOrder. INTEGER : NotNull */ + public static final String CAP_PROP_NAME_SortOrder = "SortOrder"; + /** Cap-prop-name of dateAdded. TIMESTAMP : NotNull */ + public static final String CAP_PROP_NAME_DateAdded = "DateAdded"; + /** Cap-prop-name of lastModified. TIMESTAMP : NotNull */ + public static final String CAP_PROP_NAME_LastModified = "LastModified"; + + /** @deprecated Deprecated! So use CAP_PROP_NAME_DeliveryMethodId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId = "DeliveryMethodId"; + /** @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_ObjectName. */ + public static final String COLUMN_CAP_PROP_NAME_OF_ObjectName = "ObjectName"; + /** @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_SortOrder. */ + public static final String COLUMN_CAP_PROP_NAME_OF_SortOrder = "SortOrder"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_DateAdded. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DateAdded = "DateAdded"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_LastModified. */ + public static final String COLUMN_CAP_PROP_NAME_OF_LastModified = "LastModified"; + + // ----------------------------------------------------- + // Column Uncap-Prop-Name + // ---------------------- + /** Uncap-prop-name of deliveryMethodId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String UNCAP_PROP_NAME_deliveryMethodId = "deliveryMethodId"; + /** Uncap-prop-name of code. VARCHAR(16) : NotNull */ + public static final String UNCAP_PROP_NAME_code = "code"; + /** Uncap-prop-name of objectName. VARCHAR(128) : NotNull */ + public static final String UNCAP_PROP_NAME_objectName = "objectName"; + /** Uncap-prop-name of status. INTEGER : NotNull */ + public static final String UNCAP_PROP_NAME_status = "status"; + /** Uncap-prop-name of sortOrder. INTEGER : NotNull */ + public static final String UNCAP_PROP_NAME_sortOrder = "sortOrder"; + /** Uncap-prop-name of dateAdded. TIMESTAMP : NotNull */ + public static final String UNCAP_PROP_NAME_dateAdded = "dateAdded"; + /** Uncap-prop-name of lastModified. TIMESTAMP : NotNull */ + public static final String UNCAP_PROP_NAME_lastModified = "lastModified"; + + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_DeliveryMethodId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId = "deliveryMethodId"; + /** @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_ObjectName. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_ObjectName = "objectName"; + /** @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_SortOrder. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_SortOrder = "sortOrder"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_DateAdded. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DateAdded = "dateAdded"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_LastModified. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_LastModified = "lastModified"; + + // ----------------------------------------------------- + // Foreign Name + // ------------ + + + // ----------------------------------------------------- + // Referer Name + // ------------ + /** The referer property name(JavaBeansRule) of deliveryMethodDescriptionList. */ + public static final String REFERER_PROPERTY_NAME_deliveryMethodDescriptionList = "deliveryMethodDescriptionList"; + /** The referer property name(JavaBeansRule) of orderFormList. */ + public static final String REFERER_PROPERTY_NAME_orderFormList = "orderFormList"; + /** @deprecated Use REFERER_NAME_deliveryMethodDescriptionList */ + public static final String REFERER_CAP_PROP_NAME_DeliveryMethodDescriptionList = "DeliveryMethodDescriptionList"; + /** @deprecated Use REFERER_NAME_orderFormList */ + public static final String REFERER_CAP_PROP_NAME_OrderFormList = "OrderFormList"; + + /** @deprecated Use REFERER_NAME_deliveryMethodDescriptionList */ + public static final String REFERER_UNCAP_PROP_NAME_deliveryMethodDescriptionList = "deliveryMethodDescriptionList"; + /** @deprecated Use REFERER_NAME_orderFormList */ + public static final String REFERER_UNCAP_PROP_NAME_orderFormList = "orderFormList"; + + /** 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_DELIVERY_METHOD_ID.toLowerCase(), PROPERTY_NAME_deliveryMethodId); + map.put(DB_NAME_CODE.toLowerCase(), PROPERTY_NAME_code); + map.put(DB_NAME_OBJECT_NAME.toLowerCase(), PROPERTY_NAME_objectName); + map.put(DB_NAME_STATUS.toLowerCase(), PROPERTY_NAME_status); + 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); + + _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_deliveryMethodId.toLowerCase(), DB_NAME_DELIVERY_METHOD_ID); + map.put(PROPERTY_NAME_code.toLowerCase(), DB_NAME_CODE); + map.put(PROPERTY_NAME_objectName.toLowerCase(), DB_NAME_OBJECT_NAME); + map.put(PROPERTY_NAME_status.toLowerCase(), DB_NAME_STATUS); + 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); + + _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_DELIVERY_METHOD_ID, CAP_PROP_NAME_DeliveryMethodId); + map.put(DB_NAME_CODE, CAP_PROP_NAME_Code); + map.put(DB_NAME_OBJECT_NAME, CAP_PROP_NAME_ObjectName); + map.put(DB_NAME_STATUS, CAP_PROP_NAME_Status); + 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); + + _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_DELIVERY_METHOD_ID, UNCAP_PROP_NAME_deliveryMethodId); + map.put(DB_NAME_CODE, UNCAP_PROP_NAME_code); + map.put(DB_NAME_OBJECT_NAME, UNCAP_PROP_NAME_objectName); + map.put(DB_NAME_STATUS, UNCAP_PROP_NAME_status); + 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); + + _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_DeliveryMethodId, DB_NAME_DELIVERY_METHOD_ID); + map.put(CAP_PROP_NAME_Code, DB_NAME_CODE); + map.put(CAP_PROP_NAME_ObjectName, DB_NAME_OBJECT_NAME); + map.put(CAP_PROP_NAME_Status, DB_NAME_STATUS); + 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); + + _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_DeliveryMethodId, UNCAP_PROP_NAME_deliveryMethodId); + map.put(CAP_PROP_NAME_Code, UNCAP_PROP_NAME_code); + map.put(CAP_PROP_NAME_ObjectName, UNCAP_PROP_NAME_objectName); + map.put(CAP_PROP_NAME_Status, UNCAP_PROP_NAME_status); + 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); + + _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_deliveryMethodId, DB_NAME_DELIVERY_METHOD_ID); + map.put(UNCAP_PROP_NAME_code, DB_NAME_CODE); + map.put(UNCAP_PROP_NAME_objectName, DB_NAME_OBJECT_NAME); + map.put(UNCAP_PROP_NAME_status, DB_NAME_STATUS); + 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); + + _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_deliveryMethodId, CAP_PROP_NAME_DeliveryMethodId); + map.put(UNCAP_PROP_NAME_code, CAP_PROP_NAME_Code); + map.put(UNCAP_PROP_NAME_objectName, CAP_PROP_NAME_ObjectName); + map.put(UNCAP_PROP_NAME_status, CAP_PROP_NAME_Status); + 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); + + _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.DeliveryMethod"; + } + + /** + * The implementation. + * + * @return The type-name of condition-bean. (NotNull) + */ + public String getConditionBeanTypeName() { + return "jp.sf.pal.pompei.cbean.bs.DeliveryMethodCB"; + } + + /** + * The implementation. + * + * @return The type-name of dao. (NotNull) + */ + public String getDaoTypeName() { + return "jp.sf.pal.pompei.exdao.DeliveryMethodDao"; + } + + /** + * The implementation. + * + * @return The type-name of behavior. (NotNull) + */ + public String getBehaviorTypeName() { + return "jp.sf.pal.pompei.exbhv.DeliveryMethodBhv"; + } + + // =================================================================================== + // 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 DeliveryMethod newMyEntity() { + return new DeliveryMethod(); + } + + + // =================================================================================== + // 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(columnDeliveryMethodId()); + columnInfoList.add(columnCode()); + columnInfoList.add(columnObjectName()); + columnInfoList.add(columnStatus()); + columnInfoList.add(columnSortOrder()); + columnInfoList.add(columnDateAdded()); + columnInfoList.add(columnLastModified()); + 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 "DELIVERY_METHOD_ID, CODE, OBJECT_NAME, STATUS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED"; + } + + /** + * @return Column information of deliveryMethodId. (NotNull) + */ + public ColumnInfo columnDeliveryMethodId() { + return new ColumnInfo(this, "DELIVERY_METHOD_ID", "deliveryMethodId", 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 objectName. (NotNull) + */ + public ColumnInfo columnObjectName() { + return new ColumnInfo(this, "OBJECT_NAME", "objectName", String.class, false); + } + /** + * @return Column information of status. (NotNull) + */ + public ColumnInfo columnStatus() { + return new ColumnInfo(this, "STATUS", "status", java.math.BigDecimal.class, false); + } + /** + * @return Column information of sortOrder. (NotNull) + */ + public ColumnInfo columnSortOrder() { + return new ColumnInfo(this, "SORT_ORDER", "sortOrder", java.math.BigDecimal.class, false); + } + /** + * @return Column information of dateAdded. (NotNull) + */ + public ColumnInfo columnDateAdded() { + return new ColumnInfo(this, "DATE_ADDED", "dateAdded", java.sql.Timestamp.class, false); + } + /** + * @return Column information of lastModified. (NotNull) + */ + public ColumnInfo columnLastModified() { + return new ColumnInfo(this, "LAST_MODIFIED", "lastModified", java.sql.Timestamp.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, "DELIVERY_METHOD_ID", "deliveryMethodId", 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 + // --------------- + + + // ----------------------------------------------------- + // Referer Element + // --------------- + /** + * Get referer information of deliveryMethodDescriptionList. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererDeliveryMethodDescriptionList() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo(); + refererInfo.setRefererPropertyName("deliveryMethodDescriptionList"); + refererInfo.setLocalDBMeta(DeliveryMethodDbm.getInstance()); + refererInfo.setRefererDBMeta(DeliveryMethodDescriptionDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnDeliveryMethodId(), DeliveryMethodDescriptionDbm.getInstance().columnDeliveryMethodId()); + refererInfo.setLocalRefererColumnInfoMap(map); + refererInfo.setOneToOne(false); + return refererInfo; + } + /** + * Get referer information of orderFormList. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererOrderFormList() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo(); + refererInfo.setRefererPropertyName("orderFormList"); + refererInfo.setLocalDBMeta(DeliveryMethodDbm.getInstance()); + refererInfo.setRefererDBMeta(OrderFormDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnDeliveryMethodId(), OrderFormDbm.getInstance().columnDeliveryMethodId()); + refererInfo.setLocalRefererColumnInfoMap(map); + refererInfo.setOneToOne(false); + return refererInfo; + } + + // ----------------------------------------------------- + // Relation Trace + // -------------- + /** + * Create relation trace for first step. + * + * @param relationTraceFixHandler The handler of fixed relation trace. (Nullable) + * @return Relation trace. (NotNull) + */ + public DeliveryMethodRelationTrace createRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + return new DeliveryMethodRelationTrace(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 DeliveryMethodRelationTrace createRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + return new DeliveryMethodRelationTrace(relationList, relationTraceList); + } + + /** + * Relation trace of DELIVERY_METHOD. + */ + public static class DeliveryMethodRelationTrace extends AbstractRelationTrace { + + /** + * Constructor for first step. + * + * @param relationTraceFixHandler The handler of fixed relation trace. (Nullable) + */ + public DeliveryMethodRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + super(relationTraceFixHandler); + } + + /** + * Constructor for relation step. + * + * @param relationList The list of relation. (NotNull) + * @param relationTraceList The list of relation trace. (NotNull) + */ + public DeliveryMethodRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + super(relationList, relationTraceList); + } + + public DeliveryMethodDescriptionDbm.DeliveryMethodDescriptionRelationTrace refererDeliveryMethodDescriptionList() { + _relationList.add(DeliveryMethodDbm.getInstance().refererDeliveryMethodDescriptionList()); + return DeliveryMethodDescriptionDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public OrderFormDbm.OrderFormRelationTrace refererOrderFormList() { + _relationList.add(DeliveryMethodDbm.getInstance().refererOrderFormList()); + return OrderFormDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public RelationTrace columnDeliveryMethodId() { return fixTrace(_relationList, DeliveryMethodDbm.getInstance().columnDeliveryMethodId()); } + public RelationTrace columnCode() { return fixTrace(_relationList, DeliveryMethodDbm.getInstance().columnCode()); } + public RelationTrace columnObjectName() { return fixTrace(_relationList, DeliveryMethodDbm.getInstance().columnObjectName()); } + public RelationTrace columnStatus() { return fixTrace(_relationList, DeliveryMethodDbm.getInstance().columnStatus()); } + public RelationTrace columnSortOrder() { return fixTrace(_relationList, DeliveryMethodDbm.getInstance().columnSortOrder()); } + public RelationTrace columnDateAdded() { return fixTrace(_relationList, DeliveryMethodDbm.getInstance().columnDateAdded()); } + public RelationTrace columnLastModified() { return fixTrace(_relationList, DeliveryMethodDbm.getInstance().columnLastModified()); } + } + + // =================================================================================== + // 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 DeliveryMethod myEntity = (DeliveryMethod)entity; + MapAssertUtil.assertPrimaryKeyMapNotNullAndNotEmpty(primaryKeyMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(primaryKeyMap, entity.getModifiedPropertyNames()); + + MapAssertUtil.assertColumnExistingInPrimaryKeyMap(primaryKeyMap, "DELIVERY_METHOD_ID"); + if (analyzer.init("DELIVERY_METHOD_ID", "deliveryMethodId", "deliveryMethodId")) { myEntity.setDeliveryMethodId(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 DeliveryMethod myEntity = (DeliveryMethod)entity; + MapAssertUtil.assertColumnValueMapNotNullAndNotEmpty(columnValueMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(columnValueMap, entity.getModifiedPropertyNames()); + + if (analyzer.init("DELIVERY_METHOD_ID", "deliveryMethodId", "deliveryMethodId")) { myEntity.setDeliveryMethodId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("CODE", "code", "code")) { myEntity.setCode(analyzer.analyzeString(String.class)); }; + if (analyzer.init("OBJECT_NAME", "objectName", "objectName")) { myEntity.setObjectName(analyzer.analyzeString(String.class)); }; + if (analyzer.init("STATUS", "status", "status")) { myEntity.setStatus(analyzer.analyzeNumber(java.math.BigDecimal.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)); }; + + } + + + /** + * 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 DeliveryMethod myEntity = (DeliveryMethod)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_METHOD_ID", myEntity.getDeliveryMethodId()); + + 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 DeliveryMethod myEntity = (DeliveryMethod)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_METHOD_ID", myEntity.getDeliveryMethodId()); + helpAppendingColumnValueString(sb, delimiter, equal, "CODE", myEntity.getCode()); + helpAppendingColumnValueString(sb, delimiter, equal, "OBJECT_NAME", myEntity.getObjectName()); + helpAppendingColumnValueString(sb, delimiter, equal, "STATUS", myEntity.getStatus()); + helpAppendingColumnValueString(sb, delimiter, equal, "SORT_ORDER", myEntity.getSortOrder()); + helpAppendingColumnValueString(sb, delimiter, equal, "DATE_ADDED", myEntity.getDateAdded()); + helpAppendingColumnValueString(sb, delimiter, equal, "LAST_MODIFIED", myEntity.getLastModified()); + + 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 DeliveryMethod myEntity = downcast(entity); + final java.util.Map<String, Object> valueMap = new java.util.LinkedHashMap<String, Object>(); + valueMap.put("DELIVERY_METHOD_ID", myEntity.getDeliveryMethodId()); + valueMap.put("CODE", myEntity.getCode()); + valueMap.put("OBJECT_NAME", myEntity.getObjectName()); + valueMap.put("STATUS", myEntity.getStatus()); + valueMap.put("SORT_ORDER", myEntity.getSortOrder()); + valueMap.put("DATE_ADDED", myEntity.getDateAdded()); + valueMap.put("LAST_MODIFIED", myEntity.getLastModified()); + 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 DeliveryMethod myEntity = downcast(entity); + final java.util.Map<String, String> valueMap = new java.util.LinkedHashMap<String, String>(); + valueMap.put("DELIVERY_METHOD_ID", helpGettingColumnStringValue(myEntity.getDeliveryMethodId())); + valueMap.put("CODE", helpGettingColumnStringValue(myEntity.getCode())); + valueMap.put("OBJECT_NAME", helpGettingColumnStringValue(myEntity.getObjectName())); + valueMap.put("STATUS", helpGettingColumnStringValue(myEntity.getStatus())); + valueMap.put("SORT_ORDER", helpGettingColumnStringValue(myEntity.getSortOrder())); + valueMap.put("DATE_ADDED", helpGettingColumnStringValue(myEntity.getDateAdded())); + valueMap.put("LAST_MODIFIED", helpGettingColumnStringValue(myEntity.getLastModified())); + 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 + "DELIVERY_METHOD(DELIVERY_METHOD_ID, CODE, OBJECT_NAME, STATUS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED) values(? , ? , ? , ? , ? , ? , ? )"; + } + return "insert into DELIVERY_METHOD(DELIVERY_METHOD_ID, CODE, OBJECT_NAME, STATUS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED) values(? , ? , ? , ? , ? , ? , ? )"; + } + + // =================================================================================== + // Helper + // ====== + protected DeliveryMethod downcast(Entity entity) { + assertObjectNotNull("entity", entity); + try { + return (DeliveryMethod)entity; + } catch (ClassCastException e) { + String msg = "The entity should be DeliveryMethod 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/DeliveryMethodDbm.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/DeliveryMethodDescriptionDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/DeliveryMethodDescriptionDbm.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/DeliveryMethodDescriptionDbm.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,1062 @@ +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.DeliveryMethodDescription; +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 DELIVERY_METHOD_DESCRIPTION. (Singleton) + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID, LANGUAGE_ID + * + * [column-property] + * DELIVERY_METHOD_ID, LANGUAGE_ID, NAME, DESCRIPTION + * + * [foreign-property] + * deliveryMethod, language + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodDescriptionDbm extends AbstractDBMeta { + + // =================================================================================== + // Definition + // ========== + /** The type of entity. */ + protected static final Class ENTITY_TYPE = DeliveryMethodDescription.class; + + /** Singleton instance. */ + private static final DeliveryMethodDescriptionDbm _instance = new DeliveryMethodDescriptionDbm(); + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + private DeliveryMethodDescriptionDbm() { + } + + // =================================================================================== + // Singleton + // ========= + /** + * Get instance. + * + * @return Singleton instance. (NotNull) + */ + public static DeliveryMethodDescriptionDbm getInstance() { + return _instance; + } + + // =================================================================================== + // Name Definition + // =============== + // ----------------------------------------------------- + // Table + // ----- + /** Table db name. */ + public static final String TABLE_DB_NAME = "DELIVERY_METHOD_DESCRIPTION"; + + /** Table prop name(JavaBeansRule). */ + public static final String TABLE_PROPERTY_NAME = "deliveryMethodDescription"; + + /** Table cap-prop name. */ + public static final String TABLE_CAP_PROP_NAME = "DeliveryMethodDescription"; + + /** Table uncap-prop name. */ + public static final String TABLE_UNCAP_PROP_NAME = "deliveryMethodDescription"; + + // ----------------------------------------------------- + // Column DB-Name + // -------------- + /** Db-name of DELIVERY_METHOD_ID. PK : INTEGER : NotNull : Default=[0] : FK to DELIVERY_METHOD */ + public static final String DB_NAME_DELIVERY_METHOD_ID = "DELIVERY_METHOD_ID"; + /** Db-name of LANGUAGE_ID. PK : INTEGER : NotNull : Default=[1] : FK to LANGUAGE */ + public static final String DB_NAME_LANGUAGE_ID = "LANGUAGE_ID"; + /** Db-name of NAME. VARCHAR(64) : NotNull */ + public static final String DB_NAME_NAME = "NAME"; + /** Db-name of DESCRIPTION. LONG VARCHAR(32700) */ + public static final String DB_NAME_DESCRIPTION = "DESCRIPTION"; + + /** @deprecated Deprecated! So use DB_NAME_DeliveryMethodId. */ + public static final String COLUMN_DB_NAME_OF_DeliveryMethodId = "DELIVERY_METHOD_ID"; + /** @deprecated Deprecated! So use DB_NAME_LanguageId. */ + 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_Description. */ + public static final String COLUMN_DB_NAME_OF_Description = "DESCRIPTION"; + + // ----------------------------------------------------- + // Column Prop-Name(JavaBeansRule) + // ------------------------------- + /** Prop-name(JavaBeansRule) of deliveryMethodId. PK : INTEGER : NotNull : Default=[0] : FK to DELIVERY_METHOD */ + public static final String PROPERTY_NAME_deliveryMethodId = "deliveryMethodId"; + /** Prop-name(JavaBeansRule) of languageId. PK : INTEGER : NotNull : Default=[1] : FK to LANGUAGE */ + public static final String PROPERTY_NAME_languageId = "languageId"; + /** Prop-name(JavaBeansRule) of name. VARCHAR(64) : NotNull */ + public static final String PROPERTY_NAME_name = "name"; + /** Prop-name(JavaBeansRule) of description. LONG VARCHAR(32700) */ + public static final String PROPERTY_NAME_description = "description"; + + // ----------------------------------------------------- + // Column Cap-Prop-Name + // -------------------- + /** Cap-prop-name of deliveryMethodId. PK : INTEGER : NotNull : Default=[0] : FK to DELIVERY_METHOD */ + public static final String CAP_PROP_NAME_DeliveryMethodId = "DeliveryMethodId"; + /** Cap-prop-name of languageId. PK : INTEGER : NotNull : Default=[1] : FK to LANGUAGE */ + public static final String CAP_PROP_NAME_LanguageId = "LanguageId"; + /** Cap-prop-name of name. VARCHAR(64) : NotNull */ + public static final String CAP_PROP_NAME_Name = "Name"; + /** Cap-prop-name of description. LONG VARCHAR(32700) */ + public static final String CAP_PROP_NAME_Description = "Description"; + + /** @deprecated Deprecated! So use CAP_PROP_NAME_DeliveryMethodId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId = "DeliveryMethodId"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_LanguageId. */ + 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_Description. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Description = "Description"; + + // ----------------------------------------------------- + // Column Uncap-Prop-Name + // ---------------------- + /** Uncap-prop-name of deliveryMethodId. PK : INTEGER : NotNull : Default=[0] : FK to DELIVERY_METHOD */ + public static final String UNCAP_PROP_NAME_deliveryMethodId = "deliveryMethodId"; + /** Uncap-prop-name of languageId. PK : INTEGER : NotNull : Default=[1] : FK to LANGUAGE */ + public static final String UNCAP_PROP_NAME_languageId = "languageId"; + /** Uncap-prop-name of name. VARCHAR(64) : NotNull */ + public static final String UNCAP_PROP_NAME_name = "name"; + /** Uncap-prop-name of description. LONG VARCHAR(32700) */ + public static final String UNCAP_PROP_NAME_description = "description"; + + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_DeliveryMethodId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId = "deliveryMethodId"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_LanguageId. */ + 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_Description. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Description = "description"; + + // ----------------------------------------------------- + // Foreign Name + // ------------ + /** The foreign property name(JavaBeansRule) of deliveryMethod. */ + public static final String FOREIGN_PROPERTY_NAME_deliveryMethod = "deliveryMethod"; + /** The foreign property name(JavaBeansRule) of language. */ + public static final String FOREIGN_PROPERTY_NAME_language = "language"; + /** @deprecated Use FOREIGN_NAME_deliveryMethod. */ + public static final String FOREIGN_CAP_PROP_NAME_DeliveryMethod = "DeliveryMethod"; + /** @deprecated Use FOREIGN_NAME_language. */ + public static final String FOREIGN_CAP_PROP_NAME_Language = "Language"; + + /** @deprecated Use FOREIGN_NAME_deliveryMethod. */ + public static final String FOREIGN_UNCAP_PROP_NAME_deliveryMethod = "deliveryMethod"; + /** @deprecated Use FOREIGN_NAME_language. */ + public static final String FOREIGN_UNCAP_PROP_NAME_language = "language"; + + // ----------------------------------------------------- + // 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_DELIVERY_METHOD_ID.toLowerCase(), PROPERTY_NAME_deliveryMethodId); + map.put(DB_NAME_LANGUAGE_ID.toLowerCase(), PROPERTY_NAME_languageId); + map.put(DB_NAME_NAME.toLowerCase(), PROPERTY_NAME_name); + map.put(DB_NAME_DESCRIPTION.toLowerCase(), PROPERTY_NAME_description); + + _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_deliveryMethodId.toLowerCase(), DB_NAME_DELIVERY_METHOD_ID); + map.put(PROPERTY_NAME_languageId.toLowerCase(), DB_NAME_LANGUAGE_ID); + map.put(PROPERTY_NAME_name.toLowerCase(), DB_NAME_NAME); + map.put(PROPERTY_NAME_description.toLowerCase(), DB_NAME_DESCRIPTION); + + _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_DELIVERY_METHOD_ID, CAP_PROP_NAME_DeliveryMethodId); + map.put(DB_NAME_LANGUAGE_ID, CAP_PROP_NAME_LanguageId); + map.put(DB_NAME_NAME, CAP_PROP_NAME_Name); + map.put(DB_NAME_DESCRIPTION, CAP_PROP_NAME_Description); + + _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_DELIVERY_METHOD_ID, UNCAP_PROP_NAME_deliveryMethodId); + map.put(DB_NAME_LANGUAGE_ID, UNCAP_PROP_NAME_languageId); + map.put(DB_NAME_NAME, UNCAP_PROP_NAME_name); + map.put(DB_NAME_DESCRIPTION, UNCAP_PROP_NAME_description); + + _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_DeliveryMethodId, DB_NAME_DELIVERY_METHOD_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_Description, DB_NAME_DESCRIPTION); + + _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_DeliveryMethodId, UNCAP_PROP_NAME_deliveryMethodId); + 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_Description, UNCAP_PROP_NAME_description); + + _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_deliveryMethodId, DB_NAME_DELIVERY_METHOD_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_description, DB_NAME_DESCRIPTION); + + _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_deliveryMethodId, CAP_PROP_NAME_DeliveryMethodId); + 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_description, CAP_PROP_NAME_Description); + + _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.DeliveryMethodDescription"; + } + + /** + * The implementation. + * + * @return The type-name of condition-bean. (NotNull) + */ + public String getConditionBeanTypeName() { + return "jp.sf.pal.pompei.cbean.bs.DeliveryMethodDescriptionCB"; + } + + /** + * The implementation. + * + * @return The type-name of dao. (NotNull) + */ + public String getDaoTypeName() { + return "jp.sf.pal.pompei.exdao.DeliveryMethodDescriptionDao"; + } + + /** + * The implementation. + * + * @return The type-name of behavior. (NotNull) + */ + public String getBehaviorTypeName() { + return "jp.sf.pal.pompei.exbhv.DeliveryMethodDescriptionBhv"; + } + + // =================================================================================== + // 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 DeliveryMethodDescription newMyEntity() { + return new DeliveryMethodDescription(); + } + + + // =================================================================================== + // 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(columnDeliveryMethodId()); + columnInfoList.add(columnLanguageId()); + columnInfoList.add(columnName()); + columnInfoList.add(columnDescription()); + 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 "DELIVERY_METHOD_ID, LANGUAGE_ID, NAME, DESCRIPTION"; + } + + /** + * @return Column information of deliveryMethodId. (NotNull) + */ + public ColumnInfo columnDeliveryMethodId() { + return new ColumnInfo(this, "DELIVERY_METHOD_ID", "deliveryMethodId", java.math.BigDecimal.class, true); + } + /** + * @return Column information of languageId. (NotNull) + */ + public ColumnInfo columnLanguageId() { + return new ColumnInfo(this, "LANGUAGE_ID", "languageId", java.math.BigDecimal.class, true); + } + /** + * @return Column information of name. (NotNull) + */ + public ColumnInfo columnName() { + return new ColumnInfo(this, "NAME", "name", String.class, false); + } + /** + * @return Column information of description. (NotNull) + */ + public ColumnInfo columnDescription() { + return new ColumnInfo(this, "DESCRIPTION", "description", String.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, "DELIVERY_METHOD_ID", "deliveryMethodId", java.math.BigDecimal.class, true)); + uniqueInfo.addUniqueColumnList(new ColumnInfo(this, "LANGUAGE_ID", "languageId", 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 true; + } + + // =================================================================================== + // Relation Info + // ============= + // ----------------------------------------------------- + // Foreign Element + // --------------- + /** + * Get foreign information of deliveryMethod. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignDeliveryMethod() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo(); + foreignInfo.setForeignPropertyName("deliveryMethod"); + foreignInfo.setLocalDBMeta(DeliveryMethodDescriptionDbm.getInstance()); + foreignInfo.setForeignDBMeta(DeliveryMethodDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnDeliveryMethodId(), DeliveryMethodDbm.getInstance().columnDeliveryMethodId()); + foreignInfo.setLocalForeignColumnInfoMap(map); + foreignInfo.setOneToOne(false); + return foreignInfo; + } + /** + * Get foreign information of language. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignLanguage() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo foreignInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.ForeignInfo(); + foreignInfo.setForeignPropertyName("language"); + foreignInfo.setLocalDBMeta(DeliveryMethodDescriptionDbm.getInstance()); + foreignInfo.setForeignDBMeta(LanguageDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnLanguageId(), LanguageDbm.getInstance().columnLanguageId()); + 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 DeliveryMethodDescriptionRelationTrace createRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + return new DeliveryMethodDescriptionRelationTrace(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 DeliveryMethodDescriptionRelationTrace createRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + return new DeliveryMethodDescriptionRelationTrace(relationList, relationTraceList); + } + + /** + * Relation trace of DELIVERY_METHOD_DESCRIPTION. + */ + public static class DeliveryMethodDescriptionRelationTrace extends AbstractRelationTrace { + + /** + * Constructor for first step. + * + * @param relationTraceFixHandler The handler of fixed relation trace. (Nullable) + */ + public DeliveryMethodDescriptionRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + super(relationTraceFixHandler); + } + + /** + * Constructor for relation step. + * + * @param relationList The list of relation. (NotNull) + * @param relationTraceList The list of relation trace. (NotNull) + */ + public DeliveryMethodDescriptionRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + super(relationList, relationTraceList); + } + + public DeliveryMethodDbm.DeliveryMethodRelationTrace foreignDeliveryMethod() { + _relationList.add(DeliveryMethodDescriptionDbm.getInstance().foreignDeliveryMethod()); + return DeliveryMethodDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public LanguageDbm.LanguageRelationTrace foreignLanguage() { + _relationList.add(DeliveryMethodDescriptionDbm.getInstance().foreignLanguage()); + return LanguageDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public RelationTrace columnDeliveryMethodId() { return fixTrace(_relationList, DeliveryMethodDescriptionDbm.getInstance().columnDeliveryMethodId()); } + public RelationTrace columnLanguageId() { return fixTrace(_relationList, DeliveryMethodDescriptionDbm.getInstance().columnLanguageId()); } + public RelationTrace columnName() { return fixTrace(_relationList, DeliveryMethodDescriptionDbm.getInstance().columnName()); } + public RelationTrace columnDescription() { return fixTrace(_relationList, DeliveryMethodDescriptionDbm.getInstance().columnDescription()); } + } + + // =================================================================================== + // 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 DeliveryMethodDescription myEntity = (DeliveryMethodDescription)entity; + MapAssertUtil.assertPrimaryKeyMapNotNullAndNotEmpty(primaryKeyMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(primaryKeyMap, entity.getModifiedPropertyNames()); + + MapAssertUtil.assertColumnExistingInPrimaryKeyMap(primaryKeyMap, "DELIVERY_METHOD_ID"); + if (analyzer.init("DELIVERY_METHOD_ID", "deliveryMethodId", "deliveryMethodId")) { myEntity.setDeliveryMethodId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + MapAssertUtil.assertColumnExistingInPrimaryKeyMap(primaryKeyMap, "LANGUAGE_ID"); + if (analyzer.init("LANGUAGE_ID", "languageId", "languageId")) { myEntity.setLanguageId(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 DeliveryMethodDescription myEntity = (DeliveryMethodDescription)entity; + MapAssertUtil.assertColumnValueMapNotNullAndNotEmpty(columnValueMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(columnValueMap, entity.getModifiedPropertyNames()); + + if (analyzer.init("DELIVERY_METHOD_ID", "deliveryMethodId", "deliveryMethodId")) { myEntity.setDeliveryMethodId(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("DESCRIPTION", "description", "description")) { myEntity.setDescription(analyzer.analyzeString(String.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 DeliveryMethodDescription myEntity = (DeliveryMethodDescription)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_METHOD_ID", myEntity.getDeliveryMethodId()); + helpAppendingColumnValueString(sb, delimiter, equal, "LANGUAGE_ID", myEntity.getLanguageId()); + + 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 DeliveryMethodDescription myEntity = (DeliveryMethodDescription)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_METHOD_ID", myEntity.getDeliveryMethodId()); + helpAppendingColumnValueString(sb, delimiter, equal, "LANGUAGE_ID", myEntity.getLanguageId()); + helpAppendingColumnValueString(sb, delimiter, equal, "NAME", myEntity.getName()); + helpAppendingColumnValueString(sb, delimiter, equal, "DESCRIPTION", myEntity.getDescription()); + + 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 DeliveryMethodDescription myEntity = downcast(entity); + final java.util.Map<String, Object> valueMap = new java.util.LinkedHashMap<String, Object>(); + valueMap.put("DELIVERY_METHOD_ID", myEntity.getDeliveryMethodId()); + valueMap.put("LANGUAGE_ID", myEntity.getLanguageId()); + valueMap.put("NAME", myEntity.getName()); + valueMap.put("DESCRIPTION", myEntity.getDescription()); + 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 DeliveryMethodDescription myEntity = downcast(entity); + final java.util.Map<String, String> valueMap = new java.util.LinkedHashMap<String, String>(); + valueMap.put("DELIVERY_METHOD_ID", helpGettingColumnStringValue(myEntity.getDeliveryMethodId())); + valueMap.put("LANGUAGE_ID", helpGettingColumnStringValue(myEntity.getLanguageId())); + valueMap.put("NAME", helpGettingColumnStringValue(myEntity.getName())); + valueMap.put("DESCRIPTION", helpGettingColumnStringValue(myEntity.getDescription())); + 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 + "DELIVERY_METHOD_DESCRIPTION(DELIVERY_METHOD_ID, LANGUAGE_ID, NAME, DESCRIPTION) values(? , ? , ? , ? )"; + } + return "insert into DELIVERY_METHOD_DESCRIPTION(DELIVERY_METHOD_ID, LANGUAGE_ID, NAME, DESCRIPTION) values(? , ? , ? , ? )"; + } + + // =================================================================================== + // Helper + // ====== + protected DeliveryMethodDescription downcast(Entity entity) { + assertObjectNotNull("entity", entity); + try { + return (DeliveryMethodDescription)entity; + } catch (ClassCastException e) { + String msg = "The entity should be DeliveryMethodDescription 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/DeliveryMethodDescriptionDbm.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/TaxClassDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/TaxClassDbm.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/TaxClassDbm.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,1092 @@ +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.TaxClass; +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 TAX_CLASS. (Singleton) + * + * <pre> + * [primary-key] + * TAX_CLASS_ID + * + * [column-property] + * TAX_CLASS_ID, NAME, DESCRIPTION, LAST_MODIFIED, DATE_ADDED + * + * [foreign-property] + * + * + * [refferer-property] + * productList, taxRateList + * + * [sequence] + * + * + * [identity] + * taxClassId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public class TaxClassDbm extends AbstractDBMeta { + + // =================================================================================== + // Definition + // ========== + /** The type of entity. */ + protected static final Class ENTITY_TYPE = TaxClass.class; + + /** Singleton instance. */ + private static final TaxClassDbm _instance = new TaxClassDbm(); + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + private TaxClassDbm() { + } + + // =================================================================================== + // Singleton + // ========= + /** + * Get instance. + * + * @return Singleton instance. (NotNull) + */ + public static TaxClassDbm getInstance() { + return _instance; + } + + // =================================================================================== + // Name Definition + // =============== + // ----------------------------------------------------- + // Table + // ----- + /** Table db name. */ + public static final String TABLE_DB_NAME = "TAX_CLASS"; + + /** Table prop name(JavaBeansRule). */ + public static final String TABLE_PROPERTY_NAME = "taxClass"; + + /** Table cap-prop name. */ + public static final String TABLE_CAP_PROP_NAME = "TaxClass"; + + /** Table uncap-prop name. */ + public static final String TABLE_UNCAP_PROP_NAME = "taxClass"; + + // ----------------------------------------------------- + // Column DB-Name + // -------------- + /** Db-name of TAX_CLASS_ID. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String DB_NAME_TAX_CLASS_ID = "TAX_CLASS_ID"; + /** Db-name of NAME. VARCHAR(32) : NotNull */ + public static final String DB_NAME_NAME = "NAME"; + /** Db-name of DESCRIPTION. VARCHAR(255) : NotNull */ + public static final String DB_NAME_DESCRIPTION = "DESCRIPTION"; + /** Db-name of LAST_MODIFIED. TIMESTAMP */ + public static final String DB_NAME_LAST_MODIFIED = "LAST_MODIFIED"; + /** Db-name of DATE_ADDED. TIMESTAMP : NotNull */ + public static final String DB_NAME_DATE_ADDED = "DATE_ADDED"; + + /** @deprecated Deprecated! So use DB_NAME_TaxClassId. */ + public static final String COLUMN_DB_NAME_OF_TaxClassId = "TAX_CLASS_ID"; + /** @deprecated Deprecated! So use DB_NAME_Name. */ + public static final String COLUMN_DB_NAME_OF_Name = "NAME"; + /** @deprecated Deprecated! So use DB_NAME_Description. */ + public static final String COLUMN_DB_NAME_OF_Description = "DESCRIPTION"; + /** @deprecated Deprecated! So use DB_NAME_LastModified. */ + public static final String COLUMN_DB_NAME_OF_LastModified = "LAST_MODIFIED"; + /** @deprecated Deprecated! So use DB_NAME_DateAdded. */ + public static final String COLUMN_DB_NAME_OF_DateAdded = "DATE_ADDED"; + + // ----------------------------------------------------- + // Column Prop-Name(JavaBeansRule) + // ------------------------------- + /** Prop-name(JavaBeansRule) of taxClassId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String PROPERTY_NAME_taxClassId = "taxClassId"; + /** Prop-name(JavaBeansRule) of name. VARCHAR(32) : NotNull */ + public static final String PROPERTY_NAME_name = "name"; + /** Prop-name(JavaBeansRule) of description. VARCHAR(255) : NotNull */ + public static final String PROPERTY_NAME_description = "description"; + /** Prop-name(JavaBeansRule) of lastModified. TIMESTAMP */ + public static final String PROPERTY_NAME_lastModified = "lastModified"; + /** Prop-name(JavaBeansRule) of dateAdded. TIMESTAMP : NotNull */ + public static final String PROPERTY_NAME_dateAdded = "dateAdded"; + + // ----------------------------------------------------- + // Column Cap-Prop-Name + // -------------------- + /** Cap-prop-name of taxClassId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String CAP_PROP_NAME_TaxClassId = "TaxClassId"; + /** Cap-prop-name of name. VARCHAR(32) : NotNull */ + public static final String CAP_PROP_NAME_Name = "Name"; + /** Cap-prop-name of description. VARCHAR(255) : NotNull */ + public static final String CAP_PROP_NAME_Description = "Description"; + /** Cap-prop-name of lastModified. TIMESTAMP */ + public static final String CAP_PROP_NAME_LastModified = "LastModified"; + /** Cap-prop-name of dateAdded. TIMESTAMP : NotNull */ + public static final String CAP_PROP_NAME_DateAdded = "DateAdded"; + + /** @deprecated Deprecated! So use CAP_PROP_NAME_TaxClassId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_TaxClassId = "TaxClassId"; + /** @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_Description. */ + public static final String COLUMN_CAP_PROP_NAME_OF_Description = "Description"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_LastModified. */ + public static final String COLUMN_CAP_PROP_NAME_OF_LastModified = "LastModified"; + /** @deprecated Deprecated! So use CAP_PROP_NAME_DateAdded. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DateAdded = "DateAdded"; + + // ----------------------------------------------------- + // Column Uncap-Prop-Name + // ---------------------- + /** Uncap-prop-name of taxClassId. PK : INC : INTEGER : NotNull : Default=[GENERATED_BY_DEFAULT] */ + public static final String UNCAP_PROP_NAME_taxClassId = "taxClassId"; + /** Uncap-prop-name of name. VARCHAR(32) : NotNull */ + public static final String UNCAP_PROP_NAME_name = "name"; + /** Uncap-prop-name of description. VARCHAR(255) : NotNull */ + public static final String UNCAP_PROP_NAME_description = "description"; + /** Uncap-prop-name of lastModified. TIMESTAMP */ + public static final String UNCAP_PROP_NAME_lastModified = "lastModified"; + /** Uncap-prop-name of dateAdded. TIMESTAMP : NotNull */ + public static final String UNCAP_PROP_NAME_dateAdded = "dateAdded"; + + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_TaxClassId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_TaxClassId = "taxClassId"; + /** @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_Description. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_Description = "description"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_LastModified. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_LastModified = "lastModified"; + /** @deprecated Deprecated! So use UNCAP_PROP_NAME_DateAdded. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DateAdded = "dateAdded"; + + // ----------------------------------------------------- + // Foreign Name + // ------------ + + + // ----------------------------------------------------- + // Referer Name + // ------------ + /** The referer property name(JavaBeansRule) of productList. */ + public static final String REFERER_PROPERTY_NAME_productList = "productList"; + /** The referer property name(JavaBeansRule) of taxRateList. */ + public static final String REFERER_PROPERTY_NAME_taxRateList = "taxRateList"; + /** @deprecated Use REFERER_NAME_productList */ + public static final String REFERER_CAP_PROP_NAME_ProductList = "ProductList"; + /** @deprecated Use REFERER_NAME_taxRateList */ + public static final String REFERER_CAP_PROP_NAME_TaxRateList = "TaxRateList"; + + /** @deprecated Use REFERER_NAME_productList */ + public static final String REFERER_UNCAP_PROP_NAME_productList = "productList"; + /** @deprecated Use REFERER_NAME_taxRateList */ + public static final String REFERER_UNCAP_PROP_NAME_taxRateList = "taxRateList"; + + /** 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_TAX_CLASS_ID.toLowerCase(), PROPERTY_NAME_taxClassId); + map.put(DB_NAME_NAME.toLowerCase(), PROPERTY_NAME_name); + map.put(DB_NAME_DESCRIPTION.toLowerCase(), PROPERTY_NAME_description); + map.put(DB_NAME_LAST_MODIFIED.toLowerCase(), PROPERTY_NAME_lastModified); + map.put(DB_NAME_DATE_ADDED.toLowerCase(), PROPERTY_NAME_dateAdded); + + _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_taxClassId.toLowerCase(), DB_NAME_TAX_CLASS_ID); + map.put(PROPERTY_NAME_name.toLowerCase(), DB_NAME_NAME); + map.put(PROPERTY_NAME_description.toLowerCase(), DB_NAME_DESCRIPTION); + map.put(PROPERTY_NAME_lastModified.toLowerCase(), DB_NAME_LAST_MODIFIED); + map.put(PROPERTY_NAME_dateAdded.toLowerCase(), DB_NAME_DATE_ADDED); + + _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_TAX_CLASS_ID, CAP_PROP_NAME_TaxClassId); + map.put(DB_NAME_NAME, CAP_PROP_NAME_Name); + map.put(DB_NAME_DESCRIPTION, CAP_PROP_NAME_Description); + map.put(DB_NAME_LAST_MODIFIED, CAP_PROP_NAME_LastModified); + map.put(DB_NAME_DATE_ADDED, CAP_PROP_NAME_DateAdded); + + _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_TAX_CLASS_ID, UNCAP_PROP_NAME_taxClassId); + map.put(DB_NAME_NAME, UNCAP_PROP_NAME_name); + map.put(DB_NAME_DESCRIPTION, UNCAP_PROP_NAME_description); + map.put(DB_NAME_LAST_MODIFIED, UNCAP_PROP_NAME_lastModified); + map.put(DB_NAME_DATE_ADDED, UNCAP_PROP_NAME_dateAdded); + + _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_TaxClassId, DB_NAME_TAX_CLASS_ID); + map.put(CAP_PROP_NAME_Name, DB_NAME_NAME); + map.put(CAP_PROP_NAME_Description, DB_NAME_DESCRIPTION); + map.put(CAP_PROP_NAME_LastModified, DB_NAME_LAST_MODIFIED); + map.put(CAP_PROP_NAME_DateAdded, DB_NAME_DATE_ADDED); + + _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_TaxClassId, UNCAP_PROP_NAME_taxClassId); + map.put(CAP_PROP_NAME_Name, UNCAP_PROP_NAME_name); + map.put(CAP_PROP_NAME_Description, UNCAP_PROP_NAME_description); + map.put(CAP_PROP_NAME_LastModified, UNCAP_PROP_NAME_lastModified); + map.put(CAP_PROP_NAME_DateAdded, UNCAP_PROP_NAME_dateAdded); + + _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_taxClassId, DB_NAME_TAX_CLASS_ID); + map.put(UNCAP_PROP_NAME_name, DB_NAME_NAME); + map.put(UNCAP_PROP_NAME_description, DB_NAME_DESCRIPTION); + map.put(UNCAP_PROP_NAME_lastModified, DB_NAME_LAST_MODIFIED); + map.put(UNCAP_PROP_NAME_dateAdded, DB_NAME_DATE_ADDED); + + _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_taxClassId, CAP_PROP_NAME_TaxClassId); + map.put(UNCAP_PROP_NAME_name, CAP_PROP_NAME_Name); + map.put(UNCAP_PROP_NAME_description, CAP_PROP_NAME_Description); + map.put(UNCAP_PROP_NAME_lastModified, CAP_PROP_NAME_LastModified); + map.put(UNCAP_PROP_NAME_dateAdded, CAP_PROP_NAME_DateAdded); + + _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.TaxClass"; + } + + /** + * The implementation. + * + * @return The type-name of condition-bean. (NotNull) + */ + public String getConditionBeanTypeName() { + return "jp.sf.pal.pompei.cbean.bs.TaxClassCB"; + } + + /** + * The implementation. + * + * @return The type-name of dao. (NotNull) + */ + public String getDaoTypeName() { + return "jp.sf.pal.pompei.exdao.TaxClassDao"; + } + + /** + * The implementation. + * + * @return The type-name of behavior. (NotNull) + */ + public String getBehaviorTypeName() { + return "jp.sf.pal.pompei.exbhv.TaxClassBhv"; + } + + // =================================================================================== + // 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 TaxClass newMyEntity() { + return new TaxClass(); + } + + + // =================================================================================== + // 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(columnTaxClassId()); + columnInfoList.add(columnName()); + columnInfoList.add(columnDescription()); + columnInfoList.add(columnLastModified()); + columnInfoList.add(columnDateAdded()); + 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 "TAX_CLASS_ID, NAME, DESCRIPTION, LAST_MODIFIED, DATE_ADDED"; + } + + /** + * @return Column information of taxClassId. (NotNull) + */ + public ColumnInfo columnTaxClassId() { + return new ColumnInfo(this, "TAX_CLASS_ID", "taxClassId", java.math.BigDecimal.class, true); + } + /** + * @return Column information of name. (NotNull) + */ + public ColumnInfo columnName() { + return new ColumnInfo(this, "NAME", "name", String.class, false); + } + /** + * @return Column information of description. (NotNull) + */ + public ColumnInfo columnDescription() { + return new ColumnInfo(this, "DESCRIPTION", "description", String.class, false); + } + /** + * @return Column information of lastModified. (NotNull) + */ + public ColumnInfo columnLastModified() { + return new ColumnInfo(this, "LAST_MODIFIED", "lastModified", java.sql.Timestamp.class, false); + } + /** + * @return Column information of dateAdded. (NotNull) + */ + public ColumnInfo columnDateAdded() { + return new ColumnInfo(this, "DATE_ADDED", "dateAdded", java.sql.Timestamp.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, "TAX_CLASS_ID", "taxClassId", 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 + // --------------- + + + // ----------------------------------------------------- + // Referer Element + // --------------- + /** + * Get referer information of productList. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererProductList() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo(); + refererInfo.setRefererPropertyName("productList"); + refererInfo.setLocalDBMeta(TaxClassDbm.getInstance()); + refererInfo.setRefererDBMeta(ProductDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnTaxClassId(), ProductDbm.getInstance().columnTaxClassId()); + refererInfo.setLocalRefererColumnInfoMap(map); + refererInfo.setOneToOne(false); + return refererInfo; + } + /** + * Get referer information of taxRateList. + * + * @return Referer information. (NotNull) + */ + public jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererTaxRateList() { + final jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo refererInfo = new jp.sf.pal.pompei.allcommon.dbmeta.info.RefererInfo(); + refererInfo.setRefererPropertyName("taxRateList"); + refererInfo.setLocalDBMeta(TaxClassDbm.getInstance()); + refererInfo.setRefererDBMeta(TaxRateDbm.getInstance()); + final java.util.Map<ColumnInfo, ColumnInfo> map = new java.util.LinkedHashMap<ColumnInfo, ColumnInfo>(); + map.put(columnTaxClassId(), TaxRateDbm.getInstance().columnTaxClassId()); + refererInfo.setLocalRefererColumnInfoMap(map); + refererInfo.setOneToOne(false); + return refererInfo; + } + + // ----------------------------------------------------- + // Relation Trace + // -------------- + /** + * Create relation trace for first step. + * + * @param relationTraceFixHandler The handler of fixed relation trace. (Nullable) + * @return Relation trace. (NotNull) + */ + public TaxClassRelationTrace createRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + return new TaxClassRelationTrace(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 TaxClassRelationTrace createRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + return new TaxClassRelationTrace(relationList, relationTraceList); + } + + /** + * Relation trace of TAX_CLASS. + */ + public static class TaxClassRelationTrace extends AbstractRelationTrace { + + /** + * Constructor for first step. + * + * @param relationTraceFixHandler The handler of fixed relation trace. (Nullable) + */ + public TaxClassRelationTrace(RelationTraceFixHandler relationTraceFixHandler) { + super(relationTraceFixHandler); + } + + /** + * Constructor for relation step. + * + * @param relationList The list of relation. (NotNull) + * @param relationTraceList The list of relation trace. (NotNull) + */ + public TaxClassRelationTrace(java.util.List<RelationInfo> relationList, java.util.List<AbstractRelationTrace> relationTraceList) { + super(relationList, relationTraceList); + } + + public ProductDbm.ProductRelationTrace refererProductList() { + _relationList.add(TaxClassDbm.getInstance().refererProductList()); + return ProductDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public TaxRateDbm.TaxRateRelationTrace refererTaxRateList() { + _relationList.add(TaxClassDbm.getInstance().refererTaxRateList()); + return TaxRateDbm.getInstance().createRelationTrace(_relationList, _relationTraceList); + } + + public RelationTrace columnTaxClassId() { return fixTrace(_relationList, TaxClassDbm.getInstance().columnTaxClassId()); } + public RelationTrace columnName() { return fixTrace(_relationList, TaxClassDbm.getInstance().columnName()); } + public RelationTrace columnDescription() { return fixTrace(_relationList, TaxClassDbm.getInstance().columnDescription()); } + public RelationTrace columnLastModified() { return fixTrace(_relationList, TaxClassDbm.getInstance().columnLastModified()); } + public RelationTrace columnDateAdded() { return fixTrace(_relationList, TaxClassDbm.getInstance().columnDateAdded()); } + } + + // =================================================================================== + // 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 TaxClass myEntity = (TaxClass)entity; + MapAssertUtil.assertPrimaryKeyMapNotNullAndNotEmpty(primaryKeyMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(primaryKeyMap, entity.getModifiedPropertyNames()); + + MapAssertUtil.assertColumnExistingInPrimaryKeyMap(primaryKeyMap, "TAX_CLASS_ID"); + if (analyzer.init("TAX_CLASS_ID", "taxClassId", "taxClassId")) { myEntity.setTaxClassId(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 TaxClass myEntity = (TaxClass)entity; + MapAssertUtil.assertColumnValueMapNotNullAndNotEmpty(columnValueMap); + final MapStringValueAnalyzer analyzer = new MapStringValueAnalyzer(columnValueMap, entity.getModifiedPropertyNames()); + + if (analyzer.init("TAX_CLASS_ID", "taxClassId", "taxClassId")) { myEntity.setTaxClassId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("NAME", "name", "name")) { myEntity.setName(analyzer.analyzeString(String.class)); }; + if (analyzer.init("DESCRIPTION", "description", "description")) { myEntity.setDescription(analyzer.analyzeString(String.class)); }; + if (analyzer.init("LAST_MODIFIED", "lastModified", "lastModified")) { myEntity.setLastModified(analyzer.analyzeDate(java.sql.Timestamp.class)); }; + if (analyzer.init("DATE_ADDED", "dateAdded", "dateAdded")) { myEntity.setDateAdded(analyzer.analyzeDate(java.sql.Timestamp.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 TaxClass myEntity = (TaxClass)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "TAX_CLASS_ID", myEntity.getTaxClassId()); + + 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 TaxClass myEntity = (TaxClass)entity; + final String mapMarkAndStartBrace = MAP_STRING_MAP_MARK + startBrace; + final StringBuffer sb = new StringBuffer(); + helpAppendingColumnValueString(sb, delimiter, equal, "TAX_CLASS_ID", myEntity.getTaxClassId()); + helpAppendingColumnValueString(sb, delimiter, equal, "NAME", myEntity.getName()); + helpAppendingColumnValueString(sb, delimiter, equal, "DESCRIPTION", myEntity.getDescription()); + helpAppendingColumnValueString(sb, delimiter, equal, "LAST_MODIFIED", myEntity.getLastModified()); + helpAppendingColumnValueString(sb, delimiter, equal, "DATE_ADDED", myEntity.getDateAdded()); + + 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 TaxClass myEntity = downcast(entity); + final java.util.Map<String, Object> valueMap = new java.util.LinkedHashMap<String, Object>(); + valueMap.put("TAX_CLASS_ID", myEntity.getTaxClassId()); + valueMap.put("NAME", myEntity.getName()); + valueMap.put("DESCRIPTION", myEntity.getDescription()); + valueMap.put("LAST_MODIFIED", myEntity.getLastModified()); + valueMap.put("DATE_ADDED", myEntity.getDateAdded()); + 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 TaxClass myEntity = downcast(entity); + final java.util.Map<String, String> valueMap = new java.util.LinkedHashMap<String, String>(); + valueMap.put("TAX_CLASS_ID", helpGettingColumnStringValue(myEntity.getTaxClassId())); + valueMap.put("NAME", helpGettingColumnStringValue(myEntity.getName())); + valueMap.put("DESCRIPTION", helpGettingColumnStringValue(myEntity.getDescription())); + valueMap.put("LAST_MODIFIED", helpGettingColumnStringValue(myEntity.getLastModified())); + valueMap.put("DATE_ADDED", helpGettingColumnStringValue(myEntity.getDateAdded())); + 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 + "TAX_CLASS(TAX_CLASS_ID, NAME, DESCRIPTION, LAST_MODIFIED, DATE_ADDED) values(? , ? , ? , ? , ? )"; + } + return "insert into TAX_CLASS(TAX_CLASS_ID, NAME, DESCRIPTION, LAST_MODIFIED, DATE_ADDED) values(? , ? , ? , ? , ? )"; + } + + // =================================================================================== + // Helper + // ====== + protected TaxClass downcast(Entity entity) { + assertObjectNotNull("entity", entity); + try { + return (TaxClass)entity; + } catch (ClassCastException e) { + String msg = "The entity should be TaxClass 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/TaxClassDbm.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/AddressBookCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/AddressBookCB.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/AddressBookCB.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.cbean; + + +/** + * The condition-bean of ADDRESS_BOOK. + * + * @author DBFlute(AutoGenerator) + */ +public class AddressBookCB extends jp.sf.pal.pompei.cbean.bs.BsAddressBookCB { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/AddressBookCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodCB.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodCB.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.cbean; + + +/** + * The condition-bean of DELIVERY_METHOD. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodCB extends jp.sf.pal.pompei.cbean.bs.BsDeliveryMethodCB { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodDescriptionCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodDescriptionCB.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodDescriptionCB.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.cbean; + + +/** + * The condition-bean of DELIVERY_METHOD_DESCRIPTION. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodDescriptionCB extends jp.sf.pal.pompei.cbean.bs.BsDeliveryMethodDescriptionCB { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodDescriptionCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/TaxClassCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/TaxClassCB.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/TaxClassCB.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.cbean; + + +/** + * The condition-bean of TAX_CLASS. + * + * @author DBFlute(AutoGenerator) + */ +public class TaxClassCB extends jp.sf.pal.pompei.cbean.bs.BsTaxClassCB { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/TaxClassCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsAddressBookCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsAddressBookCB.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsAddressBookCB.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,390 @@ +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 ADDRESS_BOOK. + * + * @author DBFlute(AutoGenerator) + */ +public class BsAddressBookCB extends AbstractConditionBean { + + // =================================================================================== + // Annotation + // ========== + /** TABLE-Annotation */ + public static final String TABLE = "ADDRESS_BOOK"; + + // =================================================================================== + // Attribute + // ========= + /** Condition query. */ + protected AddressBookCQ _conditionQuery; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsAddressBookCB() { + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [ADDRESS_BOOK] + // * * * * * * * * */ + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + final public String getTableDbName() { + return "ADDRESS_BOOK"; + } + + /** + * The implementation. + * + * @return Table sql-name. (NotNull) + */ + final public String getTableSqlName() { + return "ADDRESS_BOOK"; + } + + // =================================================================================== + // 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("ADDRESS_BOOK_ID")) { + String msg = "The primaryKeyMap must have the value of ADDRESS_BOOK_ID"; + throw new IllegalStateException(msg + ": primaryKeyMap --> " + primaryKeyMap); + } + { + Object obj = primaryKeyMap.get("ADDRESS_BOOK_ID"); + if (obj instanceof java.math.BigDecimal) { + query().setAddressBookId_Equal((java.math.BigDecimal)obj); + } else { + + if (obj instanceof java.math.BigDecimal) { + query().setAddressBookId_Equal((java.math.BigDecimal)obj); + } else { + try { + query().setAddressBookId_Equal(new java.math.BigDecimal((String)obj)); + } catch (RuntimeException e) { + String msg = "setAddressBookId(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_AddressBookId_Asc(); + + return this; + + } + + /** + * The implementation. + * + * @return this. (NotNull) + */ + public ConditionBean addOrderBy_PK_Desc() { + + query().addOrderBy_AddressBookId_Desc(); + + return this; + + } + + // =================================================================================== + // Query + // ===== + /** + * Query. + * + * @return Instance of query. (NotNull) + */ + public AddressBookCQ query() { + return getConditionQuery(); + } + + /** + * Get condition query. {Internal method for s2dao} + * + * @return Instance of condition query. (NotNull) + */ + public AddressBookCQ getConditionQuery() { + if (_conditionQuery == null) { + _conditionQuery = new AddressBookCQ(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(AddressBookCQ unionQuery) { + query().xsetUnionQuery(unionQuery); + } + + /** + * Union all. <br /> + * Add union all query to condition bean. <br /> + * + * @param unionAllQuery Union all query. (NotNull) + */ + public void unionAll(AddressBookCQ unionAllQuery) { + query().xsetUnionAllQuery(unionAllQuery); + } + + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasUnionQueryOrUnionAllQuery() { + return query().hasUnionQueryOrUnionAllQuery(); + } + + // =================================================================================== + // Setup-Select + // ============ + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [COUNTRY] + // ForeignProperty = [country] + // * * * * * * * * */ + + /** Is select for country? */ + protected boolean _isSelectCountry; + /** Nest select setupper for country. */ + protected jp.sf.pal.pompei.cbean.nss.CountryNss _nssCountry; + /** + * Is select for country? {For Internal} + * + * @return Determination. + */ + public boolean isSelectCountry() { + return _isSelectCountry; + } + /** + * Get nest select setupper for country. {For Internal} + * + * @return Nest select setupper. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.CountryNss getNssCountry() { + if (_nssCountry == null) { + _nssCountry = new jp.sf.pal.pompei.cbean.nss.CountryNss(null);// for Dummy + } + return _nssCountry; + } + /** + * Set up select for country. + * If you invoke this, this entity is target of select. + * + * @return Nest select setupper for country. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.CountryNss setupSelect_Country() { + query().queryCountry();// For setting outer join. + if (_nssCountry == null || !_nssCountry.hasConditionQuery()) { + _nssCountry = new jp.sf.pal.pompei.cbean.nss.CountryNss(query().queryCountry()); + } + _isSelectCountry = true; + limitSelect_Off(); + return _nssCountry; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [CUSTOMER] + // ForeignProperty = [customer] + // * * * * * * * * */ + + /** Is select for customer? */ + protected boolean _isSelectCustomer; + /** Nest select setupper for customer. */ + protected jp.sf.pal.pompei.cbean.nss.CustomerNss _nssCustomer; + /** + * Is select for customer? {For Internal} + * + * @return Determination. + */ + public boolean isSelectCustomer() { + return _isSelectCustomer; + } + /** + * Get nest select setupper for customer. {For Internal} + * + * @return Nest select setupper. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.CustomerNss getNssCustomer() { + if (_nssCustomer == null) { + _nssCustomer = new jp.sf.pal.pompei.cbean.nss.CustomerNss(null);// for Dummy + } + return _nssCustomer; + } + /** + * Set up select for customer. + * If you invoke this, this entity is target of select. + * + * @return Nest select setupper for customer. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.CustomerNss setupSelect_Customer() { + query().queryCustomer();// For setting outer join. + if (_nssCustomer == null || !_nssCustomer.hasConditionQuery()) { + _nssCustomer = new jp.sf.pal.pompei.cbean.nss.CustomerNss(query().queryCustomer()); + } + _isSelectCustomer = true; + limitSelect_Off(); + return _nssCustomer; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [LANGUAGE] + // ForeignProperty = [language] + // * * * * * * * * */ + + /** Is select for language? */ + protected boolean _isSelectLanguage; + /** Nest select setupper for language. */ + protected jp.sf.pal.pompei.cbean.nss.LanguageNss _nssLanguage; + /** + * Is select for language? {For Internal} + * + * @return Determination. + */ + public boolean isSelectLanguage() { + return _isSelectLanguage; + } + /** + * Get nest select setupper for language. {For Internal} + * + * @return Nest select setupper. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.LanguageNss getNssLanguage() { + if (_nssLanguage == null) { + _nssLanguage = new jp.sf.pal.pompei.cbean.nss.LanguageNss(null);// for Dummy + } + return _nssLanguage; + } + /** + * Set up select for language. + * If you invoke this, this entity is target of select. + * + * @return Nest select setupper for language. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.LanguageNss setupSelect_Language() { + query().queryLanguage();// For setting outer join. + if (_nssLanguage == null || !_nssLanguage.hasConditionQuery()) { + _nssLanguage = new jp.sf.pal.pompei.cbean.nss.LanguageNss(query().queryLanguage()); + } + _isSelectLanguage = true; + limitSelect_Off(); + return _nssLanguage; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [ZONE] + // ForeignProperty = [zone] + // * * * * * * * * */ + + /** Is select for zone? */ + protected boolean _isSelectZone; + /** Nest select setupper for zone. */ + protected jp.sf.pal.pompei.cbean.nss.ZoneNss _nssZone; + /** + * Is select for zone? {For Internal} + * + * @return Determination. + */ + public boolean isSelectZone() { + return _isSelectZone; + } + /** + * Get nest select setupper for zone. {For Internal} + * + * @return Nest select setupper. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.ZoneNss getNssZone() { + if (_nssZone == null) { + _nssZone = new jp.sf.pal.pompei.cbean.nss.ZoneNss(null);// for Dummy + } + return _nssZone; + } + /** + * Set up select for zone. + * If you invoke this, this entity is target of select. + * + * @return Nest select setupper for zone. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.ZoneNss setupSelect_Zone() { + query().queryZone();// For setting outer join. + if (_nssZone == null || !_nssZone.hasConditionQuery()) { + _nssZone = new jp.sf.pal.pompei.cbean.nss.ZoneNss(query().queryZone()); + } + _isSelectZone = true; + limitSelect_Off(); + return _nssZone; + } + + // =================================================================================== + // 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/BsAddressBookCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodCB.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodCB.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,214 @@ +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 DELIVERY_METHOD. + * + * @author DBFlute(AutoGenerator) + */ +public class BsDeliveryMethodCB extends AbstractConditionBean { + + // =================================================================================== + // Annotation + // ========== + /** TABLE-Annotation */ + public static final String TABLE = "DELIVERY_METHOD"; + + // =================================================================================== + // Attribute + // ========= + /** Condition query. */ + protected DeliveryMethodCQ _conditionQuery; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsDeliveryMethodCB() { + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [DELIVERY_METHOD] + // * * * * * * * * */ + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + final public String getTableDbName() { + return "DELIVERY_METHOD"; + } + + /** + * The implementation. + * + * @return Table sql-name. (NotNull) + */ + final public String getTableSqlName() { + return "DELIVERY_METHOD"; + } + + // =================================================================================== + // 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("DELIVERY_METHOD_ID")) { + String msg = "The primaryKeyMap must have the value of DELIVERY_METHOD_ID"; + throw new IllegalStateException(msg + ": primaryKeyMap --> " + primaryKeyMap); + } + { + Object obj = primaryKeyMap.get("DELIVERY_METHOD_ID"); + if (obj instanceof java.math.BigDecimal) { + query().setDeliveryMethodId_Equal((java.math.BigDecimal)obj); + } else { + + if (obj instanceof java.math.BigDecimal) { + query().setDeliveryMethodId_Equal((java.math.BigDecimal)obj); + } else { + try { + query().setDeliveryMethodId_Equal(new java.math.BigDecimal((String)obj)); + } catch (RuntimeException e) { + String msg = "setDeliveryMethodId(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_DeliveryMethodId_Asc(); + + return this; + + } + + /** + * The implementation. + * + * @return this. (NotNull) + */ + public ConditionBean addOrderBy_PK_Desc() { + + query().addOrderBy_DeliveryMethodId_Desc(); + + return this; + + } + + // =================================================================================== + // Query + // ===== + /** + * Query. + * + * @return Instance of query. (NotNull) + */ + public DeliveryMethodCQ query() { + return getConditionQuery(); + } + + /** + * Get condition query. {Internal method for s2dao} + * + * @return Instance of condition query. (NotNull) + */ + public DeliveryMethodCQ getConditionQuery() { + if (_conditionQuery == null) { + _conditionQuery = new DeliveryMethodCQ(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(DeliveryMethodCQ unionQuery) { + query().xsetUnionQuery(unionQuery); + } + + /** + * Union all. <br /> + * Add union all query to condition bean. <br /> + * + * @param unionAllQuery Union all query. (NotNull) + */ + public void unionAll(DeliveryMethodCQ unionAllQuery) { + query().xsetUnionAllQuery(unionAllQuery); + } + + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasUnionQueryOrUnionAllQuery() { + return query().hasUnionQueryOrUnionAllQuery(); + } + + // =================================================================================== + // Setup-Select + // ============ + + // =================================================================================== + // 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/BsDeliveryMethodCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodDescriptionCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodDescriptionCB.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodDescriptionCB.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,329 @@ +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 DELIVERY_METHOD_DESCRIPTION. + * + * @author DBFlute(AutoGenerator) + */ +public class BsDeliveryMethodDescriptionCB extends AbstractConditionBean { + + // =================================================================================== + // Annotation + // ========== + /** TABLE-Annotation */ + public static final String TABLE = "DELIVERY_METHOD_DESCRIPTION"; + + // =================================================================================== + // Attribute + // ========= + /** Condition query. */ + protected DeliveryMethodDescriptionCQ _conditionQuery; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsDeliveryMethodDescriptionCB() { + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [DELIVERY_METHOD_DESCRIPTION] + // * * * * * * * * */ + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + final public String getTableDbName() { + return "DELIVERY_METHOD_DESCRIPTION"; + } + + /** + * The implementation. + * + * @return Table sql-name. (NotNull) + */ + final public String getTableSqlName() { + return "DELIVERY_METHOD_DESCRIPTION"; + } + + // =================================================================================== + // 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("DELIVERY_METHOD_ID")) { + String msg = "The primaryKeyMap must have the value of DELIVERY_METHOD_ID"; + throw new IllegalStateException(msg + ": primaryKeyMap --> " + primaryKeyMap); + } + { + Object obj = primaryKeyMap.get("DELIVERY_METHOD_ID"); + if (obj instanceof java.math.BigDecimal) { + query().setDeliveryMethodId_Equal((java.math.BigDecimal)obj); + } else { + + if (obj instanceof java.math.BigDecimal) { + query().setDeliveryMethodId_Equal((java.math.BigDecimal)obj); + } else { + try { + query().setDeliveryMethodId_Equal(new java.math.BigDecimal((String)obj)); + } catch (RuntimeException e) { + String msg = "setDeliveryMethodId(new java.math.BigDecimal((String)obj))"; + throw new RuntimeException(msg + " threw the exception: value=[" + obj + "]", e); + } + } + } + } + + if (!primaryKeyMap.containsKey("LANGUAGE_ID")) { + String msg = "The primaryKeyMap must have the value of LANGUAGE_ID"; + throw new IllegalStateException(msg + ": primaryKeyMap --> " + primaryKeyMap); + } + { + Object obj = primaryKeyMap.get("LANGUAGE_ID"); + if (obj instanceof java.math.BigDecimal) { + query().setLanguageId_Equal((java.math.BigDecimal)obj); + } else { + + if (obj instanceof java.math.BigDecimal) { + query().setLanguageId_Equal((java.math.BigDecimal)obj); + } else { + try { + query().setLanguageId_Equal(new java.math.BigDecimal((String)obj)); + } catch (RuntimeException e) { + String msg = "setLanguageId(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_DeliveryMethodId_Asc(); + + query().addOrderBy_LanguageId_Asc(); + + return this; + + } + + /** + * The implementation. + * + * @return this. (NotNull) + */ + public ConditionBean addOrderBy_PK_Desc() { + + query().addOrderBy_DeliveryMethodId_Desc(); + + query().addOrderBy_LanguageId_Desc(); + + return this; + + } + + // =================================================================================== + // Query + // ===== + /** + * Query. + * + * @return Instance of query. (NotNull) + */ + public DeliveryMethodDescriptionCQ query() { + return getConditionQuery(); + } + + /** + * Get condition query. {Internal method for s2dao} + * + * @return Instance of condition query. (NotNull) + */ + public DeliveryMethodDescriptionCQ getConditionQuery() { + if (_conditionQuery == null) { + _conditionQuery = new DeliveryMethodDescriptionCQ(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(DeliveryMethodDescriptionCQ unionQuery) { + query().xsetUnionQuery(unionQuery); + } + + /** + * Union all. <br /> + * Add union all query to condition bean. <br /> + * + * @param unionAllQuery Union all query. (NotNull) + */ + public void unionAll(DeliveryMethodDescriptionCQ unionAllQuery) { + query().xsetUnionAllQuery(unionAllQuery); + } + + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasUnionQueryOrUnionAllQuery() { + return query().hasUnionQueryOrUnionAllQuery(); + } + + // =================================================================================== + // Setup-Select + // ============ + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [DELIVERY_METHOD] + // ForeignProperty = [deliveryMethod] + // * * * * * * * * */ + + /** Is select for deliveryMethod? */ + protected boolean _isSelectDeliveryMethod; + /** Nest select setupper for deliveryMethod. */ + protected jp.sf.pal.pompei.cbean.nss.DeliveryMethodNss _nssDeliveryMethod; + /** + * Is select for deliveryMethod? {For Internal} + * + * @return Determination. + */ + public boolean isSelectDeliveryMethod() { + return _isSelectDeliveryMethod; + } + /** + * Get nest select setupper for deliveryMethod. {For Internal} + * + * @return Nest select setupper. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.DeliveryMethodNss getNssDeliveryMethod() { + if (_nssDeliveryMethod == null) { + _nssDeliveryMethod = new jp.sf.pal.pompei.cbean.nss.DeliveryMethodNss(null);// for Dummy + } + return _nssDeliveryMethod; + } + /** + * Set up select for deliveryMethod. + * If you invoke this, this entity is target of select. + * + * @return Nest select setupper for deliveryMethod. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.DeliveryMethodNss setupSelect_DeliveryMethod() { + query().queryDeliveryMethod();// For setting outer join. + if (_nssDeliveryMethod == null || !_nssDeliveryMethod.hasConditionQuery()) { + _nssDeliveryMethod = new jp.sf.pal.pompei.cbean.nss.DeliveryMethodNss(query().queryDeliveryMethod()); + } + _isSelectDeliveryMethod = true; + limitSelect_Off(); + return _nssDeliveryMethod; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [LANGUAGE] + // ForeignProperty = [language] + // * * * * * * * * */ + + /** Is select for language? */ + protected boolean _isSelectLanguage; + /** Nest select setupper for language. */ + protected jp.sf.pal.pompei.cbean.nss.LanguageNss _nssLanguage; + /** + * Is select for language? {For Internal} + * + * @return Determination. + */ + public boolean isSelectLanguage() { + return _isSelectLanguage; + } + /** + * Get nest select setupper for language. {For Internal} + * + * @return Nest select setupper. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.LanguageNss getNssLanguage() { + if (_nssLanguage == null) { + _nssLanguage = new jp.sf.pal.pompei.cbean.nss.LanguageNss(null);// for Dummy + } + return _nssLanguage; + } + /** + * Set up select for language. + * If you invoke this, this entity is target of select. + * + * @return Nest select setupper for language. (NotNull) + */ + public jp.sf.pal.pompei.cbean.nss.LanguageNss setupSelect_Language() { + query().queryLanguage();// For setting outer join. + if (_nssLanguage == null || !_nssLanguage.hasConditionQuery()) { + _nssLanguage = new jp.sf.pal.pompei.cbean.nss.LanguageNss(query().queryLanguage()); + } + _isSelectLanguage = true; + limitSelect_Off(); + return _nssLanguage; + } + + // =================================================================================== + // 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/BsDeliveryMethodDescriptionCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsTaxClassCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsTaxClassCB.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsTaxClassCB.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,214 @@ +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 TAX_CLASS. + * + * @author DBFlute(AutoGenerator) + */ +public class BsTaxClassCB extends AbstractConditionBean { + + // =================================================================================== + // Annotation + // ========== + /** TABLE-Annotation */ + public static final String TABLE = "TAX_CLASS"; + + // =================================================================================== + // Attribute + // ========= + /** Condition query. */ + protected TaxClassCQ _conditionQuery; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsTaxClassCB() { + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [TAX_CLASS] + // * * * * * * * * */ + + // =================================================================================== + // Table Name + // ========== + /** + * The implementation. + * + * @return Table db-name. (NotNull) + */ + final public String getTableDbName() { + return "TAX_CLASS"; + } + + /** + * The implementation. + * + * @return Table sql-name. (NotNull) + */ + final public String getTableSqlName() { + return "TAX_CLASS"; + } + + // =================================================================================== + // 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("TAX_CLASS_ID")) { + String msg = "The primaryKeyMap must have the value of TAX_CLASS_ID"; + throw new IllegalStateException(msg + ": primaryKeyMap --> " + primaryKeyMap); + } + { + Object obj = primaryKeyMap.get("TAX_CLASS_ID"); + if (obj instanceof java.math.BigDecimal) { + query().setTaxClassId_Equal((java.math.BigDecimal)obj); + } else { + + if (obj instanceof java.math.BigDecimal) { + query().setTaxClassId_Equal((java.math.BigDecimal)obj); + } else { + try { + query().setTaxClassId_Equal(new java.math.BigDecimal((String)obj)); + } catch (RuntimeException e) { + String msg = "setTaxClassId(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_TaxClassId_Asc(); + + return this; + + } + + /** + * The implementation. + * + * @return this. (NotNull) + */ + public ConditionBean addOrderBy_PK_Desc() { + + query().addOrderBy_TaxClassId_Desc(); + + return this; + + } + + // =================================================================================== + // Query + // ===== + /** + * Query. + * + * @return Instance of query. (NotNull) + */ + public TaxClassCQ query() { + return getConditionQuery(); + } + + /** + * Get condition query. {Internal method for s2dao} + * + * @return Instance of condition query. (NotNull) + */ + public TaxClassCQ getConditionQuery() { + if (_conditionQuery == null) { + _conditionQuery = new TaxClassCQ(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(TaxClassCQ unionQuery) { + query().xsetUnionQuery(unionQuery); + } + + /** + * Union all. <br /> + * Add union all query to condition bean. <br /> + * + * @param unionAllQuery Union all query. (NotNull) + */ + public void unionAll(TaxClassCQ unionAllQuery) { + query().xsetUnionAllQuery(unionAllQuery); + } + + /** + * The implementation. + * + * @return Determination. + */ + public boolean hasUnionQueryOrUnionAllQuery() { + return query().hasUnionQueryOrUnionAllQuery(); + } + + // =================================================================================== + // Setup-Select + // ============ + + // =================================================================================== + // 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/BsTaxClassCB.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/AddressBookCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/AddressBookCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/AddressBookCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -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.BsAddressBookCQ; + +/** + * The condition-query of ADDRESS_BOOK. + * + * @author DBFlute(AutoGenerator) + */ +public class AddressBookCQ extends BsAddressBookCQ { + + // ===================================================================================== + // 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 AddressBookCQ(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/AddressBookCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -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.BsDeliveryMethodCQ; + +/** + * The condition-query of DELIVERY_METHOD. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodCQ extends BsDeliveryMethodCQ { + + // ===================================================================================== + // 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 DeliveryMethodCQ(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/DeliveryMethodCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodDescriptionCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodDescriptionCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodDescriptionCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -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.BsDeliveryMethodDescriptionCQ; + +/** + * The condition-query of DELIVERY_METHOD_DESCRIPTION. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodDescriptionCQ extends BsDeliveryMethodDescriptionCQ { + + // ===================================================================================== + // 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 DeliveryMethodDescriptionCQ(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/DeliveryMethodDescriptionCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/TaxClassCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/TaxClassCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/TaxClassCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -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.BsTaxClassCQ; + +/** + * The condition-query of TAX_CLASS. + * + * @author DBFlute(AutoGenerator) + */ +public class TaxClassCQ extends BsTaxClassCQ { + + // ===================================================================================== + // 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 TaxClassCQ(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/TaxClassCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsAddressBookCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsAddressBookCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsAddressBookCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,2588 @@ +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 ADDRESS_BOOK. + * + * @author DBFlute(AutoGenerator) + */ +public abstract class AbstractBsAddressBookCQ 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 AbstractBsAddressBookCQ(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 "ADDRESS_BOOK"; + } + + // =================================================================================== + // Query + // ===== + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [ADDRESS_BOOK] + // * * * * * * * * */ + + + /** Column db name of addressBookId. */ + protected static final String COL_ADDRESS_BOOK_ID = "ADDRESS_BOOK_ID"; + + /** Column java name of addressBookId. */ + protected static final String J_AddressBookId = "AddressBookId"; + + /** Column uncapitalised java name of addressBookId. */ + protected static final String UJ_addressBookId = "addressBookId"; + + /** + * Set the value of addressBookId using equal. { = } + * + * @param addressBookId The value of addressBookId as equal. + */ + public void setAddressBookId_Equal(java.math.BigDecimal addressBookId) { + registerAddressBookId(ConditionKey.CK_EQUAL, addressBookId); + } + + /** + * Set the value of addressBookId using notEqual. { != } + * + * @param addressBookId The value of addressBookId as notEqual. + */ + public void setAddressBookId_NotEqual(java.math.BigDecimal addressBookId) { + registerAddressBookId(ConditionKey.CK_NOT_EQUAL, addressBookId); + } + + /** + * Set the value of addressBookId using greaterThan. { > } + * + * @param addressBookId The value of addressBookId as greaterThan. + */ + public void setAddressBookId_GreaterThan(java.math.BigDecimal addressBookId) { + registerAddressBookId(ConditionKey.CK_GREATER_THAN, addressBookId); + } + + /** + * Set the value of addressBookId using lessThan. { < } + * + * @param addressBookId The value of addressBookId as lessThan. + */ + public void setAddressBookId_LessThan(java.math.BigDecimal addressBookId) { + registerAddressBookId(ConditionKey.CK_LESS_THAN, addressBookId); + } + + /** + * Set the value of addressBookId using greaterEqual. { >= } + * + * @param addressBookId The value of addressBookId as greaterEqual. + */ + public void setAddressBookId_GreaterEqual(java.math.BigDecimal addressBookId) { + registerAddressBookId(ConditionKey.CK_GREATER_EQUAL, addressBookId); + } + + /** + * Set the value of addressBookId using lessEqual. { <= } + * + * @param addressBookId The value of addressBookId as lessEqual. + */ + public void setAddressBookId_LessEqual(java.math.BigDecimal addressBookId) { + registerAddressBookId(ConditionKey.CK_LESS_EQUAL, addressBookId); + } + + /** + * Set the value of addressBookId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param addressBookIdList The value of addressBookId as inScope. + */ + public void setAddressBookId_InScope(java.util.List<java.math.BigDecimal> addressBookIdList) { + registerAddressBookId(ConditionKey.CK_IN_SCOPE, addressBookIdList); + } + + /** + * Set the value of addressBookId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param addressBookIdList The value of addressBookId as notInScope. + */ + public void setAddressBookId_NotInScope(java.util.List<java.math.BigDecimal> addressBookIdList) { + registerAddressBookId(ConditionKey.CK_NOT_IN_SCOPE, addressBookIdList); + } + + /** + * Register condition of addressBookId. + * + * @param key Condition key. (NotNull) + * @param value The value of addressBookId. (Nullable) + */ + protected void registerAddressBookId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueAddressBookId(), COL_ADDRESS_BOOK_ID, J_AddressBookId, UJ_addressBookId); + } + + /** + * Register inline condition of addressBookId. + * + * @param key Condition key. (NotNull) + * @param value The value of addressBookId. (Nullable) + */ + protected void registerInlineAddressBookId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueAddressBookId(), COL_ADDRESS_BOOK_ID, J_AddressBookId, UJ_addressBookId); + } + + abstract protected ConditionValue getCValueAddressBookId(); + + /** Column db name of customerId. */ + protected static final String COL_CUSTOMER_ID = "CUSTOMER_ID"; + + /** Column java name of customerId. */ + protected static final String J_CustomerId = "CustomerId"; + + /** Column uncapitalised java name of customerId. */ + protected static final String UJ_customerId = "customerId"; + + /** + * Set the value of customerId using equal. { = } + * + * @param customerId The value of customerId as equal. + */ + public void setCustomerId_Equal(java.math.BigDecimal customerId) { + registerCustomerId(ConditionKey.CK_EQUAL, customerId); + } + + /** + * Set the value of customerId using notEqual. { != } + * + * @param customerId The value of customerId as notEqual. + */ + public void setCustomerId_NotEqual(java.math.BigDecimal customerId) { + registerCustomerId(ConditionKey.CK_NOT_EQUAL, customerId); + } + + /** + * Set the value of customerId using greaterThan. { > } + * + * @param customerId The value of customerId as greaterThan. + */ + public void setCustomerId_GreaterThan(java.math.BigDecimal customerId) { + registerCustomerId(ConditionKey.CK_GREATER_THAN, customerId); + } + + /** + * Set the value of customerId using lessThan. { < } + * + * @param customerId The value of customerId as lessThan. + */ + public void setCustomerId_LessThan(java.math.BigDecimal customerId) { + registerCustomerId(ConditionKey.CK_LESS_THAN, customerId); + } + + /** + * Set the value of customerId using greaterEqual. { >= } + * + * @param customerId The value of customerId as greaterEqual. + */ + public void setCustomerId_GreaterEqual(java.math.BigDecimal customerId) { + registerCustomerId(ConditionKey.CK_GREATER_EQUAL, customerId); + } + + /** + * Set the value of customerId using lessEqual. { <= } + * + * @param customerId The value of customerId as lessEqual. + */ + public void setCustomerId_LessEqual(java.math.BigDecimal customerId) { + registerCustomerId(ConditionKey.CK_LESS_EQUAL, customerId); + } + + /** + * Set the value of customerId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param customerIdList The value of customerId as inScope. + */ + public void setCustomerId_InScope(java.util.List<java.math.BigDecimal> customerIdList) { + registerCustomerId(ConditionKey.CK_IN_SCOPE, customerIdList); + } + + /** + * Set the value of customerId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param customerIdList The value of customerId as notInScope. + */ + public void setCustomerId_NotInScope(java.util.List<java.math.BigDecimal> customerIdList) { + registerCustomerId(ConditionKey.CK_NOT_IN_SCOPE, customerIdList); + } + + /** + * Set the sub-query of CustomerId_InScopeSubQuery_Customer using inScopeSubQuery. + * { in (select xxx.CUSTOMER_ID from CUSTOMER 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 CustomerId_InScopeSubQuery_Customer using inScopeSubQuery. (NotNull) + */ + public void setCustomerId_InScopeSubQuery_Customer(jp.sf.pal.pompei.cbean.cq.CustomerCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepCustomerId_InScopeSubQuery_Customer(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_CUSTOMER_ID, "CUSTOMER_ID", "customerId_InScopeSubQuery_Customer"); + } + + abstract public void keepCustomerId_InScopeSubQuery_Customer(jp.sf.pal.pompei.cbean.cq.CustomerCQ subQuery); + + /** + * Register condition of customerId. + * + * @param key Condition key. (NotNull) + * @param value The value of customerId. (Nullable) + */ + protected void registerCustomerId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueCustomerId(), COL_CUSTOMER_ID, J_CustomerId, UJ_customerId); + } + + /** + * Register inline condition of customerId. + * + * @param key Condition key. (NotNull) + * @param value The value of customerId. (Nullable) + */ + protected void registerInlineCustomerId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueCustomerId(), COL_CUSTOMER_ID, J_CustomerId, UJ_customerId); + } + + abstract protected ConditionValue getCValueCustomerId(); + + /** Column db name of company. */ + protected static final String COL_COMPANY = "COMPANY"; + + /** Column java name of company. */ + protected static final String J_Company = "Company"; + + /** Column uncapitalised java name of company. */ + protected static final String UJ_company = "company"; + + /** + * Set the value of company using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param company The value of company as equal. + */ + public void setCompany_Equal(String company) { + registerCompany(ConditionKey.CK_EQUAL, filterRemoveEmptyString(company)); + } + + /** + * Set the value of company using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param company The value of company as notEqual. + */ + public void setCompany_NotEqual(String company) { + registerCompany(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(company)); + } + + /** + * Set the value of company using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param company The value of company as greaterThan. + */ + public void setCompany_GreaterThan(String company) { + registerCompany(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(company)); + } + + /** + * Set the value of company using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param company The value of company as lessThan. + */ + public void setCompany_LessThan(String company) { + registerCompany(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(company)); + } + + /** + * Set the value of company using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param company The value of company as greaterEqual. + */ + public void setCompany_GreaterEqual(String company) { + registerCompany(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(company)); + } + + /** + * Set the value of company using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param company The value of company as lessEqual. + */ + public void setCompany_LessEqual(String company) { + registerCompany(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(company)); + } + + /** + * Set the value of company using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param company The value of company as prefixSearch. + */ + public void setCompany_PrefixSearch(String company) { + registerCompany(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(company)); + } + + /** + * Set the value of company 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 company The value of company as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setCompany_LikeSearch(String company, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(company), getCValueCompany(), COL_COMPANY, J_Company, UJ_company, likeSearchOption); + } + + /** + * Set the value of company using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param companyList The value of company as inScope. + */ + public void setCompany_InScope(java.util.List<String> companyList) { + registerCompany(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(companyList)); + } + + /** + * Set the value of company using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param company The value of company as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setCompany_InScope(String company, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(company), getCValueCompany(), COL_COMPANY, J_Company, UJ_company, inScopeOption); + } + + /** + * Set the value of company using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param companyList The value of company as notInScope. + */ + public void setCompany_NotInScope(java.util.List<String> companyList) { + registerCompany(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(companyList)); + } + + /** + * Set the value of company using isNull. { is null } + */ + public void setCompany_IsNull() { + registerCompany(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of company using isNotNull. { is not null } + */ + public void setCompany_IsNotNull() { + registerCompany(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of company. + * + * @param key Condition key. (NotNull) + * @param value The value of company. (Nullable) + */ + protected void registerCompany(ConditionKey key, Object value) { + registerQuery(key, value, getCValueCompany(), COL_COMPANY, J_Company, UJ_company); + } + + /** + * Register inline condition of company. + * + * @param key Condition key. (NotNull) + * @param value The value of company. (Nullable) + */ + protected void registerInlineCompany(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueCompany(), COL_COMPANY, J_Company, UJ_company); + } + + abstract protected ConditionValue getCValueCompany(); + + /** Column db name of department. */ + protected static final String COL_DEPARTMENT = "DEPARTMENT"; + + /** Column java name of department. */ + protected static final String J_Department = "Department"; + + /** Column uncapitalised java name of department. */ + protected static final String UJ_department = "department"; + + /** + * Set the value of department using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param department The value of department as equal. + */ + public void setDepartment_Equal(String department) { + registerDepartment(ConditionKey.CK_EQUAL, filterRemoveEmptyString(department)); + } + + /** + * Set the value of department using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param department The value of department as notEqual. + */ + public void setDepartment_NotEqual(String department) { + registerDepartment(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(department)); + } + + /** + * Set the value of department using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param department The value of department as greaterThan. + */ + public void setDepartment_GreaterThan(String department) { + registerDepartment(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(department)); + } + + /** + * Set the value of department using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param department The value of department as lessThan. + */ + public void setDepartment_LessThan(String department) { + registerDepartment(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(department)); + } + + /** + * Set the value of department using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param department The value of department as greaterEqual. + */ + public void setDepartment_GreaterEqual(String department) { + registerDepartment(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(department)); + } + + /** + * Set the value of department using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param department The value of department as lessEqual. + */ + public void setDepartment_LessEqual(String department) { + registerDepartment(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(department)); + } + + /** + * Set the value of department using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param department The value of department as prefixSearch. + */ + public void setDepartment_PrefixSearch(String department) { + registerDepartment(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(department)); + } + + /** + * Set the value of department 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 department The value of department as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setDepartment_LikeSearch(String department, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(department), getCValueDepartment(), COL_DEPARTMENT, J_Department, UJ_department, likeSearchOption); + } + + /** + * Set the value of department using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param departmentList The value of department as inScope. + */ + public void setDepartment_InScope(java.util.List<String> departmentList) { + registerDepartment(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(departmentList)); + } + + /** + * Set the value of department using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param department The value of department as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setDepartment_InScope(String department, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(department), getCValueDepartment(), COL_DEPARTMENT, J_Department, UJ_department, inScopeOption); + } + + /** + * Set the value of department using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param departmentList The value of department as notInScope. + */ + public void setDepartment_NotInScope(java.util.List<String> departmentList) { + registerDepartment(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(departmentList)); + } + + /** + * Set the value of department using isNull. { is null } + */ + public void setDepartment_IsNull() { + registerDepartment(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of department using isNotNull. { is not null } + */ + public void setDepartment_IsNotNull() { + registerDepartment(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of department. + * + * @param key Condition key. (NotNull) + * @param value The value of department. (Nullable) + */ + protected void registerDepartment(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDepartment(), COL_DEPARTMENT, J_Department, UJ_department); + } + + /** + * Register inline condition of department. + * + * @param key Condition key. (NotNull) + * @param value The value of department. (Nullable) + */ + protected void registerInlineDepartment(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDepartment(), COL_DEPARTMENT, J_Department, UJ_department); + } + + abstract protected ConditionValue getCValueDepartment(); + + /** Column db name of firstname. */ + protected static final String COL_FIRSTNAME = "FIRSTNAME"; + + /** Column java name of firstname. */ + protected static final String J_Firstname = "Firstname"; + + /** Column uncapitalised java name of firstname. */ + protected static final String UJ_firstname = "firstname"; + + /** + * Set the value of firstname using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param firstname The value of firstname as equal. + */ + public void setFirstname_Equal(String firstname) { + registerFirstname(ConditionKey.CK_EQUAL, filterRemoveEmptyString(firstname)); + } + + /** + * Set the value of firstname using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param firstname The value of firstname as notEqual. + */ + public void setFirstname_NotEqual(String firstname) { + registerFirstname(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(firstname)); + } + + /** + * Set the value of firstname using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param firstname The value of firstname as greaterThan. + */ + public void setFirstname_GreaterThan(String firstname) { + registerFirstname(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(firstname)); + } + + /** + * Set the value of firstname using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param firstname The value of firstname as lessThan. + */ + public void setFirstname_LessThan(String firstname) { + registerFirstname(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(firstname)); + } + + /** + * Set the value of firstname using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param firstname The value of firstname as greaterEqual. + */ + public void setFirstname_GreaterEqual(String firstname) { + registerFirstname(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(firstname)); + } + + /** + * Set the value of firstname using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param firstname The value of firstname as lessEqual. + */ + public void setFirstname_LessEqual(String firstname) { + registerFirstname(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(firstname)); + } + + /** + * Set the value of firstname using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param firstname The value of firstname as prefixSearch. + */ + public void setFirstname_PrefixSearch(String firstname) { + registerFirstname(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(firstname)); + } + + /** + * Set the value of firstname 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 firstname The value of firstname as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setFirstname_LikeSearch(String firstname, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(firstname), getCValueFirstname(), COL_FIRSTNAME, J_Firstname, UJ_firstname, likeSearchOption); + } + + /** + * Set the value of firstname using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param firstnameList The value of firstname as inScope. + */ + public void setFirstname_InScope(java.util.List<String> firstnameList) { + registerFirstname(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(firstnameList)); + } + + /** + * Set the value of firstname using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param firstname The value of firstname as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setFirstname_InScope(String firstname, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(firstname), getCValueFirstname(), COL_FIRSTNAME, J_Firstname, UJ_firstname, inScopeOption); + } + + /** + * Set the value of firstname using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param firstnameList The value of firstname as notInScope. + */ + public void setFirstname_NotInScope(java.util.List<String> firstnameList) { + registerFirstname(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(firstnameList)); + } + + /** + * Register condition of firstname. + * + * @param key Condition key. (NotNull) + * @param value The value of firstname. (Nullable) + */ + protected void registerFirstname(ConditionKey key, Object value) { + registerQuery(key, value, getCValueFirstname(), COL_FIRSTNAME, J_Firstname, UJ_firstname); + } + + /** + * Register inline condition of firstname. + * + * @param key Condition key. (NotNull) + * @param value The value of firstname. (Nullable) + */ + protected void registerInlineFirstname(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueFirstname(), COL_FIRSTNAME, J_Firstname, UJ_firstname); + } + + abstract protected ConditionValue getCValueFirstname(); + + /** Column db name of lastname. */ + protected static final String COL_LASTNAME = "LASTNAME"; + + /** Column java name of lastname. */ + protected static final String J_Lastname = "Lastname"; + + /** Column uncapitalised java name of lastname. */ + protected static final String UJ_lastname = "lastname"; + + /** + * Set the value of lastname using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param lastname The value of lastname as equal. + */ + public void setLastname_Equal(String lastname) { + registerLastname(ConditionKey.CK_EQUAL, filterRemoveEmptyString(lastname)); + } + + /** + * Set the value of lastname using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param lastname The value of lastname as notEqual. + */ + public void setLastname_NotEqual(String lastname) { + registerLastname(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(lastname)); + } + + /** + * Set the value of lastname using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param lastname The value of lastname as greaterThan. + */ + public void setLastname_GreaterThan(String lastname) { + registerLastname(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(lastname)); + } + + /** + * Set the value of lastname using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param lastname The value of lastname as lessThan. + */ + public void setLastname_LessThan(String lastname) { + registerLastname(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(lastname)); + } + + /** + * Set the value of lastname using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param lastname The value of lastname as greaterEqual. + */ + public void setLastname_GreaterEqual(String lastname) { + registerLastname(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(lastname)); + } + + /** + * Set the value of lastname using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param lastname The value of lastname as lessEqual. + */ + public void setLastname_LessEqual(String lastname) { + registerLastname(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(lastname)); + } + + /** + * Set the value of lastname using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param lastname The value of lastname as prefixSearch. + */ + public void setLastname_PrefixSearch(String lastname) { + registerLastname(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(lastname)); + } + + /** + * Set the value of lastname 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 lastname The value of lastname as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setLastname_LikeSearch(String lastname, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(lastname), getCValueLastname(), COL_LASTNAME, J_Lastname, UJ_lastname, likeSearchOption); + } + + /** + * Set the value of lastname using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param lastnameList The value of lastname as inScope. + */ + public void setLastname_InScope(java.util.List<String> lastnameList) { + registerLastname(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(lastnameList)); + } + + /** + * Set the value of lastname using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param lastname The value of lastname as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setLastname_InScope(String lastname, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(lastname), getCValueLastname(), COL_LASTNAME, J_Lastname, UJ_lastname, inScopeOption); + } + + /** + * Set the value of lastname using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param lastnameList The value of lastname as notInScope. + */ + public void setLastname_NotInScope(java.util.List<String> lastnameList) { + registerLastname(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(lastnameList)); + } + + /** + * Register condition of lastname. + * + * @param key Condition key. (NotNull) + * @param value The value of lastname. (Nullable) + */ + protected void registerLastname(ConditionKey key, Object value) { + registerQuery(key, value, getCValueLastname(), COL_LASTNAME, J_Lastname, UJ_lastname); + } + + /** + * Register inline condition of lastname. + * + * @param key Condition key. (NotNull) + * @param value The value of lastname. (Nullable) + */ + protected void registerInlineLastname(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueLastname(), COL_LASTNAME, J_Lastname, UJ_lastname); + } + + abstract protected ConditionValue getCValueLastname(); + + /** Column db name of streetAddress. */ + protected static final String COL_STREET_ADDRESS = "STREET_ADDRESS"; + + /** Column java name of streetAddress. */ + protected static final String J_StreetAddress = "StreetAddress"; + + /** Column uncapitalised java name of streetAddress. */ + protected static final String UJ_streetAddress = "streetAddress"; + + /** + * Set the value of streetAddress using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param streetAddress The value of streetAddress as equal. + */ + public void setStreetAddress_Equal(String streetAddress) { + registerStreetAddress(ConditionKey.CK_EQUAL, filterRemoveEmptyString(streetAddress)); + } + + /** + * Set the value of streetAddress using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param streetAddress The value of streetAddress as notEqual. + */ + public void setStreetAddress_NotEqual(String streetAddress) { + registerStreetAddress(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(streetAddress)); + } + + /** + * Set the value of streetAddress using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param streetAddress The value of streetAddress as greaterThan. + */ + public void setStreetAddress_GreaterThan(String streetAddress) { + registerStreetAddress(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(streetAddress)); + } + + /** + * Set the value of streetAddress using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param streetAddress The value of streetAddress as lessThan. + */ + public void setStreetAddress_LessThan(String streetAddress) { + registerStreetAddress(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(streetAddress)); + } + + /** + * Set the value of streetAddress using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param streetAddress The value of streetAddress as greaterEqual. + */ + public void setStreetAddress_GreaterEqual(String streetAddress) { + registerStreetAddress(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(streetAddress)); + } + + /** + * Set the value of streetAddress using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param streetAddress The value of streetAddress as lessEqual. + */ + public void setStreetAddress_LessEqual(String streetAddress) { + registerStreetAddress(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(streetAddress)); + } + + /** + * Set the value of streetAddress using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param streetAddress The value of streetAddress as prefixSearch. + */ + public void setStreetAddress_PrefixSearch(String streetAddress) { + registerStreetAddress(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(streetAddress)); + } + + /** + * Set the value of streetAddress 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 streetAddress The value of streetAddress as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setStreetAddress_LikeSearch(String streetAddress, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(streetAddress), getCValueStreetAddress(), COL_STREET_ADDRESS, J_StreetAddress, UJ_streetAddress, likeSearchOption); + } + + /** + * Set the value of streetAddress using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param streetAddressList The value of streetAddress as inScope. + */ + public void setStreetAddress_InScope(java.util.List<String> streetAddressList) { + registerStreetAddress(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(streetAddressList)); + } + + /** + * Set the value of streetAddress using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param streetAddress The value of streetAddress as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setStreetAddress_InScope(String streetAddress, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(streetAddress), getCValueStreetAddress(), COL_STREET_ADDRESS, J_StreetAddress, UJ_streetAddress, inScopeOption); + } + + /** + * Set the value of streetAddress using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param streetAddressList The value of streetAddress as notInScope. + */ + public void setStreetAddress_NotInScope(java.util.List<String> streetAddressList) { + registerStreetAddress(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(streetAddressList)); + } + + /** + * Register condition of streetAddress. + * + * @param key Condition key. (NotNull) + * @param value The value of streetAddress. (Nullable) + */ + protected void registerStreetAddress(ConditionKey key, Object value) { + registerQuery(key, value, getCValueStreetAddress(), COL_STREET_ADDRESS, J_StreetAddress, UJ_streetAddress); + } + + /** + * Register inline condition of streetAddress. + * + * @param key Condition key. (NotNull) + * @param value The value of streetAddress. (Nullable) + */ + protected void registerInlineStreetAddress(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueStreetAddress(), COL_STREET_ADDRESS, J_StreetAddress, UJ_streetAddress); + } + + abstract protected ConditionValue getCValueStreetAddress(); + + /** Column db name of suburb. */ + protected static final String COL_SUBURB = "SUBURB"; + + /** Column java name of suburb. */ + protected static final String J_Suburb = "Suburb"; + + /** Column uncapitalised java name of suburb. */ + protected static final String UJ_suburb = "suburb"; + + /** + * Set the value of suburb using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param suburb The value of suburb as equal. + */ + public void setSuburb_Equal(String suburb) { + registerSuburb(ConditionKey.CK_EQUAL, filterRemoveEmptyString(suburb)); + } + + /** + * Set the value of suburb using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param suburb The value of suburb as notEqual. + */ + public void setSuburb_NotEqual(String suburb) { + registerSuburb(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(suburb)); + } + + /** + * Set the value of suburb using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param suburb The value of suburb as greaterThan. + */ + public void setSuburb_GreaterThan(String suburb) { + registerSuburb(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(suburb)); + } + + /** + * Set the value of suburb using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param suburb The value of suburb as lessThan. + */ + public void setSuburb_LessThan(String suburb) { + registerSuburb(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(suburb)); + } + + /** + * Set the value of suburb using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param suburb The value of suburb as greaterEqual. + */ + public void setSuburb_GreaterEqual(String suburb) { + registerSuburb(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(suburb)); + } + + /** + * Set the value of suburb using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param suburb The value of suburb as lessEqual. + */ + public void setSuburb_LessEqual(String suburb) { + registerSuburb(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(suburb)); + } + + /** + * Set the value of suburb using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param suburb The value of suburb as prefixSearch. + */ + public void setSuburb_PrefixSearch(String suburb) { + registerSuburb(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(suburb)); + } + + /** + * Set the value of suburb 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 suburb The value of suburb as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setSuburb_LikeSearch(String suburb, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(suburb), getCValueSuburb(), COL_SUBURB, J_Suburb, UJ_suburb, likeSearchOption); + } + + /** + * Set the value of suburb using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param suburbList The value of suburb as inScope. + */ + public void setSuburb_InScope(java.util.List<String> suburbList) { + registerSuburb(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(suburbList)); + } + + /** + * Set the value of suburb using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param suburb The value of suburb as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setSuburb_InScope(String suburb, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(suburb), getCValueSuburb(), COL_SUBURB, J_Suburb, UJ_suburb, inScopeOption); + } + + /** + * Set the value of suburb using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param suburbList The value of suburb as notInScope. + */ + public void setSuburb_NotInScope(java.util.List<String> suburbList) { + registerSuburb(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(suburbList)); + } + + /** + * Set the value of suburb using isNull. { is null } + */ + public void setSuburb_IsNull() { + registerSuburb(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of suburb using isNotNull. { is not null } + */ + public void setSuburb_IsNotNull() { + registerSuburb(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of suburb. + * + * @param key Condition key. (NotNull) + * @param value The value of suburb. (Nullable) + */ + protected void registerSuburb(ConditionKey key, Object value) { + registerQuery(key, value, getCValueSuburb(), COL_SUBURB, J_Suburb, UJ_suburb); + } + + /** + * Register inline condition of suburb. + * + * @param key Condition key. (NotNull) + * @param value The value of suburb. (Nullable) + */ + protected void registerInlineSuburb(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueSuburb(), COL_SUBURB, J_Suburb, UJ_suburb); + } + + abstract protected ConditionValue getCValueSuburb(); + + /** Column db name of city. */ + protected static final String COL_CITY = "CITY"; + + /** Column java name of city. */ + protected static final String J_City = "City"; + + /** Column uncapitalised java name of city. */ + protected static final String UJ_city = "city"; + + /** + * Set the value of city using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param city The value of city as equal. + */ + public void setCity_Equal(String city) { + registerCity(ConditionKey.CK_EQUAL, filterRemoveEmptyString(city)); + } + + /** + * Set the value of city using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param city The value of city as notEqual. + */ + public void setCity_NotEqual(String city) { + registerCity(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(city)); + } + + /** + * Set the value of city using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param city The value of city as greaterThan. + */ + public void setCity_GreaterThan(String city) { + registerCity(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(city)); + } + + /** + * Set the value of city using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param city The value of city as lessThan. + */ + public void setCity_LessThan(String city) { + registerCity(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(city)); + } + + /** + * Set the value of city using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param city The value of city as greaterEqual. + */ + public void setCity_GreaterEqual(String city) { + registerCity(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(city)); + } + + /** + * Set the value of city using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param city The value of city as lessEqual. + */ + public void setCity_LessEqual(String city) { + registerCity(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(city)); + } + + /** + * Set the value of city using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param city The value of city as prefixSearch. + */ + public void setCity_PrefixSearch(String city) { + registerCity(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(city)); + } + + /** + * Set the value of city 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 city The value of city as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setCity_LikeSearch(String city, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(city), getCValueCity(), COL_CITY, J_City, UJ_city, likeSearchOption); + } + + /** + * Set the value of city using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param cityList The value of city as inScope. + */ + public void setCity_InScope(java.util.List<String> cityList) { + registerCity(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(cityList)); + } + + /** + * Set the value of city using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param city The value of city as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setCity_InScope(String city, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(city), getCValueCity(), COL_CITY, J_City, UJ_city, inScopeOption); + } + + /** + * Set the value of city using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param cityList The value of city as notInScope. + */ + public void setCity_NotInScope(java.util.List<String> cityList) { + registerCity(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(cityList)); + } + + /** + * Register condition of city. + * + * @param key Condition key. (NotNull) + * @param value The value of city. (Nullable) + */ + protected void registerCity(ConditionKey key, Object value) { + registerQuery(key, value, getCValueCity(), COL_CITY, J_City, UJ_city); + } + + /** + * Register inline condition of city. + * + * @param key Condition key. (NotNull) + * @param value The value of city. (Nullable) + */ + protected void registerInlineCity(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueCity(), COL_CITY, J_City, UJ_city); + } + + abstract protected ConditionValue getCValueCity(); + + /** Column db name of state. */ + protected static final String COL_STATE = "STATE"; + + /** Column java name of state. */ + protected static final String J_State = "State"; + + /** Column uncapitalised java name of state. */ + protected static final String UJ_state = "state"; + + /** + * Set the value of state using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param state The value of state as equal. + */ + public void setState_Equal(String state) { + registerState(ConditionKey.CK_EQUAL, filterRemoveEmptyString(state)); + } + + /** + * Set the value of state using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param state The value of state as notEqual. + */ + public void setState_NotEqual(String state) { + registerState(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(state)); + } + + /** + * Set the value of state using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param state The value of state as greaterThan. + */ + public void setState_GreaterThan(String state) { + registerState(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(state)); + } + + /** + * Set the value of state using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param state The value of state as lessThan. + */ + public void setState_LessThan(String state) { + registerState(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(state)); + } + + /** + * Set the value of state using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param state The value of state as greaterEqual. + */ + public void setState_GreaterEqual(String state) { + registerState(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(state)); + } + + /** + * Set the value of state using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param state The value of state as lessEqual. + */ + public void setState_LessEqual(String state) { + registerState(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(state)); + } + + /** + * Set the value of state using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param state The value of state as prefixSearch. + */ + public void setState_PrefixSearch(String state) { + registerState(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(state)); + } + + /** + * Set the value of state 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 state The value of state as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setState_LikeSearch(String state, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(state), getCValueState(), COL_STATE, J_State, UJ_state, likeSearchOption); + } + + /** + * Set the value of state using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param stateList The value of state as inScope. + */ + public void setState_InScope(java.util.List<String> stateList) { + registerState(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(stateList)); + } + + /** + * Set the value of state using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param state The value of state as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setState_InScope(String state, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(state), getCValueState(), COL_STATE, J_State, UJ_state, inScopeOption); + } + + /** + * Set the value of state using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param stateList The value of state as notInScope. + */ + public void setState_NotInScope(java.util.List<String> stateList) { + registerState(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(stateList)); + } + + /** + * Set the value of state using isNull. { is null } + */ + public void setState_IsNull() { + registerState(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of state using isNotNull. { is not null } + */ + public void setState_IsNotNull() { + registerState(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of state. + * + * @param key Condition key. (NotNull) + * @param value The value of state. (Nullable) + */ + protected void registerState(ConditionKey key, Object value) { + registerQuery(key, value, getCValueState(), COL_STATE, J_State, UJ_state); + } + + /** + * Register inline condition of state. + * + * @param key Condition key. (NotNull) + * @param value The value of state. (Nullable) + */ + protected void registerInlineState(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueState(), COL_STATE, J_State, UJ_state); + } + + abstract protected ConditionValue getCValueState(); + + /** Column db name of postcode. */ + protected static final String COL_POSTCODE = "POSTCODE"; + + /** Column java name of postcode. */ + protected static final String J_Postcode = "Postcode"; + + /** Column uncapitalised java name of postcode. */ + protected static final String UJ_postcode = "postcode"; + + /** + * Set the value of postcode using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param postcode The value of postcode as equal. + */ + public void setPostcode_Equal(String postcode) { + registerPostcode(ConditionKey.CK_EQUAL, filterRemoveEmptyString(postcode)); + } + + /** + * Set the value of postcode using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param postcode The value of postcode as notEqual. + */ + public void setPostcode_NotEqual(String postcode) { + registerPostcode(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(postcode)); + } + + /** + * Set the value of postcode using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param postcode The value of postcode as greaterThan. + */ + public void setPostcode_GreaterThan(String postcode) { + registerPostcode(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(postcode)); + } + + /** + * Set the value of postcode using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param postcode The value of postcode as lessThan. + */ + public void setPostcode_LessThan(String postcode) { + registerPostcode(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(postcode)); + } + + /** + * Set the value of postcode using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param postcode The value of postcode as greaterEqual. + */ + public void setPostcode_GreaterEqual(String postcode) { + registerPostcode(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(postcode)); + } + + /** + * Set the value of postcode using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param postcode The value of postcode as lessEqual. + */ + public void setPostcode_LessEqual(String postcode) { + registerPostcode(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(postcode)); + } + + /** + * Set the value of postcode using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param postcode The value of postcode as prefixSearch. + */ + public void setPostcode_PrefixSearch(String postcode) { + registerPostcode(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(postcode)); + } + + /** + * Set the value of postcode 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 postcode The value of postcode as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setPostcode_LikeSearch(String postcode, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(postcode), getCValuePostcode(), COL_POSTCODE, J_Postcode, UJ_postcode, likeSearchOption); + } + + /** + * Set the value of postcode using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param postcodeList The value of postcode as inScope. + */ + public void setPostcode_InScope(java.util.List<String> postcodeList) { + registerPostcode(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(postcodeList)); + } + + /** + * Set the value of postcode using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param postcode The value of postcode as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setPostcode_InScope(String postcode, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(postcode), getCValuePostcode(), COL_POSTCODE, J_Postcode, UJ_postcode, inScopeOption); + } + + /** + * Set the value of postcode using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param postcodeList The value of postcode as notInScope. + */ + public void setPostcode_NotInScope(java.util.List<String> postcodeList) { + registerPostcode(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(postcodeList)); + } + + /** + * Register condition of postcode. + * + * @param key Condition key. (NotNull) + * @param value The value of postcode. (Nullable) + */ + protected void registerPostcode(ConditionKey key, Object value) { + registerQuery(key, value, getCValuePostcode(), COL_POSTCODE, J_Postcode, UJ_postcode); + } + + /** + * Register inline condition of postcode. + * + * @param key Condition key. (NotNull) + * @param value The value of postcode. (Nullable) + */ + protected void registerInlinePostcode(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValuePostcode(), COL_POSTCODE, J_Postcode, UJ_postcode); + } + + abstract protected ConditionValue getCValuePostcode(); + + /** Column db name of telephone. */ + protected static final String COL_TELEPHONE = "TELEPHONE"; + + /** Column java name of telephone. */ + protected static final String J_Telephone = "Telephone"; + + /** Column uncapitalised java name of telephone. */ + protected static final String UJ_telephone = "telephone"; + + /** + * Set the value of telephone using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param telephone The value of telephone as equal. + */ + public void setTelephone_Equal(String telephone) { + registerTelephone(ConditionKey.CK_EQUAL, filterRemoveEmptyString(telephone)); + } + + /** + * Set the value of telephone using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param telephone The value of telephone as notEqual. + */ + public void setTelephone_NotEqual(String telephone) { + registerTelephone(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(telephone)); + } + + /** + * Set the value of telephone using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param telephone The value of telephone as greaterThan. + */ + public void setTelephone_GreaterThan(String telephone) { + registerTelephone(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(telephone)); + } + + /** + * Set the value of telephone using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param telephone The value of telephone as lessThan. + */ + public void setTelephone_LessThan(String telephone) { + registerTelephone(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(telephone)); + } + + /** + * Set the value of telephone using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param telephone The value of telephone as greaterEqual. + */ + public void setTelephone_GreaterEqual(String telephone) { + registerTelephone(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(telephone)); + } + + /** + * Set the value of telephone using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param telephone The value of telephone as lessEqual. + */ + public void setTelephone_LessEqual(String telephone) { + registerTelephone(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(telephone)); + } + + /** + * Set the value of telephone using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param telephone The value of telephone as prefixSearch. + */ + public void setTelephone_PrefixSearch(String telephone) { + registerTelephone(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(telephone)); + } + + /** + * Set the value of telephone 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 telephone The value of telephone as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setTelephone_LikeSearch(String telephone, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(telephone), getCValueTelephone(), COL_TELEPHONE, J_Telephone, UJ_telephone, likeSearchOption); + } + + /** + * Set the value of telephone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param telephoneList The value of telephone as inScope. + */ + public void setTelephone_InScope(java.util.List<String> telephoneList) { + registerTelephone(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(telephoneList)); + } + + /** + * Set the value of telephone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param telephone The value of telephone as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setTelephone_InScope(String telephone, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(telephone), getCValueTelephone(), COL_TELEPHONE, J_Telephone, UJ_telephone, inScopeOption); + } + + /** + * Set the value of telephone using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param telephoneList The value of telephone as notInScope. + */ + public void setTelephone_NotInScope(java.util.List<String> telephoneList) { + registerTelephone(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(telephoneList)); + } + + /** + * Set the value of telephone using isNull. { is null } + */ + public void setTelephone_IsNull() { + registerTelephone(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of telephone using isNotNull. { is not null } + */ + public void setTelephone_IsNotNull() { + registerTelephone(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of telephone. + * + * @param key Condition key. (NotNull) + * @param value The value of telephone. (Nullable) + */ + protected void registerTelephone(ConditionKey key, Object value) { + registerQuery(key, value, getCValueTelephone(), COL_TELEPHONE, J_Telephone, UJ_telephone); + } + + /** + * Register inline condition of telephone. + * + * @param key Condition key. (NotNull) + * @param value The value of telephone. (Nullable) + */ + protected void registerInlineTelephone(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueTelephone(), COL_TELEPHONE, J_Telephone, UJ_telephone); + } + + abstract protected ConditionValue getCValueTelephone(); + + /** Column db name of fax. */ + protected static final String COL_FAX = "FAX"; + + /** Column java name of fax. */ + protected static final String J_Fax = "Fax"; + + /** Column uncapitalised java name of fax. */ + protected static final String UJ_fax = "fax"; + + /** + * Set the value of fax using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param fax The value of fax as equal. + */ + public void setFax_Equal(String fax) { + registerFax(ConditionKey.CK_EQUAL, filterRemoveEmptyString(fax)); + } + + /** + * Set the value of fax using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param fax The value of fax as notEqual. + */ + public void setFax_NotEqual(String fax) { + registerFax(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(fax)); + } + + /** + * Set the value of fax using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param fax The value of fax as greaterThan. + */ + public void setFax_GreaterThan(String fax) { + registerFax(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(fax)); + } + + /** + * Set the value of fax using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param fax The value of fax as lessThan. + */ + public void setFax_LessThan(String fax) { + registerFax(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(fax)); + } + + /** + * Set the value of fax using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param fax The value of fax as greaterEqual. + */ + public void setFax_GreaterEqual(String fax) { + registerFax(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(fax)); + } + + /** + * Set the value of fax using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param fax The value of fax as lessEqual. + */ + public void setFax_LessEqual(String fax) { + registerFax(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(fax)); + } + + /** + * Set the value of fax using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param fax The value of fax as prefixSearch. + */ + public void setFax_PrefixSearch(String fax) { + registerFax(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(fax)); + } + + /** + * Set the value of fax 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 fax The value of fax as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setFax_LikeSearch(String fax, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(fax), getCValueFax(), COL_FAX, J_Fax, UJ_fax, likeSearchOption); + } + + /** + * Set the value of fax using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param faxList The value of fax as inScope. + */ + public void setFax_InScope(java.util.List<String> faxList) { + registerFax(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(faxList)); + } + + /** + * Set the value of fax using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param fax The value of fax as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setFax_InScope(String fax, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(fax), getCValueFax(), COL_FAX, J_Fax, UJ_fax, inScopeOption); + } + + /** + * Set the value of fax using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param faxList The value of fax as notInScope. + */ + public void setFax_NotInScope(java.util.List<String> faxList) { + registerFax(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(faxList)); + } + + /** + * Set the value of fax using isNull. { is null } + */ + public void setFax_IsNull() { + registerFax(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of fax using isNotNull. { is not null } + */ + public void setFax_IsNotNull() { + registerFax(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of fax. + * + * @param key Condition key. (NotNull) + * @param value The value of fax. (Nullable) + */ + protected void registerFax(ConditionKey key, Object value) { + registerQuery(key, value, getCValueFax(), COL_FAX, J_Fax, UJ_fax); + } + + /** + * Register inline condition of fax. + * + * @param key Condition key. (NotNull) + * @param value The value of fax. (Nullable) + */ + protected void registerInlineFax(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueFax(), COL_FAX, J_Fax, UJ_fax); + } + + abstract protected ConditionValue getCValueFax(); + + /** Column db name of cellphone. */ + protected static final String COL_CELLPHONE = "CELLPHONE"; + + /** Column java name of cellphone. */ + protected static final String J_Cellphone = "Cellphone"; + + /** Column uncapitalised java name of cellphone. */ + protected static final String UJ_cellphone = "cellphone"; + + /** + * Set the value of cellphone using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param cellphone The value of cellphone as equal. + */ + public void setCellphone_Equal(String cellphone) { + registerCellphone(ConditionKey.CK_EQUAL, filterRemoveEmptyString(cellphone)); + } + + /** + * Set the value of cellphone using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param cellphone The value of cellphone as notEqual. + */ + public void setCellphone_NotEqual(String cellphone) { + registerCellphone(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(cellphone)); + } + + /** + * Set the value of cellphone using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param cellphone The value of cellphone as greaterThan. + */ + public void setCellphone_GreaterThan(String cellphone) { + registerCellphone(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(cellphone)); + } + + /** + * Set the value of cellphone using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param cellphone The value of cellphone as lessThan. + */ + public void setCellphone_LessThan(String cellphone) { + registerCellphone(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(cellphone)); + } + + /** + * Set the value of cellphone using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param cellphone The value of cellphone as greaterEqual. + */ + public void setCellphone_GreaterEqual(String cellphone) { + registerCellphone(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(cellphone)); + } + + /** + * Set the value of cellphone using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param cellphone The value of cellphone as lessEqual. + */ + public void setCellphone_LessEqual(String cellphone) { + registerCellphone(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(cellphone)); + } + + /** + * Set the value of cellphone using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param cellphone The value of cellphone as prefixSearch. + */ + public void setCellphone_PrefixSearch(String cellphone) { + registerCellphone(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(cellphone)); + } + + /** + * Set the value of cellphone 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 cellphone The value of cellphone as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setCellphone_LikeSearch(String cellphone, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(cellphone), getCValueCellphone(), COL_CELLPHONE, J_Cellphone, UJ_cellphone, likeSearchOption); + } + + /** + * Set the value of cellphone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param cellphoneList The value of cellphone as inScope. + */ + public void setCellphone_InScope(java.util.List<String> cellphoneList) { + registerCellphone(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(cellphoneList)); + } + + /** + * Set the value of cellphone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param cellphone The value of cellphone as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setCellphone_InScope(String cellphone, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(cellphone), getCValueCellphone(), COL_CELLPHONE, J_Cellphone, UJ_cellphone, inScopeOption); + } + + /** + * Set the value of cellphone using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param cellphoneList The value of cellphone as notInScope. + */ + public void setCellphone_NotInScope(java.util.List<String> cellphoneList) { + registerCellphone(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(cellphoneList)); + } + + /** + * Set the value of cellphone using isNull. { is null } + */ + public void setCellphone_IsNull() { + registerCellphone(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of cellphone using isNotNull. { is not null } + */ + public void setCellphone_IsNotNull() { + registerCellphone(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of cellphone. + * + * @param key Condition key. (NotNull) + * @param value The value of cellphone. (Nullable) + */ + protected void registerCellphone(ConditionKey key, Object value) { + registerQuery(key, value, getCValueCellphone(), COL_CELLPHONE, J_Cellphone, UJ_cellphone); + } + + /** + * Register inline condition of cellphone. + * + * @param key Condition key. (NotNull) + * @param value The value of cellphone. (Nullable) + */ + protected void registerInlineCellphone(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueCellphone(), COL_CELLPHONE, J_Cellphone, UJ_cellphone); + } + + abstract protected ConditionValue getCValueCellphone(); + + /** Column db name of defaultAddress. */ + protected static final String COL_DEFAULT_ADDRESS = "DEFAULT_ADDRESS"; + + /** Column java name of defaultAddress. */ + protected static final String J_DefaultAddress = "DefaultAddress"; + + /** Column uncapitalised java name of defaultAddress. */ + protected static final String UJ_defaultAddress = "defaultAddress"; + + /** + * Set the value of defaultAddress using equal. { = } + * + * @param defaultAddress The value of defaultAddress as equal. + */ + public void setDefaultAddress_Equal(java.math.BigDecimal defaultAddress) { + registerDefaultAddress(ConditionKey.CK_EQUAL, defaultAddress); + } + + /** + * Set the value of defaultAddress using notEqual. { != } + * + * @param defaultAddress The value of defaultAddress as notEqual. + */ + public void setDefaultAddress_NotEqual(java.math.BigDecimal defaultAddress) { + registerDefaultAddress(ConditionKey.CK_NOT_EQUAL, defaultAddress); + } + + /** + * Set the value of defaultAddress using greaterThan. { > } + * + * @param defaultAddress The value of defaultAddress as greaterThan. + */ + public void setDefaultAddress_GreaterThan(java.math.BigDecimal defaultAddress) { + registerDefaultAddress(ConditionKey.CK_GREATER_THAN, defaultAddress); + } + + /** + * Set the value of defaultAddress using lessThan. { < } + * + * @param defaultAddress The value of defaultAddress as lessThan. + */ + public void setDefaultAddress_LessThan(java.math.BigDecimal defaultAddress) { + registerDefaultAddress(ConditionKey.CK_LESS_THAN, defaultAddress); + } + + /** + * Set the value of defaultAddress using greaterEqual. { >= } + * + * @param defaultAddress The value of defaultAddress as greaterEqual. + */ + public void setDefaultAddress_GreaterEqual(java.math.BigDecimal defaultAddress) { + registerDefaultAddress(ConditionKey.CK_GREATER_EQUAL, defaultAddress); + } + + /** + * Set the value of defaultAddress using lessEqual. { <= } + * + * @param defaultAddress The value of defaultAddress as lessEqual. + */ + public void setDefaultAddress_LessEqual(java.math.BigDecimal defaultAddress) { + registerDefaultAddress(ConditionKey.CK_LESS_EQUAL, defaultAddress); + } + + /** + * Set the value of defaultAddress using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param defaultAddressList The value of defaultAddress as inScope. + */ + public void setDefaultAddress_InScope(java.util.List<java.math.BigDecimal> defaultAddressList) { + registerDefaultAddress(ConditionKey.CK_IN_SCOPE, defaultAddressList); + } + + /** + * Set the value of defaultAddress using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param defaultAddressList The value of defaultAddress as notInScope. + */ + public void setDefaultAddress_NotInScope(java.util.List<java.math.BigDecimal> defaultAddressList) { + registerDefaultAddress(ConditionKey.CK_NOT_IN_SCOPE, defaultAddressList); + } + + /** + * Register condition of defaultAddress. + * + * @param key Condition key. (NotNull) + * @param value The value of defaultAddress. (Nullable) + */ + protected void registerDefaultAddress(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDefaultAddress(), COL_DEFAULT_ADDRESS, J_DefaultAddress, UJ_defaultAddress); + } + + /** + * Register inline condition of defaultAddress. + * + * @param key Condition key. (NotNull) + * @param value The value of defaultAddress. (Nullable) + */ + protected void registerInlineDefaultAddress(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDefaultAddress(), COL_DEFAULT_ADDRESS, J_DefaultAddress, UJ_defaultAddress); + } + + abstract protected ConditionValue getCValueDefaultAddress(); + + /** Column db name of languageId. */ + protected static final String COL_LANGUAGE_ID = "LANGUAGE_ID"; + + /** Column java name of languageId. */ + protected static final String J_LanguageId = "LanguageId"; + + /** Column uncapitalised java name of languageId. */ + protected static final String UJ_languageId = "languageId"; + + /** + * Set the value of languageId using equal. { = } + * + * @param languageId The value of languageId as equal. + */ + public void setLanguageId_Equal(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_EQUAL, languageId); + } + + /** + * Set the value of languageId using notEqual. { != } + * + * @param languageId The value of languageId as notEqual. + */ + public void setLanguageId_NotEqual(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_NOT_EQUAL, languageId); + } + + /** + * Set the value of languageId using greaterThan. { > } + * + * @param languageId The value of languageId as greaterThan. + */ + public void setLanguageId_GreaterThan(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_GREATER_THAN, languageId); + } + + /** + * Set the value of languageId using lessThan. { < } + * + * @param languageId The value of languageId as lessThan. + */ + public void setLanguageId_LessThan(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_LESS_THAN, languageId); + } + + /** + * Set the value of languageId using greaterEqual. { >= } + * + * @param languageId The value of languageId as greaterEqual. + */ + public void setLanguageId_GreaterEqual(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_GREATER_EQUAL, languageId); + } + + /** + * Set the value of languageId using lessEqual. { <= } + * + * @param languageId The value of languageId as lessEqual. + */ + public void setLanguageId_LessEqual(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_LESS_EQUAL, languageId); + } + + /** + * Set the value of languageId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param languageIdList The value of languageId as inScope. + */ + public void setLanguageId_InScope(java.util.List<java.math.BigDecimal> languageIdList) { + registerLanguageId(ConditionKey.CK_IN_SCOPE, languageIdList); + } + + /** + * Set the value of languageId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param languageIdList The value of languageId as notInScope. + */ + public void setLanguageId_NotInScope(java.util.List<java.math.BigDecimal> languageIdList) { + registerLanguageId(ConditionKey.CK_NOT_IN_SCOPE, languageIdList); + } + + /** + * Set the sub-query of LanguageId_InScopeSubQuery_Language using inScopeSubQuery. + * { in (select xxx.LANGUAGE_ID from LANGUAGE 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 LanguageId_InScopeSubQuery_Language using inScopeSubQuery. (NotNull) + */ + public void setLanguageId_InScopeSubQuery_Language(jp.sf.pal.pompei.cbean.cq.LanguageCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepLanguageId_InScopeSubQuery_Language(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_LANGUAGE_ID, "LANGUAGE_ID", "languageId_InScopeSubQuery_Language"); + } + + abstract public void keepLanguageId_InScopeSubQuery_Language(jp.sf.pal.pompei.cbean.cq.LanguageCQ subQuery); + + /** + * Register condition of languageId. + * + * @param key Condition key. (NotNull) + * @param value The value of languageId. (Nullable) + */ + protected void registerLanguageId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueLanguageId(), COL_LANGUAGE_ID, J_LanguageId, UJ_languageId); + } + + /** + * Register inline condition of languageId. + * + * @param key Condition key. (NotNull) + * @param value The value of languageId. (Nullable) + */ + protected void registerInlineLanguageId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueLanguageId(), COL_LANGUAGE_ID, J_LanguageId, UJ_languageId); + } + + abstract protected ConditionValue getCValueLanguageId(); + + /** Column db name of countryId. */ + protected static final String COL_COUNTRY_ID = "COUNTRY_ID"; + + /** Column java name of countryId. */ + protected static final String J_CountryId = "CountryId"; + + /** Column uncapitalised java name of countryId. */ + protected static final String UJ_countryId = "countryId"; + + /** + * Set the value of countryId using equal. { = } + * + * @param countryId The value of countryId as equal. + */ + public void setCountryId_Equal(java.math.BigDecimal countryId) { + registerCountryId(ConditionKey.CK_EQUAL, countryId); + } + + /** + * Set the value of countryId using notEqual. { != } + * + * @param countryId The value of countryId as notEqual. + */ + public void setCountryId_NotEqual(java.math.BigDecimal countryId) { + registerCountryId(ConditionKey.CK_NOT_EQUAL, countryId); + } + + /** + * Set the value of countryId using greaterThan. { > } + * + * @param countryId The value of countryId as greaterThan. + */ + public void setCountryId_GreaterThan(java.math.BigDecimal countryId) { + registerCountryId(ConditionKey.CK_GREATER_THAN, countryId); + } + + /** + * Set the value of countryId using lessThan. { < } + * + * @param countryId The value of countryId as lessThan. + */ + public void setCountryId_LessThan(java.math.BigDecimal countryId) { + registerCountryId(ConditionKey.CK_LESS_THAN, countryId); + } + + /** + * Set the value of countryId using greaterEqual. { >= } + * + * @param countryId The value of countryId as greaterEqual. + */ + public void setCountryId_GreaterEqual(java.math.BigDecimal countryId) { + registerCountryId(ConditionKey.CK_GREATER_EQUAL, countryId); + } + + /** + * Set the value of countryId using lessEqual. { <= } + * + * @param countryId The value of countryId as lessEqual. + */ + public void setCountryId_LessEqual(java.math.BigDecimal countryId) { + registerCountryId(ConditionKey.CK_LESS_EQUAL, countryId); + } + + /** + * Set the value of countryId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param countryIdList The value of countryId as inScope. + */ + public void setCountryId_InScope(java.util.List<java.math.BigDecimal> countryIdList) { + registerCountryId(ConditionKey.CK_IN_SCOPE, countryIdList); + } + + /** + * Set the value of countryId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param countryIdList The value of countryId as notInScope. + */ + public void setCountryId_NotInScope(java.util.List<java.math.BigDecimal> countryIdList) { + registerCountryId(ConditionKey.CK_NOT_IN_SCOPE, countryIdList); + } + + /** + * Set the sub-query of CountryId_InScopeSubQuery_Country using inScopeSubQuery. + * { in (select xxx.COUNTRY_ID from COUNTRY 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 CountryId_InScopeSubQuery_Country using inScopeSubQuery. (NotNull) + */ + public void setCountryId_InScopeSubQuery_Country(jp.sf.pal.pompei.cbean.cq.CountryCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepCountryId_InScopeSubQuery_Country(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_COUNTRY_ID, "COUNTRY_ID", "countryId_InScopeSubQuery_Country"); + } + + abstract public void keepCountryId_InScopeSubQuery_Country(jp.sf.pal.pompei.cbean.cq.CountryCQ subQuery); + + /** + * Register condition of countryId. + * + * @param key Condition key. (NotNull) + * @param value The value of countryId. (Nullable) + */ + protected void registerCountryId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueCountryId(), COL_COUNTRY_ID, J_CountryId, UJ_countryId); + } + + /** + * Register inline condition of countryId. + * + * @param key Condition key. (NotNull) + * @param value The value of countryId. (Nullable) + */ + protected void registerInlineCountryId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueCountryId(), COL_COUNTRY_ID, J_CountryId, UJ_countryId); + } + + abstract protected ConditionValue getCValueCountryId(); + + /** Column db name of zoneId. */ + protected static final String COL_ZONE_ID = "ZONE_ID"; + + /** Column java name of zoneId. */ + protected static final String J_ZoneId = "ZoneId"; + + /** Column uncapitalised java name of zoneId. */ + protected static final String UJ_zoneId = "zoneId"; + + /** + * Set the value of zoneId using equal. { = } + * + * @param zoneId The value of zoneId as equal. + */ + public void setZoneId_Equal(java.math.BigDecimal zoneId) { + registerZoneId(ConditionKey.CK_EQUAL, zoneId); + } + + /** + * Set the value of zoneId using notEqual. { != } + * + * @param zoneId The value of zoneId as notEqual. + */ + public void setZoneId_NotEqual(java.math.BigDecimal zoneId) { + registerZoneId(ConditionKey.CK_NOT_EQUAL, zoneId); + } + + /** + * Set the value of zoneId using greaterThan. { > } + * + * @param zoneId The value of zoneId as greaterThan. + */ + public void setZoneId_GreaterThan(java.math.BigDecimal zoneId) { + registerZoneId(ConditionKey.CK_GREATER_THAN, zoneId); + } + + /** + * Set the value of zoneId using lessThan. { < } + * + * @param zoneId The value of zoneId as lessThan. + */ + public void setZoneId_LessThan(java.math.BigDecimal zoneId) { + registerZoneId(ConditionKey.CK_LESS_THAN, zoneId); + } + + /** + * Set the value of zoneId using greaterEqual. { >= } + * + * @param zoneId The value of zoneId as greaterEqual. + */ + public void setZoneId_GreaterEqual(java.math.BigDecimal zoneId) { + registerZoneId(ConditionKey.CK_GREATER_EQUAL, zoneId); + } + + /** + * Set the value of zoneId using lessEqual. { <= } + * + * @param zoneId The value of zoneId as lessEqual. + */ + public void setZoneId_LessEqual(java.math.BigDecimal zoneId) { + registerZoneId(ConditionKey.CK_LESS_EQUAL, zoneId); + } + + /** + * Set the value of zoneId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param zoneIdList The value of zoneId as inScope. + */ + public void setZoneId_InScope(java.util.List<java.math.BigDecimal> zoneIdList) { + registerZoneId(ConditionKey.CK_IN_SCOPE, zoneIdList); + } + + /** + * Set the value of zoneId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param zoneIdList The value of zoneId as notInScope. + */ + public void setZoneId_NotInScope(java.util.List<java.math.BigDecimal> zoneIdList) { + registerZoneId(ConditionKey.CK_NOT_IN_SCOPE, zoneIdList); + } + + /** + * Set the sub-query of ZoneId_InScopeSubQuery_Zone using inScopeSubQuery. + * { in (select xxx.ZONE_ID from ZONE 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 ZoneId_InScopeSubQuery_Zone using inScopeSubQuery. (NotNull) + */ + public void setZoneId_InScopeSubQuery_Zone(jp.sf.pal.pompei.cbean.cq.ZoneCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepZoneId_InScopeSubQuery_Zone(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_ZONE_ID, "ZONE_ID", "zoneId_InScopeSubQuery_Zone"); + } + + abstract public void keepZoneId_InScopeSubQuery_Zone(jp.sf.pal.pompei.cbean.cq.ZoneCQ subQuery); + + /** + * Register condition of zoneId. + * + * @param key Condition key. (NotNull) + * @param value The value of zoneId. (Nullable) + */ + protected void registerZoneId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueZoneId(), COL_ZONE_ID, J_ZoneId, UJ_zoneId); + } + + /** + * Register inline condition of zoneId. + * + * @param key Condition key. (NotNull) + * @param value The value of zoneId. (Nullable) + */ + protected void registerInlineZoneId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueZoneId(), COL_ZONE_ID, J_ZoneId, UJ_zoneId); + } + + abstract protected ConditionValue getCValueZoneId(); + + // =================================================================================== + // 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/AbstractBsAddressBookCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsDeliveryMethodCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsDeliveryMethodCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsDeliveryMethodCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,927 @@ +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 DELIVERY_METHOD. + * + * @author DBFlute(AutoGenerator) + */ +public abstract class AbstractBsDeliveryMethodCQ 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 AbstractBsDeliveryMethodCQ(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 "DELIVERY_METHOD"; + } + + // =================================================================================== + // Query + // ===== + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [DELIVERY_METHOD] + // * * * * * * * * */ + + + /** Column db name of deliveryMethodId. */ + protected static final String COL_DELIVERY_METHOD_ID = "DELIVERY_METHOD_ID"; + + /** Column java name of deliveryMethodId. */ + protected static final String J_DeliveryMethodId = "DeliveryMethodId"; + + /** Column uncapitalised java name of deliveryMethodId. */ + protected static final String UJ_deliveryMethodId = "deliveryMethodId"; + + /** + * Set the value of deliveryMethodId using equal. { = } + * + * @param deliveryMethodId The value of deliveryMethodId as equal. + */ + public void setDeliveryMethodId_Equal(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_EQUAL, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using notEqual. { != } + * + * @param deliveryMethodId The value of deliveryMethodId as notEqual. + */ + public void setDeliveryMethodId_NotEqual(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_NOT_EQUAL, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using greaterThan. { > } + * + * @param deliveryMethodId The value of deliveryMethodId as greaterThan. + */ + public void setDeliveryMethodId_GreaterThan(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_GREATER_THAN, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using lessThan. { < } + * + * @param deliveryMethodId The value of deliveryMethodId as lessThan. + */ + public void setDeliveryMethodId_LessThan(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_LESS_THAN, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using greaterEqual. { >= } + * + * @param deliveryMethodId The value of deliveryMethodId as greaterEqual. + */ + public void setDeliveryMethodId_GreaterEqual(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_GREATER_EQUAL, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using lessEqual. { <= } + * + * @param deliveryMethodId The value of deliveryMethodId as lessEqual. + */ + public void setDeliveryMethodId_LessEqual(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_LESS_EQUAL, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryMethodIdList The value of deliveryMethodId as inScope. + */ + public void setDeliveryMethodId_InScope(java.util.List<java.math.BigDecimal> deliveryMethodIdList) { + registerDeliveryMethodId(ConditionKey.CK_IN_SCOPE, deliveryMethodIdList); + } + + /** + * Set the value of deliveryMethodId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryMethodIdList The value of deliveryMethodId as notInScope. + */ + public void setDeliveryMethodId_NotInScope(java.util.List<java.math.BigDecimal> deliveryMethodIdList) { + registerDeliveryMethodId(ConditionKey.CK_NOT_IN_SCOPE, deliveryMethodIdList); + } + + /** + * Set the sub-query of DeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList using inScopeSubQuery. + * { in (select xxx.DELIVERY_METHOD_ID from DELIVERY_METHOD_DESCRIPTION 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 DeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList using inScopeSubQuery. (NotNull) + */ + public void setDeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList(jp.sf.pal.pompei.cbean.cq.DeliveryMethodDescriptionCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepDeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_DELIVERY_METHOD_ID, "DELIVERY_METHOD_ID", "deliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList"); + } + + abstract public void keepDeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList(jp.sf.pal.pompei.cbean.cq.DeliveryMethodDescriptionCQ subQuery); + + /** + * Set the sub-query of DeliveryMethodId_InScopeSubQuery_OrderFormList using inScopeSubQuery. + * { in (select xxx.DELIVERY_METHOD_ID from ORDER_FORM 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 DeliveryMethodId_InScopeSubQuery_OrderFormList using inScopeSubQuery. (NotNull) + */ + public void setDeliveryMethodId_InScopeSubQuery_OrderFormList(jp.sf.pal.pompei.cbean.cq.OrderFormCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepDeliveryMethodId_InScopeSubQuery_OrderFormList(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_DELIVERY_METHOD_ID, "DELIVERY_METHOD_ID", "deliveryMethodId_InScopeSubQuery_OrderFormList"); + } + + abstract public void keepDeliveryMethodId_InScopeSubQuery_OrderFormList(jp.sf.pal.pompei.cbean.cq.OrderFormCQ subQuery); + + /** + * Set the sub-query of DeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList using existsSubQuery. + * { exists (select xxx.DELIVERY_METHOD_ID from DELIVERY_METHOD_DESCRIPTION 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 DeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList using existsSubQuery. (NotNull) + */ + public void setDeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList(jp.sf.pal.pompei.cbean.cq.DeliveryMethodDescriptionCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepDeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList(subQuery);// for saving query-value. + registerExistsSubQuery(subQuery, COL_DELIVERY_METHOD_ID, "DELIVERY_METHOD_ID", "deliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList"); + } + + abstract public void keepDeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList(jp.sf.pal.pompei.cbean.cq.DeliveryMethodDescriptionCQ subQuery); + + /** + * Set the sub-query of DeliveryMethodId_ExistsSubQuery_OrderFormList using existsSubQuery. + * { exists (select xxx.DELIVERY_METHOD_ID from ORDER_FORM 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 DeliveryMethodId_ExistsSubQuery_OrderFormList using existsSubQuery. (NotNull) + */ + public void setDeliveryMethodId_ExistsSubQuery_OrderFormList(jp.sf.pal.pompei.cbean.cq.OrderFormCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepDeliveryMethodId_ExistsSubQuery_OrderFormList(subQuery);// for saving query-value. + registerExistsSubQuery(subQuery, COL_DELIVERY_METHOD_ID, "DELIVERY_METHOD_ID", "deliveryMethodId_ExistsSubQuery_OrderFormList"); + } + + abstract public void keepDeliveryMethodId_ExistsSubQuery_OrderFormList(jp.sf.pal.pompei.cbean.cq.OrderFormCQ subQuery); + + /** + * Register condition of deliveryMethodId. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryMethodId. (Nullable) + */ + protected void registerDeliveryMethodId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDeliveryMethodId(), COL_DELIVERY_METHOD_ID, J_DeliveryMethodId, UJ_deliveryMethodId); + } + + /** + * Register inline condition of deliveryMethodId. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryMethodId. (Nullable) + */ + protected void registerInlineDeliveryMethodId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDeliveryMethodId(), COL_DELIVERY_METHOD_ID, J_DeliveryMethodId, UJ_deliveryMethodId); + } + + abstract protected ConditionValue getCValueDeliveryMethodId(); + + /** 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)); + } + + /** + * 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 objectName. */ + protected static final String COL_OBJECT_NAME = "OBJECT_NAME"; + + /** Column java name of objectName. */ + protected static final String J_ObjectName = "ObjectName"; + + /** Column uncapitalised java name of objectName. */ + protected static final String UJ_objectName = "objectName"; + + /** + * Set the value of objectName using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param objectName The value of objectName as equal. + */ + public void setObjectName_Equal(String objectName) { + registerObjectName(ConditionKey.CK_EQUAL, filterRemoveEmptyString(objectName)); + } + + /** + * Set the value of objectName using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param objectName The value of objectName as notEqual. + */ + public void setObjectName_NotEqual(String objectName) { + registerObjectName(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(objectName)); + } + + /** + * Set the value of objectName using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param objectName The value of objectName as greaterThan. + */ + public void setObjectName_GreaterThan(String objectName) { + registerObjectName(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(objectName)); + } + + /** + * Set the value of objectName using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param objectName The value of objectName as lessThan. + */ + public void setObjectName_LessThan(String objectName) { + registerObjectName(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(objectName)); + } + + /** + * Set the value of objectName using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param objectName The value of objectName as greaterEqual. + */ + public void setObjectName_GreaterEqual(String objectName) { + registerObjectName(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(objectName)); + } + + /** + * Set the value of objectName using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param objectName The value of objectName as lessEqual. + */ + public void setObjectName_LessEqual(String objectName) { + registerObjectName(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(objectName)); + } + + /** + * Set the value of objectName using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param objectName The value of objectName as prefixSearch. + */ + public void setObjectName_PrefixSearch(String objectName) { + registerObjectName(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(objectName)); + } + + /** + * Set the value of objectName 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 objectName The value of objectName as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setObjectName_LikeSearch(String objectName, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(objectName), getCValueObjectName(), COL_OBJECT_NAME, J_ObjectName, UJ_objectName, likeSearchOption); + } + + /** + * Set the value of objectName using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param objectNameList The value of objectName as inScope. + */ + public void setObjectName_InScope(java.util.List<String> objectNameList) { + registerObjectName(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(objectNameList)); + } + + /** + * Set the value of objectName using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param objectName The value of objectName as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setObjectName_InScope(String objectName, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(objectName), getCValueObjectName(), COL_OBJECT_NAME, J_ObjectName, UJ_objectName, inScopeOption); + } + + /** + * Set the value of objectName using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param objectNameList The value of objectName as notInScope. + */ + public void setObjectName_NotInScope(java.util.List<String> objectNameList) { + registerObjectName(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(objectNameList)); + } + + /** + * Register condition of objectName. + * + * @param key Condition key. (NotNull) + * @param value The value of objectName. (Nullable) + */ + protected void registerObjectName(ConditionKey key, Object value) { + registerQuery(key, value, getCValueObjectName(), COL_OBJECT_NAME, J_ObjectName, UJ_objectName); + } + + /** + * Register inline condition of objectName. + * + * @param key Condition key. (NotNull) + * @param value The value of objectName. (Nullable) + */ + protected void registerInlineObjectName(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueObjectName(), COL_OBJECT_NAME, J_ObjectName, UJ_objectName); + } + + abstract protected ConditionValue getCValueObjectName(); + + /** 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(); + + /** Column db name of sortOrder. */ + protected static final String COL_SORT_ORDER = "SORT_ORDER"; + + /** Column java name of sortOrder. */ + protected static final String J_SortOrder = "SortOrder"; + + /** Column uncapitalised java name of sortOrder. */ + protected static final String UJ_sortOrder = "sortOrder"; + + /** + * Set the value of sortOrder using equal. { = } + * + * @param sortOrder The value of sortOrder as equal. + */ + public void setSortOrder_Equal(java.math.BigDecimal sortOrder) { + registerSortOrder(ConditionKey.CK_EQUAL, sortOrder); + } + + /** + * Set the value of sortOrder using notEqual. { != } + * + * @param sortOrder The value of sortOrder as notEqual. + */ + public void setSortOrder_NotEqual(java.math.BigDecimal sortOrder) { + registerSortOrder(ConditionKey.CK_NOT_EQUAL, sortOrder); + } + + /** + * Set the value of sortOrder using greaterThan. { > } + * + * @param sortOrder The value of sortOrder as greaterThan. + */ + public void setSortOrder_GreaterThan(java.math.BigDecimal sortOrder) { + registerSortOrder(ConditionKey.CK_GREATER_THAN, sortOrder); + } + + /** + * Set the value of sortOrder using lessThan. { < } + * + * @param sortOrder The value of sortOrder as lessThan. + */ + public void setSortOrder_LessThan(java.math.BigDecimal sortOrder) { + registerSortOrder(ConditionKey.CK_LESS_THAN, sortOrder); + } + + /** + * Set the value of sortOrder using greaterEqual. { >= } + * + * @param sortOrder The value of sortOrder as greaterEqual. + */ + public void setSortOrder_GreaterEqual(java.math.BigDecimal sortOrder) { + registerSortOrder(ConditionKey.CK_GREATER_EQUAL, sortOrder); + } + + /** + * Set the value of sortOrder using lessEqual. { <= } + * + * @param sortOrder The value of sortOrder as lessEqual. + */ + public void setSortOrder_LessEqual(java.math.BigDecimal sortOrder) { + registerSortOrder(ConditionKey.CK_LESS_EQUAL, sortOrder); + } + + /** + * Set the value of sortOrder using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param sortOrderList The value of sortOrder as inScope. + */ + public void setSortOrder_InScope(java.util.List<java.math.BigDecimal> sortOrderList) { + registerSortOrder(ConditionKey.CK_IN_SCOPE, sortOrderList); + } + + /** + * Set the value of sortOrder using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param sortOrderList The value of sortOrder as notInScope. + */ + public void setSortOrder_NotInScope(java.util.List<java.math.BigDecimal> sortOrderList) { + registerSortOrder(ConditionKey.CK_NOT_IN_SCOPE, sortOrderList); + } + + /** + * Register condition of sortOrder. + * + * @param key Condition key. (NotNull) + * @param value The value of sortOrder. (Nullable) + */ + protected void registerSortOrder(ConditionKey key, Object value) { + registerQuery(key, value, getCValueSortOrder(), COL_SORT_ORDER, J_SortOrder, UJ_sortOrder); + } + + /** + * Register inline condition of sortOrder. + * + * @param key Condition key. (NotNull) + * @param value The value of sortOrder. (Nullable) + */ + protected void registerInlineSortOrder(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueSortOrder(), COL_SORT_ORDER, J_SortOrder, UJ_sortOrder); + } + + abstract protected ConditionValue getCValueSortOrder(); + + /** Column db name of dateAdded. */ + protected static final String COL_DATE_ADDED = "DATE_ADDED"; + + /** Column java name of dateAdded. */ + protected static final String J_DateAdded = "DateAdded"; + + /** Column uncapitalised java name of dateAdded. */ + protected static final String UJ_dateAdded = "dateAdded"; + + /** + * Set the value of dateAdded using equal. { = } + * + * @param dateAdded The value of dateAdded as equal. + */ + public void setDateAdded_Equal(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_EQUAL, dateAdded); + } + + /** + * Set the value of dateAdded using notEqual. { != } + * + * @param dateAdded The value of dateAdded as notEqual. + */ + public void setDateAdded_NotEqual(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_NOT_EQUAL, dateAdded); + } + + /** + * Set the value of dateAdded using greaterThan. { > } + * + * @param dateAdded The value of dateAdded as greaterThan. + */ + public void setDateAdded_GreaterThan(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_GREATER_THAN, dateAdded); + } + + /** + * Set the value of dateAdded using lessThan. { < } + * + * @param dateAdded The value of dateAdded as lessThan. + */ + public void setDateAdded_LessThan(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_LESS_THAN, dateAdded); + } + + /** + * Set the value of dateAdded using greaterEqual. { >= } + * + * @param dateAdded The value of dateAdded as greaterEqual. + */ + public void setDateAdded_GreaterEqual(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_GREATER_EQUAL, dateAdded); + } + + /** + * Set the value of dateAdded using lessEqual. { <= } + * + * @param dateAdded The value of dateAdded as lessEqual. + */ + public void setDateAdded_LessEqual(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_LESS_EQUAL, dateAdded); + } + + /** + * Set the value of dateAdded using from-to. { $fromDate <= COLUMN_NAME <= $toDate } + * + * @param fromDate The from-date of dateAdded. (Nullable) + * @param toDate The to-date of dateAdded. (Nullable) + * @param fromToOption The option of from-to. (NotNull) + */ + public void setDateAdded_FromTo(java.sql.Timestamp fromDate, java.sql.Timestamp toDate, jp.sf.pal.pompei.allcommon.cbean.coption.FromToOption fromToOption) { + registerFromToQuery(fromDate, toDate, getCValueDateAdded(), COL_DATE_ADDED, J_DateAdded, UJ_dateAdded, fromToOption); + } + + /** + * Register condition of dateAdded. + * + * @param key Condition key. (NotNull) + * @param value The value of dateAdded. (Nullable) + */ + protected void registerDateAdded(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDateAdded(), COL_DATE_ADDED, J_DateAdded, UJ_dateAdded); + } + + /** + * Register inline condition of dateAdded. + * + * @param key Condition key. (NotNull) + * @param value The value of dateAdded. (Nullable) + */ + protected void registerInlineDateAdded(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDateAdded(), COL_DATE_ADDED, J_DateAdded, UJ_dateAdded); + } + + abstract protected ConditionValue getCValueDateAdded(); + + /** Column db name of lastModified. */ + protected static final String COL_LAST_MODIFIED = "LAST_MODIFIED"; + + /** Column java name of lastModified. */ + protected static final String J_LastModified = "LastModified"; + + /** Column uncapitalised java name of lastModified. */ + protected static final String UJ_lastModified = "lastModified"; + + /** + * Set the value of lastModified using equal. { = } + * + * @param lastModified The value of lastModified as equal. + */ + public void setLastModified_Equal(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_EQUAL, lastModified); + } + + /** + * Set the value of lastModified using notEqual. { != } + * + * @param lastModified The value of lastModified as notEqual. + */ + public void setLastModified_NotEqual(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_NOT_EQUAL, lastModified); + } + + /** + * Set the value of lastModified using greaterThan. { > } + * + * @param lastModified The value of lastModified as greaterThan. + */ + public void setLastModified_GreaterThan(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_GREATER_THAN, lastModified); + } + + /** + * Set the value of lastModified using lessThan. { < } + * + * @param lastModified The value of lastModified as lessThan. + */ + public void setLastModified_LessThan(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_LESS_THAN, lastModified); + } + + /** + * Set the value of lastModified using greaterEqual. { >= } + * + * @param lastModified The value of lastModified as greaterEqual. + */ + public void setLastModified_GreaterEqual(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_GREATER_EQUAL, lastModified); + } + + /** + * Set the value of lastModified using lessEqual. { <= } + * + * @param lastModified The value of lastModified as lessEqual. + */ + public void setLastModified_LessEqual(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_LESS_EQUAL, lastModified); + } + + /** + * Set the value of lastModified using from-to. { $fromDate <= COLUMN_NAME <= $toDate } + * + * @param fromDate The from-date of lastModified. (Nullable) + * @param toDate The to-date of lastModified. (Nullable) + * @param fromToOption The option of from-to. (NotNull) + */ + public void setLastModified_FromTo(java.sql.Timestamp fromDate, java.sql.Timestamp toDate, jp.sf.pal.pompei.allcommon.cbean.coption.FromToOption fromToOption) { + registerFromToQuery(fromDate, toDate, getCValueLastModified(), COL_LAST_MODIFIED, J_LastModified, UJ_lastModified, fromToOption); + } + + /** + * Register condition of lastModified. + * + * @param key Condition key. (NotNull) + * @param value The value of lastModified. (Nullable) + */ + protected void registerLastModified(ConditionKey key, Object value) { + registerQuery(key, value, getCValueLastModified(), COL_LAST_MODIFIED, J_LastModified, UJ_lastModified); + } + + /** + * Register inline condition of lastModified. + * + * @param key Condition key. (NotNull) + * @param value The value of lastModified. (Nullable) + */ + protected void registerInlineLastModified(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueLastModified(), COL_LAST_MODIFIED, J_LastModified, UJ_lastModified); + } + + abstract protected ConditionValue getCValueLastModified(); + + // =================================================================================== + // 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/AbstractBsDeliveryMethodCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsDeliveryMethodDescriptionCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsDeliveryMethodDescriptionCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsDeliveryMethodDescriptionCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,610 @@ +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 DELIVERY_METHOD_DESCRIPTION. + * + * @author DBFlute(AutoGenerator) + */ +public abstract class AbstractBsDeliveryMethodDescriptionCQ 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 AbstractBsDeliveryMethodDescriptionCQ(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 "DELIVERY_METHOD_DESCRIPTION"; + } + + // =================================================================================== + // Query + // ===== + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [DELIVERY_METHOD_DESCRIPTION] + // * * * * * * * * */ + + + /** Column db name of deliveryMethodId. */ + protected static final String COL_DELIVERY_METHOD_ID = "DELIVERY_METHOD_ID"; + + /** Column java name of deliveryMethodId. */ + protected static final String J_DeliveryMethodId = "DeliveryMethodId"; + + /** Column uncapitalised java name of deliveryMethodId. */ + protected static final String UJ_deliveryMethodId = "deliveryMethodId"; + + /** + * Set the value of deliveryMethodId using equal. { = } + * + * @param deliveryMethodId The value of deliveryMethodId as equal. + */ + public void setDeliveryMethodId_Equal(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_EQUAL, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using notEqual. { != } + * + * @param deliveryMethodId The value of deliveryMethodId as notEqual. + */ + public void setDeliveryMethodId_NotEqual(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_NOT_EQUAL, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using greaterThan. { > } + * + * @param deliveryMethodId The value of deliveryMethodId as greaterThan. + */ + public void setDeliveryMethodId_GreaterThan(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_GREATER_THAN, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using lessThan. { < } + * + * @param deliveryMethodId The value of deliveryMethodId as lessThan. + */ + public void setDeliveryMethodId_LessThan(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_LESS_THAN, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using greaterEqual. { >= } + * + * @param deliveryMethodId The value of deliveryMethodId as greaterEqual. + */ + public void setDeliveryMethodId_GreaterEqual(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_GREATER_EQUAL, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using lessEqual. { <= } + * + * @param deliveryMethodId The value of deliveryMethodId as lessEqual. + */ + public void setDeliveryMethodId_LessEqual(java.math.BigDecimal deliveryMethodId) { + registerDeliveryMethodId(ConditionKey.CK_LESS_EQUAL, deliveryMethodId); + } + + /** + * Set the value of deliveryMethodId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryMethodIdList The value of deliveryMethodId as inScope. + */ + public void setDeliveryMethodId_InScope(java.util.List<java.math.BigDecimal> deliveryMethodIdList) { + registerDeliveryMethodId(ConditionKey.CK_IN_SCOPE, deliveryMethodIdList); + } + + /** + * Set the value of deliveryMethodId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryMethodIdList The value of deliveryMethodId as notInScope. + */ + public void setDeliveryMethodId_NotInScope(java.util.List<java.math.BigDecimal> deliveryMethodIdList) { + registerDeliveryMethodId(ConditionKey.CK_NOT_IN_SCOPE, deliveryMethodIdList); + } + + /** + * Set the sub-query of DeliveryMethodId_InScopeSubQuery_DeliveryMethod using inScopeSubQuery. + * { in (select xxx.DELIVERY_METHOD_ID from DELIVERY_METHOD 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 DeliveryMethodId_InScopeSubQuery_DeliveryMethod using inScopeSubQuery. (NotNull) + */ + public void setDeliveryMethodId_InScopeSubQuery_DeliveryMethod(jp.sf.pal.pompei.cbean.cq.DeliveryMethodCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepDeliveryMethodId_InScopeSubQuery_DeliveryMethod(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_DELIVERY_METHOD_ID, "DELIVERY_METHOD_ID", "deliveryMethodId_InScopeSubQuery_DeliveryMethod"); + } + + abstract public void keepDeliveryMethodId_InScopeSubQuery_DeliveryMethod(jp.sf.pal.pompei.cbean.cq.DeliveryMethodCQ subQuery); + + /** + * Register condition of deliveryMethodId. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryMethodId. (Nullable) + */ + protected void registerDeliveryMethodId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDeliveryMethodId(), COL_DELIVERY_METHOD_ID, J_DeliveryMethodId, UJ_deliveryMethodId); + } + + /** + * Register inline condition of deliveryMethodId. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryMethodId. (Nullable) + */ + protected void registerInlineDeliveryMethodId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDeliveryMethodId(), COL_DELIVERY_METHOD_ID, J_DeliveryMethodId, UJ_deliveryMethodId); + } + + abstract protected ConditionValue getCValueDeliveryMethodId(); + + /** Column db name of languageId. */ + protected static final String COL_LANGUAGE_ID = "LANGUAGE_ID"; + + /** Column java name of languageId. */ + protected static final String J_LanguageId = "LanguageId"; + + /** Column uncapitalised java name of languageId. */ + protected static final String UJ_languageId = "languageId"; + + /** + * Set the value of languageId using equal. { = } + * + * @param languageId The value of languageId as equal. + */ + public void setLanguageId_Equal(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_EQUAL, languageId); + } + + /** + * Set the value of languageId using notEqual. { != } + * + * @param languageId The value of languageId as notEqual. + */ + public void setLanguageId_NotEqual(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_NOT_EQUAL, languageId); + } + + /** + * Set the value of languageId using greaterThan. { > } + * + * @param languageId The value of languageId as greaterThan. + */ + public void setLanguageId_GreaterThan(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_GREATER_THAN, languageId); + } + + /** + * Set the value of languageId using lessThan. { < } + * + * @param languageId The value of languageId as lessThan. + */ + public void setLanguageId_LessThan(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_LESS_THAN, languageId); + } + + /** + * Set the value of languageId using greaterEqual. { >= } + * + * @param languageId The value of languageId as greaterEqual. + */ + public void setLanguageId_GreaterEqual(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_GREATER_EQUAL, languageId); + } + + /** + * Set the value of languageId using lessEqual. { <= } + * + * @param languageId The value of languageId as lessEqual. + */ + public void setLanguageId_LessEqual(java.math.BigDecimal languageId) { + registerLanguageId(ConditionKey.CK_LESS_EQUAL, languageId); + } + + /** + * Set the value of languageId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param languageIdList The value of languageId as inScope. + */ + public void setLanguageId_InScope(java.util.List<java.math.BigDecimal> languageIdList) { + registerLanguageId(ConditionKey.CK_IN_SCOPE, languageIdList); + } + + /** + * Set the value of languageId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param languageIdList The value of languageId as notInScope. + */ + public void setLanguageId_NotInScope(java.util.List<java.math.BigDecimal> languageIdList) { + registerLanguageId(ConditionKey.CK_NOT_IN_SCOPE, languageIdList); + } + + /** + * Set the sub-query of LanguageId_InScopeSubQuery_Language using inScopeSubQuery. + * { in (select xxx.LANGUAGE_ID from LANGUAGE 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 LanguageId_InScopeSubQuery_Language using inScopeSubQuery. (NotNull) + */ + public void setLanguageId_InScopeSubQuery_Language(jp.sf.pal.pompei.cbean.cq.LanguageCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepLanguageId_InScopeSubQuery_Language(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_LANGUAGE_ID, "LANGUAGE_ID", "languageId_InScopeSubQuery_Language"); + } + + abstract public void keepLanguageId_InScopeSubQuery_Language(jp.sf.pal.pompei.cbean.cq.LanguageCQ subQuery); + + /** + * Register condition of languageId. + * + * @param key Condition key. (NotNull) + * @param value The value of languageId. (Nullable) + */ + protected void registerLanguageId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueLanguageId(), COL_LANGUAGE_ID, J_LanguageId, UJ_languageId); + } + + /** + * Register inline condition of languageId. + * + * @param key Condition key. (NotNull) + * @param value The value of languageId. (Nullable) + */ + protected void registerInlineLanguageId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueLanguageId(), COL_LANGUAGE_ID, J_LanguageId, UJ_languageId); + } + + abstract protected ConditionValue getCValueLanguageId(); + + /** Column db name of name. */ + protected static final String COL_NAME = "NAME"; + + /** Column java name of name. */ + protected static final String J_Name = "Name"; + + /** Column uncapitalised java name of name. */ + protected static final String UJ_name = "name"; + + /** + * Set the value of name using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as equal. + */ + public void setName_Equal(String name) { + registerName(ConditionKey.CK_EQUAL, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as notEqual. + */ + public void setName_NotEqual(String name) { + registerName(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as greaterThan. + */ + public void setName_GreaterThan(String name) { + registerName(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as lessThan. + */ + public void setName_LessThan(String name) { + registerName(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as greaterEqual. + */ + public void setName_GreaterEqual(String name) { + registerName(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as lessEqual. + */ + public void setName_LessEqual(String name) { + registerName(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as prefixSearch. + */ + public void setName_PrefixSearch(String name) { + registerName(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name 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 name The value of name as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setName_LikeSearch(String name, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(name), getCValueName(), COL_NAME, J_Name, UJ_name, likeSearchOption); + } + + /** + * Set the value of name using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param nameList The value of name as inScope. + */ + public void setName_InScope(java.util.List<String> nameList) { + registerName(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(nameList)); + } + + /** + * Set the value of name using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param name The value of name as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setName_InScope(String name, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(name), getCValueName(), COL_NAME, J_Name, UJ_name, inScopeOption); + } + + /** + * Set the value of name using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param nameList The value of name as notInScope. + */ + public void setName_NotInScope(java.util.List<String> nameList) { + registerName(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(nameList)); + } + + /** + * Register condition of name. + * + * @param key Condition key. (NotNull) + * @param value The value of name. (Nullable) + */ + protected void registerName(ConditionKey key, Object value) { + registerQuery(key, value, getCValueName(), COL_NAME, J_Name, UJ_name); + } + + /** + * Register inline condition of name. + * + * @param key Condition key. (NotNull) + * @param value The value of name. (Nullable) + */ + protected void registerInlineName(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueName(), COL_NAME, J_Name, UJ_name); + } + + abstract protected ConditionValue getCValueName(); + + /** Column db name of description. */ + protected static final String COL_DESCRIPTION = "DESCRIPTION"; + + /** Column java name of description. */ + protected static final String J_Description = "Description"; + + /** Column uncapitalised java name of description. */ + protected static final String UJ_description = "description"; + + /** + * Set the value of description using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as equal. + */ + public void setDescription_Equal(String description) { + registerDescription(ConditionKey.CK_EQUAL, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as notEqual. + */ + public void setDescription_NotEqual(String description) { + registerDescription(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as greaterThan. + */ + public void setDescription_GreaterThan(String description) { + registerDescription(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as lessThan. + */ + public void setDescription_LessThan(String description) { + registerDescription(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as greaterEqual. + */ + public void setDescription_GreaterEqual(String description) { + registerDescription(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as lessEqual. + */ + public void setDescription_LessEqual(String description) { + registerDescription(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as prefixSearch. + */ + public void setDescription_PrefixSearch(String description) { + registerDescription(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description 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 description The value of description as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setDescription_LikeSearch(String description, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(description), getCValueDescription(), COL_DESCRIPTION, J_Description, UJ_description, likeSearchOption); + } + + /** + * Set the value of description using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param descriptionList The value of description as inScope. + */ + public void setDescription_InScope(java.util.List<String> descriptionList) { + registerDescription(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(descriptionList)); + } + + /** + * Set the value of description using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param description The value of description as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setDescription_InScope(String description, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(description), getCValueDescription(), COL_DESCRIPTION, J_Description, UJ_description, inScopeOption); + } + + /** + * Set the value of description using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param descriptionList The value of description as notInScope. + */ + public void setDescription_NotInScope(java.util.List<String> descriptionList) { + registerDescription(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(descriptionList)); + } + + /** + * Set the value of description using isNull. { is null } + */ + public void setDescription_IsNull() { + registerDescription(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of description using isNotNull. { is not null } + */ + public void setDescription_IsNotNull() { + registerDescription(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of description. + * + * @param key Condition key. (NotNull) + * @param value The value of description. (Nullable) + */ + protected void registerDescription(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDescription(), COL_DESCRIPTION, J_Description, UJ_description); + } + + /** + * Register inline condition of description. + * + * @param key Condition key. (NotNull) + * @param value The value of description. (Nullable) + */ + protected void registerInlineDescription(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDescription(), COL_DESCRIPTION, J_Description, UJ_description); + } + + abstract protected ConditionValue getCValueDescription(); + + // =================================================================================== + // 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/AbstractBsDeliveryMethodDescriptionCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsTaxClassCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsTaxClassCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsTaxClassCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,731 @@ +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 TAX_CLASS. + * + * @author DBFlute(AutoGenerator) + */ +public abstract class AbstractBsTaxClassCQ 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 AbstractBsTaxClassCQ(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 "TAX_CLASS"; + } + + // =================================================================================== + // Query + // ===== + + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [TAX_CLASS] + // * * * * * * * * */ + + + /** Column db name of taxClassId. */ + protected static final String COL_TAX_CLASS_ID = "TAX_CLASS_ID"; + + /** Column java name of taxClassId. */ + protected static final String J_TaxClassId = "TaxClassId"; + + /** Column uncapitalised java name of taxClassId. */ + protected static final String UJ_taxClassId = "taxClassId"; + + /** + * Set the value of taxClassId using equal. { = } + * + * @param taxClassId The value of taxClassId as equal. + */ + public void setTaxClassId_Equal(java.math.BigDecimal taxClassId) { + registerTaxClassId(ConditionKey.CK_EQUAL, taxClassId); + } + + /** + * Set the value of taxClassId using notEqual. { != } + * + * @param taxClassId The value of taxClassId as notEqual. + */ + public void setTaxClassId_NotEqual(java.math.BigDecimal taxClassId) { + registerTaxClassId(ConditionKey.CK_NOT_EQUAL, taxClassId); + } + + /** + * Set the value of taxClassId using greaterThan. { > } + * + * @param taxClassId The value of taxClassId as greaterThan. + */ + public void setTaxClassId_GreaterThan(java.math.BigDecimal taxClassId) { + registerTaxClassId(ConditionKey.CK_GREATER_THAN, taxClassId); + } + + /** + * Set the value of taxClassId using lessThan. { < } + * + * @param taxClassId The value of taxClassId as lessThan. + */ + public void setTaxClassId_LessThan(java.math.BigDecimal taxClassId) { + registerTaxClassId(ConditionKey.CK_LESS_THAN, taxClassId); + } + + /** + * Set the value of taxClassId using greaterEqual. { >= } + * + * @param taxClassId The value of taxClassId as greaterEqual. + */ + public void setTaxClassId_GreaterEqual(java.math.BigDecimal taxClassId) { + registerTaxClassId(ConditionKey.CK_GREATER_EQUAL, taxClassId); + } + + /** + * Set the value of taxClassId using lessEqual. { <= } + * + * @param taxClassId The value of taxClassId as lessEqual. + */ + public void setTaxClassId_LessEqual(java.math.BigDecimal taxClassId) { + registerTaxClassId(ConditionKey.CK_LESS_EQUAL, taxClassId); + } + + /** + * Set the value of taxClassId using inScope. { in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param taxClassIdList The value of taxClassId as inScope. + */ + public void setTaxClassId_InScope(java.util.List<java.math.BigDecimal> taxClassIdList) { + registerTaxClassId(ConditionKey.CK_IN_SCOPE, taxClassIdList); + } + + /** + * Set the value of taxClassId using notInScope. { not in (a, b) } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param taxClassIdList The value of taxClassId as notInScope. + */ + public void setTaxClassId_NotInScope(java.util.List<java.math.BigDecimal> taxClassIdList) { + registerTaxClassId(ConditionKey.CK_NOT_IN_SCOPE, taxClassIdList); + } + + /** + * Set the sub-query of TaxClassId_InScopeSubQuery_ProductList using inScopeSubQuery. + * { in (select xxx.TAX_CLASS_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 TaxClassId_InScopeSubQuery_ProductList using inScopeSubQuery. (NotNull) + */ + public void setTaxClassId_InScopeSubQuery_ProductList(jp.sf.pal.pompei.cbean.cq.ProductCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepTaxClassId_InScopeSubQuery_ProductList(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_TAX_CLASS_ID, "TAX_CLASS_ID", "taxClassId_InScopeSubQuery_ProductList"); + } + + abstract public void keepTaxClassId_InScopeSubQuery_ProductList(jp.sf.pal.pompei.cbean.cq.ProductCQ subQuery); + + /** + * Set the sub-query of TaxClassId_InScopeSubQuery_TaxRateList using inScopeSubQuery. + * { in (select xxx.TAX_CLASS_ID from TAX_RATE 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 TaxClassId_InScopeSubQuery_TaxRateList using inScopeSubQuery. (NotNull) + */ + public void setTaxClassId_InScopeSubQuery_TaxRateList(jp.sf.pal.pompei.cbean.cq.TaxRateCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepTaxClassId_InScopeSubQuery_TaxRateList(subQuery);// for saving query-value. + registerInScopeSubQuery(subQuery, COL_TAX_CLASS_ID, "TAX_CLASS_ID", "taxClassId_InScopeSubQuery_TaxRateList"); + } + + abstract public void keepTaxClassId_InScopeSubQuery_TaxRateList(jp.sf.pal.pompei.cbean.cq.TaxRateCQ subQuery); + + /** + * Set the sub-query of TaxClassId_ExistsSubQuery_ProductList using existsSubQuery. + * { exists (select xxx.TAX_CLASS_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 TaxClassId_ExistsSubQuery_ProductList using existsSubQuery. (NotNull) + */ + public void setTaxClassId_ExistsSubQuery_ProductList(jp.sf.pal.pompei.cbean.cq.ProductCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepTaxClassId_ExistsSubQuery_ProductList(subQuery);// for saving query-value. + registerExistsSubQuery(subQuery, COL_TAX_CLASS_ID, "TAX_CLASS_ID", "taxClassId_ExistsSubQuery_ProductList"); + } + + abstract public void keepTaxClassId_ExistsSubQuery_ProductList(jp.sf.pal.pompei.cbean.cq.ProductCQ subQuery); + + /** + * Set the sub-query of TaxClassId_ExistsSubQuery_TaxRateList using existsSubQuery. + * { exists (select xxx.TAX_CLASS_ID from TAX_RATE 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 TaxClassId_ExistsSubQuery_TaxRateList using existsSubQuery. (NotNull) + */ + public void setTaxClassId_ExistsSubQuery_TaxRateList(jp.sf.pal.pompei.cbean.cq.TaxRateCQ subQuery) { + assertObjectNotNull("subQuery", subQuery); + keepTaxClassId_ExistsSubQuery_TaxRateList(subQuery);// for saving query-value. + registerExistsSubQuery(subQuery, COL_TAX_CLASS_ID, "TAX_CLASS_ID", "taxClassId_ExistsSubQuery_TaxRateList"); + } + + abstract public void keepTaxClassId_ExistsSubQuery_TaxRateList(jp.sf.pal.pompei.cbean.cq.TaxRateCQ subQuery); + + /** + * Register condition of taxClassId. + * + * @param key Condition key. (NotNull) + * @param value The value of taxClassId. (Nullable) + */ + protected void registerTaxClassId(ConditionKey key, Object value) { + registerQuery(key, value, getCValueTaxClassId(), COL_TAX_CLASS_ID, J_TaxClassId, UJ_taxClassId); + } + + /** + * Register inline condition of taxClassId. + * + * @param key Condition key. (NotNull) + * @param value The value of taxClassId. (Nullable) + */ + protected void registerInlineTaxClassId(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueTaxClassId(), COL_TAX_CLASS_ID, J_TaxClassId, UJ_taxClassId); + } + + abstract protected ConditionValue getCValueTaxClassId(); + + /** Column db name of name. */ + protected static final String COL_NAME = "NAME"; + + /** Column java name of name. */ + protected static final String J_Name = "Name"; + + /** Column uncapitalised java name of name. */ + protected static final String UJ_name = "name"; + + /** + * Set the value of name using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as equal. + */ + public void setName_Equal(String name) { + registerName(ConditionKey.CK_EQUAL, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as notEqual. + */ + public void setName_NotEqual(String name) { + registerName(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as greaterThan. + */ + public void setName_GreaterThan(String name) { + registerName(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as lessThan. + */ + public void setName_LessThan(String name) { + registerName(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as greaterEqual. + */ + public void setName_GreaterEqual(String name) { + registerName(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as lessEqual. + */ + public void setName_LessEqual(String name) { + registerName(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param name The value of name as prefixSearch. + */ + public void setName_PrefixSearch(String name) { + registerName(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(name)); + } + + /** + * Set the value of name 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 name The value of name as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setName_LikeSearch(String name, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(name), getCValueName(), COL_NAME, J_Name, UJ_name, likeSearchOption); + } + + /** + * Set the value of name using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param nameList The value of name as inScope. + */ + public void setName_InScope(java.util.List<String> nameList) { + registerName(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(nameList)); + } + + /** + * Set the value of name using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param name The value of name as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setName_InScope(String name, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(name), getCValueName(), COL_NAME, J_Name, UJ_name, inScopeOption); + } + + /** + * Set the value of name using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param nameList The value of name as notInScope. + */ + public void setName_NotInScope(java.util.List<String> nameList) { + registerName(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(nameList)); + } + + /** + * Register condition of name. + * + * @param key Condition key. (NotNull) + * @param value The value of name. (Nullable) + */ + protected void registerName(ConditionKey key, Object value) { + registerQuery(key, value, getCValueName(), COL_NAME, J_Name, UJ_name); + } + + /** + * Register inline condition of name. + * + * @param key Condition key. (NotNull) + * @param value The value of name. (Nullable) + */ + protected void registerInlineName(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueName(), COL_NAME, J_Name, UJ_name); + } + + abstract protected ConditionValue getCValueName(); + + /** Column db name of description. */ + protected static final String COL_DESCRIPTION = "DESCRIPTION"; + + /** Column java name of description. */ + protected static final String J_Description = "Description"; + + /** Column uncapitalised java name of description. */ + protected static final String UJ_description = "description"; + + /** + * Set the value of description using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as equal. + */ + public void setDescription_Equal(String description) { + registerDescription(ConditionKey.CK_EQUAL, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as notEqual. + */ + public void setDescription_NotEqual(String description) { + registerDescription(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as greaterThan. + */ + public void setDescription_GreaterThan(String description) { + registerDescription(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as lessThan. + */ + public void setDescription_LessThan(String description) { + registerDescription(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as greaterEqual. + */ + public void setDescription_GreaterEqual(String description) { + registerDescription(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as lessEqual. + */ + public void setDescription_LessEqual(String description) { + registerDescription(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param description The value of description as prefixSearch. + */ + public void setDescription_PrefixSearch(String description) { + registerDescription(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(description)); + } + + /** + * Set the value of description 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 description The value of description as likeSearch. + * @param likeSearchOption The option of like-search. (NotNull) + */ + public void setDescription_LikeSearch(String description, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(description), getCValueDescription(), COL_DESCRIPTION, J_Description, UJ_description, likeSearchOption); + } + + /** + * Set the value of description using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param descriptionList The value of description as inScope. + */ + public void setDescription_InScope(java.util.List<String> descriptionList) { + registerDescription(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(descriptionList)); + } + + /** + * Set the value of description using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param description The value of description as inScope. + * @param inScopeOption The option of in-scope. (NotNull) + */ + public void setDescription_InScope(String description, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption inScopeOption) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(description), getCValueDescription(), COL_DESCRIPTION, J_Description, UJ_description, inScopeOption); + } + + /** + * Set the value of description using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param descriptionList The value of description as notInScope. + */ + public void setDescription_NotInScope(java.util.List<String> descriptionList) { + registerDescription(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(descriptionList)); + } + + /** + * Register condition of description. + * + * @param key Condition key. (NotNull) + * @param value The value of description. (Nullable) + */ + protected void registerDescription(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDescription(), COL_DESCRIPTION, J_Description, UJ_description); + } + + /** + * Register inline condition of description. + * + * @param key Condition key. (NotNull) + * @param value The value of description. (Nullable) + */ + protected void registerInlineDescription(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDescription(), COL_DESCRIPTION, J_Description, UJ_description); + } + + abstract protected ConditionValue getCValueDescription(); + + /** Column db name of lastModified. */ + protected static final String COL_LAST_MODIFIED = "LAST_MODIFIED"; + + /** Column java name of lastModified. */ + protected static final String J_LastModified = "LastModified"; + + /** Column uncapitalised java name of lastModified. */ + protected static final String UJ_lastModified = "lastModified"; + + /** + * Set the value of lastModified using equal. { = } + * + * @param lastModified The value of lastModified as equal. + */ + public void setLastModified_Equal(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_EQUAL, lastModified); + } + + /** + * Set the value of lastModified using notEqual. { != } + * + * @param lastModified The value of lastModified as notEqual. + */ + public void setLastModified_NotEqual(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_NOT_EQUAL, lastModified); + } + + /** + * Set the value of lastModified using greaterThan. { > } + * + * @param lastModified The value of lastModified as greaterThan. + */ + public void setLastModified_GreaterThan(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_GREATER_THAN, lastModified); + } + + /** + * Set the value of lastModified using lessThan. { < } + * + * @param lastModified The value of lastModified as lessThan. + */ + public void setLastModified_LessThan(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_LESS_THAN, lastModified); + } + + /** + * Set the value of lastModified using greaterEqual. { >= } + * + * @param lastModified The value of lastModified as greaterEqual. + */ + public void setLastModified_GreaterEqual(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_GREATER_EQUAL, lastModified); + } + + /** + * Set the value of lastModified using lessEqual. { <= } + * + * @param lastModified The value of lastModified as lessEqual. + */ + public void setLastModified_LessEqual(java.sql.Timestamp lastModified) { + registerLastModified(ConditionKey.CK_LESS_EQUAL, lastModified); + } + + /** + * Set the value of lastModified using from-to. { $fromDate <= COLUMN_NAME <= $toDate } + * + * @param fromDate The from-date of lastModified. (Nullable) + * @param toDate The to-date of lastModified. (Nullable) + * @param fromToOption The option of from-to. (NotNull) + */ + public void setLastModified_FromTo(java.sql.Timestamp fromDate, java.sql.Timestamp toDate, jp.sf.pal.pompei.allcommon.cbean.coption.FromToOption fromToOption) { + registerFromToQuery(fromDate, toDate, getCValueLastModified(), COL_LAST_MODIFIED, J_LastModified, UJ_lastModified, fromToOption); + } + + /** + * Set the value of lastModified using isNull. { is null } + */ + public void setLastModified_IsNull() { + registerLastModified(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of lastModified using isNotNull. { is not null } + */ + public void setLastModified_IsNotNull() { + registerLastModified(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of lastModified. + * + * @param key Condition key. (NotNull) + * @param value The value of lastModified. (Nullable) + */ + protected void registerLastModified(ConditionKey key, Object value) { + registerQuery(key, value, getCValueLastModified(), COL_LAST_MODIFIED, J_LastModified, UJ_lastModified); + } + + /** + * Register inline condition of lastModified. + * + * @param key Condition key. (NotNull) + * @param value The value of lastModified. (Nullable) + */ + protected void registerInlineLastModified(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueLastModified(), COL_LAST_MODIFIED, J_LastModified, UJ_lastModified); + } + + abstract protected ConditionValue getCValueLastModified(); + + /** Column db name of dateAdded. */ + protected static final String COL_DATE_ADDED = "DATE_ADDED"; + + /** Column java name of dateAdded. */ + protected static final String J_DateAdded = "DateAdded"; + + /** Column uncapitalised java name of dateAdded. */ + protected static final String UJ_dateAdded = "dateAdded"; + + /** + * Set the value of dateAdded using equal. { = } + * + * @param dateAdded The value of dateAdded as equal. + */ + public void setDateAdded_Equal(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_EQUAL, dateAdded); + } + + /** + * Set the value of dateAdded using notEqual. { != } + * + * @param dateAdded The value of dateAdded as notEqual. + */ + public void setDateAdded_NotEqual(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_NOT_EQUAL, dateAdded); + } + + /** + * Set the value of dateAdded using greaterThan. { > } + * + * @param dateAdded The value of dateAdded as greaterThan. + */ + public void setDateAdded_GreaterThan(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_GREATER_THAN, dateAdded); + } + + /** + * Set the value of dateAdded using lessThan. { < } + * + * @param dateAdded The value of dateAdded as lessThan. + */ + public void setDateAdded_LessThan(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_LESS_THAN, dateAdded); + } + + /** + * Set the value of dateAdded using greaterEqual. { >= } + * + * @param dateAdded The value of dateAdded as greaterEqual. + */ + public void setDateAdded_GreaterEqual(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_GREATER_EQUAL, dateAdded); + } + + /** + * Set the value of dateAdded using lessEqual. { <= } + * + * @param dateAdded The value of dateAdded as lessEqual. + */ + public void setDateAdded_LessEqual(java.sql.Timestamp dateAdded) { + registerDateAdded(ConditionKey.CK_LESS_EQUAL, dateAdded); + } + + /** + * Set the value of dateAdded using from-to. { $fromDate <= COLUMN_NAME <= $toDate } + * + * @param fromDate The from-date of dateAdded. (Nullable) + * @param toDate The to-date of dateAdded. (Nullable) + * @param fromToOption The option of from-to. (NotNull) + */ + public void setDateAdded_FromTo(java.sql.Timestamp fromDate, java.sql.Timestamp toDate, jp.sf.pal.pompei.allcommon.cbean.coption.FromToOption fromToOption) { + registerFromToQuery(fromDate, toDate, getCValueDateAdded(), COL_DATE_ADDED, J_DateAdded, UJ_dateAdded, fromToOption); + } + + /** + * Register condition of dateAdded. + * + * @param key Condition key. (NotNull) + * @param value The value of dateAdded. (Nullable) + */ + protected void registerDateAdded(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDateAdded(), COL_DATE_ADDED, J_DateAdded, UJ_dateAdded); + } + + /** + * Register inline condition of dateAdded. + * + * @param key Condition key. (NotNull) + * @param value The value of dateAdded. (Nullable) + */ + protected void registerInlineDateAdded(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDateAdded(), COL_DATE_ADDED, J_DateAdded, UJ_dateAdded); + } + + abstract protected ConditionValue getCValueDateAdded(); + + // =================================================================================== + // 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/AbstractBsTaxClassCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsAddressBookCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsAddressBookCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsAddressBookCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,1494 @@ +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 ADDRESS_BOOK. + * + * @author DBFlute(AutoGenerator) + */ +public class BsAddressBookCQ extends AbstractBsAddressBookCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding inline query. */ + protected AddressBookCIQ _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 BsAddressBookCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + // =================================================================================== + // Inline + // ====== + /** + * Get inline query. + * + * @return Inline query. (NotNull) + */ + public AddressBookCIQ inline() { + if (_inlineQuery == null) { + _inlineQuery = new AddressBookCIQ(getChildQuery(), getSqlClause(), getAliasName(), getNestLevel(), this); + } + return _inlineQuery; + } + + // =================================================================================== + // Include-as-Mine + // =============== + + /** + * Include select-column of addressBookId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_AddressBookId() { + registerIncludedSelectColumn("AddressBookId", getRealColumnName("ADDRESS_BOOK_ID")); + } + + /** + * Include select-column of addressBookId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_AddressBookId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("ADDRESS_BOOK_ID")); + } + + /** + * Include select-column of customerId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_CustomerId() { + registerIncludedSelectColumn("CustomerId", getRealColumnName("CUSTOMER_ID")); + } + + /** + * Include select-column of customerId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_CustomerId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("CUSTOMER_ID")); + } + + /** + * Include select-column of company as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Company() { + registerIncludedSelectColumn("Company", getRealColumnName("COMPANY")); + } + + /** + * Include select-column of company as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Company(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("COMPANY")); + } + + /** + * Include select-column of department as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Department() { + registerIncludedSelectColumn("Department", getRealColumnName("DEPARTMENT")); + } + + /** + * Include select-column of department as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Department(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DEPARTMENT")); + } + + /** + * Include select-column of firstname as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Firstname() { + registerIncludedSelectColumn("Firstname", getRealColumnName("FIRSTNAME")); + } + + /** + * Include select-column of firstname as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Firstname(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("FIRSTNAME")); + } + + /** + * Include select-column of lastname as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Lastname() { + registerIncludedSelectColumn("Lastname", getRealColumnName("LASTNAME")); + } + + /** + * Include select-column of lastname as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Lastname(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("LASTNAME")); + } + + /** + * Include select-column of streetAddress as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_StreetAddress() { + registerIncludedSelectColumn("StreetAddress", getRealColumnName("STREET_ADDRESS")); + } + + /** + * Include select-column of streetAddress as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_StreetAddress(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("STREET_ADDRESS")); + } + + /** + * Include select-column of suburb as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Suburb() { + registerIncludedSelectColumn("Suburb", getRealColumnName("SUBURB")); + } + + /** + * Include select-column of suburb as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Suburb(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("SUBURB")); + } + + /** + * Include select-column of city as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_City() { + registerIncludedSelectColumn("City", getRealColumnName("CITY")); + } + + /** + * Include select-column of city as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_City(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("CITY")); + } + + /** + * Include select-column of state as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_State() { + registerIncludedSelectColumn("State", getRealColumnName("STATE")); + } + + /** + * Include select-column of state as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_State(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("STATE")); + } + + /** + * Include select-column of postcode as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Postcode() { + registerIncludedSelectColumn("Postcode", getRealColumnName("POSTCODE")); + } + + /** + * Include select-column of postcode as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Postcode(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("POSTCODE")); + } + + /** + * Include select-column of telephone as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Telephone() { + registerIncludedSelectColumn("Telephone", getRealColumnName("TELEPHONE")); + } + + /** + * Include select-column of telephone as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Telephone(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("TELEPHONE")); + } + + /** + * Include select-column of fax as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Fax() { + registerIncludedSelectColumn("Fax", getRealColumnName("FAX")); + } + + /** + * Include select-column of fax as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Fax(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("FAX")); + } + + /** + * Include select-column of cellphone as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Cellphone() { + registerIncludedSelectColumn("Cellphone", getRealColumnName("CELLPHONE")); + } + + /** + * Include select-column of cellphone as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Cellphone(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("CELLPHONE")); + } + + /** + * Include select-column of defaultAddress as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_DefaultAddress() { + registerIncludedSelectColumn("DefaultAddress", getRealColumnName("DEFAULT_ADDRESS")); + } + + /** + * Include select-column of defaultAddress as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_DefaultAddress(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DEFAULT_ADDRESS")); + } + + /** + * Include select-column of languageId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_LanguageId() { + registerIncludedSelectColumn("LanguageId", getRealColumnName("LANGUAGE_ID")); + } + + /** + * Include select-column of languageId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_LanguageId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("LANGUAGE_ID")); + } + + /** + * Include select-column of countryId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_CountryId() { + registerIncludedSelectColumn("CountryId", getRealColumnName("COUNTRY_ID")); + } + + /** + * Include select-column of countryId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_CountryId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("COUNTRY_ID")); + } + + /** + * Include select-column of zoneId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_ZoneId() { + registerIncludedSelectColumn("ZoneId", getRealColumnName("ZONE_ID")); + } + + /** + * Include select-column of zoneId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_ZoneId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("ZONE_ID")); + } + + // =================================================================================== + // Query + // ===== + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [ADDRESS_BOOK] + // * * * * * * * * */ + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ADDRESS_BOOK_ID] + // - - - - - - - - -/ + + /** The attribute of addressBookId. */ + protected ConditionValue _addressBookId; + + /** + * Get the value of addressBookId. + * + * @return The value of addressBookId. + */ + public ConditionValue getAddressBookId() { + if (_addressBookId == null) { + _addressBookId = new ConditionValue(); + } + return _addressBookId; + } + + protected ConditionValue getCValueAddressBookId() { + return getAddressBookId(); + } + + + /** + * Add order-by of addressBookId as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_AddressBookId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ADDRESS_BOOK_ID), null, true);return this; + } + + /** + * Add order-by of addressBookId as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_AddressBookId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ADDRESS_BOOK_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CUSTOMER_ID] + // - - - - - - - - -/ + + /** The attribute of customerId. */ + protected ConditionValue _customerId; + + /** + * Get the value of customerId. + * + * @return The value of customerId. + */ + public ConditionValue getCustomerId() { + if (_customerId == null) { + _customerId = new ConditionValue(); + } + return _customerId; + } + + protected ConditionValue getCValueCustomerId() { + return getCustomerId(); + } + + + /** The sub-query of CustomerId_InScopeSubQuery_Customer using inScopeSubQuery. */ + protected CustomerCQ _customerId_InScopeSubQuery_Customer; + + /** + * Get the sub-query of CustomerId_InScopeSubQuery_Customer using inScopeSubQuery. + * + * @return The sub-query of CustomerId_InScopeSubQuery_Customer using inScopeSubQuery. (Nullable) + */ + public CustomerCQ getCustomerId_InScopeSubQuery_Customer() { + return _customerId_InScopeSubQuery_Customer; + } + + public void keepCustomerId_InScopeSubQuery_Customer(CustomerCQ subQuery) { + _customerId_InScopeSubQuery_Customer = subQuery; + } + + /** + * Add order-by of customerId as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_CustomerId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CUSTOMER_ID), null, true);return this; + } + + /** + * Add order-by of customerId as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_CustomerId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CUSTOMER_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [COMPANY] + // - - - - - - - - -/ + + /** The attribute of company. */ + protected ConditionValue _company; + + /** + * Get the value of company. + * + * @return The value of company. + */ + public ConditionValue getCompany() { + if (_company == null) { + _company = new ConditionValue(); + } + return _company; + } + + protected ConditionValue getCValueCompany() { + return getCompany(); + } + + + /** + * Add order-by of company as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Company_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_COMPANY), null, true);return this; + } + + /** + * Add order-by of company as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Company_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_COMPANY), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DEPARTMENT] + // - - - - - - - - -/ + + /** The attribute of department. */ + protected ConditionValue _department; + + /** + * Get the value of department. + * + * @return The value of department. + */ + public ConditionValue getDepartment() { + if (_department == null) { + _department = new ConditionValue(); + } + return _department; + } + + protected ConditionValue getCValueDepartment() { + return getDepartment(); + } + + + /** + * Add order-by of department as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Department_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DEPARTMENT), null, true);return this; + } + + /** + * Add order-by of department as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Department_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DEPARTMENT), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [FIRSTNAME] + // - - - - - - - - -/ + + /** The attribute of firstname. */ + protected ConditionValue _firstname; + + /** + * Get the value of firstname. + * + * @return The value of firstname. + */ + public ConditionValue getFirstname() { + if (_firstname == null) { + _firstname = new ConditionValue(); + } + return _firstname; + } + + protected ConditionValue getCValueFirstname() { + return getFirstname(); + } + + + /** + * Add order-by of firstname as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Firstname_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_FIRSTNAME), null, true);return this; + } + + /** + * Add order-by of firstname as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Firstname_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_FIRSTNAME), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LASTNAME] + // - - - - - - - - -/ + + /** The attribute of lastname. */ + protected ConditionValue _lastname; + + /** + * Get the value of lastname. + * + * @return The value of lastname. + */ + public ConditionValue getLastname() { + if (_lastname == null) { + _lastname = new ConditionValue(); + } + return _lastname; + } + + protected ConditionValue getCValueLastname() { + return getLastname(); + } + + + /** + * Add order-by of lastname as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Lastname_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_LASTNAME), null, true);return this; + } + + /** + * Add order-by of lastname as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Lastname_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_LASTNAME), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [STREET_ADDRESS] + // - - - - - - - - -/ + + /** The attribute of streetAddress. */ + protected ConditionValue _streetAddress; + + /** + * Get the value of streetAddress. + * + * @return The value of streetAddress. + */ + public ConditionValue getStreetAddress() { + if (_streetAddress == null) { + _streetAddress = new ConditionValue(); + } + return _streetAddress; + } + + protected ConditionValue getCValueStreetAddress() { + return getStreetAddress(); + } + + + /** + * Add order-by of streetAddress as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_StreetAddress_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_STREET_ADDRESS), null, true);return this; + } + + /** + * Add order-by of streetAddress as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_StreetAddress_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_STREET_ADDRESS), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [SUBURB] + // - - - - - - - - -/ + + /** The attribute of suburb. */ + protected ConditionValue _suburb; + + /** + * Get the value of suburb. + * + * @return The value of suburb. + */ + public ConditionValue getSuburb() { + if (_suburb == null) { + _suburb = new ConditionValue(); + } + return _suburb; + } + + protected ConditionValue getCValueSuburb() { + return getSuburb(); + } + + + /** + * Add order-by of suburb as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Suburb_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_SUBURB), null, true);return this; + } + + /** + * Add order-by of suburb as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Suburb_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_SUBURB), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CITY] + // - - - - - - - - -/ + + /** The attribute of city. */ + protected ConditionValue _city; + + /** + * Get the value of city. + * + * @return The value of city. + */ + public ConditionValue getCity() { + if (_city == null) { + _city = new ConditionValue(); + } + return _city; + } + + protected ConditionValue getCValueCity() { + return getCity(); + } + + + /** + * Add order-by of city as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_City_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CITY), null, true);return this; + } + + /** + * Add order-by of city as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_City_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CITY), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [STATE] + // - - - - - - - - -/ + + /** The attribute of state. */ + protected ConditionValue _state; + + /** + * Get the value of state. + * + * @return The value of state. + */ + public ConditionValue getState() { + if (_state == null) { + _state = new ConditionValue(); + } + return _state; + } + + protected ConditionValue getCValueState() { + return getState(); + } + + + /** + * Add order-by of state as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_State_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_STATE), null, true);return this; + } + + /** + * Add order-by of state as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_State_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_STATE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [POSTCODE] + // - - - - - - - - -/ + + /** The attribute of postcode. */ + protected ConditionValue _postcode; + + /** + * Get the value of postcode. + * + * @return The value of postcode. + */ + public ConditionValue getPostcode() { + if (_postcode == null) { + _postcode = new ConditionValue(); + } + return _postcode; + } + + protected ConditionValue getCValuePostcode() { + return getPostcode(); + } + + + /** + * Add order-by of postcode as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Postcode_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_POSTCODE), null, true);return this; + } + + /** + * Add order-by of postcode as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Postcode_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_POSTCODE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [TELEPHONE] + // - - - - - - - - -/ + + /** The attribute of telephone. */ + protected ConditionValue _telephone; + + /** + * Get the value of telephone. + * + * @return The value of telephone. + */ + public ConditionValue getTelephone() { + if (_telephone == null) { + _telephone = new ConditionValue(); + } + return _telephone; + } + + protected ConditionValue getCValueTelephone() { + return getTelephone(); + } + + + /** + * Add order-by of telephone as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Telephone_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_TELEPHONE), null, true);return this; + } + + /** + * Add order-by of telephone as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Telephone_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_TELEPHONE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [FAX] + // - - - - - - - - -/ + + /** The attribute of fax. */ + protected ConditionValue _fax; + + /** + * Get the value of fax. + * + * @return The value of fax. + */ + public ConditionValue getFax() { + if (_fax == null) { + _fax = new ConditionValue(); + } + return _fax; + } + + protected ConditionValue getCValueFax() { + return getFax(); + } + + + /** + * Add order-by of fax as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Fax_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_FAX), null, true);return this; + } + + /** + * Add order-by of fax as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Fax_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_FAX), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CELLPHONE] + // - - - - - - - - -/ + + /** The attribute of cellphone. */ + protected ConditionValue _cellphone; + + /** + * Get the value of cellphone. + * + * @return The value of cellphone. + */ + public ConditionValue getCellphone() { + if (_cellphone == null) { + _cellphone = new ConditionValue(); + } + return _cellphone; + } + + protected ConditionValue getCValueCellphone() { + return getCellphone(); + } + + + /** + * Add order-by of cellphone as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Cellphone_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CELLPHONE), null, true);return this; + } + + /** + * Add order-by of cellphone as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_Cellphone_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CELLPHONE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DEFAULT_ADDRESS] + // - - - - - - - - -/ + + /** The attribute of defaultAddress. */ + protected ConditionValue _defaultAddress; + + /** + * Get the value of defaultAddress. + * + * @return The value of defaultAddress. + */ + public ConditionValue getDefaultAddress() { + if (_defaultAddress == null) { + _defaultAddress = new ConditionValue(); + } + return _defaultAddress; + } + + protected ConditionValue getCValueDefaultAddress() { + return getDefaultAddress(); + } + + + /** + * Add order-by of defaultAddress as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_DefaultAddress_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DEFAULT_ADDRESS), null, true);return this; + } + + /** + * Add order-by of defaultAddress as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_DefaultAddress_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DEFAULT_ADDRESS), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LANGUAGE_ID] + // - - - - - - - - -/ + + /** The attribute of languageId. */ + protected ConditionValue _languageId; + + /** + * Get the value of languageId. + * + * @return The value of languageId. + */ + public ConditionValue getLanguageId() { + if (_languageId == null) { + _languageId = new ConditionValue(); + } + return _languageId; + } + + protected ConditionValue getCValueLanguageId() { + return getLanguageId(); + } + + + /** The sub-query of LanguageId_InScopeSubQuery_Language using inScopeSubQuery. */ + protected LanguageCQ _languageId_InScopeSubQuery_Language; + + /** + * Get the sub-query of LanguageId_InScopeSubQuery_Language using inScopeSubQuery. + * + * @return The sub-query of LanguageId_InScopeSubQuery_Language using inScopeSubQuery. (Nullable) + */ + public LanguageCQ getLanguageId_InScopeSubQuery_Language() { + return _languageId_InScopeSubQuery_Language; + } + + public void keepLanguageId_InScopeSubQuery_Language(LanguageCQ subQuery) { + _languageId_InScopeSubQuery_Language = subQuery; + } + + /** + * Add order-by of languageId as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_LanguageId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_LANGUAGE_ID), null, true);return this; + } + + /** + * Add order-by of languageId as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_LanguageId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_LANGUAGE_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [COUNTRY_ID] + // - - - - - - - - -/ + + /** The attribute of countryId. */ + protected ConditionValue _countryId; + + /** + * Get the value of countryId. + * + * @return The value of countryId. + */ + public ConditionValue getCountryId() { + if (_countryId == null) { + _countryId = new ConditionValue(); + } + return _countryId; + } + + protected ConditionValue getCValueCountryId() { + return getCountryId(); + } + + + /** The sub-query of CountryId_InScopeSubQuery_Country using inScopeSubQuery. */ + protected CountryCQ _countryId_InScopeSubQuery_Country; + + /** + * Get the sub-query of CountryId_InScopeSubQuery_Country using inScopeSubQuery. + * + * @return The sub-query of CountryId_InScopeSubQuery_Country using inScopeSubQuery. (Nullable) + */ + public CountryCQ getCountryId_InScopeSubQuery_Country() { + return _countryId_InScopeSubQuery_Country; + } + + public void keepCountryId_InScopeSubQuery_Country(CountryCQ subQuery) { + _countryId_InScopeSubQuery_Country = subQuery; + } + + /** + * Add order-by of countryId as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_CountryId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_COUNTRY_ID), null, true);return this; + } + + /** + * Add order-by of countryId as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_CountryId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_COUNTRY_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ZONE_ID] + // - - - - - - - - -/ + + /** The attribute of zoneId. */ + protected ConditionValue _zoneId; + + /** + * Get the value of zoneId. + * + * @return The value of zoneId. + */ + public ConditionValue getZoneId() { + if (_zoneId == null) { + _zoneId = new ConditionValue(); + } + return _zoneId; + } + + protected ConditionValue getCValueZoneId() { + return getZoneId(); + } + + + /** The sub-query of ZoneId_InScopeSubQuery_Zone using inScopeSubQuery. */ + protected ZoneCQ _zoneId_InScopeSubQuery_Zone; + + /** + * Get the sub-query of ZoneId_InScopeSubQuery_Zone using inScopeSubQuery. + * + * @return The sub-query of ZoneId_InScopeSubQuery_Zone using inScopeSubQuery. (Nullable) + */ + public ZoneCQ getZoneId_InScopeSubQuery_Zone() { + return _zoneId_InScopeSubQuery_Zone; + } + + public void keepZoneId_InScopeSubQuery_Zone(ZoneCQ subQuery) { + _zoneId_InScopeSubQuery_Zone = subQuery; + } + + /** + * Add order-by of zoneId as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_ZoneId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ZONE_ID), null, true);return this; + } + + /** + * Add order-by of zoneId as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_ZoneId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ZONE_ID), null, false);return this; + } + + // =================================================================================== + // Union Query + // =========== + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) { + final AddressBookCQ baseQuery = (AddressBookCQ)baseQueryAsSuper; + final AddressBookCQ unionQuery = (AddressBookCQ)unionQueryAsSuper; + if (baseQuery.hasConditionQueryCountry()) { + unionQuery.queryCountry().reflectRelationOnUnionQuery(baseQuery.queryCountry(), unionQuery.queryCountry()); + } + if (baseQuery.hasConditionQueryCustomer()) { + unionQuery.queryCustomer().reflectRelationOnUnionQuery(baseQuery.queryCustomer(), unionQuery.queryCustomer()); + } + if (baseQuery.hasConditionQueryLanguage()) { + unionQuery.queryLanguage().reflectRelationOnUnionQuery(baseQuery.queryLanguage(), unionQuery.queryLanguage()); + } + if (baseQuery.hasConditionQueryZone()) { + unionQuery.queryZone().reflectRelationOnUnionQuery(baseQuery.queryZone(), unionQuery.queryZone()); + } + + } + + // =================================================================================== + // Foreign Query + // ============= + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [COUNTRY] + // ForeignProperty = [country] + // * * * * * * * * */ + + /** + * Query for country. + * + * @return Instance of CountryCQ as country. (NotNull) + */ + public CountryCQ queryCountry() { + return getConditionQueryCountry(); + } + + /** Condition-query for country. */ + protected CountryCQ _conditionQueryCountry; + + /** + * Get condition-query for country. + * + * @return Instance of CountryCQ as country. (NotNull) + */ + public CountryCQ getConditionQueryCountry() { + if (_conditionQueryCountry == null) { + _conditionQueryCountry = newQueryCountry(); + setupOuterJoin_Country(); + } + return _conditionQueryCountry; + } + + /** + * Setup outer join for ${foreignPropertyName}. + */ + protected void setupOuterJoin_Country() { + final java.util.Map<String, String> joinOnMap = new java.util.LinkedHashMap<String, String>(); + String key = null; + String value = null; + + key = getRealColumnName("COUNTRY_ID"); + value = getConditionQueryCountry().getRealColumnName("COUNTRY_ID"); + joinOnMap.put(key, value); + + final String joinTableName = "COUNTRY"; + final String aliasName = getConditionQueryCountry().getRealAliasName(); + getSqlClause().registerOuterJoin(joinTableName, aliasName, joinOnMap); + } + + /** + * New query for country. + * + * @return Query for country. (NotNull) + */ + protected CountryCQ newQueryCountry() { + return new CountryCQ(this, getSqlClause(), "Country", getNextNestLevel()); + } + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQueryCountry() { + return _conditionQueryCountry != null; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [CUSTOMER] + // ForeignProperty = [customer] + // * * * * * * * * */ + + /** + * Query for customer. + * + * @return Instance of CustomerCQ as customer. (NotNull) + */ + public CustomerCQ queryCustomer() { + return getConditionQueryCustomer(); + } + + /** Condition-query for customer. */ + protected CustomerCQ _conditionQueryCustomer; + + /** + * Get condition-query for customer. + * + * @return Instance of CustomerCQ as customer. (NotNull) + */ + public CustomerCQ getConditionQueryCustomer() { + if (_conditionQueryCustomer == null) { + _conditionQueryCustomer = newQueryCustomer(); + setupOuterJoin_Customer(); + } + return _conditionQueryCustomer; + } + + /** + * Setup outer join for ${foreignPropertyName}. + */ + protected void setupOuterJoin_Customer() { + final java.util.Map<String, String> joinOnMap = new java.util.LinkedHashMap<String, String>(); + String key = null; + String value = null; + + key = getRealColumnName("CUSTOMER_ID"); + value = getConditionQueryCustomer().getRealColumnName("CUSTOMER_ID"); + joinOnMap.put(key, value); + + final String joinTableName = "CUSTOMER"; + final String aliasName = getConditionQueryCustomer().getRealAliasName(); + getSqlClause().registerOuterJoin(joinTableName, aliasName, joinOnMap); + } + + /** + * New query for customer. + * + * @return Query for customer. (NotNull) + */ + protected CustomerCQ newQueryCustomer() { + return new CustomerCQ(this, getSqlClause(), "Customer", getNextNestLevel()); + } + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQueryCustomer() { + return _conditionQueryCustomer != null; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [LANGUAGE] + // ForeignProperty = [language] + // * * * * * * * * */ + + /** + * Query for language. + * + * @return Instance of LanguageCQ as language. (NotNull) + */ + public LanguageCQ queryLanguage() { + return getConditionQueryLanguage(); + } + + /** Condition-query for language. */ + protected LanguageCQ _conditionQueryLanguage; + + /** + * Get condition-query for language. + * + * @return Instance of LanguageCQ as language. (NotNull) + */ + public LanguageCQ getConditionQueryLanguage() { + if (_conditionQueryLanguage == null) { + _conditionQueryLanguage = newQueryLanguage(); + setupOuterJoin_Language(); + } + return _conditionQueryLanguage; + } + + /** + * Setup outer join for ${foreignPropertyName}. + */ + protected void setupOuterJoin_Language() { + final java.util.Map<String, String> joinOnMap = new java.util.LinkedHashMap<String, String>(); + String key = null; + String value = null; + + key = getRealColumnName("LANGUAGE_ID"); + value = getConditionQueryLanguage().getRealColumnName("LANGUAGE_ID"); + joinOnMap.put(key, value); + + final String joinTableName = "LANGUAGE"; + final String aliasName = getConditionQueryLanguage().getRealAliasName(); + getSqlClause().registerOuterJoin(joinTableName, aliasName, joinOnMap); + } + + /** + * New query for language. + * + * @return Query for language. (NotNull) + */ + protected LanguageCQ newQueryLanguage() { + return new LanguageCQ(this, getSqlClause(), "Language", getNextNestLevel()); + } + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQueryLanguage() { + return _conditionQueryLanguage != null; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [ZONE] + // ForeignProperty = [zone] + // * * * * * * * * */ + + /** + * Query for zone. + * + * @return Instance of ZoneCQ as zone. (NotNull) + */ + public ZoneCQ queryZone() { + return getConditionQueryZone(); + } + + /** Condition-query for zone. */ + protected ZoneCQ _conditionQueryZone; + + /** + * Get condition-query for zone. + * + * @return Instance of ZoneCQ as zone. (NotNull) + */ + public ZoneCQ getConditionQueryZone() { + if (_conditionQueryZone == null) { + _conditionQueryZone = newQueryZone(); + setupOuterJoin_Zone(); + } + return _conditionQueryZone; + } + + /** + * Setup outer join for ${foreignPropertyName}. + */ + protected void setupOuterJoin_Zone() { + final java.util.Map<String, String> joinOnMap = new java.util.LinkedHashMap<String, String>(); + String key = null; + String value = null; + + key = getRealColumnName("ZONE_ID"); + value = getConditionQueryZone().getRealColumnName("ZONE_ID"); + joinOnMap.put(key, value); + + final String joinTableName = "ZONE"; + final String aliasName = getConditionQueryZone().getRealAliasName(); + getSqlClause().registerOuterJoin(joinTableName, aliasName, joinOnMap); + } + + /** + * New query for zone. + * + * @return Query for zone. (NotNull) + */ + protected ZoneCQ newQueryZone() { + return new ZoneCQ(this, getSqlClause(), "Zone", getNextNestLevel()); + } + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQueryZone() { + return _conditionQueryZone != null; + } + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsAddressBookCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,560 @@ +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 DELIVERY_METHOD. + * + * @author DBFlute(AutoGenerator) + */ +public class BsDeliveryMethodCQ extends AbstractBsDeliveryMethodCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding inline query. */ + protected DeliveryMethodCIQ _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 BsDeliveryMethodCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + // =================================================================================== + // Inline + // ====== + /** + * Get inline query. + * + * @return Inline query. (NotNull) + */ + public DeliveryMethodCIQ inline() { + if (_inlineQuery == null) { + _inlineQuery = new DeliveryMethodCIQ(getChildQuery(), getSqlClause(), getAliasName(), getNestLevel(), this); + } + return _inlineQuery; + } + + // =================================================================================== + // Include-as-Mine + // =============== + + /** + * Include select-column of deliveryMethodId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_DeliveryMethodId() { + registerIncludedSelectColumn("DeliveryMethodId", getRealColumnName("DELIVERY_METHOD_ID")); + } + + /** + * Include select-column of deliveryMethodId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_DeliveryMethodId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DELIVERY_METHOD_ID")); + } + + /** + * 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 objectName as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_ObjectName() { + registerIncludedSelectColumn("ObjectName", getRealColumnName("OBJECT_NAME")); + } + + /** + * Include select-column of objectName as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_ObjectName(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("OBJECT_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")); + } + + /** + * 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. + */ + public void includeAsMine_SortOrder() { + registerIncludedSelectColumn("SortOrder", getRealColumnName("SORT_ORDER")); + } + + /** + * Include select-column of sortOrder as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_SortOrder(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("SORT_ORDER")); + } + + /** + * Include select-column of dateAdded as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_DateAdded() { + registerIncludedSelectColumn("DateAdded", getRealColumnName("DATE_ADDED")); + } + + /** + * Include select-column of dateAdded as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_DateAdded(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DATE_ADDED")); + } + + /** + * Include select-column of lastModified as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_LastModified() { + registerIncludedSelectColumn("LastModified", getRealColumnName("LAST_MODIFIED")); + } + + /** + * Include select-column of lastModified as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_LastModified(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("LAST_MODIFIED")); + } + + // =================================================================================== + // Query + // ===== + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [DELIVERY_METHOD] + // * * * * * * * * */ + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_METHOD_ID] + // - - - - - - - - -/ + + /** The attribute of deliveryMethodId. */ + protected ConditionValue _deliveryMethodId; + + /** + * Get the value of deliveryMethodId. + * + * @return The value of deliveryMethodId. + */ + public ConditionValue getDeliveryMethodId() { + if (_deliveryMethodId == null) { + _deliveryMethodId = new ConditionValue(); + } + return _deliveryMethodId; + } + + protected ConditionValue getCValueDeliveryMethodId() { + return getDeliveryMethodId(); + } + + + /** The sub-query of DeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList using inScopeSubQuery. */ + protected DeliveryMethodDescriptionCQ _deliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList; + + /** + * Get the sub-query of DeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList using inScopeSubQuery. + * + * @return The sub-query of DeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList using inScopeSubQuery. (Nullable) + */ + public DeliveryMethodDescriptionCQ getDeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList() { + return _deliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList; + } + + public void keepDeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList(DeliveryMethodDescriptionCQ subQuery) { + _deliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList = subQuery; + } + + /** The sub-query of DeliveryMethodId_InScopeSubQuery_OrderFormList using inScopeSubQuery. */ + protected OrderFormCQ _deliveryMethodId_InScopeSubQuery_OrderFormList; + + /** + * Get the sub-query of DeliveryMethodId_InScopeSubQuery_OrderFormList using inScopeSubQuery. + * + * @return The sub-query of DeliveryMethodId_InScopeSubQuery_OrderFormList using inScopeSubQuery. (Nullable) + */ + public OrderFormCQ getDeliveryMethodId_InScopeSubQuery_OrderFormList() { + return _deliveryMethodId_InScopeSubQuery_OrderFormList; + } + + public void keepDeliveryMethodId_InScopeSubQuery_OrderFormList(OrderFormCQ subQuery) { + _deliveryMethodId_InScopeSubQuery_OrderFormList = subQuery; + } + + /** The sub-query of DeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList using existsSubQuery. */ + protected DeliveryMethodDescriptionCQ _deliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList; + + /** + * Get the sub-query of DeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList using existsSubQuery. + * + * @return The sub-query of DeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList using existsSubQuery. (Nullable) + */ + public DeliveryMethodDescriptionCQ getDeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList() { + return _deliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList; + } + + public void keepDeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList(DeliveryMethodDescriptionCQ subQuery) { + _deliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList = subQuery; + } + + /** The sub-query of DeliveryMethodId_ExistsSubQuery_OrderFormList using existsSubQuery. */ + protected OrderFormCQ _deliveryMethodId_ExistsSubQuery_OrderFormList; + + /** + * Get the sub-query of DeliveryMethodId_ExistsSubQuery_OrderFormList using existsSubQuery. + * + * @return The sub-query of DeliveryMethodId_ExistsSubQuery_OrderFormList using existsSubQuery. (Nullable) + */ + public OrderFormCQ getDeliveryMethodId_ExistsSubQuery_OrderFormList() { + return _deliveryMethodId_ExistsSubQuery_OrderFormList; + } + + public void keepDeliveryMethodId_ExistsSubQuery_OrderFormList(OrderFormCQ subQuery) { + _deliveryMethodId_ExistsSubQuery_OrderFormList = subQuery; + } + + /** + * Add order-by of deliveryMethodId as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_DeliveryMethodId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_METHOD_ID), null, true);return this; + } + + /** + * Add order-by of deliveryMethodId as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_DeliveryMethodId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_METHOD_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // 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 BsDeliveryMethodCQ addOrderBy_Code_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CODE), null, true);return this; + } + + /** + * Add order-by of code as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_Code_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CODE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [OBJECT_NAME] + // - - - - - - - - -/ + + /** The attribute of objectName. */ + protected ConditionValue _objectName; + + /** + * Get the value of objectName. + * + * @return The value of objectName. + */ + public ConditionValue getObjectName() { + if (_objectName == null) { + _objectName = new ConditionValue(); + } + return _objectName; + } + + protected ConditionValue getCValueObjectName() { + return getObjectName(); + } + + + /** + * Add order-by of objectName as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_ObjectName_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_OBJECT_NAME), null, true);return this; + } + + /** + * Add order-by of objectName as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_ObjectName_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_OBJECT_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 BsDeliveryMethodCQ addOrderBy_Status_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_STATUS), null, true);return this; + } + + /** + * Add order-by of status as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_Status_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_STATUS), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [SORT_ORDER] + // - - - - - - - - -/ + + /** The attribute of sortOrder. */ + protected ConditionValue _sortOrder; + + /** + * Get the value of sortOrder. + * + * @return The value of sortOrder. + */ + public ConditionValue getSortOrder() { + if (_sortOrder == null) { + _sortOrder = new ConditionValue(); + } + return _sortOrder; + } + + protected ConditionValue getCValueSortOrder() { + return getSortOrder(); + } + + + /** + * Add order-by of sortOrder as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_SortOrder_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_SORT_ORDER), null, true);return this; + } + + /** + * Add order-by of sortOrder as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_SortOrder_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_SORT_ORDER), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DATE_ADDED] + // - - - - - - - - -/ + + /** The attribute of dateAdded. */ + protected ConditionValue _dateAdded; + + /** + * Get the value of dateAdded. + * + * @return The value of dateAdded. + */ + public ConditionValue getDateAdded() { + if (_dateAdded == null) { + _dateAdded = new ConditionValue(); + } + return _dateAdded; + } + + protected ConditionValue getCValueDateAdded() { + return getDateAdded(); + } + + + /** + * Add order-by of dateAdded as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_DateAdded_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DATE_ADDED), null, true);return this; + } + + /** + * Add order-by of dateAdded as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_DateAdded_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DATE_ADDED), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LAST_MODIFIED] + // - - - - - - - - -/ + + /** The attribute of lastModified. */ + protected ConditionValue _lastModified; + + /** + * Get the value of lastModified. + * + * @return The value of lastModified. + */ + public ConditionValue getLastModified() { + if (_lastModified == null) { + _lastModified = new ConditionValue(); + } + return _lastModified; + } + + protected ConditionValue getCValueLastModified() { + return getLastModified(); + } + + + /** + * Add order-by of lastModified as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_LastModified_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_LAST_MODIFIED), null, true);return this; + } + + /** + * Add order-by of lastModified as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_LastModified_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_LAST_MODIFIED), null, false);return this; + } + + // =================================================================================== + // Union Query + // =========== + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) { + + } + + // =================================================================================== + // Foreign Query + // ============= + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodDescriptionCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodDescriptionCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodDescriptionCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,486 @@ +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 DELIVERY_METHOD_DESCRIPTION. + * + * @author DBFlute(AutoGenerator) + */ +public class BsDeliveryMethodDescriptionCQ extends AbstractBsDeliveryMethodDescriptionCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding inline query. */ + protected DeliveryMethodDescriptionCIQ _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 BsDeliveryMethodDescriptionCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + // =================================================================================== + // Inline + // ====== + /** + * Get inline query. + * + * @return Inline query. (NotNull) + */ + public DeliveryMethodDescriptionCIQ inline() { + if (_inlineQuery == null) { + _inlineQuery = new DeliveryMethodDescriptionCIQ(getChildQuery(), getSqlClause(), getAliasName(), getNestLevel(), this); + } + return _inlineQuery; + } + + // =================================================================================== + // Include-as-Mine + // =============== + + /** + * Include select-column of deliveryMethodId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_DeliveryMethodId() { + registerIncludedSelectColumn("DeliveryMethodId", getRealColumnName("DELIVERY_METHOD_ID")); + } + + /** + * Include select-column of deliveryMethodId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_DeliveryMethodId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DELIVERY_METHOD_ID")); + } + + /** + * Include select-column of languageId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_LanguageId() { + registerIncludedSelectColumn("LanguageId", getRealColumnName("LANGUAGE_ID")); + } + + /** + * Include select-column of languageId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_LanguageId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("LANGUAGE_ID")); + } + + /** + * Include select-column of name as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Name() { + registerIncludedSelectColumn("Name", getRealColumnName("NAME")); + } + + /** + * Include select-column of name as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Name(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("NAME")); + } + + /** + * 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. + */ + public void includeAsMine_Description() { + registerIncludedSelectColumn("Description", getRealColumnName("DESCRIPTION")); + } + + /** + * Include select-column of description as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Description(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DESCRIPTION")); + } + + // =================================================================================== + // Query + // ===== + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [DELIVERY_METHOD_DESCRIPTION] + // * * * * * * * * */ + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_METHOD_ID] + // - - - - - - - - -/ + + /** The attribute of deliveryMethodId. */ + protected ConditionValue _deliveryMethodId; + + /** + * Get the value of deliveryMethodId. + * + * @return The value of deliveryMethodId. + */ + public ConditionValue getDeliveryMethodId() { + if (_deliveryMethodId == null) { + _deliveryMethodId = new ConditionValue(); + } + return _deliveryMethodId; + } + + protected ConditionValue getCValueDeliveryMethodId() { + return getDeliveryMethodId(); + } + + + /** The sub-query of DeliveryMethodId_InScopeSubQuery_DeliveryMethod using inScopeSubQuery. */ + protected DeliveryMethodCQ _deliveryMethodId_InScopeSubQuery_DeliveryMethod; + + /** + * Get the sub-query of DeliveryMethodId_InScopeSubQuery_DeliveryMethod using inScopeSubQuery. + * + * @return The sub-query of DeliveryMethodId_InScopeSubQuery_DeliveryMethod using inScopeSubQuery. (Nullable) + */ + public DeliveryMethodCQ getDeliveryMethodId_InScopeSubQuery_DeliveryMethod() { + return _deliveryMethodId_InScopeSubQuery_DeliveryMethod; + } + + public void keepDeliveryMethodId_InScopeSubQuery_DeliveryMethod(DeliveryMethodCQ subQuery) { + _deliveryMethodId_InScopeSubQuery_DeliveryMethod = subQuery; + } + + /** + * Add order-by of deliveryMethodId as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodDescriptionCQ addOrderBy_DeliveryMethodId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_METHOD_ID), null, true);return this; + } + + /** + * Add order-by of deliveryMethodId as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodDescriptionCQ addOrderBy_DeliveryMethodId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_METHOD_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LANGUAGE_ID] + // - - - - - - - - -/ + + /** The attribute of languageId. */ + protected ConditionValue _languageId; + + /** + * Get the value of languageId. + * + * @return The value of languageId. + */ + public ConditionValue getLanguageId() { + if (_languageId == null) { + _languageId = new ConditionValue(); + } + return _languageId; + } + + protected ConditionValue getCValueLanguageId() { + return getLanguageId(); + } + + + /** The sub-query of LanguageId_InScopeSubQuery_Language using inScopeSubQuery. */ + protected LanguageCQ _languageId_InScopeSubQuery_Language; + + /** + * Get the sub-query of LanguageId_InScopeSubQuery_Language using inScopeSubQuery. + * + * @return The sub-query of LanguageId_InScopeSubQuery_Language using inScopeSubQuery. (Nullable) + */ + public LanguageCQ getLanguageId_InScopeSubQuery_Language() { + return _languageId_InScopeSubQuery_Language; + } + + public void keepLanguageId_InScopeSubQuery_Language(LanguageCQ subQuery) { + _languageId_InScopeSubQuery_Language = subQuery; + } + + /** + * Add order-by of languageId as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodDescriptionCQ addOrderBy_LanguageId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_LANGUAGE_ID), null, true);return this; + } + + /** + * Add order-by of languageId as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodDescriptionCQ addOrderBy_LanguageId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_LANGUAGE_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [NAME] + // - - - - - - - - -/ + + /** The attribute of name. */ + protected ConditionValue _name; + + /** + * Get the value of name. + * + * @return The value of name. + */ + public ConditionValue getName() { + if (_name == null) { + _name = new ConditionValue(); + } + return _name; + } + + protected ConditionValue getCValueName() { + return getName(); + } + + + /** + * Add order-by of name as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodDescriptionCQ addOrderBy_Name_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_NAME), null, true);return this; + } + + /** + * Add order-by of name as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodDescriptionCQ addOrderBy_Name_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_NAME), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DESCRIPTION] + // - - - - - - - - -/ + + /** The attribute of description. */ + protected ConditionValue _description; + + /** + * Get the value of description. + * + * @return The value of description. + */ + public ConditionValue getDescription() { + if (_description == null) { + _description = new ConditionValue(); + } + return _description; + } + + protected ConditionValue getCValueDescription() { + return getDescription(); + } + + + /** + * Add order-by of description as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodDescriptionCQ addOrderBy_Description_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DESCRIPTION), null, true);return this; + } + + /** + * Add order-by of description as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodDescriptionCQ addOrderBy_Description_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DESCRIPTION), null, false);return this; + } + + // =================================================================================== + // Union Query + // =========== + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) { + final DeliveryMethodDescriptionCQ baseQuery = (DeliveryMethodDescriptionCQ)baseQueryAsSuper; + final DeliveryMethodDescriptionCQ unionQuery = (DeliveryMethodDescriptionCQ)unionQueryAsSuper; + if (baseQuery.hasConditionQueryDeliveryMethod()) { + unionQuery.queryDeliveryMethod().reflectRelationOnUnionQuery(baseQuery.queryDeliveryMethod(), unionQuery.queryDeliveryMethod()); + } + if (baseQuery.hasConditionQueryLanguage()) { + unionQuery.queryLanguage().reflectRelationOnUnionQuery(baseQuery.queryLanguage(), unionQuery.queryLanguage()); + } + + } + + // =================================================================================== + // Foreign Query + // ============= + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [DELIVERY_METHOD] + // ForeignProperty = [deliveryMethod] + // * * * * * * * * */ + + /** + * Query for deliveryMethod. + * + * @return Instance of DeliveryMethodCQ as deliveryMethod. (NotNull) + */ + public DeliveryMethodCQ queryDeliveryMethod() { + return getConditionQueryDeliveryMethod(); + } + + /** Condition-query for deliveryMethod. */ + protected DeliveryMethodCQ _conditionQueryDeliveryMethod; + + /** + * Get condition-query for deliveryMethod. + * + * @return Instance of DeliveryMethodCQ as deliveryMethod. (NotNull) + */ + public DeliveryMethodCQ getConditionQueryDeliveryMethod() { + if (_conditionQueryDeliveryMethod == null) { + _conditionQueryDeliveryMethod = newQueryDeliveryMethod(); + setupOuterJoin_DeliveryMethod(); + } + return _conditionQueryDeliveryMethod; + } + + /** + * Setup outer join for ${foreignPropertyName}. + */ + protected void setupOuterJoin_DeliveryMethod() { + final java.util.Map<String, String> joinOnMap = new java.util.LinkedHashMap<String, String>(); + String key = null; + String value = null; + + key = getRealColumnName("DELIVERY_METHOD_ID"); + value = getConditionQueryDeliveryMethod().getRealColumnName("DELIVERY_METHOD_ID"); + joinOnMap.put(key, value); + + final String joinTableName = "DELIVERY_METHOD"; + final String aliasName = getConditionQueryDeliveryMethod().getRealAliasName(); + getSqlClause().registerOuterJoin(joinTableName, aliasName, joinOnMap); + } + + /** + * New query for deliveryMethod. + * + * @return Query for deliveryMethod. (NotNull) + */ + protected DeliveryMethodCQ newQueryDeliveryMethod() { + return new DeliveryMethodCQ(this, getSqlClause(), "DeliveryMethod", getNextNestLevel()); + } + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQueryDeliveryMethod() { + return _conditionQueryDeliveryMethod != null; + } + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [LANGUAGE] + // ForeignProperty = [language] + // * * * * * * * * */ + + /** + * Query for language. + * + * @return Instance of LanguageCQ as language. (NotNull) + */ + public LanguageCQ queryLanguage() { + return getConditionQueryLanguage(); + } + + /** Condition-query for language. */ + protected LanguageCQ _conditionQueryLanguage; + + /** + * Get condition-query for language. + * + * @return Instance of LanguageCQ as language. (NotNull) + */ + public LanguageCQ getConditionQueryLanguage() { + if (_conditionQueryLanguage == null) { + _conditionQueryLanguage = newQueryLanguage(); + setupOuterJoin_Language(); + } + return _conditionQueryLanguage; + } + + /** + * Setup outer join for ${foreignPropertyName}. + */ + protected void setupOuterJoin_Language() { + final java.util.Map<String, String> joinOnMap = new java.util.LinkedHashMap<String, String>(); + String key = null; + String value = null; + + key = getRealColumnName("LANGUAGE_ID"); + value = getConditionQueryLanguage().getRealColumnName("LANGUAGE_ID"); + joinOnMap.put(key, value); + + final String joinTableName = "LANGUAGE"; + final String aliasName = getConditionQueryLanguage().getRealAliasName(); + getSqlClause().registerOuterJoin(joinTableName, aliasName, joinOnMap); + } + + /** + * New query for language. + * + * @return Query for language. (NotNull) + */ + protected LanguageCQ newQueryLanguage() { + return new LanguageCQ(this, getSqlClause(), "Language", getNextNestLevel()); + } + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQueryLanguage() { + return _conditionQueryLanguage != null; + } + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodDescriptionCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsTaxClassCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsTaxClassCQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsTaxClassCQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,440 @@ +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 TAX_CLASS. + * + * @author DBFlute(AutoGenerator) + */ +public class BsTaxClassCQ extends AbstractBsTaxClassCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding inline query. */ + protected TaxClassCIQ _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 BsTaxClassCQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel) { + super(childQuery, sqlClause, aliasName, nestLevel); + } + + // =================================================================================== + // Inline + // ====== + /** + * Get inline query. + * + * @return Inline query. (NotNull) + */ + public TaxClassCIQ inline() { + if (_inlineQuery == null) { + _inlineQuery = new TaxClassCIQ(getChildQuery(), getSqlClause(), getAliasName(), getNestLevel(), this); + } + return _inlineQuery; + } + + // =================================================================================== + // Include-as-Mine + // =============== + + /** + * Include select-column of taxClassId as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_TaxClassId() { + registerIncludedSelectColumn("TaxClassId", getRealColumnName("TAX_CLASS_ID")); + } + + /** + * Include select-column of taxClassId as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_TaxClassId(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("TAX_CLASS_ID")); + } + + /** + * Include select-column of name as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_Name() { + registerIncludedSelectColumn("Name", getRealColumnName("NAME")); + } + + /** + * Include select-column of name as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Name(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("NAME")); + } + + /** + * 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. + */ + public void includeAsMine_Description() { + registerIncludedSelectColumn("Description", getRealColumnName("DESCRIPTION")); + } + + /** + * Include select-column of description as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_Description(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DESCRIPTION")); + } + + /** + * Include select-column of lastModified as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_LastModified() { + registerIncludedSelectColumn("LastModified", getRealColumnName("LAST_MODIFIED")); + } + + /** + * Include select-column of lastModified as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_LastModified(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("LAST_MODIFIED")); + } + + /** + * Include select-column of dateAdded as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_DateAdded() { + registerIncludedSelectColumn("DateAdded", getRealColumnName("DATE_ADDED")); + } + + /** + * Include select-column of dateAdded as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_DateAdded(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DATE_ADDED")); + } + + // =================================================================================== + // Query + // ===== + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [TAX_CLASS] + // * * * * * * * * */ + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [TAX_CLASS_ID] + // - - - - - - - - -/ + + /** The attribute of taxClassId. */ + protected ConditionValue _taxClassId; + + /** + * Get the value of taxClassId. + * + * @return The value of taxClassId. + */ + public ConditionValue getTaxClassId() { + if (_taxClassId == null) { + _taxClassId = new ConditionValue(); + } + return _taxClassId; + } + + protected ConditionValue getCValueTaxClassId() { + return getTaxClassId(); + } + + + /** The sub-query of TaxClassId_InScopeSubQuery_ProductList using inScopeSubQuery. */ + protected ProductCQ _taxClassId_InScopeSubQuery_ProductList; + + /** + * Get the sub-query of TaxClassId_InScopeSubQuery_ProductList using inScopeSubQuery. + * + * @return The sub-query of TaxClassId_InScopeSubQuery_ProductList using inScopeSubQuery. (Nullable) + */ + public ProductCQ getTaxClassId_InScopeSubQuery_ProductList() { + return _taxClassId_InScopeSubQuery_ProductList; + } + + public void keepTaxClassId_InScopeSubQuery_ProductList(ProductCQ subQuery) { + _taxClassId_InScopeSubQuery_ProductList = subQuery; + } + + /** The sub-query of TaxClassId_InScopeSubQuery_TaxRateList using inScopeSubQuery. */ + protected TaxRateCQ _taxClassId_InScopeSubQuery_TaxRateList; + + /** + * Get the sub-query of TaxClassId_InScopeSubQuery_TaxRateList using inScopeSubQuery. + * + * @return The sub-query of TaxClassId_InScopeSubQuery_TaxRateList using inScopeSubQuery. (Nullable) + */ + public TaxRateCQ getTaxClassId_InScopeSubQuery_TaxRateList() { + return _taxClassId_InScopeSubQuery_TaxRateList; + } + + public void keepTaxClassId_InScopeSubQuery_TaxRateList(TaxRateCQ subQuery) { + _taxClassId_InScopeSubQuery_TaxRateList = subQuery; + } + + /** The sub-query of TaxClassId_ExistsSubQuery_ProductList using existsSubQuery. */ + protected ProductCQ _taxClassId_ExistsSubQuery_ProductList; + + /** + * Get the sub-query of TaxClassId_ExistsSubQuery_ProductList using existsSubQuery. + * + * @return The sub-query of TaxClassId_ExistsSubQuery_ProductList using existsSubQuery. (Nullable) + */ + public ProductCQ getTaxClassId_ExistsSubQuery_ProductList() { + return _taxClassId_ExistsSubQuery_ProductList; + } + + public void keepTaxClassId_ExistsSubQuery_ProductList(ProductCQ subQuery) { + _taxClassId_ExistsSubQuery_ProductList = subQuery; + } + + /** The sub-query of TaxClassId_ExistsSubQuery_TaxRateList using existsSubQuery. */ + protected TaxRateCQ _taxClassId_ExistsSubQuery_TaxRateList; + + /** + * Get the sub-query of TaxClassId_ExistsSubQuery_TaxRateList using existsSubQuery. + * + * @return The sub-query of TaxClassId_ExistsSubQuery_TaxRateList using existsSubQuery. (Nullable) + */ + public TaxRateCQ getTaxClassId_ExistsSubQuery_TaxRateList() { + return _taxClassId_ExistsSubQuery_TaxRateList; + } + + public void keepTaxClassId_ExistsSubQuery_TaxRateList(TaxRateCQ subQuery) { + _taxClassId_ExistsSubQuery_TaxRateList = subQuery; + } + + /** + * Add order-by of taxClassId as ASC. + * + * @return this. (NotNull) + */ + public BsTaxClassCQ addOrderBy_TaxClassId_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_TAX_CLASS_ID), null, true);return this; + } + + /** + * Add order-by of taxClassId as DESC. + * + * @return this. (NotNull) + */ + public BsTaxClassCQ addOrderBy_TaxClassId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_TAX_CLASS_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [NAME] + // - - - - - - - - -/ + + /** The attribute of name. */ + protected ConditionValue _name; + + /** + * Get the value of name. + * + * @return The value of name. + */ + public ConditionValue getName() { + if (_name == null) { + _name = new ConditionValue(); + } + return _name; + } + + protected ConditionValue getCValueName() { + return getName(); + } + + + /** + * Add order-by of name as ASC. + * + * @return this. (NotNull) + */ + public BsTaxClassCQ addOrderBy_Name_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_NAME), null, true);return this; + } + + /** + * Add order-by of name as DESC. + * + * @return this. (NotNull) + */ + public BsTaxClassCQ addOrderBy_Name_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_NAME), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DESCRIPTION] + // - - - - - - - - -/ + + /** The attribute of description. */ + protected ConditionValue _description; + + /** + * Get the value of description. + * + * @return The value of description. + */ + public ConditionValue getDescription() { + if (_description == null) { + _description = new ConditionValue(); + } + return _description; + } + + protected ConditionValue getCValueDescription() { + return getDescription(); + } + + + /** + * Add order-by of description as ASC. + * + * @return this. (NotNull) + */ + public BsTaxClassCQ addOrderBy_Description_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DESCRIPTION), null, true);return this; + } + + /** + * Add order-by of description as DESC. + * + * @return this. (NotNull) + */ + public BsTaxClassCQ addOrderBy_Description_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DESCRIPTION), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LAST_MODIFIED] + // - - - - - - - - -/ + + /** The attribute of lastModified. */ + protected ConditionValue _lastModified; + + /** + * Get the value of lastModified. + * + * @return The value of lastModified. + */ + public ConditionValue getLastModified() { + if (_lastModified == null) { + _lastModified = new ConditionValue(); + } + return _lastModified; + } + + protected ConditionValue getCValueLastModified() { + return getLastModified(); + } + + + /** + * Add order-by of lastModified as ASC. + * + * @return this. (NotNull) + */ + public BsTaxClassCQ addOrderBy_LastModified_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_LAST_MODIFIED), null, true);return this; + } + + /** + * Add order-by of lastModified as DESC. + * + * @return this. (NotNull) + */ + public BsTaxClassCQ addOrderBy_LastModified_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_LAST_MODIFIED), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DATE_ADDED] + // - - - - - - - - -/ + + /** The attribute of dateAdded. */ + protected ConditionValue _dateAdded; + + /** + * Get the value of dateAdded. + * + * @return The value of dateAdded. + */ + public ConditionValue getDateAdded() { + if (_dateAdded == null) { + _dateAdded = new ConditionValue(); + } + return _dateAdded; + } + + protected ConditionValue getCValueDateAdded() { + return getDateAdded(); + } + + + /** + * Add order-by of dateAdded as ASC. + * + * @return this. (NotNull) + */ + public BsTaxClassCQ addOrderBy_DateAdded_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DATE_ADDED), null, true);return this; + } + + /** + * Add order-by of dateAdded as DESC. + * + * @return this. (NotNull) + */ + public BsTaxClassCQ addOrderBy_DateAdded_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DATE_ADDED), null, false);return this; + } + + // =================================================================================== + // Union Query + // =========== + protected void reflectRelationOnUnionQuery(ConditionQuery baseQueryAsSuper, ConditionQuery unionQueryAsSuper) { + + } + + // =================================================================================== + // Foreign Query + // ============= + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsTaxClassCQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/AddressBookCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/AddressBookCIQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/AddressBookCIQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,239 @@ +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 ADDRESS_BOOK. + * + * @author DBFlute(AutoGenerator) + */ +public class AddressBookCIQ extends AbstractBsAddressBookCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding condition query. */ + protected BsAddressBookCQ _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 AddressBookCIQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel, BsAddressBookCQ 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 = [ADDRESS_BOOK] + // * * * * * * * * */ + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ADDRESS_BOOK_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueAddressBookId() { + return _myCQ.getAddressBookId(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CUSTOMER_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueCustomerId() { + return _myCQ.getCustomerId(); + } + + + public void keepCustomerId_InScopeSubQuery_Customer(jp.sf.pal.pompei.cbean.cq.CustomerCQ subQuery) { + _myCQ.keepCustomerId_InScopeSubQuery_Customer(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [COMPANY] + // - - - - - - - - -/ + protected ConditionValue getCValueCompany() { + return _myCQ.getCompany(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DEPARTMENT] + // - - - - - - - - -/ + protected ConditionValue getCValueDepartment() { + return _myCQ.getDepartment(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [FIRSTNAME] + // - - - - - - - - -/ + protected ConditionValue getCValueFirstname() { + return _myCQ.getFirstname(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LASTNAME] + // - - - - - - - - -/ + protected ConditionValue getCValueLastname() { + return _myCQ.getLastname(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [STREET_ADDRESS] + // - - - - - - - - -/ + protected ConditionValue getCValueStreetAddress() { + return _myCQ.getStreetAddress(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [SUBURB] + // - - - - - - - - -/ + protected ConditionValue getCValueSuburb() { + return _myCQ.getSuburb(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CITY] + // - - - - - - - - -/ + protected ConditionValue getCValueCity() { + return _myCQ.getCity(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [STATE] + // - - - - - - - - -/ + protected ConditionValue getCValueState() { + return _myCQ.getState(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [POSTCODE] + // - - - - - - - - -/ + protected ConditionValue getCValuePostcode() { + return _myCQ.getPostcode(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [TELEPHONE] + // - - - - - - - - -/ + protected ConditionValue getCValueTelephone() { + return _myCQ.getTelephone(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [FAX] + // - - - - - - - - -/ + protected ConditionValue getCValueFax() { + return _myCQ.getFax(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CELLPHONE] + // - - - - - - - - -/ + protected ConditionValue getCValueCellphone() { + return _myCQ.getCellphone(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DEFAULT_ADDRESS] + // - - - - - - - - -/ + protected ConditionValue getCValueDefaultAddress() { + return _myCQ.getDefaultAddress(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LANGUAGE_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueLanguageId() { + return _myCQ.getLanguageId(); + } + + + public void keepLanguageId_InScopeSubQuery_Language(jp.sf.pal.pompei.cbean.cq.LanguageCQ subQuery) { + _myCQ.keepLanguageId_InScopeSubQuery_Language(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [COUNTRY_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueCountryId() { + return _myCQ.getCountryId(); + } + + + public void keepCountryId_InScopeSubQuery_Country(jp.sf.pal.pompei.cbean.cq.CountryCQ subQuery) { + _myCQ.keepCountryId_InScopeSubQuery_Country(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ZONE_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueZoneId() { + return _myCQ.getZoneId(); + } + + + public void keepZoneId_InScopeSubQuery_Zone(jp.sf.pal.pompei.cbean.cq.ZoneCQ subQuery) { + _myCQ.keepZoneId_InScopeSubQuery_Zone(subQuery); + } + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/AddressBookCIQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodCIQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodCIQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,153 @@ +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 DELIVERY_METHOD. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodCIQ extends AbstractBsDeliveryMethodCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding condition query. */ + protected BsDeliveryMethodCQ _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 DeliveryMethodCIQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel, BsDeliveryMethodCQ 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 = [DELIVERY_METHOD] + // * * * * * * * * */ + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_METHOD_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueDeliveryMethodId() { + return _myCQ.getDeliveryMethodId(); + } + + + public void keepDeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList(jp.sf.pal.pompei.cbean.cq.DeliveryMethodDescriptionCQ subQuery) { + _myCQ.keepDeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList(subQuery); + } + + public void keepDeliveryMethodId_InScopeSubQuery_OrderFormList(jp.sf.pal.pompei.cbean.cq.OrderFormCQ subQuery) { + _myCQ.keepDeliveryMethodId_InScopeSubQuery_OrderFormList(subQuery); + } + + public void keepDeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList(jp.sf.pal.pompei.cbean.cq.DeliveryMethodDescriptionCQ subQuery) { + throw new UnsupportedOperationException("ExistsSubQuery at inline() is unsupported! Sorry!"); + // _myCQ.keepDeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList(subQuery); + } + + public void keepDeliveryMethodId_ExistsSubQuery_OrderFormList(jp.sf.pal.pompei.cbean.cq.OrderFormCQ subQuery) { + throw new UnsupportedOperationException("ExistsSubQuery at inline() is unsupported! Sorry!"); + // _myCQ.keepDeliveryMethodId_ExistsSubQuery_OrderFormList(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CODE] + // - - - - - - - - -/ + protected ConditionValue getCValueCode() { + return _myCQ.getCode(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [OBJECT_NAME] + // - - - - - - - - -/ + protected ConditionValue getCValueObjectName() { + return _myCQ.getObjectName(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [STATUS] + // - - - - - - - - -/ + protected ConditionValue getCValueStatus() { + return _myCQ.getStatus(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [SORT_ORDER] + // - - - - - - - - -/ + protected ConditionValue getCValueSortOrder() { + return _myCQ.getSortOrder(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DATE_ADDED] + // - - - - - - - - -/ + protected ConditionValue getCValueDateAdded() { + return _myCQ.getDateAdded(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LAST_MODIFIED] + // - - - - - - - - -/ + protected ConditionValue getCValueLastModified() { + return _myCQ.getLastModified(); + } + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodCIQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodDescriptionCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodDescriptionCIQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodDescriptionCIQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,119 @@ +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 DELIVERY_METHOD_DESCRIPTION. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodDescriptionCIQ extends AbstractBsDeliveryMethodDescriptionCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding condition query. */ + protected BsDeliveryMethodDescriptionCQ _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 DeliveryMethodDescriptionCIQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel, BsDeliveryMethodDescriptionCQ 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 = [DELIVERY_METHOD_DESCRIPTION] + // * * * * * * * * */ + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_METHOD_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueDeliveryMethodId() { + return _myCQ.getDeliveryMethodId(); + } + + + public void keepDeliveryMethodId_InScopeSubQuery_DeliveryMethod(jp.sf.pal.pompei.cbean.cq.DeliveryMethodCQ subQuery) { + _myCQ.keepDeliveryMethodId_InScopeSubQuery_DeliveryMethod(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LANGUAGE_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueLanguageId() { + return _myCQ.getLanguageId(); + } + + + public void keepLanguageId_InScopeSubQuery_Language(jp.sf.pal.pompei.cbean.cq.LanguageCQ subQuery) { + _myCQ.keepLanguageId_InScopeSubQuery_Language(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [NAME] + // - - - - - - - - -/ + protected ConditionValue getCValueName() { + return _myCQ.getName(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DESCRIPTION] + // - - - - - - - - -/ + protected ConditionValue getCValueDescription() { + return _myCQ.getDescription(); + } + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodDescriptionCIQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/TaxClassCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/TaxClassCIQ.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/TaxClassCIQ.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,137 @@ +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 TAX_CLASS. + * + * @author DBFlute(AutoGenerator) + */ +public class TaxClassCIQ extends AbstractBsTaxClassCQ { + + // =================================================================================== + // Attribute + // ========= + /** Corresponding condition query. */ + protected BsTaxClassCQ _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 TaxClassCIQ(ConditionQuery childQuery, SqlClause sqlClause, String aliasName, int nestLevel, BsTaxClassCQ 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 = [TAX_CLASS] + // * * * * * * * * */ + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [TAX_CLASS_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueTaxClassId() { + return _myCQ.getTaxClassId(); + } + + + public void keepTaxClassId_InScopeSubQuery_ProductList(jp.sf.pal.pompei.cbean.cq.ProductCQ subQuery) { + _myCQ.keepTaxClassId_InScopeSubQuery_ProductList(subQuery); + } + + public void keepTaxClassId_InScopeSubQuery_TaxRateList(jp.sf.pal.pompei.cbean.cq.TaxRateCQ subQuery) { + _myCQ.keepTaxClassId_InScopeSubQuery_TaxRateList(subQuery); + } + + public void keepTaxClassId_ExistsSubQuery_ProductList(jp.sf.pal.pompei.cbean.cq.ProductCQ subQuery) { + throw new UnsupportedOperationException("ExistsSubQuery at inline() is unsupported! Sorry!"); + // _myCQ.keepTaxClassId_ExistsSubQuery_ProductList(subQuery); + } + + public void keepTaxClassId_ExistsSubQuery_TaxRateList(jp.sf.pal.pompei.cbean.cq.TaxRateCQ subQuery) { + throw new UnsupportedOperationException("ExistsSubQuery at inline() is unsupported! Sorry!"); + // _myCQ.keepTaxClassId_ExistsSubQuery_TaxRateList(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [NAME] + // - - - - - - - - -/ + protected ConditionValue getCValueName() { + return _myCQ.getName(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DESCRIPTION] + // - - - - - - - - -/ + protected ConditionValue getCValueDescription() { + return _myCQ.getDescription(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LAST_MODIFIED] + // - - - - - - - - -/ + protected ConditionValue getCValueLastModified() { + return _myCQ.getLastModified(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DATE_ADDED] + // - - - - - - - - -/ + protected ConditionValue getCValueDateAdded() { + return _myCQ.getDateAdded(); + } + + +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/TaxClassCIQ.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/AddressBookNss.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/AddressBookNss.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/AddressBookNss.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,142 @@ +package jp.sf.pal.pompei.cbean.nss; + + +import jp.sf.pal.pompei.cbean.cq.AddressBookCQ; + + +/** + * The nest select setupper of ADDRESS_BOOK. + * + * @author DBFlute(AutoGenerator) + */ +public class AddressBookNss { + + // =================================================================================== + // Attribute + // ========= + /** Base query. */ + protected AddressBookCQ _query; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + * + * @param query Base query. (NotNull) + */ + public AddressBookNss(AddressBookCQ query) { + _query = query; + } + + // =================================================================================== + // Accessor + // ======== + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQuery() { + return _query != null; + } + + // =================================================================================== + // With... + // ======= + + /** Is select country? */ + protected boolean _isSelectCountry; + + /** + * Is select country? + * + * @return Determination. + */ + public boolean isSelectCountry() { + return _isSelectCountry; + } + + /** + * Set up select with country. + */ + public void withCountry() { + assertConditionQuery(); + _query.queryCountry(); + _isSelectCountry = true; + } + + /** Is select customer? */ + protected boolean _isSelectCustomer; + + /** + * Is select customer? + * + * @return Determination. + */ + public boolean isSelectCustomer() { + return _isSelectCustomer; + } + + /** + * Set up select with customer. + */ + public void withCustomer() { + assertConditionQuery(); + _query.queryCustomer(); + _isSelectCustomer = true; + } + + /** Is select language? */ + protected boolean _isSelectLanguage; + + /** + * Is select language? + * + * @return Determination. + */ + public boolean isSelectLanguage() { + return _isSelectLanguage; + } + + /** + * Set up select with language. + */ + public void withLanguage() { + assertConditionQuery(); + _query.queryLanguage(); + _isSelectLanguage = true; + } + + /** Is select zone? */ + protected boolean _isSelectZone; + + /** + * Is select zone? + * + * @return Determination. + */ + public boolean isSelectZone() { + return _isSelectZone; + } + + /** + * Set up select with zone. + */ + public void withZone() { + assertConditionQuery(); + _query.queryZone(); + _isSelectZone = 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/AddressBookNss.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/DeliveryMethodDescriptionNss.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/DeliveryMethodDescriptionNss.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/DeliveryMethodDescriptionNss.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,100 @@ +package jp.sf.pal.pompei.cbean.nss; + + +import jp.sf.pal.pompei.cbean.cq.DeliveryMethodDescriptionCQ; + + +/** + * The nest select setupper of DELIVERY_METHOD_DESCRIPTION. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodDescriptionNss { + + // =================================================================================== + // Attribute + // ========= + /** Base query. */ + protected DeliveryMethodDescriptionCQ _query; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + * + * @param query Base query. (NotNull) + */ + public DeliveryMethodDescriptionNss(DeliveryMethodDescriptionCQ query) { + _query = query; + } + + // =================================================================================== + // Accessor + // ======== + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQuery() { + return _query != null; + } + + // =================================================================================== + // With... + // ======= + + /** Is select deliveryMethod? */ + protected boolean _isSelectDeliveryMethod; + + /** + * Is select deliveryMethod? + * + * @return Determination. + */ + public boolean isSelectDeliveryMethod() { + return _isSelectDeliveryMethod; + } + + /** + * Set up select with deliveryMethod. + */ + public void withDeliveryMethod() { + assertConditionQuery(); + _query.queryDeliveryMethod(); + _isSelectDeliveryMethod = true; + } + + /** Is select language? */ + protected boolean _isSelectLanguage; + + /** + * Is select language? + * + * @return Determination. + */ + public boolean isSelectLanguage() { + return _isSelectLanguage; + } + + /** + * Set up select with language. + */ + public void withLanguage() { + assertConditionQuery(); + _query.queryLanguage(); + _isSelectLanguage = 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/DeliveryMethodDescriptionNss.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/DeliveryMethodNss.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/DeliveryMethodNss.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/DeliveryMethodNss.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,58 @@ +package jp.sf.pal.pompei.cbean.nss; + + +import jp.sf.pal.pompei.cbean.cq.DeliveryMethodCQ; + + +/** + * The nest select setupper of DELIVERY_METHOD. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodNss { + + // =================================================================================== + // Attribute + // ========= + /** Base query. */ + protected DeliveryMethodCQ _query; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + * + * @param query Base query. (NotNull) + */ + public DeliveryMethodNss(DeliveryMethodCQ query) { + _query = query; + } + + // =================================================================================== + // Accessor + // ======== + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQuery() { + return _query != null; + } + + // =================================================================================== + // With... + // ======= + + // =================================================================================== + // 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/DeliveryMethodNss.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/TaxClassNss.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/TaxClassNss.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/TaxClassNss.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,58 @@ +package jp.sf.pal.pompei.cbean.nss; + + +import jp.sf.pal.pompei.cbean.cq.TaxClassCQ; + + +/** + * The nest select setupper of TAX_CLASS. + * + * @author DBFlute(AutoGenerator) + */ +public class TaxClassNss { + + // =================================================================================== + // Attribute + // ========= + /** Base query. */ + protected TaxClassCQ _query; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + * + * @param query Base query. (NotNull) + */ + public TaxClassNss(TaxClassCQ query) { + _query = query; + } + + // =================================================================================== + // Accessor + // ======== + + /** + * Has condition query? + * + * @return Determination. + */ + public boolean hasConditionQuery() { + return _query != null; + } + + // =================================================================================== + // With... + // ======= + + // =================================================================================== + // 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/TaxClassNss.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/AddressBookBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/AddressBookBhv.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/AddressBookBhv.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exbhv; + + +/** + * The behavior of ADDRESS_BOOK. + * + * @author DBFlute(AutoGenerator) + */ +public class AddressBookBhv extends jp.sf.pal.pompei.bsbhv.BsAddressBookBhv { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/AddressBookBhv.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodBhv.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodBhv.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exbhv; + + +/** + * The behavior of DELIVERY_METHOD. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodBhv extends jp.sf.pal.pompei.bsbhv.BsDeliveryMethodBhv { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodBhv.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodDescriptionBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodDescriptionBhv.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodDescriptionBhv.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exbhv; + + +/** + * The behavior of DELIVERY_METHOD_DESCRIPTION. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodDescriptionBhv extends jp.sf.pal.pompei.bsbhv.BsDeliveryMethodDescriptionBhv { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodDescriptionBhv.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/TaxClassBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/TaxClassBhv.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/TaxClassBhv.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exbhv; + + +/** + * The behavior of TAX_CLASS. + * + * @author DBFlute(AutoGenerator) + */ +public class TaxClassBhv extends jp.sf.pal.pompei.bsbhv.BsTaxClassBhv { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/TaxClassBhv.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/AddressBookDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/AddressBookDao.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/AddressBookDao.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exdao; + + +/** + * The dao interface of ADDRESS_BOOK. + * + * @author DBFlute(AutoGenerator) + */ +public interface AddressBookDao extends jp.sf.pal.pompei.bsdao.BsAddressBookDao { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/AddressBookDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDao.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDao.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exdao; + + +/** + * The dao interface of DELIVERY_METHOD. + * + * @author DBFlute(AutoGenerator) + */ +public interface DeliveryMethodDao extends jp.sf.pal.pompei.bsdao.BsDeliveryMethodDao { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDescriptionDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDescriptionDao.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDescriptionDao.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exdao; + + +/** + * The dao interface of DELIVERY_METHOD_DESCRIPTION. + * + * @author DBFlute(AutoGenerator) + */ +public interface DeliveryMethodDescriptionDao extends jp.sf.pal.pompei.bsdao.BsDeliveryMethodDescriptionDao { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDescriptionDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/TaxClassDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/TaxClassDao.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/TaxClassDao.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,10 @@ +package jp.sf.pal.pompei.exdao; + + +/** + * The dao interface of TAX_CLASS. + * + * @author DBFlute(AutoGenerator) + */ +public interface TaxClassDao extends jp.sf.pal.pompei.bsdao.BsTaxClassDao { +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/TaxClassDao.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/AddressBook.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/AddressBook.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/AddressBook.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,13 @@ +package jp.sf.pal.pompei.exentity; + + +/** + * The entity of ADDRESS_BOOK. + * + * @author DBFlute(AutoGenerator) + */ +public class AddressBook extends jp.sf.pal.pompei.bsentity.BsAddressBook { + + /** 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/AddressBook.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethod.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethod.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethod.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,13 @@ +package jp.sf.pal.pompei.exentity; + + +/** + * The entity of DELIVERY_METHOD. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethod extends jp.sf.pal.pompei.bsentity.BsDeliveryMethod { + + /** 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/DeliveryMethod.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethodDescription.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethodDescription.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethodDescription.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,13 @@ +package jp.sf.pal.pompei.exentity; + + +/** + * The entity of DELIVERY_METHOD_DESCRIPTION. + * + * @author DBFlute(AutoGenerator) + */ +public class DeliveryMethodDescription extends jp.sf.pal.pompei.bsentity.BsDeliveryMethodDescription { + + /** 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/DeliveryMethodDescription.java ___________________________________________________________________ Name: svn:eol-style + native Added: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/TaxClass.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/TaxClass.java 2007-09-20 00:30:13 UTC (rev 569) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/TaxClass.java 2007-09-20 00:35:06 UTC (rev 570) @@ -0,0 +1,13 @@ +package jp.sf.pal.pompei.exentity; + + +/** + * The entity of TAX_CLASS. + * + * @author DBFlute(AutoGenerator) + */ +public class TaxClass extends jp.sf.pal.pompei.bsentity.BsTaxClass { + + /** 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/TaxClass.java ___________________________________________________________________ Name: svn:eol-style + native