svnno****@sourc*****
svnno****@sourc*****
2007年 8月 26日 (日) 22:48:02 JST
Revision: 497 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=497 Author: shinsuke Date: 2007-08-26 22:47:59 +0900 (Sun, 26 Aug 2007) Log Message: ----------- sync up with the latest db Modified Paths: -------------- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/allcommon/dbmeta/DBMetaInstanceHandler.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsAddressBookBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsCustomersBhv.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrdersBhv.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/BsCustomersDao.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrdersDao.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/BsCustomers.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrders.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/CustomersDbm.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrdersDbm.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/AbstractBsCustomersCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrdersCQ.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/BsCustomersCQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrdersCQ.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/CustomersCIQ.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrdersCIQ.java Added Paths: ----------- 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/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/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/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/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/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/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/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/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/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/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/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/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/exentity/DeliveryMethod.java pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethodDescription.java -------------- next part -------------- Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/allcommon/dbmeta/DBMetaInstanceHandler.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/allcommon/dbmeta/DBMetaInstanceHandler.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/allcommon/dbmeta/DBMetaInstanceHandler.java 2007-08-26 13:47:59 UTC (rev 497) @@ -32,6 +32,8 @@ tmpMap.put("CUSTOMERS_BASKET", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.CustomersBasketDbm")); tmpMap.put("CUSTOMERS_BASKET_ATTRIBUTES", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.CustomersBasketAttributesDbm")); tmpMap.put("CUSTOMERS_INFO", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.CustomersInfoDbm")); + tmpMap.put("DELIVERY_METHOD", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.DeliveryMethodDbm")); + tmpMap.put("DELIVERY_METHOD_DESCRIPTION", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.DeliveryMethodDescriptionDbm")); tmpMap.put("GEO_ZONES", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.GeoZonesDbm")); tmpMap.put("LANGUAGES", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.LanguagesDbm")); tmpMap.put("MANUFACTURERS", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ManufacturersDbm")); @@ -87,6 +89,8 @@ tmpMap.put("CustomersBasket", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.CustomersBasketDbm")); tmpMap.put("CustomersBasketAttributes", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.CustomersBasketAttributesDbm")); tmpMap.put("CustomersInfo", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.CustomersInfoDbm")); + tmpMap.put("DeliveryMethod", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.DeliveryMethodDbm")); + tmpMap.put("DeliveryMethodDescription", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.DeliveryMethodDescriptionDbm")); tmpMap.put("GeoZones", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.GeoZonesDbm")); tmpMap.put("Languages", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.LanguagesDbm")); tmpMap.put("Manufacturers", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ManufacturersDbm")); @@ -142,6 +146,8 @@ tmpMap.put("customersBasket", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.CustomersBasketDbm")); tmpMap.put("customersBasketAttributes", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.CustomersBasketAttributesDbm")); tmpMap.put("customersInfo", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.CustomersInfoDbm")); + tmpMap.put("deliveryMethod", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.DeliveryMethodDbm")); + tmpMap.put("deliveryMethodDescription", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.DeliveryMethodDescriptionDbm")); tmpMap.put("geoZones", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.GeoZonesDbm")); tmpMap.put("languages", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.LanguagesDbm")); tmpMap.put("manufacturers", getDBMeta("jp.sf.pal.pompei.bsentity.dbmeta.ManufacturersDbm")); Modified: 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsAddressBookBhv.java 2007-08-26 13:47:59 UTC (rev 497) @@ -28,7 +28,7 @@ * ADDRESS_BOOK_ID * * [column-property] - * ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID + * ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_DEPARTMENT, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_TELEPHONE, ENTRY_FAX, ENTRY_CELLPHONE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID * * [foreign-property] * customers @@ -764,6 +764,7 @@ if (names.contains("customersId")) { destinationMyEntity.setCustomersId(sourceMyEntity.getCustomersId()); } if (names.contains("entryGender")) { destinationMyEntity.setEntryGender(sourceMyEntity.getEntryGender()); } if (names.contains("entryCompany")) { destinationMyEntity.setEntryCompany(sourceMyEntity.getEntryCompany()); } + if (names.contains("entryDepartment")) { destinationMyEntity.setEntryDepartment(sourceMyEntity.getEntryDepartment()); } if (names.contains("entryFirstname")) { destinationMyEntity.setEntryFirstname(sourceMyEntity.getEntryFirstname()); } if (names.contains("entryLastname")) { destinationMyEntity.setEntryLastname(sourceMyEntity.getEntryLastname()); } if (names.contains("entryStreetAddress")) { destinationMyEntity.setEntryStreetAddress(sourceMyEntity.getEntryStreetAddress()); } @@ -771,6 +772,9 @@ if (names.contains("entryPostcode")) { destinationMyEntity.setEntryPostcode(sourceMyEntity.getEntryPostcode()); } if (names.contains("entryCity")) { destinationMyEntity.setEntryCity(sourceMyEntity.getEntryCity()); } if (names.contains("entryState")) { destinationMyEntity.setEntryState(sourceMyEntity.getEntryState()); } + if (names.contains("entryTelephone")) { destinationMyEntity.setEntryTelephone(sourceMyEntity.getEntryTelephone()); } + if (names.contains("entryFax")) { destinationMyEntity.setEntryFax(sourceMyEntity.getEntryFax()); } + if (names.contains("entryCellphone")) { destinationMyEntity.setEntryCellphone(sourceMyEntity.getEntryCellphone()); } if (names.contains("entryCountryId")) { destinationMyEntity.setEntryCountryId(sourceMyEntity.getEntryCountryId()); } if (names.contains("entryZoneId")) { destinationMyEntity.setEntryZoneId(sourceMyEntity.getEntryZoneId()); } Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsCustomersBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsCustomersBhv.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsCustomersBhv.java 2007-08-26 13:47:59 UTC (rev 497) @@ -28,7 +28,7 @@ * CUSTOMERS_ID * * [column-property] - * CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_PASSWORD, CUSTOMERS_NEWSLETTER + * CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_CELLPHONE, CUSTOMERS_NEWSLETTER * * [foreign-property] * addressBook @@ -770,7 +770,7 @@ if (names.contains("customersDefaultAddressId")) { destinationMyEntity.setCustomersDefaultAddressId(sourceMyEntity.getCustomersDefaultAddressId()); } if (names.contains("customersTelephone")) { destinationMyEntity.setCustomersTelephone(sourceMyEntity.getCustomersTelephone()); } if (names.contains("customersFax")) { destinationMyEntity.setCustomersFax(sourceMyEntity.getCustomersFax()); } - if (names.contains("customersPassword")) { destinationMyEntity.setCustomersPassword(sourceMyEntity.getCustomersPassword()); } + if (names.contains("customersCellphone")) { destinationMyEntity.setCustomersCellphone(sourceMyEntity.getCustomersCellphone()); } if (names.contains("customersNewsletter")) { destinationMyEntity.setCustomersNewsletter(sourceMyEntity.getCustomersNewsletter()); } } 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodBhv.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,870 @@ + +package jp.sf.pal.pompei.bsbhv; + +import jp.sf.pal.pompei.allcommon.*; +import jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption; +import jp.sf.pal.pompei.allcommon.bhv.setup.ConditionBeanSetupper; +import jp.sf.pal.pompei.allcommon.bhv.setup.ValueLabelSetupper; +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, DELIVERY_CLASS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * + * [foreign-property] + * + * + * [refferer-property] + * deliveryMethodDescriptionList + * + * [sequence] + * + * + * [identity] + * deliveryMethodId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public abstract class BsDeliveryMethodBhv extends jp.sf.pal.pompei.allcommon.bhv.AbstractBehaviorWritable { + + // =================================================================================== + // Attribute + // ========= + /** Dao instance. */ + protected DeliveryMethodDao _dao; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsDeliveryMethodBhv() { + } + + // =================================================================================== + // Table name + // ========== + /** + * This method implements the method that is declared at super. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return "DELIVERY_METHOD"; + } + + // =================================================================================== + // DBMeta + // ====== + /** + * This method implements the method that is declared at super. + * + * @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; + } + + /** + * This method implements the method that is declared at super. + * + * @return Dao-readable. (NotNull) + */ + public DaoReadable getDaoReadable() { + return getMyDao(); + } + + /** + * This method implements the method that is declared at super. + * + * @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) + * + * @return All count. (NotNull) + */ + public int delegateGetCountAll() { + return getMyDao().getCountAll(); + } + + /** + * Get list as all. (Delegate-Method) + * + * @return All list. (NotNull) + */ + public java.util.List<DeliveryMethod> delegateGetListAll() { + return getMyDao().getListAll(); + } + + // + // Get entity. (Delegate-Method) + // + // @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) + * + * @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) + * + * @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) + * + * @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) + * + * @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. (Delegate-Method) + * {modified only} + * + * @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) + * + * @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) + * + * @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) + * + * @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) + * + * @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); + final java.util.List<DeliveryMethod> ls = selectList(cb); + 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); + final java.util.List<DeliveryMethod> ls = selectList(cb); + 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 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, 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.getReffererConditionBean() != null ? loadRefererOption.getReffererConditionBean() : 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>()); + } + } + } + + // =================================================================================== + // 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. + * <pre> + * If it updates count zero, throws exception. + * If concurrency control of this table is valid, this update have it. + * </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 deliveryMethod) { + update((DeliveryMethod)deliveryMethod); + } + + /** + * Update after select. + * + * @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 deliveryMethod) { + updateAfterSelect((DeliveryMethod)deliveryMethod); + } + + /** + * 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 { + try { + update(deliveryMethod); + } catch (org.seasar.dao.NotSingleRowUpdatedRuntimeException e) { + insert(deliveryMethod); + } catch (jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException e) { + insert(deliveryMethod); + } + } + } + + protected void doCreateOrUpdateNonstrict(Entity deliveryMethod) { + + insertOrUpdate((DeliveryMethod)deliveryMethod); + + } + + /** + * Insert or update after select. + * {update: modified only} + * + * @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); + } + + /** + * This method implements the method that is declared at super. + * + * @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("deliveryClass")) { destinationMyEntity.setDeliveryClass(sourceMyEntity.getDeliveryClass()); } + 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. + * + * @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 deliveryMethod) { + deleteAfterSelect((DeliveryMethod)deliveryMethod); + } + + // =================================================================================== + // 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) { + } + + // =================================================================================== + // 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); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodBhv.java ___________________________________________________________________ Name: svn:eol-style + native 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodDescriptionBhv.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,712 @@ + +package jp.sf.pal.pompei.bsbhv; + +import jp.sf.pal.pompei.allcommon.*; +import jp.sf.pal.pompei.allcommon.bhv.load.LoadRefererOption; +import jp.sf.pal.pompei.allcommon.bhv.setup.ConditionBeanSetupper; +import jp.sf.pal.pompei.allcommon.bhv.setup.ValueLabelSetupper; +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, DELIVERY_METHOD_NAME + * + * [foreign-property] + * deliveryMethod + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public abstract class BsDeliveryMethodDescriptionBhv extends jp.sf.pal.pompei.allcommon.bhv.AbstractBehaviorWritable { + + // =================================================================================== + // Attribute + // ========= + /** Dao instance. */ + protected DeliveryMethodDescriptionDao _dao; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsDeliveryMethodDescriptionBhv() { + } + + // =================================================================================== + // Table name + // ========== + /** + * This method implements the method that is declared at super. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return "DELIVERY_METHOD_DESCRIPTION"; + } + + // =================================================================================== + // DBMeta + // ====== + /** + * This method implements the method that is declared at super. + * + * @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; + } + + /** + * This method implements the method that is declared at super. + * + * @return Dao-readable. (NotNull) + */ + public DaoReadable getDaoReadable() { + return getMyDao(); + } + + /** + * This method implements the method that is declared at super. + * + * @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) + * + * @return All count. (NotNull) + */ + public int delegateGetCountAll() { + return getMyDao().getCountAll(); + } + + /** + * Get list as all. (Delegate-Method) + * + * @return All list. (NotNull) + */ + public java.util.List<DeliveryMethodDescription> delegateGetListAll() { + return getMyDao().getListAll(); + } + + // + // Get entity. (Delegate-Method) + // + // @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) + * + * @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) + * + * @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) + * + * @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) + * + * @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. (Delegate-Method) + * {modified only} + * + * @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) + * + * @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) + * + * @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) + * + * @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) + * + * @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); + final java.util.List<DeliveryMethodDescription> ls = selectList(cb); + 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); + final java.util.List<DeliveryMethodDescription> ls = selectList(cb); + 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); + } + + // =================================================================================== + // 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. + * <pre> + * If it updates count zero, throws exception. + * If concurrency control of this table is valid, this update have it. + * </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 deliveryMethodDescription) { + update((DeliveryMethodDescription)deliveryMethodDescription); + } + + /** + * Update after select. + * + * @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 deliveryMethodDescription) { + updateAfterSelect((DeliveryMethodDescription)deliveryMethodDescription); + } + + /** + * 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 { + try { + update(deliveryMethodDescription); + } catch (org.seasar.dao.NotSingleRowUpdatedRuntimeException e) { + insert(deliveryMethodDescription); + } catch (jp.sf.pal.pompei.allcommon.exception.RecordHasAlreadyBeenDeletedException e) { + insert(deliveryMethodDescription); + } + } + } + + protected void doCreateOrUpdateNonstrict(Entity deliveryMethodDescription) { + + insertOrUpdate((DeliveryMethodDescription)deliveryMethodDescription); + + } + + /** + * Insert or update after select. + * {update: modified only} + * + * @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); + } + + /** + * This method implements the method that is declared at super. + * + * @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("deliveryMethodName")) { destinationMyEntity.setDeliveryMethodName(sourceMyEntity.getDeliveryMethodName()); } + + } + + /** + * 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. + * + * @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 deliveryMethodDescription) { + deleteAfterSelect((DeliveryMethodDescription)deliveryMethodDescription); + } + + // =================================================================================== + // 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 + // ============== + + // =================================================================================== + // 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); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsDeliveryMethodDescriptionBhv.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrdersBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrdersBhv.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsbhv/BsOrdersBhv.java 2007-08-26 13:47:59 UTC (rev 497) @@ -28,7 +28,7 @@ * ORDERS_ID * * [column-property] - * ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE + * ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_CELLPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_DEPARTMENT, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_TELEPHONE, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_DEPARTMENT, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_TELEPHONE, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, DELIVERY_METHOD_ID, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE * * [foreign-property] * ordersStatus @@ -771,31 +771,37 @@ if (names.contains("customersState")) { destinationMyEntity.setCustomersState(sourceMyEntity.getCustomersState()); } if (names.contains("customersCountry")) { destinationMyEntity.setCustomersCountry(sourceMyEntity.getCustomersCountry()); } if (names.contains("customersTelephone")) { destinationMyEntity.setCustomersTelephone(sourceMyEntity.getCustomersTelephone()); } + if (names.contains("customersCellphone")) { destinationMyEntity.setCustomersCellphone(sourceMyEntity.getCustomersCellphone()); } if (names.contains("customersEmailAddress")) { destinationMyEntity.setCustomersEmailAddress(sourceMyEntity.getCustomersEmailAddress()); } if (names.contains("customersAddressFormatId")) { destinationMyEntity.setCustomersAddressFormatId(sourceMyEntity.getCustomersAddressFormatId()); } if (names.contains("deliveryName")) { destinationMyEntity.setDeliveryName(sourceMyEntity.getDeliveryName()); } if (names.contains("deliveryCompany")) { destinationMyEntity.setDeliveryCompany(sourceMyEntity.getDeliveryCompany()); } + if (names.contains("deliveryDepartment")) { destinationMyEntity.setDeliveryDepartment(sourceMyEntity.getDeliveryDepartment()); } if (names.contains("deliveryStreetAddress")) { destinationMyEntity.setDeliveryStreetAddress(sourceMyEntity.getDeliveryStreetAddress()); } if (names.contains("deliverySuburb")) { destinationMyEntity.setDeliverySuburb(sourceMyEntity.getDeliverySuburb()); } if (names.contains("deliveryCity")) { destinationMyEntity.setDeliveryCity(sourceMyEntity.getDeliveryCity()); } if (names.contains("deliveryPostcode")) { destinationMyEntity.setDeliveryPostcode(sourceMyEntity.getDeliveryPostcode()); } if (names.contains("deliveryState")) { destinationMyEntity.setDeliveryState(sourceMyEntity.getDeliveryState()); } if (names.contains("deliveryCountry")) { destinationMyEntity.setDeliveryCountry(sourceMyEntity.getDeliveryCountry()); } + if (names.contains("deliveryTelephone")) { destinationMyEntity.setDeliveryTelephone(sourceMyEntity.getDeliveryTelephone()); } if (names.contains("deliveryAddressFormatId")) { destinationMyEntity.setDeliveryAddressFormatId(sourceMyEntity.getDeliveryAddressFormatId()); } if (names.contains("billingName")) { destinationMyEntity.setBillingName(sourceMyEntity.getBillingName()); } if (names.contains("billingCompany")) { destinationMyEntity.setBillingCompany(sourceMyEntity.getBillingCompany()); } + if (names.contains("billingDepartment")) { destinationMyEntity.setBillingDepartment(sourceMyEntity.getBillingDepartment()); } if (names.contains("billingStreetAddress")) { destinationMyEntity.setBillingStreetAddress(sourceMyEntity.getBillingStreetAddress()); } if (names.contains("billingSuburb")) { destinationMyEntity.setBillingSuburb(sourceMyEntity.getBillingSuburb()); } if (names.contains("billingCity")) { destinationMyEntity.setBillingCity(sourceMyEntity.getBillingCity()); } if (names.contains("billingPostcode")) { destinationMyEntity.setBillingPostcode(sourceMyEntity.getBillingPostcode()); } if (names.contains("billingState")) { destinationMyEntity.setBillingState(sourceMyEntity.getBillingState()); } if (names.contains("billingCountry")) { destinationMyEntity.setBillingCountry(sourceMyEntity.getBillingCountry()); } + if (names.contains("billingTelephone")) { destinationMyEntity.setBillingTelephone(sourceMyEntity.getBillingTelephone()); } if (names.contains("billingAddressFormatId")) { destinationMyEntity.setBillingAddressFormatId(sourceMyEntity.getBillingAddressFormatId()); } if (names.contains("paymentMethod")) { destinationMyEntity.setPaymentMethod(sourceMyEntity.getPaymentMethod()); } if (names.contains("ccType")) { destinationMyEntity.setCcType(sourceMyEntity.getCcType()); } if (names.contains("ccOwner")) { destinationMyEntity.setCcOwner(sourceMyEntity.getCcOwner()); } if (names.contains("ccNumber")) { destinationMyEntity.setCcNumber(sourceMyEntity.getCcNumber()); } if (names.contains("ccExpires")) { destinationMyEntity.setCcExpires(sourceMyEntity.getCcExpires()); } + if (names.contains("deliveryMethodId")) { destinationMyEntity.setDeliveryMethodId(sourceMyEntity.getDeliveryMethodId()); } if (names.contains("lastModified")) { destinationMyEntity.setLastModified(sourceMyEntity.getLastModified()); } if (names.contains("datePurchased")) { destinationMyEntity.setDatePurchased(sourceMyEntity.getDatePurchased()); } if (names.contains("ordersStatusId")) { destinationMyEntity.setOrdersStatusId(sourceMyEntity.getOrdersStatusId()); } Modified: 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsAddressBookDao.java 2007-08-26 13:47:59 UTC (rev 497) @@ -11,7 +11,7 @@ * ADDRESS_BOOK_ID * * [column-property] - * ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID + * ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_DEPARTMENT, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_TELEPHONE, ENTRY_FAX, ENTRY_CELLPHONE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID * * [foreign-property] * customers Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsCustomersDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsCustomersDao.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsCustomersDao.java 2007-08-26 13:47:59 UTC (rev 497) @@ -11,7 +11,7 @@ * CUSTOMERS_ID * * [column-property] - * CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_PASSWORD, CUSTOMERS_NEWSLETTER + * CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_CELLPHONE, CUSTOMERS_NEWSLETTER * * [foreign-property] * addressBook 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDao.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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, DELIVERY_CLASS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * + * [foreign-property] + * + * + * [refferer-property] + * deliveryMethodDescriptionList + * + * [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 * 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 * 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsDeliveryMethodDescriptionDao.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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, DELIVERY_METHOD_NAME + * + * [foreign-property] + * deliveryMethod + * + * [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 * 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 * 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 Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrdersDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrdersDao.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsdao/BsOrdersDao.java 2007-08-26 13:47:59 UTC (rev 497) @@ -11,7 +11,7 @@ * ORDERS_ID * * [column-property] - * ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE + * ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_CELLPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_DEPARTMENT, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_TELEPHONE, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_DEPARTMENT, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_TELEPHONE, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, DELIVERY_METHOD_ID, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE * * [foreign-property] * ordersStatus Modified: 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsAddressBook.java 2007-08-26 13:47:59 UTC (rev 497) @@ -13,7 +13,7 @@ * ADDRESS_BOOK_ID * * [column-property] - * ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID + * ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_DEPARTMENT, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_TELEPHONE, ENTRY_FAX, ENTRY_CELLPHONE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID * * [foreign-property] * customers @@ -68,6 +68,9 @@ /** The value of entryCompany. ColumnDefinition -- VARCHAR(32)*/ protected String _entryCompany; + /** The value of entryDepartment. ColumnDefinition -- VARCHAR(32)*/ + protected String _entryDepartment; + /** The value of entryFirstname. ColumnDefinition -- VARCHAR(32) : NotNull*/ protected String _entryFirstname; @@ -89,6 +92,15 @@ /** The value of entryState. ColumnDefinition -- VARCHAR(32)*/ protected String _entryState; + /** The value of entryTelephone. ColumnDefinition -- VARCHAR(32) : NotNull*/ + protected String _entryTelephone; + + /** The value of entryFax. ColumnDefinition -- VARCHAR(32)*/ + protected String _entryFax; + + /** The value of entryCellphone. ColumnDefinition -- VARCHAR(32)*/ + protected String _entryCellphone; + /** The value of entryCountryId. ColumnDefinition -- INTEGER : NotNull : Default=[0]*/ protected java.math.BigDecimal _entryCountryId; @@ -247,6 +259,30 @@ _entryCompany = entryCompany; } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32)*/ + public static final String entryDepartment_COLUMN = "ENTRY_DEPARTMENT"; + + /** + * Get the value of entryDepartment. <br /> + * {VARCHAR(32)} + * + * @return The value of entryDepartment. (Nullable) + */ + public String getEntryDepartment() { + return _entryDepartment; + } + + /** + * Set the value of entryDepartment. <br /> + * {VARCHAR(32)} + * + * @param entryDepartment The value of entryDepartment. (Nullable) + */ + public void setEntryDepartment(String entryDepartment) { + _modifiedProperties.addPropertyName("entryDepartment"); + _entryDepartment = entryDepartment; + } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32) : NotNull*/ public static final String entryFirstname_COLUMN = "ENTRY_FIRSTNAME"; @@ -415,6 +451,78 @@ _entryState = entryState; } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32) : NotNull*/ + public static final String entryTelephone_COLUMN = "ENTRY_TELEPHONE"; + + /** + * Get the value of entryTelephone. <br /> + * {VARCHAR(32) : NotNull} + * + * @return The value of entryTelephone. (Nullable) + */ + public String getEntryTelephone() { + return _entryTelephone; + } + + /** + * Set the value of entryTelephone. <br /> + * {VARCHAR(32) : NotNull} + * + * @param entryTelephone The value of entryTelephone. (Nullable) + */ + public void setEntryTelephone(String entryTelephone) { + _modifiedProperties.addPropertyName("entryTelephone"); + _entryTelephone = entryTelephone; + } + + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32)*/ + public static final String entryFax_COLUMN = "ENTRY_FAX"; + + /** + * Get the value of entryFax. <br /> + * {VARCHAR(32)} + * + * @return The value of entryFax. (Nullable) + */ + public String getEntryFax() { + return _entryFax; + } + + /** + * Set the value of entryFax. <br /> + * {VARCHAR(32)} + * + * @param entryFax The value of entryFax. (Nullable) + */ + public void setEntryFax(String entryFax) { + _modifiedProperties.addPropertyName("entryFax"); + _entryFax = entryFax; + } + + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32)*/ + public static final String entryCellphone_COLUMN = "ENTRY_CELLPHONE"; + + /** + * Get the value of entryCellphone. <br /> + * {VARCHAR(32)} + * + * @return The value of entryCellphone. (Nullable) + */ + public String getEntryCellphone() { + return _entryCellphone; + } + + /** + * Set the value of entryCellphone. <br /> + * {VARCHAR(32)} + * + * @param entryCellphone The value of entryCellphone. (Nullable) + */ + public void setEntryCellphone(String entryCellphone) { + _modifiedProperties.addPropertyName("entryCellphone"); + _entryCellphone = entryCellphone; + } + /** Column-Annotation for S2Dao. ColumnDefinition -- INTEGER : NotNull : Default=[0]*/ public static final String entryCountryId_COLUMN = "ENTRY_COUNTRY_ID"; @@ -467,16 +575,16 @@ // =================================================================================== // Classify Method // =============== - + // =================================================================================== // Classification Determination // ============================ - + // =================================================================================== // Classification Getter // ===================== - + // =================================================================================== // Foreign Table @@ -752,6 +860,7 @@ sb.append(delimiter).append(getCustomersId()); sb.append(delimiter).append(getEntryGender()); sb.append(delimiter).append(getEntryCompany()); + sb.append(delimiter).append(getEntryDepartment()); sb.append(delimiter).append(getEntryFirstname()); sb.append(delimiter).append(getEntryLastname()); sb.append(delimiter).append(getEntryStreetAddress()); @@ -759,6 +868,9 @@ sb.append(delimiter).append(getEntryPostcode()); sb.append(delimiter).append(getEntryCity()); sb.append(delimiter).append(getEntryState()); + sb.append(delimiter).append(getEntryTelephone()); + sb.append(delimiter).append(getEntryFax()); + sb.append(delimiter).append(getEntryCellphone()); sb.append(delimiter).append(getEntryCountryId()); sb.append(delimiter).append(getEntryZoneId()); Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsCustomers.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsCustomers.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsCustomers.java 2007-08-26 13:47:59 UTC (rev 497) @@ -13,7 +13,7 @@ * CUSTOMERS_ID * * [column-property] - * CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_PASSWORD, CUSTOMERS_NEWSLETTER + * CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_CELLPHONE, CUSTOMERS_NEWSLETTER * * [foreign-property] * addressBook @@ -86,8 +86,8 @@ /** The value of customersFax. ColumnDefinition -- VARCHAR(32)*/ protected String _customersFax; - /** The value of customersPassword. ColumnDefinition -- VARCHAR(40) : NotNull*/ - protected String _customersPassword; + /** The value of customersCellphone. ColumnDefinition -- VARCHAR(32)*/ + protected String _customersCellphone; /** The value of customersNewsletter. ColumnDefinition -- CHAR(1)*/ protected String _customersNewsletter; @@ -388,28 +388,28 @@ _customersFax = customersFax; } - /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(40) : NotNull*/ - public static final String customersPassword_COLUMN = "CUSTOMERS_PASSWORD"; + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32)*/ + public static final String customersCellphone_COLUMN = "CUSTOMERS_CELLPHONE"; /** - * Get the value of customersPassword. <br /> - * {VARCHAR(40) : NotNull} + * Get the value of customersCellphone. <br /> + * {VARCHAR(32)} * - * @return The value of customersPassword. (Nullable) + * @return The value of customersCellphone. (Nullable) */ - public String getCustomersPassword() { - return _customersPassword; + public String getCustomersCellphone() { + return _customersCellphone; } /** - * Set the value of customersPassword. <br /> - * {VARCHAR(40) : NotNull} + * Set the value of customersCellphone. <br /> + * {VARCHAR(32)} * - * @param customersPassword The value of customersPassword. (Nullable) + * @param customersCellphone The value of customersCellphone. (Nullable) */ - public void setCustomersPassword(String customersPassword) { - _modifiedProperties.addPropertyName("customersPassword"); - _customersPassword = customersPassword; + public void setCustomersCellphone(String customersCellphone) { + _modifiedProperties.addPropertyName("customersCellphone"); + _customersCellphone = customersCellphone; } /** Column-Annotation for S2Dao. ColumnDefinition -- CHAR(1)*/ @@ -731,7 +731,7 @@ sb.append(delimiter).append(getCustomersDefaultAddressId()); sb.append(delimiter).append(getCustomersTelephone()); sb.append(delimiter).append(getCustomersFax()); - sb.append(delimiter).append(getCustomersPassword()); + sb.append(delimiter).append(getCustomersCellphone()); sb.append(delimiter).append(getCustomersNewsletter()); sb.delete(0, delimiter.length()); 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsDeliveryMethod.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,503 @@ +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. + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID + * + * [column-property] + * DELIVERY_METHOD_ID, DELIVERY_CLASS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * + * [foreign-property] + * + * + * [refferer-property] + * deliveryMethodDescriptionList + * + * [sequence] + * + * + * [identity] + * deliveryMethodId + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public abstract class BsDeliveryMethod implements Entity, java.io.Serializable { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; + + /** TABLE-Annotation for S2Dao */ + 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. ColumnDefinition -- PK : INC : INTEGER : NotNull : Default=[AUTOINCREMENT: start 1 increment 1]*/ + protected java.math.BigDecimal _deliveryMethodId; + + /** The value of deliveryClass. ColumnDefinition -- VARCHAR(128) : NotNull*/ + protected String _deliveryClass; + + /** The value of sortOrder. ColumnDefinition -- INTEGER*/ + protected java.math.BigDecimal _sortOrder; + + /** The value of dateAdded. ColumnDefinition -- TIMESTAMP*/ + protected java.sql.Timestamp _dateAdded; + + /** The value of lastModified. ColumnDefinition -- TIMESTAMP*/ + protected java.sql.Timestamp _lastModified; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsDeliveryMethod() { + } + + + // =================================================================================== + // DBMeta + // ====== + /** + * This method implements the method that is declared at super. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return DBMetaInstanceHandler.getInstanceByTableDbName(getTableDbName()); + } + + // =================================================================================== + // Table Name + // ========== + /** + * This method implements the method that is declared at super. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return "DELIVERY_METHOD"; + } + + /** + * This method implements the method that is declared at super. + * + * @return Table cap-prop-name. (NotNull) + */ + public String getTableCapPropName() { + return "DeliveryMethod"; + } + + /** + * This method implements the method that is declared at super. + * + * @return Table uncap-prop-name. (NotNull) + */ + public String getTableUncapPropName() { + return "deliveryMethod"; + } + + // =================================================================================== + // Accessor + // ======== + + /** Column-Annotation for S2Dao. ColumnDefinition -- PK : INC : INTEGER : NotNull : Default=[AUTOINCREMENT: start 1 increment 1]*/ + public static final String deliveryMethodId_COLUMN = "DELIVERY_METHOD_ID"; + + /** + * Get the value of deliveryMethodId. <br /> + * {PK : INC : INTEGER : NotNull : Default=[AUTOINCREMENT: start 1 increment 1]} + * + * @return The value of deliveryMethodId. (Nullable) + */ + public java.math.BigDecimal getDeliveryMethodId() { + return _deliveryMethodId; + } + + /** + * Set the value of deliveryMethodId. <br /> + * {PK : INC : INTEGER : NotNull : Default=[AUTOINCREMENT: start 1 increment 1]} + * + * @param deliveryMethodId The value of deliveryMethodId. (Nullable) + */ + public void setDeliveryMethodId(java.math.BigDecimal deliveryMethodId) { + _modifiedProperties.addPropertyName("deliveryMethodId"); + _deliveryMethodId = deliveryMethodId; + } + + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(128) : NotNull*/ + public static final String deliveryClass_COLUMN = "DELIVERY_CLASS"; + + /** + * Get the value of deliveryClass. <br /> + * {VARCHAR(128) : NotNull} + * + * @return The value of deliveryClass. (Nullable) + */ + public String getDeliveryClass() { + return _deliveryClass; + } + + /** + * Set the value of deliveryClass. <br /> + * {VARCHAR(128) : NotNull} + * + * @param deliveryClass The value of deliveryClass. (Nullable) + */ + public void setDeliveryClass(String deliveryClass) { + _modifiedProperties.addPropertyName("deliveryClass"); + _deliveryClass = deliveryClass; + } + + /** Column-Annotation for S2Dao. ColumnDefinition -- INTEGER*/ + public static final String sortOrder_COLUMN = "SORT_ORDER"; + + /** + * Get the value of sortOrder. <br /> + * {INTEGER} + * + * @return The value of sortOrder. (Nullable) + */ + public java.math.BigDecimal getSortOrder() { + return _sortOrder; + } + + /** + * Set the value of sortOrder. <br /> + * {INTEGER} + * + * @param sortOrder The value of sortOrder. (Nullable) + */ + public void setSortOrder(java.math.BigDecimal sortOrder) { + _modifiedProperties.addPropertyName("sortOrder"); + _sortOrder = sortOrder; + } + + /** Column-Annotation for S2Dao. ColumnDefinition -- TIMESTAMP*/ + public static final String dateAdded_COLUMN = "DATE_ADDED"; + + /** + * Get the value of dateAdded. <br /> + * {TIMESTAMP} + * + * @return The value of dateAdded. (Nullable) + */ + public java.sql.Timestamp getDateAdded() { + return _dateAdded; + } + + /** + * Set the value of dateAdded. <br /> + * {TIMESTAMP} + * + * @param dateAdded The value of dateAdded. (Nullable) + */ + public void setDateAdded(java.sql.Timestamp dateAdded) { + _modifiedProperties.addPropertyName("dateAdded"); + _dateAdded = dateAdded; + } + + /** Column-Annotation for S2Dao. ColumnDefinition -- 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"); + _lastModified = lastModified; + } + + + // =================================================================================== + // Classify Method + // =============== + + // =================================================================================== + // Classification Determination + // ============================ + + + // =================================================================================== + // Classification Getter + // ===================== + + + // =================================================================================== + // Foreign Table + // ============= + + // =================================================================================== + // Refferer Table + // ============== + + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ReffererTable = [DELIVERY_METHOD_DESCRIPTION] + // ReffererProperty = [deliveryMethodDescriptionList] + // * * * * * * * * */ + + /** The list of refferer table. */ + protected java.util.List<jp.sf.pal.pompei.exentity.DeliveryMethodDescription> _childrenDeliveryMethodDescriptionList; + + /** + * Get the list of refferer table without lazyload. + * If it's not loaded yet, returns null. + * + * @return The list of refferer table. (Nullable) + */ + public java.util.List<jp.sf.pal.pompei.exentity.DeliveryMethodDescription> getDeliveryMethodDescriptionList() { + return _childrenDeliveryMethodDescriptionList; + } + + /** + * Set the list of refferer table. + * + * @param value The list of refferer table. (Nullable) + */ + public void setDeliveryMethodDescriptionList(java.util.List<jp.sf.pal.pompei.exentity.DeliveryMethodDescription> entity) { + this._childrenDeliveryMethodDescriptionList = entity; + } + + // =================================================================================== + // Accept + // ====== + /** + * This method implements the method that is declared at super. + * + * @param primaryKeyMap Primary key map. (NotNull and NotEmpty) + * @deprecated Please use DeliveryMethodDbm.getInstance().acceptPrimaryKeyMap(entity, primaryKeyMap); + */ + public void acceptPrimaryKeyMap(java.util.Map<String, ? extends Object> primaryKeyMap) { + getDBMeta().acceptPrimaryKeyMap(this, primaryKeyMap); + } + + /** + * This method implements the method that is declared at super. + * + * @param primaryKeyMapString Primary-key map-string. (NotNull and NotEmpty) + * @deprecated Please use DeliveryMethodDbm.getInstance().acceptPrimaryKeyMapString(entity, primaryKeyMapString); + */ + public void acceptPrimaryKeyMapString(String primaryKeyMapString) { + getDBMeta().acceptPrimaryKeyMapString(this, primaryKeyMapString); + } + + /** + * This method implements the method that is declared at super. + * + * @param columnValueMap Column-value map. (NotNull and NotEmpty) + * @deprecated Please use DeliveryMethodDbm.getInstance().acceptColumnValueMap(entity, columnValueMap); + */ + public void acceptColumnValueMap(java.util.Map<String, ? extends Object> columnValueMap) { + getDBMeta().acceptColumnValueMap(this, columnValueMap); + } + + /** + * This method implements the method that is declared at super. + * + * @param columnValueMapString Column-value map-string. (NotNull and NotEmpty) + * @deprecated Please use DeliveryMethodDbm.getInstance().acceptColumnValueMap(entity, columnValueMapString); + */ + public void acceptColumnValueMapString(String columnValueMapString) { + getDBMeta().acceptColumnValueMapString(this, columnValueMapString); + } + + // =================================================================================== + // Extract + // ======= + /** + * This method implements the method that is declared at super. + * + * @return Primary-key map-string. (NotNull) + * @deprecated Please use DeliveryMethodDbm.getInstance().extractPrimaryKeyMapString(entity); + */ + public String extractPrimaryKeyMapString() { + return getDBMeta().extractPrimaryKeyMapString(this); + } + + /** + * Extract primary-key map-string. + * + * @param startBrace Start-brace. (NotNull) + * @param endBrace End-brace. (NotNull) + * @param delimiter Delimiter. (NotNull) + * @param equal Equal. (NotNull) + * @return Primary-key map-string. (NotNull) + * @deprecated Please use DeliveryMethodDbm.getInstance().extractPrimaryKeyMapString(entity, startBrace, endBrace, delimiter, equal); + */ + public String extractPrimaryKeyMapString(String startBrace, String endBrace, String delimiter, String equal) { + return getDBMeta().extractPrimaryKeyMapString(this, startBrace, endBrace, delimiter, equal); + } + + /** + * This method implements the method that is declared at super. + * + * @return Column-value map-string. (NotNull) + * @deprecated Please use DeliveryMethodDbm.getInstance().extractColumnValueMapString(entity); + */ + public String extractColumnValueMapString() { + return getDBMeta().extractColumnValueMapString(this); + } + + /** + * Extract column-value map-string. + * + * @param startBrace Start-brace. (NotNull) + * @param endBrace End-brace. (NotNull) + * @param delimiter Delimiter. (NotNull) + * @param equal Equal. (NotNull) + * @return Column-value map-string. (NotNull) + * @deprecated Please use DeliveryMethodDbm.getInstance().extractColumnValueMapString(entity, startBrace, endBrace, delimiter, equal); + */ + public String extractColumnValueMapString(String startBrace, String endBrace, String delimiter, String equal) { + return getDBMeta().extractColumnValueMapString(this, startBrace, endBrace, delimiter, equal); + } + + + // =================================================================================== + // Determination + // ============= + /** + * This method implements the method that is declared at super. + * + * @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 + // ============== + + /** + * This method overrides the method that is declared at super. + * 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; + } + + /** + * This method overrides the method that is declared at super. + * 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; + } + + /** + * This method overrides the method that is declared at super. + * + * @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(getDeliveryClass()); + 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(); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsDeliveryMethod.java ___________________________________________________________________ Name: svn:eol-style + native 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsDeliveryMethodDescription.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,467 @@ +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. + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID, LANGUAGE_ID + * + * [column-property] + * DELIVERY_METHOD_ID, LANGUAGE_ID, DELIVERY_METHOD_NAME + * + * [foreign-property] + * deliveryMethod + * + * [refferer-property] + * + * + * [sequence] + * + * + * [identity] + * + * + * [update-date] + * + * + * [version-no] + * + * + * </pre> + * + * @author DBFlute(AutoGenerator) + */ +public abstract class BsDeliveryMethodDescription implements Entity, java.io.Serializable { + + /** Serial version UID. (Default) */ + private static final long serialVersionUID = 1L; + + /** TABLE-Annotation for S2Dao */ + public static final String TABLE = "DELIVERY_METHOD_DESCRIPTION"; + + + // =================================================================================== + // Attribute + // ========= + /** Entity modified properties. (for S2Dao) */ + protected EntityModifiedProperties _modifiedProperties = newEntityModifiedProperties(); + + + /** The value of deliveryMethodId. ColumnDefinition -- PK : INTEGER : NotNull : Default=[0] : FK to DELIVERY_METHOD*/ + protected java.math.BigDecimal _deliveryMethodId; + + /** The value of languageId. ColumnDefinition -- PK : INTEGER : NotNull : Default=[1]*/ + protected java.math.BigDecimal _languageId; + + /** The value of deliveryMethodName. ColumnDefinition -- VARCHAR(32) : NotNull*/ + protected String _deliveryMethodName; + + // =================================================================================== + // Constructor + // =========== + /** + * Constructor. + */ + public BsDeliveryMethodDescription() { + } + + + // =================================================================================== + // DBMeta + // ====== + /** + * This method implements the method that is declared at super. + * + * @return DBMeta. (NotNull) + */ + public DBMeta getDBMeta() { + return DBMetaInstanceHandler.getInstanceByTableDbName(getTableDbName()); + } + + // =================================================================================== + // Table Name + // ========== + /** + * This method implements the method that is declared at super. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return "DELIVERY_METHOD_DESCRIPTION"; + } + + /** + * This method implements the method that is declared at super. + * + * @return Table cap-prop-name. (NotNull) + */ + public String getTableCapPropName() { + return "DeliveryMethodDescription"; + } + + /** + * This method implements the method that is declared at super. + * + * @return Table uncap-prop-name. (NotNull) + */ + public String getTableUncapPropName() { + return "deliveryMethodDescription"; + } + + // =================================================================================== + // Accessor + // ======== + + /** Column-Annotation for S2Dao. ColumnDefinition -- 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"); + _deliveryMethodId = deliveryMethodId; + } + + /** Column-Annotation for S2Dao. ColumnDefinition -- PK : INTEGER : NotNull : Default=[1]*/ + public static final String languageId_COLUMN = "LANGUAGE_ID"; + + /** + * Get the value of languageId. <br /> + * {PK : INTEGER : NotNull : Default=[1]} + * + * @return The value of languageId. (Nullable) + */ + public java.math.BigDecimal getLanguageId() { + return _languageId; + } + + /** + * Set the value of languageId. <br /> + * {PK : INTEGER : NotNull : Default=[1]} + * + * @param languageId The value of languageId. (Nullable) + */ + public void setLanguageId(java.math.BigDecimal languageId) { + _modifiedProperties.addPropertyName("languageId"); + _languageId = languageId; + } + + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32) : NotNull*/ + public static final String deliveryMethodName_COLUMN = "DELIVERY_METHOD_NAME"; + + /** + * Get the value of deliveryMethodName. <br /> + * {VARCHAR(32) : NotNull} + * + * @return The value of deliveryMethodName. (Nullable) + */ + public String getDeliveryMethodName() { + return _deliveryMethodName; + } + + /** + * Set the value of deliveryMethodName. <br /> + * {VARCHAR(32) : NotNull} + * + * @param deliveryMethodName The value of deliveryMethodName. (Nullable) + */ + public void setDeliveryMethodName(String deliveryMethodName) { + _modifiedProperties.addPropertyName("deliveryMethodName"); + _deliveryMethodName = deliveryMethodName; + } + + + // =================================================================================== + // Classify Method + // =============== + + // =================================================================================== + // Classification Determination + // ============================ + + + // =================================================================================== + // Classification Getter + // ===================== + + + // =================================================================================== + // Foreign Table + // ============= + + // /* * * * * * * * * * * * * * * * * * * * * * * + // ForeignTable = [DELIVERY_METHOD] + // 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 without lazyload. + * + * @return The entity of foreign table. + */ + public jp.sf.pal.pompei.exentity.DeliveryMethod getDeliveryMethod() { + return _parentDeliveryMethod; + } + + /** + * Set the entity of foreign table. + * + * @param v The entity of foreign table. + */ + public void setDeliveryMethod(jp.sf.pal.pompei.exentity.DeliveryMethod entity) { + this._parentDeliveryMethod = entity; + } + + /** + * Has relation object of deliveryMethod. + * + * @return Determination. + */ + public boolean hasRelationDeliveryMethod() { + return _parentDeliveryMethod != null && _parentDeliveryMethod.hasPrimaryKeyValue(); + } + + + // =================================================================================== + // Refferer Table + // ============== + + // =================================================================================== + // Accept + // ====== + /** + * This method implements the method that is declared at super. + * + * @param primaryKeyMap Primary key map. (NotNull and NotEmpty) + * @deprecated Please use DeliveryMethodDescriptionDbm.getInstance().acceptPrimaryKeyMap(entity, primaryKeyMap); + */ + public void acceptPrimaryKeyMap(java.util.Map<String, ? extends Object> primaryKeyMap) { + getDBMeta().acceptPrimaryKeyMap(this, primaryKeyMap); + } + + /** + * This method implements the method that is declared at super. + * + * @param primaryKeyMapString Primary-key map-string. (NotNull and NotEmpty) + * @deprecated Please use DeliveryMethodDescriptionDbm.getInstance().acceptPrimaryKeyMapString(entity, primaryKeyMapString); + */ + public void acceptPrimaryKeyMapString(String primaryKeyMapString) { + getDBMeta().acceptPrimaryKeyMapString(this, primaryKeyMapString); + } + + /** + * This method implements the method that is declared at super. + * + * @param columnValueMap Column-value map. (NotNull and NotEmpty) + * @deprecated Please use DeliveryMethodDescriptionDbm.getInstance().acceptColumnValueMap(entity, columnValueMap); + */ + public void acceptColumnValueMap(java.util.Map<String, ? extends Object> columnValueMap) { + getDBMeta().acceptColumnValueMap(this, columnValueMap); + } + + /** + * This method implements the method that is declared at super. + * + * @param columnValueMapString Column-value map-string. (NotNull and NotEmpty) + * @deprecated Please use DeliveryMethodDescriptionDbm.getInstance().acceptColumnValueMap(entity, columnValueMapString); + */ + public void acceptColumnValueMapString(String columnValueMapString) { + getDBMeta().acceptColumnValueMapString(this, columnValueMapString); + } + + // =================================================================================== + // Extract + // ======= + /** + * This method implements the method that is declared at super. + * + * @return Primary-key map-string. (NotNull) + * @deprecated Please use DeliveryMethodDescriptionDbm.getInstance().extractPrimaryKeyMapString(entity); + */ + public String extractPrimaryKeyMapString() { + return getDBMeta().extractPrimaryKeyMapString(this); + } + + /** + * Extract primary-key map-string. + * + * @param startBrace Start-brace. (NotNull) + * @param endBrace End-brace. (NotNull) + * @param delimiter Delimiter. (NotNull) + * @param equal Equal. (NotNull) + * @return Primary-key map-string. (NotNull) + * @deprecated Please use DeliveryMethodDescriptionDbm.getInstance().extractPrimaryKeyMapString(entity, startBrace, endBrace, delimiter, equal); + */ + public String extractPrimaryKeyMapString(String startBrace, String endBrace, String delimiter, String equal) { + return getDBMeta().extractPrimaryKeyMapString(this, startBrace, endBrace, delimiter, equal); + } + + /** + * This method implements the method that is declared at super. + * + * @return Column-value map-string. (NotNull) + * @deprecated Please use DeliveryMethodDescriptionDbm.getInstance().extractColumnValueMapString(entity); + */ + public String extractColumnValueMapString() { + return getDBMeta().extractColumnValueMapString(this); + } + + /** + * Extract column-value map-string. + * + * @param startBrace Start-brace. (NotNull) + * @param endBrace End-brace. (NotNull) + * @param delimiter Delimiter. (NotNull) + * @param equal Equal. (NotNull) + * @return Column-value map-string. (NotNull) + * @deprecated Please use DeliveryMethodDescriptionDbm.getInstance().extractColumnValueMapString(entity, startBrace, endBrace, delimiter, equal); + */ + public String extractColumnValueMapString(String startBrace, String endBrace, String delimiter, String equal) { + return getDBMeta().extractColumnValueMapString(this, startBrace, endBrace, delimiter, equal); + } + + + // =================================================================================== + // Determination + // ============= + /** + * This method implements the method that is declared at super. + * + * @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 + // ============== + + /** + * This method overrides the method that is declared at super. + * 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; + } + + /** + * This method overrides the method that is declared at super. + * 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; + } + + /** + * This method overrides the method that is declared at super. + * + * @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(getDeliveryMethodName()); + + sb.delete(0, delimiter.length()); + sb.insert(0, "{").append("}"); + return sb.toString(); + } +} Property changes on: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsDeliveryMethodDescription.java ___________________________________________________________________ Name: svn:eol-style + native Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrders.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrders.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/BsOrders.java 2007-08-26 13:47:59 UTC (rev 497) @@ -13,7 +13,7 @@ * ORDERS_ID * * [column-property] - * ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE + * ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_CELLPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_DEPARTMENT, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_TELEPHONE, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_DEPARTMENT, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_TELEPHONE, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, DELIVERY_METHOD_ID, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE * * [foreign-property] * ordersStatus @@ -89,6 +89,9 @@ /** The value of customersTelephone. ColumnDefinition -- VARCHAR(32) : NotNull*/ protected String _customersTelephone; + /** The value of customersCellphone. ColumnDefinition -- VARCHAR(32)*/ + protected String _customersCellphone; + /** The value of customersEmailAddress. ColumnDefinition -- VARCHAR(96) : NotNull*/ protected String _customersEmailAddress; @@ -101,6 +104,9 @@ /** The value of deliveryCompany. ColumnDefinition -- VARCHAR(32)*/ protected String _deliveryCompany; + /** The value of deliveryDepartment. ColumnDefinition -- VARCHAR(32)*/ + protected String _deliveryDepartment; + /** The value of deliveryStreetAddress. ColumnDefinition -- VARCHAR(64) : NotNull*/ protected String _deliveryStreetAddress; @@ -119,6 +125,9 @@ /** The value of deliveryCountry. ColumnDefinition -- VARCHAR(32) : NotNull*/ protected String _deliveryCountry; + /** The value of deliveryTelephone. ColumnDefinition -- VARCHAR(32)*/ + protected String _deliveryTelephone; + /** The value of deliveryAddressFormatId. ColumnDefinition -- INTEGER : NotNull*/ protected java.math.BigDecimal _deliveryAddressFormatId; @@ -128,6 +137,9 @@ /** The value of billingCompany. ColumnDefinition -- VARCHAR(32)*/ protected String _billingCompany; + /** The value of billingDepartment. ColumnDefinition -- VARCHAR(32)*/ + protected String _billingDepartment; + /** The value of billingStreetAddress. ColumnDefinition -- VARCHAR(64) : NotNull*/ protected String _billingStreetAddress; @@ -146,6 +158,9 @@ /** The value of billingCountry. ColumnDefinition -- VARCHAR(32) : NotNull*/ protected String _billingCountry; + /** The value of billingTelephone. ColumnDefinition -- VARCHAR(32)*/ + protected String _billingTelephone; + /** The value of billingAddressFormatId. ColumnDefinition -- INTEGER : NotNull*/ protected java.math.BigDecimal _billingAddressFormatId; @@ -164,6 +179,9 @@ /** The value of ccExpires. ColumnDefinition -- VARCHAR(4)*/ protected String _ccExpires; + /** The value of deliveryMethodId. ColumnDefinition -- INTEGER : NotNull*/ + protected java.math.BigDecimal _deliveryMethodId; + /** The value of lastModified. ColumnDefinition -- TIMESTAMP*/ protected java.sql.Timestamp _lastModified; @@ -502,6 +520,30 @@ _customersTelephone = customersTelephone; } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32)*/ + public static final String customersCellphone_COLUMN = "CUSTOMERS_CELLPHONE"; + + /** + * Get the value of customersCellphone. <br /> + * {VARCHAR(32)} + * + * @return The value of customersCellphone. (Nullable) + */ + public String getCustomersCellphone() { + return _customersCellphone; + } + + /** + * Set the value of customersCellphone. <br /> + * {VARCHAR(32)} + * + * @param customersCellphone The value of customersCellphone. (Nullable) + */ + public void setCustomersCellphone(String customersCellphone) { + _modifiedProperties.addPropertyName("customersCellphone"); + _customersCellphone = customersCellphone; + } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(96) : NotNull*/ public static final String customersEmailAddress_COLUMN = "CUSTOMERS_EMAIL_ADDRESS"; @@ -598,6 +640,30 @@ _deliveryCompany = deliveryCompany; } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32)*/ + public static final String deliveryDepartment_COLUMN = "DELIVERY_DEPARTMENT"; + + /** + * Get the value of deliveryDepartment. <br /> + * {VARCHAR(32)} + * + * @return The value of deliveryDepartment. (Nullable) + */ + public String getDeliveryDepartment() { + return _deliveryDepartment; + } + + /** + * Set the value of deliveryDepartment. <br /> + * {VARCHAR(32)} + * + * @param deliveryDepartment The value of deliveryDepartment. (Nullable) + */ + public void setDeliveryDepartment(String deliveryDepartment) { + _modifiedProperties.addPropertyName("deliveryDepartment"); + _deliveryDepartment = deliveryDepartment; + } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(64) : NotNull*/ public static final String deliveryStreetAddress_COLUMN = "DELIVERY_STREET_ADDRESS"; @@ -742,6 +808,30 @@ _deliveryCountry = deliveryCountry; } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32)*/ + public static final String deliveryTelephone_COLUMN = "DELIVERY_TELEPHONE"; + + /** + * Get the value of deliveryTelephone. <br /> + * {VARCHAR(32)} + * + * @return The value of deliveryTelephone. (Nullable) + */ + public String getDeliveryTelephone() { + return _deliveryTelephone; + } + + /** + * Set the value of deliveryTelephone. <br /> + * {VARCHAR(32)} + * + * @param deliveryTelephone The value of deliveryTelephone. (Nullable) + */ + public void setDeliveryTelephone(String deliveryTelephone) { + _modifiedProperties.addPropertyName("deliveryTelephone"); + _deliveryTelephone = deliveryTelephone; + } + /** Column-Annotation for S2Dao. ColumnDefinition -- INTEGER : NotNull*/ public static final String deliveryAddressFormatId_COLUMN = "DELIVERY_ADDRESS_FORMAT_ID"; @@ -814,6 +904,30 @@ _billingCompany = billingCompany; } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32)*/ + public static final String billingDepartment_COLUMN = "BILLING_DEPARTMENT"; + + /** + * Get the value of billingDepartment. <br /> + * {VARCHAR(32)} + * + * @return The value of billingDepartment. (Nullable) + */ + public String getBillingDepartment() { + return _billingDepartment; + } + + /** + * Set the value of billingDepartment. <br /> + * {VARCHAR(32)} + * + * @param billingDepartment The value of billingDepartment. (Nullable) + */ + public void setBillingDepartment(String billingDepartment) { + _modifiedProperties.addPropertyName("billingDepartment"); + _billingDepartment = billingDepartment; + } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(64) : NotNull*/ public static final String billingStreetAddress_COLUMN = "BILLING_STREET_ADDRESS"; @@ -958,6 +1072,30 @@ _billingCountry = billingCountry; } + /** Column-Annotation for S2Dao. ColumnDefinition -- VARCHAR(32)*/ + public static final String billingTelephone_COLUMN = "BILLING_TELEPHONE"; + + /** + * Get the value of billingTelephone. <br /> + * {VARCHAR(32)} + * + * @return The value of billingTelephone. (Nullable) + */ + public String getBillingTelephone() { + return _billingTelephone; + } + + /** + * Set the value of billingTelephone. <br /> + * {VARCHAR(32)} + * + * @param billingTelephone The value of billingTelephone. (Nullable) + */ + public void setBillingTelephone(String billingTelephone) { + _modifiedProperties.addPropertyName("billingTelephone"); + _billingTelephone = billingTelephone; + } + /** Column-Annotation for S2Dao. ColumnDefinition -- INTEGER : NotNull*/ public static final String billingAddressFormatId_COLUMN = "BILLING_ADDRESS_FORMAT_ID"; @@ -1102,6 +1240,30 @@ _ccExpires = ccExpires; } + /** Column-Annotation for S2Dao. ColumnDefinition -- INTEGER : NotNull*/ + public static final String deliveryMethodId_COLUMN = "DELIVERY_METHOD_ID"; + + /** + * Get the value of deliveryMethodId. <br /> + * {INTEGER : NotNull} + * + * @return The value of deliveryMethodId. (Nullable) + */ + public java.math.BigDecimal getDeliveryMethodId() { + return _deliveryMethodId; + } + + /** + * Set the value of deliveryMethodId. <br /> + * {INTEGER : NotNull} + * + * @param deliveryMethodId The value of deliveryMethodId. (Nullable) + */ + public void setDeliveryMethodId(java.math.BigDecimal deliveryMethodId) { + _modifiedProperties.addPropertyName("deliveryMethodId"); + _deliveryMethodId = deliveryMethodId; + } + /** Column-Annotation for S2Dao. ColumnDefinition -- TIMESTAMP*/ public static final String lastModified_COLUMN = "LAST_MODIFIED"; @@ -1250,16 +1412,16 @@ // =================================================================================== // Classify Method // =============== - + // =================================================================================== // Classification Determination // ============================ - + // =================================================================================== // Classification Getter // ===================== - + // =================================================================================== // Foreign Table @@ -1542,31 +1704,37 @@ sb.append(delimiter).append(getCustomersState()); sb.append(delimiter).append(getCustomersCountry()); sb.append(delimiter).append(getCustomersTelephone()); + sb.append(delimiter).append(getCustomersCellphone()); sb.append(delimiter).append(getCustomersEmailAddress()); sb.append(delimiter).append(getCustomersAddressFormatId()); sb.append(delimiter).append(getDeliveryName()); sb.append(delimiter).append(getDeliveryCompany()); + sb.append(delimiter).append(getDeliveryDepartment()); sb.append(delimiter).append(getDeliveryStreetAddress()); sb.append(delimiter).append(getDeliverySuburb()); sb.append(delimiter).append(getDeliveryCity()); sb.append(delimiter).append(getDeliveryPostcode()); sb.append(delimiter).append(getDeliveryState()); sb.append(delimiter).append(getDeliveryCountry()); + sb.append(delimiter).append(getDeliveryTelephone()); sb.append(delimiter).append(getDeliveryAddressFormatId()); sb.append(delimiter).append(getBillingName()); sb.append(delimiter).append(getBillingCompany()); + sb.append(delimiter).append(getBillingDepartment()); sb.append(delimiter).append(getBillingStreetAddress()); sb.append(delimiter).append(getBillingSuburb()); sb.append(delimiter).append(getBillingCity()); sb.append(delimiter).append(getBillingPostcode()); sb.append(delimiter).append(getBillingState()); sb.append(delimiter).append(getBillingCountry()); + sb.append(delimiter).append(getBillingTelephone()); sb.append(delimiter).append(getBillingAddressFormatId()); sb.append(delimiter).append(getPaymentMethod()); sb.append(delimiter).append(getCcType()); sb.append(delimiter).append(getCcOwner()); sb.append(delimiter).append(getCcNumber()); sb.append(delimiter).append(getCcExpires()); + sb.append(delimiter).append(getDeliveryMethodId()); sb.append(delimiter).append(getLastModified()); sb.append(delimiter).append(getDatePurchased()); sb.append(delimiter).append(getOrdersStatusId()); Modified: 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/AddressBookDbm.java 2007-08-26 13:47:59 UTC (rev 497) @@ -14,7 +14,7 @@ * ADDRESS_BOOK_ID * * [column-property] - * ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID + * ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_DEPARTMENT, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_TELEPHONE, ENTRY_FAX, ENTRY_CELLPHONE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID * * [foreign-property] * customers @@ -90,6 +90,8 @@ public static final String COLUMN_DB_NAME_OF_EntryGender = "ENTRY_GENDER"; /** Db-name of EntryCompany. */ public static final String COLUMN_DB_NAME_OF_EntryCompany = "ENTRY_COMPANY"; + /** Db-name of EntryDepartment. */ + public static final String COLUMN_DB_NAME_OF_EntryDepartment = "ENTRY_DEPARTMENT"; /** Db-name of EntryFirstname. */ public static final String COLUMN_DB_NAME_OF_EntryFirstname = "ENTRY_FIRSTNAME"; /** Db-name of EntryLastname. */ @@ -104,6 +106,12 @@ public static final String COLUMN_DB_NAME_OF_EntryCity = "ENTRY_CITY"; /** Db-name of EntryState. */ public static final String COLUMN_DB_NAME_OF_EntryState = "ENTRY_STATE"; + /** Db-name of EntryTelephone. */ + public static final String COLUMN_DB_NAME_OF_EntryTelephone = "ENTRY_TELEPHONE"; + /** Db-name of EntryFax. */ + public static final String COLUMN_DB_NAME_OF_EntryFax = "ENTRY_FAX"; + /** Db-name of EntryCellphone. */ + public static final String COLUMN_DB_NAME_OF_EntryCellphone = "ENTRY_CELLPHONE"; /** Db-name of EntryCountryId. */ public static final String COLUMN_DB_NAME_OF_EntryCountryId = "ENTRY_COUNTRY_ID"; /** Db-name of EntryZoneId. */ @@ -117,6 +125,8 @@ public static final String COLUMN_CAP_PROP_NAME_OF_EntryGender = "EntryGender"; /** Cap-prop-name of EntryCompany. */ public static final String COLUMN_CAP_PROP_NAME_OF_EntryCompany = "EntryCompany"; + /** Cap-prop-name of EntryDepartment. */ + public static final String COLUMN_CAP_PROP_NAME_OF_EntryDepartment = "EntryDepartment"; /** Cap-prop-name of EntryFirstname. */ public static final String COLUMN_CAP_PROP_NAME_OF_EntryFirstname = "EntryFirstname"; /** Cap-prop-name of EntryLastname. */ @@ -131,6 +141,12 @@ public static final String COLUMN_CAP_PROP_NAME_OF_EntryCity = "EntryCity"; /** Cap-prop-name of EntryState. */ public static final String COLUMN_CAP_PROP_NAME_OF_EntryState = "EntryState"; + /** Cap-prop-name of EntryTelephone. */ + public static final String COLUMN_CAP_PROP_NAME_OF_EntryTelephone = "EntryTelephone"; + /** Cap-prop-name of EntryFax. */ + public static final String COLUMN_CAP_PROP_NAME_OF_EntryFax = "EntryFax"; + /** Cap-prop-name of EntryCellphone. */ + public static final String COLUMN_CAP_PROP_NAME_OF_EntryCellphone = "EntryCellphone"; /** Cap-prop-name of EntryCountryId. */ public static final String COLUMN_CAP_PROP_NAME_OF_EntryCountryId = "EntryCountryId"; /** Cap-prop-name of EntryZoneId. */ @@ -150,6 +166,8 @@ public static final String COLUMN_UNCAP_PROP_NAME_OF_EntryGender = "entryGender"; /** Uncap-prop-name of EntryCompany. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_EntryCompany = "entryCompany"; + /** Uncap-prop-name of EntryDepartment. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_EntryDepartment = "entryDepartment"; /** Uncap-prop-name of EntryFirstname. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_EntryFirstname = "entryFirstname"; /** Uncap-prop-name of EntryLastname. */ @@ -164,6 +182,12 @@ public static final String COLUMN_UNCAP_PROP_NAME_OF_EntryCity = "entryCity"; /** Uncap-prop-name of EntryState. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_EntryState = "entryState"; + /** Uncap-prop-name of EntryTelephone. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_EntryTelephone = "entryTelephone"; + /** Uncap-prop-name of EntryFax. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_EntryFax = "entryFax"; + /** Uncap-prop-name of EntryCellphone. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_EntryCellphone = "entryCellphone"; /** Uncap-prop-name of EntryCountryId. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_EntryCountryId = "entryCountryId"; /** Uncap-prop-name of EntryZoneId. */ @@ -188,6 +212,7 @@ map.put(COLUMN_DB_NAME_OF_CustomersId, COLUMN_CAP_PROP_NAME_OF_CustomersId); map.put(COLUMN_DB_NAME_OF_EntryGender, COLUMN_CAP_PROP_NAME_OF_EntryGender); map.put(COLUMN_DB_NAME_OF_EntryCompany, COLUMN_CAP_PROP_NAME_OF_EntryCompany); + map.put(COLUMN_DB_NAME_OF_EntryDepartment, COLUMN_CAP_PROP_NAME_OF_EntryDepartment); map.put(COLUMN_DB_NAME_OF_EntryFirstname, COLUMN_CAP_PROP_NAME_OF_EntryFirstname); map.put(COLUMN_DB_NAME_OF_EntryLastname, COLUMN_CAP_PROP_NAME_OF_EntryLastname); map.put(COLUMN_DB_NAME_OF_EntryStreetAddress, COLUMN_CAP_PROP_NAME_OF_EntryStreetAddress); @@ -195,6 +220,9 @@ map.put(COLUMN_DB_NAME_OF_EntryPostcode, COLUMN_CAP_PROP_NAME_OF_EntryPostcode); map.put(COLUMN_DB_NAME_OF_EntryCity, COLUMN_CAP_PROP_NAME_OF_EntryCity); map.put(COLUMN_DB_NAME_OF_EntryState, COLUMN_CAP_PROP_NAME_OF_EntryState); + map.put(COLUMN_DB_NAME_OF_EntryTelephone, COLUMN_CAP_PROP_NAME_OF_EntryTelephone); + map.put(COLUMN_DB_NAME_OF_EntryFax, COLUMN_CAP_PROP_NAME_OF_EntryFax); + map.put(COLUMN_DB_NAME_OF_EntryCellphone, COLUMN_CAP_PROP_NAME_OF_EntryCellphone); map.put(COLUMN_DB_NAME_OF_EntryCountryId, COLUMN_CAP_PROP_NAME_OF_EntryCountryId); map.put(COLUMN_DB_NAME_OF_EntryZoneId, COLUMN_CAP_PROP_NAME_OF_EntryZoneId); @@ -215,6 +243,7 @@ map.put(COLUMN_DB_NAME_OF_CustomersId, COLUMN_UNCAP_PROP_NAME_OF_CustomersId); map.put(COLUMN_DB_NAME_OF_EntryGender, COLUMN_UNCAP_PROP_NAME_OF_EntryGender); map.put(COLUMN_DB_NAME_OF_EntryCompany, COLUMN_UNCAP_PROP_NAME_OF_EntryCompany); + map.put(COLUMN_DB_NAME_OF_EntryDepartment, COLUMN_UNCAP_PROP_NAME_OF_EntryDepartment); map.put(COLUMN_DB_NAME_OF_EntryFirstname, COLUMN_UNCAP_PROP_NAME_OF_EntryFirstname); map.put(COLUMN_DB_NAME_OF_EntryLastname, COLUMN_UNCAP_PROP_NAME_OF_EntryLastname); map.put(COLUMN_DB_NAME_OF_EntryStreetAddress, COLUMN_UNCAP_PROP_NAME_OF_EntryStreetAddress); @@ -222,6 +251,9 @@ map.put(COLUMN_DB_NAME_OF_EntryPostcode, COLUMN_UNCAP_PROP_NAME_OF_EntryPostcode); map.put(COLUMN_DB_NAME_OF_EntryCity, COLUMN_UNCAP_PROP_NAME_OF_EntryCity); map.put(COLUMN_DB_NAME_OF_EntryState, COLUMN_UNCAP_PROP_NAME_OF_EntryState); + map.put(COLUMN_DB_NAME_OF_EntryTelephone, COLUMN_UNCAP_PROP_NAME_OF_EntryTelephone); + map.put(COLUMN_DB_NAME_OF_EntryFax, COLUMN_UNCAP_PROP_NAME_OF_EntryFax); + map.put(COLUMN_DB_NAME_OF_EntryCellphone, COLUMN_UNCAP_PROP_NAME_OF_EntryCellphone); map.put(COLUMN_DB_NAME_OF_EntryCountryId, COLUMN_UNCAP_PROP_NAME_OF_EntryCountryId); map.put(COLUMN_DB_NAME_OF_EntryZoneId, COLUMN_UNCAP_PROP_NAME_OF_EntryZoneId); @@ -242,6 +274,7 @@ map.put(COLUMN_CAP_PROP_NAME_OF_CustomersId, COLUMN_DB_NAME_OF_CustomersId); map.put(COLUMN_CAP_PROP_NAME_OF_EntryGender, COLUMN_DB_NAME_OF_EntryGender); map.put(COLUMN_CAP_PROP_NAME_OF_EntryCompany, COLUMN_DB_NAME_OF_EntryCompany); + map.put(COLUMN_CAP_PROP_NAME_OF_EntryDepartment, COLUMN_DB_NAME_OF_EntryDepartment); map.put(COLUMN_CAP_PROP_NAME_OF_EntryFirstname, COLUMN_DB_NAME_OF_EntryFirstname); map.put(COLUMN_CAP_PROP_NAME_OF_EntryLastname, COLUMN_DB_NAME_OF_EntryLastname); map.put(COLUMN_CAP_PROP_NAME_OF_EntryStreetAddress, COLUMN_DB_NAME_OF_EntryStreetAddress); @@ -249,6 +282,9 @@ map.put(COLUMN_CAP_PROP_NAME_OF_EntryPostcode, COLUMN_DB_NAME_OF_EntryPostcode); map.put(COLUMN_CAP_PROP_NAME_OF_EntryCity, COLUMN_DB_NAME_OF_EntryCity); map.put(COLUMN_CAP_PROP_NAME_OF_EntryState, COLUMN_DB_NAME_OF_EntryState); + map.put(COLUMN_CAP_PROP_NAME_OF_EntryTelephone, COLUMN_DB_NAME_OF_EntryTelephone); + map.put(COLUMN_CAP_PROP_NAME_OF_EntryFax, COLUMN_DB_NAME_OF_EntryFax); + map.put(COLUMN_CAP_PROP_NAME_OF_EntryCellphone, COLUMN_DB_NAME_OF_EntryCellphone); map.put(COLUMN_CAP_PROP_NAME_OF_EntryCountryId, COLUMN_DB_NAME_OF_EntryCountryId); map.put(COLUMN_CAP_PROP_NAME_OF_EntryZoneId, COLUMN_DB_NAME_OF_EntryZoneId); @@ -269,6 +305,7 @@ map.put(COLUMN_CAP_PROP_NAME_OF_CustomersId, COLUMN_UNCAP_PROP_NAME_OF_CustomersId); map.put(COLUMN_CAP_PROP_NAME_OF_EntryGender, COLUMN_UNCAP_PROP_NAME_OF_EntryGender); map.put(COLUMN_CAP_PROP_NAME_OF_EntryCompany, COLUMN_UNCAP_PROP_NAME_OF_EntryCompany); + map.put(COLUMN_CAP_PROP_NAME_OF_EntryDepartment, COLUMN_UNCAP_PROP_NAME_OF_EntryDepartment); map.put(COLUMN_CAP_PROP_NAME_OF_EntryFirstname, COLUMN_UNCAP_PROP_NAME_OF_EntryFirstname); map.put(COLUMN_CAP_PROP_NAME_OF_EntryLastname, COLUMN_UNCAP_PROP_NAME_OF_EntryLastname); map.put(COLUMN_CAP_PROP_NAME_OF_EntryStreetAddress, COLUMN_UNCAP_PROP_NAME_OF_EntryStreetAddress); @@ -276,6 +313,9 @@ map.put(COLUMN_CAP_PROP_NAME_OF_EntryPostcode, COLUMN_UNCAP_PROP_NAME_OF_EntryPostcode); map.put(COLUMN_CAP_PROP_NAME_OF_EntryCity, COLUMN_UNCAP_PROP_NAME_OF_EntryCity); map.put(COLUMN_CAP_PROP_NAME_OF_EntryState, COLUMN_UNCAP_PROP_NAME_OF_EntryState); + map.put(COLUMN_CAP_PROP_NAME_OF_EntryTelephone, COLUMN_UNCAP_PROP_NAME_OF_EntryTelephone); + map.put(COLUMN_CAP_PROP_NAME_OF_EntryFax, COLUMN_UNCAP_PROP_NAME_OF_EntryFax); + map.put(COLUMN_CAP_PROP_NAME_OF_EntryCellphone, COLUMN_UNCAP_PROP_NAME_OF_EntryCellphone); map.put(COLUMN_CAP_PROP_NAME_OF_EntryCountryId, COLUMN_UNCAP_PROP_NAME_OF_EntryCountryId); map.put(COLUMN_CAP_PROP_NAME_OF_EntryZoneId, COLUMN_UNCAP_PROP_NAME_OF_EntryZoneId); @@ -296,6 +336,7 @@ map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersId, COLUMN_DB_NAME_OF_CustomersId); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryGender, COLUMN_DB_NAME_OF_EntryGender); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryCompany, COLUMN_DB_NAME_OF_EntryCompany); + map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryDepartment, COLUMN_DB_NAME_OF_EntryDepartment); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryFirstname, COLUMN_DB_NAME_OF_EntryFirstname); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryLastname, COLUMN_DB_NAME_OF_EntryLastname); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryStreetAddress, COLUMN_DB_NAME_OF_EntryStreetAddress); @@ -303,6 +344,9 @@ map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryPostcode, COLUMN_DB_NAME_OF_EntryPostcode); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryCity, COLUMN_DB_NAME_OF_EntryCity); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryState, COLUMN_DB_NAME_OF_EntryState); + map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryTelephone, COLUMN_DB_NAME_OF_EntryTelephone); + map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryFax, COLUMN_DB_NAME_OF_EntryFax); + map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryCellphone, COLUMN_DB_NAME_OF_EntryCellphone); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryCountryId, COLUMN_DB_NAME_OF_EntryCountryId); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryZoneId, COLUMN_DB_NAME_OF_EntryZoneId); @@ -323,6 +367,7 @@ map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersId, COLUMN_CAP_PROP_NAME_OF_CustomersId); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryGender, COLUMN_CAP_PROP_NAME_OF_EntryGender); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryCompany, COLUMN_CAP_PROP_NAME_OF_EntryCompany); + map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryDepartment, COLUMN_CAP_PROP_NAME_OF_EntryDepartment); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryFirstname, COLUMN_CAP_PROP_NAME_OF_EntryFirstname); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryLastname, COLUMN_CAP_PROP_NAME_OF_EntryLastname); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryStreetAddress, COLUMN_CAP_PROP_NAME_OF_EntryStreetAddress); @@ -330,6 +375,9 @@ map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryPostcode, COLUMN_CAP_PROP_NAME_OF_EntryPostcode); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryCity, COLUMN_CAP_PROP_NAME_OF_EntryCity); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryState, COLUMN_CAP_PROP_NAME_OF_EntryState); + map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryTelephone, COLUMN_CAP_PROP_NAME_OF_EntryTelephone); + map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryFax, COLUMN_CAP_PROP_NAME_OF_EntryFax); + map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryCellphone, COLUMN_CAP_PROP_NAME_OF_EntryCellphone); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryCountryId, COLUMN_CAP_PROP_NAME_OF_EntryCountryId); map.put(COLUMN_UNCAP_PROP_NAME_OF_EntryZoneId, COLUMN_CAP_PROP_NAME_OF_EntryZoneId); @@ -460,7 +508,7 @@ * @return Column-db-name comma-string. (NotNull) */ public String getColumnDbNameCommaString() { - return "ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID"; + return "ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_DEPARTMENT, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_TELEPHONE, ENTRY_FAX, ENTRY_CELLPHONE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID"; } // =================================================================================== @@ -643,6 +691,7 @@ if (analyzer.init("CUSTOMERS_ID", "customersId", "customersId")) { myEntity.setCustomersId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("ENTRY_GENDER", "entryGender", "entryGender")) { myEntity.setEntryGender(analyzer.analyzeString(String.class)); }; if (analyzer.init("ENTRY_COMPANY", "entryCompany", "entryCompany")) { myEntity.setEntryCompany(analyzer.analyzeString(String.class)); }; + if (analyzer.init("ENTRY_DEPARTMENT", "entryDepartment", "entryDepartment")) { myEntity.setEntryDepartment(analyzer.analyzeString(String.class)); }; if (analyzer.init("ENTRY_FIRSTNAME", "entryFirstname", "entryFirstname")) { myEntity.setEntryFirstname(analyzer.analyzeString(String.class)); }; if (analyzer.init("ENTRY_LASTNAME", "entryLastname", "entryLastname")) { myEntity.setEntryLastname(analyzer.analyzeString(String.class)); }; if (analyzer.init("ENTRY_STREET_ADDRESS", "entryStreetAddress", "entryStreetAddress")) { myEntity.setEntryStreetAddress(analyzer.analyzeString(String.class)); }; @@ -650,6 +699,9 @@ if (analyzer.init("ENTRY_POSTCODE", "entryPostcode", "entryPostcode")) { myEntity.setEntryPostcode(analyzer.analyzeString(String.class)); }; if (analyzer.init("ENTRY_CITY", "entryCity", "entryCity")) { myEntity.setEntryCity(analyzer.analyzeString(String.class)); }; if (analyzer.init("ENTRY_STATE", "entryState", "entryState")) { myEntity.setEntryState(analyzer.analyzeString(String.class)); }; + if (analyzer.init("ENTRY_TELEPHONE", "entryTelephone", "entryTelephone")) { myEntity.setEntryTelephone(analyzer.analyzeString(String.class)); }; + if (analyzer.init("ENTRY_FAX", "entryFax", "entryFax")) { myEntity.setEntryFax(analyzer.analyzeString(String.class)); }; + if (analyzer.init("ENTRY_CELLPHONE", "entryCellphone", "entryCellphone")) { myEntity.setEntryCellphone(analyzer.analyzeString(String.class)); }; if (analyzer.init("ENTRY_COUNTRY_ID", "entryCountryId", "entryCountryId")) { myEntity.setEntryCountryId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("ENTRY_ZONE_ID", "entryZoneId", "entryZoneId")) { myEntity.setEntryZoneId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; @@ -729,6 +781,7 @@ helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_ID", myEntity.getCustomersId()); helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_GENDER", myEntity.getEntryGender()); helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_COMPANY", myEntity.getEntryCompany()); + helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_DEPARTMENT", myEntity.getEntryDepartment()); helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_FIRSTNAME", myEntity.getEntryFirstname()); helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_LASTNAME", myEntity.getEntryLastname()); helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_STREET_ADDRESS", myEntity.getEntryStreetAddress()); @@ -736,6 +789,9 @@ helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_POSTCODE", myEntity.getEntryPostcode()); helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_CITY", myEntity.getEntryCity()); helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_STATE", myEntity.getEntryState()); + helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_TELEPHONE", myEntity.getEntryTelephone()); + helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_FAX", myEntity.getEntryFax()); + helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_CELLPHONE", myEntity.getEntryCellphone()); helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_COUNTRY_ID", myEntity.getEntryCountryId()); helpAppendingColumnValueString(sb, delimiter, equal, "ENTRY_ZONE_ID", myEntity.getEntryZoneId()); @@ -784,6 +840,7 @@ valueMap.put("CUSTOMERS_ID", myEntity.getCustomersId()); valueMap.put("ENTRY_GENDER", myEntity.getEntryGender()); valueMap.put("ENTRY_COMPANY", myEntity.getEntryCompany()); + valueMap.put("ENTRY_DEPARTMENT", myEntity.getEntryDepartment()); valueMap.put("ENTRY_FIRSTNAME", myEntity.getEntryFirstname()); valueMap.put("ENTRY_LASTNAME", myEntity.getEntryLastname()); valueMap.put("ENTRY_STREET_ADDRESS", myEntity.getEntryStreetAddress()); @@ -791,6 +848,9 @@ valueMap.put("ENTRY_POSTCODE", myEntity.getEntryPostcode()); valueMap.put("ENTRY_CITY", myEntity.getEntryCity()); valueMap.put("ENTRY_STATE", myEntity.getEntryState()); + valueMap.put("ENTRY_TELEPHONE", myEntity.getEntryTelephone()); + valueMap.put("ENTRY_FAX", myEntity.getEntryFax()); + valueMap.put("ENTRY_CELLPHONE", myEntity.getEntryCellphone()); valueMap.put("ENTRY_COUNTRY_ID", myEntity.getEntryCountryId()); valueMap.put("ENTRY_ZONE_ID", myEntity.getEntryZoneId()); return valueMap; @@ -807,6 +867,7 @@ valueMap.put("CUSTOMERS_ID", helpGettingColumnStringValue(myEntity.getCustomersId())); valueMap.put("ENTRY_GENDER", helpGettingColumnStringValue(myEntity.getEntryGender())); valueMap.put("ENTRY_COMPANY", helpGettingColumnStringValue(myEntity.getEntryCompany())); + valueMap.put("ENTRY_DEPARTMENT", helpGettingColumnStringValue(myEntity.getEntryDepartment())); valueMap.put("ENTRY_FIRSTNAME", helpGettingColumnStringValue(myEntity.getEntryFirstname())); valueMap.put("ENTRY_LASTNAME", helpGettingColumnStringValue(myEntity.getEntryLastname())); valueMap.put("ENTRY_STREET_ADDRESS", helpGettingColumnStringValue(myEntity.getEntryStreetAddress())); @@ -814,6 +875,9 @@ valueMap.put("ENTRY_POSTCODE", helpGettingColumnStringValue(myEntity.getEntryPostcode())); valueMap.put("ENTRY_CITY", helpGettingColumnStringValue(myEntity.getEntryCity())); valueMap.put("ENTRY_STATE", helpGettingColumnStringValue(myEntity.getEntryState())); + valueMap.put("ENTRY_TELEPHONE", helpGettingColumnStringValue(myEntity.getEntryTelephone())); + valueMap.put("ENTRY_FAX", helpGettingColumnStringValue(myEntity.getEntryFax())); + valueMap.put("ENTRY_CELLPHONE", helpGettingColumnStringValue(myEntity.getEntryCellphone())); valueMap.put("ENTRY_COUNTRY_ID", helpGettingColumnStringValue(myEntity.getEntryCountryId())); valueMap.put("ENTRY_ZONE_ID", helpGettingColumnStringValue(myEntity.getEntryZoneId())); return valueMap; @@ -823,11 +887,11 @@ // JDBC Support // ============ public String getPreparedInsertClause() { - return "insert into ADDRESS_BOOK(ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; + return "insert into ADDRESS_BOOK(ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_DEPARTMENT, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_TELEPHONE, ENTRY_FAX, ENTRY_CELLPHONE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; } public String getPreparedInsertClause(String tablePrefix) { - return "insert into " + tablePrefix + "ADDRESS_BOOK(ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; + return "insert into " + tablePrefix + "ADDRESS_BOOK(ADDRESS_BOOK_ID, CUSTOMERS_ID, ENTRY_GENDER, ENTRY_COMPANY, ENTRY_DEPARTMENT, ENTRY_FIRSTNAME, ENTRY_LASTNAME, ENTRY_STREET_ADDRESS, ENTRY_SUBURB, ENTRY_POSTCODE, ENTRY_CITY, ENTRY_STATE, ENTRY_TELEPHONE, ENTRY_FAX, ENTRY_CELLPHONE, ENTRY_COUNTRY_ID, ENTRY_ZONE_ID) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; } // =================================================================================== Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/CustomersDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/CustomersDbm.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/CustomersDbm.java 2007-08-26 13:47:59 UTC (rev 497) @@ -14,7 +14,7 @@ * CUSTOMERS_ID * * [column-property] - * CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_PASSWORD, CUSTOMERS_NEWSLETTER + * CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_CELLPHONE, CUSTOMERS_NEWSLETTER * * [foreign-property] * addressBook @@ -102,8 +102,8 @@ public static final String COLUMN_DB_NAME_OF_CustomersTelephone = "CUSTOMERS_TELEPHONE"; /** Db-name of CustomersFax. */ public static final String COLUMN_DB_NAME_OF_CustomersFax = "CUSTOMERS_FAX"; - /** Db-name of CustomersPassword. */ - public static final String COLUMN_DB_NAME_OF_CustomersPassword = "CUSTOMERS_PASSWORD"; + /** Db-name of CustomersCellphone. */ + public static final String COLUMN_DB_NAME_OF_CustomersCellphone = "CUSTOMERS_CELLPHONE"; /** Db-name of CustomersNewsletter. */ public static final String COLUMN_DB_NAME_OF_CustomersNewsletter = "CUSTOMERS_NEWSLETTER"; @@ -127,8 +127,8 @@ public static final String COLUMN_CAP_PROP_NAME_OF_CustomersTelephone = "CustomersTelephone"; /** Cap-prop-name of CustomersFax. */ public static final String COLUMN_CAP_PROP_NAME_OF_CustomersFax = "CustomersFax"; - /** Cap-prop-name of CustomersPassword. */ - public static final String COLUMN_CAP_PROP_NAME_OF_CustomersPassword = "CustomersPassword"; + /** Cap-prop-name of CustomersCellphone. */ + public static final String COLUMN_CAP_PROP_NAME_OF_CustomersCellphone = "CustomersCellphone"; /** Cap-prop-name of CustomersNewsletter. */ public static final String COLUMN_CAP_PROP_NAME_OF_CustomersNewsletter = "CustomersNewsletter"; @@ -158,8 +158,8 @@ public static final String COLUMN_UNCAP_PROP_NAME_OF_CustomersTelephone = "customersTelephone"; /** Uncap-prop-name of CustomersFax. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_CustomersFax = "customersFax"; - /** Uncap-prop-name of CustomersPassword. */ - public static final String COLUMN_UNCAP_PROP_NAME_OF_CustomersPassword = "customersPassword"; + /** Uncap-prop-name of CustomersCellphone. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_CustomersCellphone = "customersCellphone"; /** Uncap-prop-name of CustomersNewsletter. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_CustomersNewsletter = "customersNewsletter"; @@ -188,7 +188,7 @@ map.put(COLUMN_DB_NAME_OF_CustomersDefaultAddressId, COLUMN_CAP_PROP_NAME_OF_CustomersDefaultAddressId); map.put(COLUMN_DB_NAME_OF_CustomersTelephone, COLUMN_CAP_PROP_NAME_OF_CustomersTelephone); map.put(COLUMN_DB_NAME_OF_CustomersFax, COLUMN_CAP_PROP_NAME_OF_CustomersFax); - map.put(COLUMN_DB_NAME_OF_CustomersPassword, COLUMN_CAP_PROP_NAME_OF_CustomersPassword); + map.put(COLUMN_DB_NAME_OF_CustomersCellphone, COLUMN_CAP_PROP_NAME_OF_CustomersCellphone); map.put(COLUMN_DB_NAME_OF_CustomersNewsletter, COLUMN_CAP_PROP_NAME_OF_CustomersNewsletter); _dbNameCapPropNameMap = java.util.Collections.unmodifiableMap(map); @@ -214,7 +214,7 @@ map.put(COLUMN_DB_NAME_OF_CustomersDefaultAddressId, COLUMN_UNCAP_PROP_NAME_OF_CustomersDefaultAddressId); map.put(COLUMN_DB_NAME_OF_CustomersTelephone, COLUMN_UNCAP_PROP_NAME_OF_CustomersTelephone); map.put(COLUMN_DB_NAME_OF_CustomersFax, COLUMN_UNCAP_PROP_NAME_OF_CustomersFax); - map.put(COLUMN_DB_NAME_OF_CustomersPassword, COLUMN_UNCAP_PROP_NAME_OF_CustomersPassword); + map.put(COLUMN_DB_NAME_OF_CustomersCellphone, COLUMN_UNCAP_PROP_NAME_OF_CustomersCellphone); map.put(COLUMN_DB_NAME_OF_CustomersNewsletter, COLUMN_UNCAP_PROP_NAME_OF_CustomersNewsletter); _dbNameUncapPropNameMap = java.util.Collections.unmodifiableMap(map); @@ -240,7 +240,7 @@ map.put(COLUMN_CAP_PROP_NAME_OF_CustomersDefaultAddressId, COLUMN_DB_NAME_OF_CustomersDefaultAddressId); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersTelephone, COLUMN_DB_NAME_OF_CustomersTelephone); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersFax, COLUMN_DB_NAME_OF_CustomersFax); - map.put(COLUMN_CAP_PROP_NAME_OF_CustomersPassword, COLUMN_DB_NAME_OF_CustomersPassword); + map.put(COLUMN_CAP_PROP_NAME_OF_CustomersCellphone, COLUMN_DB_NAME_OF_CustomersCellphone); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersNewsletter, COLUMN_DB_NAME_OF_CustomersNewsletter); _capPropNameDbNameMap = java.util.Collections.unmodifiableMap(map); @@ -266,7 +266,7 @@ map.put(COLUMN_CAP_PROP_NAME_OF_CustomersDefaultAddressId, COLUMN_UNCAP_PROP_NAME_OF_CustomersDefaultAddressId); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersTelephone, COLUMN_UNCAP_PROP_NAME_OF_CustomersTelephone); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersFax, COLUMN_UNCAP_PROP_NAME_OF_CustomersFax); - map.put(COLUMN_CAP_PROP_NAME_OF_CustomersPassword, COLUMN_UNCAP_PROP_NAME_OF_CustomersPassword); + map.put(COLUMN_CAP_PROP_NAME_OF_CustomersCellphone, COLUMN_UNCAP_PROP_NAME_OF_CustomersCellphone); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersNewsletter, COLUMN_UNCAP_PROP_NAME_OF_CustomersNewsletter); _capPropNameUncapPropNameMap = java.util.Collections.unmodifiableMap(map); @@ -292,7 +292,7 @@ map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersDefaultAddressId, COLUMN_DB_NAME_OF_CustomersDefaultAddressId); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersTelephone, COLUMN_DB_NAME_OF_CustomersTelephone); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersFax, COLUMN_DB_NAME_OF_CustomersFax); - map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersPassword, COLUMN_DB_NAME_OF_CustomersPassword); + map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersCellphone, COLUMN_DB_NAME_OF_CustomersCellphone); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersNewsletter, COLUMN_DB_NAME_OF_CustomersNewsletter); _uncapPropNameDbNameMap = java.util.Collections.unmodifiableMap(map); @@ -318,7 +318,7 @@ map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersDefaultAddressId, COLUMN_CAP_PROP_NAME_OF_CustomersDefaultAddressId); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersTelephone, COLUMN_CAP_PROP_NAME_OF_CustomersTelephone); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersFax, COLUMN_CAP_PROP_NAME_OF_CustomersFax); - map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersPassword, COLUMN_CAP_PROP_NAME_OF_CustomersPassword); + map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersCellphone, COLUMN_CAP_PROP_NAME_OF_CustomersCellphone); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersNewsletter, COLUMN_CAP_PROP_NAME_OF_CustomersNewsletter); _uncapPropNameCapPropNameMap = java.util.Collections.unmodifiableMap(map); @@ -448,7 +448,7 @@ * @return Column-db-name comma-string. (NotNull) */ public String getColumnDbNameCommaString() { - return "CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_PASSWORD, CUSTOMERS_NEWSLETTER"; + return "CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_CELLPHONE, CUSTOMERS_NEWSLETTER"; } // =================================================================================== @@ -637,7 +637,7 @@ if (analyzer.init("CUSTOMERS_DEFAULT_ADDRESS_ID", "customersDefaultAddressId", "customersDefaultAddressId")) { myEntity.setCustomersDefaultAddressId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("CUSTOMERS_TELEPHONE", "customersTelephone", "customersTelephone")) { myEntity.setCustomersTelephone(analyzer.analyzeString(String.class)); }; if (analyzer.init("CUSTOMERS_FAX", "customersFax", "customersFax")) { myEntity.setCustomersFax(analyzer.analyzeString(String.class)); }; - if (analyzer.init("CUSTOMERS_PASSWORD", "customersPassword", "customersPassword")) { myEntity.setCustomersPassword(analyzer.analyzeString(String.class)); }; + if (analyzer.init("CUSTOMERS_CELLPHONE", "customersCellphone", "customersCellphone")) { myEntity.setCustomersCellphone(analyzer.analyzeString(String.class)); }; if (analyzer.init("CUSTOMERS_NEWSLETTER", "customersNewsletter", "customersNewsletter")) { myEntity.setCustomersNewsletter(analyzer.analyzeString(String.class)); }; } @@ -722,7 +722,7 @@ helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_DEFAULT_ADDRESS_ID", myEntity.getCustomersDefaultAddressId()); helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_TELEPHONE", myEntity.getCustomersTelephone()); helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_FAX", myEntity.getCustomersFax()); - helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_PASSWORD", myEntity.getCustomersPassword()); + helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_CELLPHONE", myEntity.getCustomersCellphone()); helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_NEWSLETTER", myEntity.getCustomersNewsletter()); sb.delete(0, delimiter.length()).insert(0, mapMarkAndStartBrace).append(endBrace); @@ -776,7 +776,7 @@ valueMap.put("CUSTOMERS_DEFAULT_ADDRESS_ID", myEntity.getCustomersDefaultAddressId()); valueMap.put("CUSTOMERS_TELEPHONE", myEntity.getCustomersTelephone()); valueMap.put("CUSTOMERS_FAX", myEntity.getCustomersFax()); - valueMap.put("CUSTOMERS_PASSWORD", myEntity.getCustomersPassword()); + valueMap.put("CUSTOMERS_CELLPHONE", myEntity.getCustomersCellphone()); valueMap.put("CUSTOMERS_NEWSLETTER", myEntity.getCustomersNewsletter()); return valueMap; } @@ -798,7 +798,7 @@ valueMap.put("CUSTOMERS_DEFAULT_ADDRESS_ID", helpGettingColumnStringValue(myEntity.getCustomersDefaultAddressId())); valueMap.put("CUSTOMERS_TELEPHONE", helpGettingColumnStringValue(myEntity.getCustomersTelephone())); valueMap.put("CUSTOMERS_FAX", helpGettingColumnStringValue(myEntity.getCustomersFax())); - valueMap.put("CUSTOMERS_PASSWORD", helpGettingColumnStringValue(myEntity.getCustomersPassword())); + valueMap.put("CUSTOMERS_CELLPHONE", helpGettingColumnStringValue(myEntity.getCustomersCellphone())); valueMap.put("CUSTOMERS_NEWSLETTER", helpGettingColumnStringValue(myEntity.getCustomersNewsletter())); return valueMap; } @@ -807,11 +807,11 @@ // JDBC Support // ============ public String getPreparedInsertClause() { - return "insert into CUSTOMERS(CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_PASSWORD, CUSTOMERS_NEWSLETTER) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; + return "insert into CUSTOMERS(CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_CELLPHONE, CUSTOMERS_NEWSLETTER) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; } public String getPreparedInsertClause(String tablePrefix) { - return "insert into " + tablePrefix + "CUSTOMERS(CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_PASSWORD, CUSTOMERS_NEWSLETTER) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; + return "insert into " + tablePrefix + "CUSTOMERS(CUSTOMERS_ID, CUSTOMERS_PORTAL_ID, CUSTOMERS_GENDER, CUSTOMERS_FIRSTNAME, CUSTOMERS_LASTNAME, CUSTOMERS_DOB, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_DEFAULT_ADDRESS_ID, CUSTOMERS_TELEPHONE, CUSTOMERS_FAX, CUSTOMERS_CELLPHONE, CUSTOMERS_NEWSLETTER) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; } // =================================================================================== 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/DeliveryMethodDbm.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,708 @@ +package jp.sf.pal.pompei.bsentity.dbmeta; + + +import jp.sf.pal.pompei.allcommon.Entity; +import jp.sf.pal.pompei.allcommon.dbmeta.DBMeta; +import jp.sf.pal.pompei.allcommon.dbmeta.AbstractDBMeta; +import jp.sf.pal.pompei.exentity.DeliveryMethod; + +/** + * The dbmeta of DELIVERY_METHOD. (Singleton) + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID + * + * [column-property] + * DELIVERY_METHOD_ID, DELIVERY_CLASS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED + * + * [foreign-property] + * + * + * [refferer-property] + * deliveryMethodDescriptionList + * + * [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 db name. */ + public static final String TABLE_DB_NAME = "DELIVERY_METHOD"; + + /** 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"; + + /** Db-name of DeliveryMethodId. */ + public static final String COLUMN_DB_NAME_OF_DeliveryMethodId = "DELIVERY_METHOD_ID"; + /** Db-name of DeliveryClass. */ + public static final String COLUMN_DB_NAME_OF_DeliveryClass = "DELIVERY_CLASS"; + /** Db-name of SortOrder. */ + public static final String COLUMN_DB_NAME_OF_SortOrder = "SORT_ORDER"; + /** Db-name of DateAdded. */ + public static final String COLUMN_DB_NAME_OF_DateAdded = "DATE_ADDED"; + /** Db-name of LastModified. */ + public static final String COLUMN_DB_NAME_OF_LastModified = "LAST_MODIFIED"; + + /** Cap-prop-name of DeliveryMethodId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId = "DeliveryMethodId"; + /** Cap-prop-name of DeliveryClass. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryClass = "DeliveryClass"; + /** Cap-prop-name of SortOrder. */ + public static final String COLUMN_CAP_PROP_NAME_OF_SortOrder = "SortOrder"; + /** Cap-prop-name of DateAdded. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DateAdded = "DateAdded"; + /** Cap-prop-name of LastModified. */ + public static final String COLUMN_CAP_PROP_NAME_OF_LastModified = "LastModified"; + + + /** Cap-prop-name of DeliveryMethodDescriptionList. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryMethodDescriptionList = "DeliveryMethodDescriptionList"; + + /** Uncap-prop-name of DeliveryMethodId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId = "deliveryMethodId"; + /** Uncap-prop-name of DeliveryClass. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryClass = "deliveryClass"; + /** Uncap-prop-name of SortOrder. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_SortOrder = "sortOrder"; + /** Uncap-prop-name of DateAdded. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DateAdded = "dateAdded"; + /** Uncap-prop-name of LastModified. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_LastModified = "lastModified"; + + + /** Uncap-prop-name of deliveryMethodDescriptionList. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodDescriptionList = "deliveryMethodDescriptionList"; + + /** {db-name : cap-prop-name} map. */ + private static java.util.Map<String, String> _dbNameCapPropNameMap; + 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(COLUMN_DB_NAME_OF_DeliveryMethodId, COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId); + map.put(COLUMN_DB_NAME_OF_DeliveryClass, COLUMN_CAP_PROP_NAME_OF_DeliveryClass); + map.put(COLUMN_DB_NAME_OF_SortOrder, COLUMN_CAP_PROP_NAME_OF_SortOrder); + map.put(COLUMN_DB_NAME_OF_DateAdded, COLUMN_CAP_PROP_NAME_OF_DateAdded); + map.put(COLUMN_DB_NAME_OF_LastModified, COLUMN_CAP_PROP_NAME_OF_LastModified); + + _dbNameCapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _dbNameCapPropNameMap; + } + + /** {db-name : uncap-prop-name} map. */ + private static java.util.Map<String, String> _dbNameUncapPropNameMap; + 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(COLUMN_DB_NAME_OF_DeliveryMethodId, COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId); + map.put(COLUMN_DB_NAME_OF_DeliveryClass, COLUMN_UNCAP_PROP_NAME_OF_DeliveryClass); + map.put(COLUMN_DB_NAME_OF_SortOrder, COLUMN_UNCAP_PROP_NAME_OF_SortOrder); + map.put(COLUMN_DB_NAME_OF_DateAdded, COLUMN_UNCAP_PROP_NAME_OF_DateAdded); + map.put(COLUMN_DB_NAME_OF_LastModified, COLUMN_UNCAP_PROP_NAME_OF_LastModified); + + _dbNameUncapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _dbNameUncapPropNameMap; + } + + /** {cap-prop-name : db-name} map. */ + private static java.util.Map<String, String> _capPropNameDbNameMap; + 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(COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_DB_NAME_OF_DeliveryMethodId); + map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryClass, COLUMN_DB_NAME_OF_DeliveryClass); + map.put(COLUMN_CAP_PROP_NAME_OF_SortOrder, COLUMN_DB_NAME_OF_SortOrder); + map.put(COLUMN_CAP_PROP_NAME_OF_DateAdded, COLUMN_DB_NAME_OF_DateAdded); + map.put(COLUMN_CAP_PROP_NAME_OF_LastModified, COLUMN_DB_NAME_OF_LastModified); + + _capPropNameDbNameMap = java.util.Collections.unmodifiableMap(map); + return _capPropNameDbNameMap; + } + + /** {cap-prop-name : uncap-prop-name} map. */ + private static java.util.Map<String, String> _capPropNameUncapPropNameMap; + 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(COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId); + map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryClass, COLUMN_UNCAP_PROP_NAME_OF_DeliveryClass); + map.put(COLUMN_CAP_PROP_NAME_OF_SortOrder, COLUMN_UNCAP_PROP_NAME_OF_SortOrder); + map.put(COLUMN_CAP_PROP_NAME_OF_DateAdded, COLUMN_UNCAP_PROP_NAME_OF_DateAdded); + map.put(COLUMN_CAP_PROP_NAME_OF_LastModified, COLUMN_UNCAP_PROP_NAME_OF_LastModified); + + _capPropNameUncapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _capPropNameUncapPropNameMap; + } + + /** {uncap-prop-name : db-name} map. */ + private static java.util.Map<String, String> _uncapPropNameDbNameMap; + 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(COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_DB_NAME_OF_DeliveryMethodId); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryClass, COLUMN_DB_NAME_OF_DeliveryClass); + map.put(COLUMN_UNCAP_PROP_NAME_OF_SortOrder, COLUMN_DB_NAME_OF_SortOrder); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DateAdded, COLUMN_DB_NAME_OF_DateAdded); + map.put(COLUMN_UNCAP_PROP_NAME_OF_LastModified, COLUMN_DB_NAME_OF_LastModified); + + _uncapPropNameDbNameMap = java.util.Collections.unmodifiableMap(map); + return _uncapPropNameDbNameMap; + } + + /** {uncap-prop-name : cap-prop-name} map. */ + private static java.util.Map<String, String> _uncapPropNameCapPropNameMap; + 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(COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryClass, COLUMN_CAP_PROP_NAME_OF_DeliveryClass); + map.put(COLUMN_UNCAP_PROP_NAME_OF_SortOrder, COLUMN_CAP_PROP_NAME_OF_SortOrder); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DateAdded, COLUMN_CAP_PROP_NAME_OF_DateAdded); + map.put(COLUMN_UNCAP_PROP_NAME_OF_LastModified, COLUMN_CAP_PROP_NAME_OF_LastModified); + + _uncapPropNameCapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _uncapPropNameCapPropNameMap; + } + + // =================================================================================== + // Name-Map + // ======== + /** + * This method implements the method that is declared at super. + * + * @return {db-name : cap-prop-name} map. + */ + public java.util.Map<String, String> getDbNameCapPropNameMap() { + return createDbNameCapPropNameMap(); + } + + /** + * This method implements the method that is declared at super. + * + * @return {db-name : uncap-prop-name} map. + */ + public java.util.Map<String, String> getDbNameUncapPropNameMap() { + return createDbNameUncapPropNameMap(); + } + + /** + * This method implements the method that is declared at super. + * + * @return {cap-prop-name : db-name} map. + */ + public java.util.Map<String, String> getCapPropNameDbNameMap() { + return createCapPropNameDbNameMap(); + } + + /** + * This method implements the method that is declared at super. + * + * @return {cap-prop-name : uncap-prop-name} map. + */ + public java.util.Map<String, String> getCapPropNameUncapPropNameMap() { + return createCapPropNameUncapPropNameMap(); + } + + /** + * This method implements the method that is declared at super. + * + * @return {uncap-prop-name : db-name} map. + */ + public java.util.Map<String, String> getUncapPropNameDbNameMap() { + return createUncapPropNameDbNameMap(); + } + + /** + * This method implements the method that is declared at super. + * + * @return {uncap-prop-name : cap-prop-name} map. + */ + public java.util.Map<String, String> getUncapPropNameCapPropNameMap() { + return createUncapPropNameCapPropNameMap(); + } + + // =================================================================================== + // Table Name + // ========== + /** + * This method implements the method that is declared at super. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return TABLE_DB_NAME; + } + + /** + * This method implements the method that is declared at super. + * + * @return Table cap-prop-name. (NotNull) + */ + public String getTableCapPropName() { + return TABLE_CAP_PROP_NAME; + } + + /** + * This method implements the method that is declared at super. + * + * @return Table property-name. (NotNull) + */ + public String getTableUncapPropName() { + return TABLE_UNCAP_PROP_NAME; + } + + // =================================================================================== + // Column Name + // =========== + 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; + } + + 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; + } + + 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; + } + + /** + * This method implements the method that is declared at super. + * + * @return Column-db-name comma-string. (NotNull) + */ + public String getColumnDbNameCommaString() { + return "DELIVERY_METHOD_ID, DELIVERY_CLASS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED"; + } + + // =================================================================================== + // Type Name + // ========= + /** + * This method implements the method that is declared at super. + * + * @return The type-name of entity. (NotNull) + */ + public String getEntityTypeName() { + return "jp.sf.pal.pompei.exentity.DeliveryMethod"; + } + + /** + * This method implements the method that is declared at super. + * + * @return The type-name of condition-bean. (NotNull) + */ + public String getConditionBeanTypeName() { + return "jp.sf.pal.pompei.cbean.bs.DeliveryMethodCB"; + } + + /** + * This method implements the method that is declared at super. + * + * @return The type-name of dao. (NotNull) + */ + public String getDaoTypeName() { + return "jp.sf.pal.pompei.exdao.DeliveryMethodDao"; + } + + /** + * This method implements the method that is declared at super. + * + * @return The type-name of behavior. (NotNull) + */ + public String getBehaviorTypeName() { + return "jp.sf.pal.pompei.exbhv.DeliveryMethodBhv"; + } + + // =================================================================================== + // Type + // ==== + /** + * This method implements the method that is declared at super. + * + * @return The type of entity. (NotNull) + */ + public Class getEntityType() { + return ENTITY_TYPE; + } + + // =================================================================================== + // Instance + // ======== + /** + * This method implements the method that is declared at super. + * + * @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(); + } + + // =================================================================================== + // Foreign DBMeta + // ============== + /** + * This method implements the method that is declared at super. + * + * @param foreignPropertyName Foreign-property-name(Both OK - InitCap or not). (NotNull) + * @return Foreign DBMeta. (NotNull) + */ + public DBMeta getForeignDBMeta(String foreignPropertyName) { + assertStringNotNullAndNotTrimmedEmpty("foreignPropertyName", foreignPropertyName); + final String methodName = "getForeignDBMeta_" + foreignPropertyName.substring(0, 1) + foreignPropertyName.substring(1); + + java.lang.reflect.Method method = null; + try { + method = this.getClass().getMethod(methodName, new Class[]{}); + } catch (NoSuchMethodException e) { + String msg = "The foreignPropertyName is not found: foreignPropertyName=" + foreignPropertyName; + msg = msg + " tableName=" + TABLE_DB_NAME + " methodName=" + methodName; + throw new RuntimeException(msg, e); + } + try { + return (DBMeta)method.invoke(this, new Object[]{}); + } catch (IllegalAccessException e) { + throw new RuntimeException(e); + } catch (java.lang.reflect.InvocationTargetException e) { + throw new RuntimeException(e.getCause()); + } + } + + // =================================================================================== + // Determination + // ============= + /** + * This method implements the method that is declared at super. + * + * @return Determination. + */ + public boolean hasTwoOrMorePrimaryKeys() { + return false; + } + + /** + * This method implements the method that is declared at super. + * + * @return Determination. + */ + public boolean hasCommonColumn() { + return false; + } + + // =================================================================================== + // Entity Handling + // =============== + // ----------------------------------------------------- + // Accept + // ------ + /** + * This method implements the method that is declared at super. + * + * @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)); }; + + + } + + /** + * This method implements the method that is declared at super. + * + * @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); + } + + /** + * This method implements the method that is declared at super. + * + * @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("DELIVERY_CLASS", "deliveryClass", "deliveryClass")) { myEntity.setDeliveryClass(analyzer.analyzeString(String.class)); }; + if (analyzer.init("SORT_ORDER", "sortOrder", "sortOrder")) { myEntity.setSortOrder(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; + if (analyzer.init("DATE_ADDED", "dateAdded", "dateAdded")) { myEntity.setDateAdded(analyzer.analyzeDate(java.sql.Timestamp.class)); }; + if (analyzer.init("LAST_MODIFIED", "lastModified", "lastModified")) { myEntity.setLastModified(analyzer.analyzeDate(java.sql.Timestamp.class)); }; + + } + + + /** + * This method implements the method that is declared at super. + * + * @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 + // ------- + /** + * This method implements the method that is declared at super. + * + * @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(); + + } + + /** + * This method implements the method that is declared at super. + * + * @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, "DELIVERY_CLASS", myEntity.getDeliveryClass()); + 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)); + } + + + /** + * This method implements the method that is declared at super. + * + * @param entity Target entity. (NotNull) + * @return Column-value map-string. (NotNull) + */ + public String extractCommonColumnValueMapString(Entity entity) { + return "map:{}"; + } + + /** + * This method implements the method that is declared at super. + * + * @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 + // ------- + public java.util.List<Object> convertToColumnValueList(Entity entity) { + return new java.util.ArrayList<Object>(convertToColumnValueMap(entity).values()); + } + + 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("DELIVERY_CLASS", myEntity.getDeliveryClass()); + valueMap.put("SORT_ORDER", myEntity.getSortOrder()); + valueMap.put("DATE_ADDED", myEntity.getDateAdded()); + valueMap.put("LAST_MODIFIED", myEntity.getLastModified()); + return valueMap; + } + + public java.util.List<String> convertToColumnStringValueList(Entity entity) { + return new java.util.ArrayList<String>(convertToColumnStringValueMap(entity).values()); + } + + 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("DELIVERY_CLASS", helpGettingColumnStringValue(myEntity.getDeliveryClass())); + 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 + // ============ + public String getPreparedInsertClause() { + return "insert into DELIVERY_METHOD(DELIVERY_METHOD_ID, DELIVERY_CLASS, SORT_ORDER, DATE_ADDED, LAST_MODIFIED) values(? , ? , ? , ? , ? )"; + } + + public String getPreparedInsertClause(String tablePrefix) { + return "insert into " + tablePrefix + "DELIVERY_METHOD(DELIVERY_METHOD_ID, DELIVERY_CLASS, 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 IllegalStateException(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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/DeliveryMethodDescriptionDbm.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,688 @@ +package jp.sf.pal.pompei.bsentity.dbmeta; + + +import jp.sf.pal.pompei.allcommon.Entity; +import jp.sf.pal.pompei.allcommon.dbmeta.DBMeta; +import jp.sf.pal.pompei.allcommon.dbmeta.AbstractDBMeta; +import jp.sf.pal.pompei.exentity.DeliveryMethodDescription; + +/** + * The dbmeta of DELIVERY_METHOD_DESCRIPTION. (Singleton) + * + * <pre> + * [primary-key] + * DELIVERY_METHOD_ID, LANGUAGE_ID + * + * [column-property] + * DELIVERY_METHOD_ID, LANGUAGE_ID, DELIVERY_METHOD_NAME + * + * [foreign-property] + * deliveryMethod + * + * [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 db name. */ + public static final String TABLE_DB_NAME = "DELIVERY_METHOD_DESCRIPTION"; + + /** 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"; + + /** Db-name of DeliveryMethodId. */ + public static final String COLUMN_DB_NAME_OF_DeliveryMethodId = "DELIVERY_METHOD_ID"; + /** Db-name of LanguageId. */ + public static final String COLUMN_DB_NAME_OF_LanguageId = "LANGUAGE_ID"; + /** Db-name of DeliveryMethodName. */ + public static final String COLUMN_DB_NAME_OF_DeliveryMethodName = "DELIVERY_METHOD_NAME"; + + /** Cap-prop-name of DeliveryMethodId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId = "DeliveryMethodId"; + /** Cap-prop-name of LanguageId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_LanguageId = "LanguageId"; + /** Cap-prop-name of DeliveryMethodName. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryMethodName = "DeliveryMethodName"; + + /** Cap-prop-name of deliveryMethod. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryMethod = "DeliveryMethod"; + + + /** Uncap-prop-name of DeliveryMethodId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId = "deliveryMethodId"; + /** Uncap-prop-name of LanguageId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_LanguageId = "languageId"; + /** Uncap-prop-name of DeliveryMethodName. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodName = "deliveryMethodName"; + + /** Uncap-prop-name of deliveryMethod. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethod = "deliveryMethod"; + + + /** {db-name : cap-prop-name} map. */ + private static java.util.Map<String, String> _dbNameCapPropNameMap; + 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(COLUMN_DB_NAME_OF_DeliveryMethodId, COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId); + map.put(COLUMN_DB_NAME_OF_LanguageId, COLUMN_CAP_PROP_NAME_OF_LanguageId); + map.put(COLUMN_DB_NAME_OF_DeliveryMethodName, COLUMN_CAP_PROP_NAME_OF_DeliveryMethodName); + + _dbNameCapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _dbNameCapPropNameMap; + } + + /** {db-name : uncap-prop-name} map. */ + private static java.util.Map<String, String> _dbNameUncapPropNameMap; + 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(COLUMN_DB_NAME_OF_DeliveryMethodId, COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId); + map.put(COLUMN_DB_NAME_OF_LanguageId, COLUMN_UNCAP_PROP_NAME_OF_LanguageId); + map.put(COLUMN_DB_NAME_OF_DeliveryMethodName, COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodName); + + _dbNameUncapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _dbNameUncapPropNameMap; + } + + /** {cap-prop-name : db-name} map. */ + private static java.util.Map<String, String> _capPropNameDbNameMap; + 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(COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_DB_NAME_OF_DeliveryMethodId); + map.put(COLUMN_CAP_PROP_NAME_OF_LanguageId, COLUMN_DB_NAME_OF_LanguageId); + map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryMethodName, COLUMN_DB_NAME_OF_DeliveryMethodName); + + _capPropNameDbNameMap = java.util.Collections.unmodifiableMap(map); + return _capPropNameDbNameMap; + } + + /** {cap-prop-name : uncap-prop-name} map. */ + private static java.util.Map<String, String> _capPropNameUncapPropNameMap; + 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(COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId); + map.put(COLUMN_CAP_PROP_NAME_OF_LanguageId, COLUMN_UNCAP_PROP_NAME_OF_LanguageId); + map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryMethodName, COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodName); + + _capPropNameUncapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _capPropNameUncapPropNameMap; + } + + /** {uncap-prop-name : db-name} map. */ + private static java.util.Map<String, String> _uncapPropNameDbNameMap; + 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(COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_DB_NAME_OF_DeliveryMethodId); + map.put(COLUMN_UNCAP_PROP_NAME_OF_LanguageId, COLUMN_DB_NAME_OF_LanguageId); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodName, COLUMN_DB_NAME_OF_DeliveryMethodName); + + _uncapPropNameDbNameMap = java.util.Collections.unmodifiableMap(map); + return _uncapPropNameDbNameMap; + } + + /** {uncap-prop-name : cap-prop-name} map. */ + private static java.util.Map<String, String> _uncapPropNameCapPropNameMap; + 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(COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId); + map.put(COLUMN_UNCAP_PROP_NAME_OF_LanguageId, COLUMN_CAP_PROP_NAME_OF_LanguageId); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodName, COLUMN_CAP_PROP_NAME_OF_DeliveryMethodName); + + _uncapPropNameCapPropNameMap = java.util.Collections.unmodifiableMap(map); + return _uncapPropNameCapPropNameMap; + } + + // =================================================================================== + // Name-Map + // ======== + /** + * This method implements the method that is declared at super. + * + * @return {db-name : cap-prop-name} map. + */ + public java.util.Map<String, String> getDbNameCapPropNameMap() { + return createDbNameCapPropNameMap(); + } + + /** + * This method implements the method that is declared at super. + * + * @return {db-name : uncap-prop-name} map. + */ + public java.util.Map<String, String> getDbNameUncapPropNameMap() { + return createDbNameUncapPropNameMap(); + } + + /** + * This method implements the method that is declared at super. + * + * @return {cap-prop-name : db-name} map. + */ + public java.util.Map<String, String> getCapPropNameDbNameMap() { + return createCapPropNameDbNameMap(); + } + + /** + * This method implements the method that is declared at super. + * + * @return {cap-prop-name : uncap-prop-name} map. + */ + public java.util.Map<String, String> getCapPropNameUncapPropNameMap() { + return createCapPropNameUncapPropNameMap(); + } + + /** + * This method implements the method that is declared at super. + * + * @return {uncap-prop-name : db-name} map. + */ + public java.util.Map<String, String> getUncapPropNameDbNameMap() { + return createUncapPropNameDbNameMap(); + } + + /** + * This method implements the method that is declared at super. + * + * @return {uncap-prop-name : cap-prop-name} map. + */ + public java.util.Map<String, String> getUncapPropNameCapPropNameMap() { + return createUncapPropNameCapPropNameMap(); + } + + // =================================================================================== + // Table Name + // ========== + /** + * This method implements the method that is declared at super. + * + * @return Table db-name. (NotNull) + */ + public String getTableDbName() { + return TABLE_DB_NAME; + } + + /** + * This method implements the method that is declared at super. + * + * @return Table cap-prop-name. (NotNull) + */ + public String getTableCapPropName() { + return TABLE_CAP_PROP_NAME; + } + + /** + * This method implements the method that is declared at super. + * + * @return Table property-name. (NotNull) + */ + public String getTableUncapPropName() { + return TABLE_UNCAP_PROP_NAME; + } + + // =================================================================================== + // Column Name + // =========== + 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; + } + + 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; + } + + 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; + } + + /** + * This method implements the method that is declared at super. + * + * @return Column-db-name comma-string. (NotNull) + */ + public String getColumnDbNameCommaString() { + return "DELIVERY_METHOD_ID, LANGUAGE_ID, DELIVERY_METHOD_NAME"; + } + + // =================================================================================== + // Type Name + // ========= + /** + * This method implements the method that is declared at super. + * + * @return The type-name of entity. (NotNull) + */ + public String getEntityTypeName() { + return "jp.sf.pal.pompei.exentity.DeliveryMethodDescription"; + } + + /** + * This method implements the method that is declared at super. + * + * @return The type-name of condition-bean. (NotNull) + */ + public String getConditionBeanTypeName() { + return "jp.sf.pal.pompei.cbean.bs.DeliveryMethodDescriptionCB"; + } + + /** + * This method implements the method that is declared at super. + * + * @return The type-name of dao. (NotNull) + */ + public String getDaoTypeName() { + return "jp.sf.pal.pompei.exdao.DeliveryMethodDescriptionDao"; + } + + /** + * This method implements the method that is declared at super. + * + * @return The type-name of behavior. (NotNull) + */ + public String getBehaviorTypeName() { + return "jp.sf.pal.pompei.exbhv.DeliveryMethodDescriptionBhv"; + } + + // =================================================================================== + // Type + // ==== + /** + * This method implements the method that is declared at super. + * + * @return The type of entity. (NotNull) + */ + public Class getEntityType() { + return ENTITY_TYPE; + } + + // =================================================================================== + // Instance + // ======== + /** + * This method implements the method that is declared at super. + * + * @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(); + } + + // =================================================================================== + // Foreign DBMeta + // ============== + /** + * This method implements the method that is declared at super. + * + * @param foreignPropertyName Foreign-property-name(Both OK - InitCap or not). (NotNull) + * @return Foreign DBMeta. (NotNull) + */ + public DBMeta getForeignDBMeta(String foreignPropertyName) { + assertStringNotNullAndNotTrimmedEmpty("foreignPropertyName", foreignPropertyName); + final String methodName = "getForeignDBMeta_" + foreignPropertyName.substring(0, 1) + foreignPropertyName.substring(1); + + java.lang.reflect.Method method = null; + try { + method = this.getClass().getMethod(methodName, new Class[]{}); + } catch (NoSuchMethodException e) { + String msg = "The foreignPropertyName is not found: foreignPropertyName=" + foreignPropertyName; + msg = msg + " tableName=" + TABLE_DB_NAME + " methodName=" + methodName; + throw new RuntimeException(msg, e); + } + try { + return (DBMeta)method.invoke(this, new Object[]{}); + } catch (IllegalAccessException e) { + throw new RuntimeException(e); + } catch (java.lang.reflect.InvocationTargetException e) { + throw new RuntimeException(e.getCause()); + } + } + + /** + * Get foreign dbmeta of DeliveryMethod. + * + * @return Foreign DBMeta. (NotNull) + */ + public DeliveryMethodDbm getForeignDBMeta_DeliveryMethod() { + return DeliveryMethodDbm.getInstance(); + } + + // =================================================================================== + // Determination + // ============= + /** + * This method implements the method that is declared at super. + * + * @return Determination. + */ + public boolean hasTwoOrMorePrimaryKeys() { + return true; + } + + /** + * This method implements the method that is declared at super. + * + * @return Determination. + */ + public boolean hasCommonColumn() { + return false; + } + + // =================================================================================== + // Entity Handling + // =============== + // ----------------------------------------------------- + // Accept + // ------ + /** + * This method implements the method that is declared at super. + * + * @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)); }; + + + } + + /** + * This method implements the method that is declared at super. + * + * @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); + } + + /** + * This method implements the method that is declared at super. + * + * @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("DELIVERY_METHOD_NAME", "deliveryMethodName", "deliveryMethodName")) { myEntity.setDeliveryMethodName(analyzer.analyzeString(String.class)); }; + + } + + + /** + * This method implements the method that is declared at super. + * + * @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 + // ------- + /** + * This method implements the method that is declared at super. + * + * @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(); + + } + + /** + * This method implements the method that is declared at super. + * + * @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, "DELIVERY_METHOD_NAME", myEntity.getDeliveryMethodName()); + + 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)); + } + + + /** + * This method implements the method that is declared at super. + * + * @param entity Target entity. (NotNull) + * @return Column-value map-string. (NotNull) + */ + public String extractCommonColumnValueMapString(Entity entity) { + return "map:{}"; + } + + /** + * This method implements the method that is declared at super. + * + * @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 + // ------- + public java.util.List<Object> convertToColumnValueList(Entity entity) { + return new java.util.ArrayList<Object>(convertToColumnValueMap(entity).values()); + } + + 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("DELIVERY_METHOD_NAME", myEntity.getDeliveryMethodName()); + return valueMap; + } + + public java.util.List<String> convertToColumnStringValueList(Entity entity) { + return new java.util.ArrayList<String>(convertToColumnStringValueMap(entity).values()); + } + + 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("DELIVERY_METHOD_NAME", helpGettingColumnStringValue(myEntity.getDeliveryMethodName())); + return valueMap; + } + + // =================================================================================== + // JDBC Support + // ============ + public String getPreparedInsertClause() { + return "insert into DELIVERY_METHOD_DESCRIPTION(DELIVERY_METHOD_ID, LANGUAGE_ID, DELIVERY_METHOD_NAME) values(? , ? , ? )"; + } + + public String getPreparedInsertClause(String tablePrefix) { + return "insert into " + tablePrefix + "DELIVERY_METHOD_DESCRIPTION(DELIVERY_METHOD_ID, LANGUAGE_ID, DELIVERY_METHOD_NAME) 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 IllegalStateException(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 Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrdersDbm.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrdersDbm.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/bsentity/dbmeta/OrdersDbm.java 2007-08-26 13:47:59 UTC (rev 497) @@ -14,7 +14,7 @@ * ORDERS_ID * * [column-property] - * ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE + * ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_CELLPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_DEPARTMENT, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_TELEPHONE, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_DEPARTMENT, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_TELEPHONE, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, DELIVERY_METHOD_ID, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE * * [foreign-property] * ordersStatus @@ -104,6 +104,8 @@ public static final String COLUMN_DB_NAME_OF_CustomersCountry = "CUSTOMERS_COUNTRY"; /** Db-name of CustomersTelephone. */ public static final String COLUMN_DB_NAME_OF_CustomersTelephone = "CUSTOMERS_TELEPHONE"; + /** Db-name of CustomersCellphone. */ + public static final String COLUMN_DB_NAME_OF_CustomersCellphone = "CUSTOMERS_CELLPHONE"; /** Db-name of CustomersEmailAddress. */ public static final String COLUMN_DB_NAME_OF_CustomersEmailAddress = "CUSTOMERS_EMAIL_ADDRESS"; /** Db-name of CustomersAddressFormatId. */ @@ -112,6 +114,8 @@ public static final String COLUMN_DB_NAME_OF_DeliveryName = "DELIVERY_NAME"; /** Db-name of DeliveryCompany. */ public static final String COLUMN_DB_NAME_OF_DeliveryCompany = "DELIVERY_COMPANY"; + /** Db-name of DeliveryDepartment. */ + public static final String COLUMN_DB_NAME_OF_DeliveryDepartment = "DELIVERY_DEPARTMENT"; /** Db-name of DeliveryStreetAddress. */ public static final String COLUMN_DB_NAME_OF_DeliveryStreetAddress = "DELIVERY_STREET_ADDRESS"; /** Db-name of DeliverySuburb. */ @@ -124,12 +128,16 @@ public static final String COLUMN_DB_NAME_OF_DeliveryState = "DELIVERY_STATE"; /** Db-name of DeliveryCountry. */ public static final String COLUMN_DB_NAME_OF_DeliveryCountry = "DELIVERY_COUNTRY"; + /** Db-name of DeliveryTelephone. */ + public static final String COLUMN_DB_NAME_OF_DeliveryTelephone = "DELIVERY_TELEPHONE"; /** Db-name of DeliveryAddressFormatId. */ public static final String COLUMN_DB_NAME_OF_DeliveryAddressFormatId = "DELIVERY_ADDRESS_FORMAT_ID"; /** Db-name of BillingName. */ public static final String COLUMN_DB_NAME_OF_BillingName = "BILLING_NAME"; /** Db-name of BillingCompany. */ public static final String COLUMN_DB_NAME_OF_BillingCompany = "BILLING_COMPANY"; + /** Db-name of BillingDepartment. */ + public static final String COLUMN_DB_NAME_OF_BillingDepartment = "BILLING_DEPARTMENT"; /** Db-name of BillingStreetAddress. */ public static final String COLUMN_DB_NAME_OF_BillingStreetAddress = "BILLING_STREET_ADDRESS"; /** Db-name of BillingSuburb. */ @@ -142,6 +150,8 @@ public static final String COLUMN_DB_NAME_OF_BillingState = "BILLING_STATE"; /** Db-name of BillingCountry. */ public static final String COLUMN_DB_NAME_OF_BillingCountry = "BILLING_COUNTRY"; + /** Db-name of BillingTelephone. */ + public static final String COLUMN_DB_NAME_OF_BillingTelephone = "BILLING_TELEPHONE"; /** Db-name of BillingAddressFormatId. */ public static final String COLUMN_DB_NAME_OF_BillingAddressFormatId = "BILLING_ADDRESS_FORMAT_ID"; /** Db-name of PaymentMethod. */ @@ -154,6 +164,8 @@ public static final String COLUMN_DB_NAME_OF_CcNumber = "CC_NUMBER"; /** Db-name of CcExpires. */ public static final String COLUMN_DB_NAME_OF_CcExpires = "CC_EXPIRES"; + /** Db-name of DeliveryMethodId. */ + public static final String COLUMN_DB_NAME_OF_DeliveryMethodId = "DELIVERY_METHOD_ID"; /** Db-name of LastModified. */ public static final String COLUMN_DB_NAME_OF_LastModified = "LAST_MODIFIED"; /** Db-name of DatePurchased. */ @@ -189,6 +201,8 @@ public static final String COLUMN_CAP_PROP_NAME_OF_CustomersCountry = "CustomersCountry"; /** Cap-prop-name of CustomersTelephone. */ public static final String COLUMN_CAP_PROP_NAME_OF_CustomersTelephone = "CustomersTelephone"; + /** Cap-prop-name of CustomersCellphone. */ + public static final String COLUMN_CAP_PROP_NAME_OF_CustomersCellphone = "CustomersCellphone"; /** Cap-prop-name of CustomersEmailAddress. */ public static final String COLUMN_CAP_PROP_NAME_OF_CustomersEmailAddress = "CustomersEmailAddress"; /** Cap-prop-name of CustomersAddressFormatId. */ @@ -197,6 +211,8 @@ public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryName = "DeliveryName"; /** Cap-prop-name of DeliveryCompany. */ public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryCompany = "DeliveryCompany"; + /** Cap-prop-name of DeliveryDepartment. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryDepartment = "DeliveryDepartment"; /** Cap-prop-name of DeliveryStreetAddress. */ public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryStreetAddress = "DeliveryStreetAddress"; /** Cap-prop-name of DeliverySuburb. */ @@ -209,12 +225,16 @@ public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryState = "DeliveryState"; /** Cap-prop-name of DeliveryCountry. */ public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryCountry = "DeliveryCountry"; + /** Cap-prop-name of DeliveryTelephone. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryTelephone = "DeliveryTelephone"; /** Cap-prop-name of DeliveryAddressFormatId. */ public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryAddressFormatId = "DeliveryAddressFormatId"; /** Cap-prop-name of BillingName. */ public static final String COLUMN_CAP_PROP_NAME_OF_BillingName = "BillingName"; /** Cap-prop-name of BillingCompany. */ public static final String COLUMN_CAP_PROP_NAME_OF_BillingCompany = "BillingCompany"; + /** Cap-prop-name of BillingDepartment. */ + public static final String COLUMN_CAP_PROP_NAME_OF_BillingDepartment = "BillingDepartment"; /** Cap-prop-name of BillingStreetAddress. */ public static final String COLUMN_CAP_PROP_NAME_OF_BillingStreetAddress = "BillingStreetAddress"; /** Cap-prop-name of BillingSuburb. */ @@ -227,6 +247,8 @@ public static final String COLUMN_CAP_PROP_NAME_OF_BillingState = "BillingState"; /** Cap-prop-name of BillingCountry. */ public static final String COLUMN_CAP_PROP_NAME_OF_BillingCountry = "BillingCountry"; + /** Cap-prop-name of BillingTelephone. */ + public static final String COLUMN_CAP_PROP_NAME_OF_BillingTelephone = "BillingTelephone"; /** Cap-prop-name of BillingAddressFormatId. */ public static final String COLUMN_CAP_PROP_NAME_OF_BillingAddressFormatId = "BillingAddressFormatId"; /** Cap-prop-name of PaymentMethod. */ @@ -239,6 +261,8 @@ public static final String COLUMN_CAP_PROP_NAME_OF_CcNumber = "CcNumber"; /** Cap-prop-name of CcExpires. */ public static final String COLUMN_CAP_PROP_NAME_OF_CcExpires = "CcExpires"; + /** Cap-prop-name of DeliveryMethodId. */ + public static final String COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId = "DeliveryMethodId"; /** Cap-prop-name of LastModified. */ public static final String COLUMN_CAP_PROP_NAME_OF_LastModified = "LastModified"; /** Cap-prop-name of DatePurchased. */ @@ -280,6 +304,8 @@ public static final String COLUMN_UNCAP_PROP_NAME_OF_CustomersCountry = "customersCountry"; /** Uncap-prop-name of CustomersTelephone. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_CustomersTelephone = "customersTelephone"; + /** Uncap-prop-name of CustomersCellphone. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_CustomersCellphone = "customersCellphone"; /** Uncap-prop-name of CustomersEmailAddress. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_CustomersEmailAddress = "customersEmailAddress"; /** Uncap-prop-name of CustomersAddressFormatId. */ @@ -288,6 +314,8 @@ public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryName = "deliveryName"; /** Uncap-prop-name of DeliveryCompany. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryCompany = "deliveryCompany"; + /** Uncap-prop-name of DeliveryDepartment. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryDepartment = "deliveryDepartment"; /** Uncap-prop-name of DeliveryStreetAddress. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryStreetAddress = "deliveryStreetAddress"; /** Uncap-prop-name of DeliverySuburb. */ @@ -300,12 +328,16 @@ public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryState = "deliveryState"; /** Uncap-prop-name of DeliveryCountry. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryCountry = "deliveryCountry"; + /** Uncap-prop-name of DeliveryTelephone. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryTelephone = "deliveryTelephone"; /** Uncap-prop-name of DeliveryAddressFormatId. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryAddressFormatId = "deliveryAddressFormatId"; /** Uncap-prop-name of BillingName. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_BillingName = "billingName"; /** Uncap-prop-name of BillingCompany. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_BillingCompany = "billingCompany"; + /** Uncap-prop-name of BillingDepartment. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_BillingDepartment = "billingDepartment"; /** Uncap-prop-name of BillingStreetAddress. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_BillingStreetAddress = "billingStreetAddress"; /** Uncap-prop-name of BillingSuburb. */ @@ -318,6 +350,8 @@ public static final String COLUMN_UNCAP_PROP_NAME_OF_BillingState = "billingState"; /** Uncap-prop-name of BillingCountry. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_BillingCountry = "billingCountry"; + /** Uncap-prop-name of BillingTelephone. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_BillingTelephone = "billingTelephone"; /** Uncap-prop-name of BillingAddressFormatId. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_BillingAddressFormatId = "billingAddressFormatId"; /** Uncap-prop-name of PaymentMethod. */ @@ -330,6 +364,8 @@ public static final String COLUMN_UNCAP_PROP_NAME_OF_CcNumber = "ccNumber"; /** Uncap-prop-name of CcExpires. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_CcExpires = "ccExpires"; + /** Uncap-prop-name of DeliveryMethodId. */ + public static final String COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId = "deliveryMethodId"; /** Uncap-prop-name of LastModified. */ public static final String COLUMN_UNCAP_PROP_NAME_OF_LastModified = "lastModified"; /** Uncap-prop-name of DatePurchased. */ @@ -369,31 +405,37 @@ map.put(COLUMN_DB_NAME_OF_CustomersState, COLUMN_CAP_PROP_NAME_OF_CustomersState); map.put(COLUMN_DB_NAME_OF_CustomersCountry, COLUMN_CAP_PROP_NAME_OF_CustomersCountry); map.put(COLUMN_DB_NAME_OF_CustomersTelephone, COLUMN_CAP_PROP_NAME_OF_CustomersTelephone); + map.put(COLUMN_DB_NAME_OF_CustomersCellphone, COLUMN_CAP_PROP_NAME_OF_CustomersCellphone); map.put(COLUMN_DB_NAME_OF_CustomersEmailAddress, COLUMN_CAP_PROP_NAME_OF_CustomersEmailAddress); map.put(COLUMN_DB_NAME_OF_CustomersAddressFormatId, COLUMN_CAP_PROP_NAME_OF_CustomersAddressFormatId); map.put(COLUMN_DB_NAME_OF_DeliveryName, COLUMN_CAP_PROP_NAME_OF_DeliveryName); map.put(COLUMN_DB_NAME_OF_DeliveryCompany, COLUMN_CAP_PROP_NAME_OF_DeliveryCompany); + map.put(COLUMN_DB_NAME_OF_DeliveryDepartment, COLUMN_CAP_PROP_NAME_OF_DeliveryDepartment); map.put(COLUMN_DB_NAME_OF_DeliveryStreetAddress, COLUMN_CAP_PROP_NAME_OF_DeliveryStreetAddress); map.put(COLUMN_DB_NAME_OF_DeliverySuburb, COLUMN_CAP_PROP_NAME_OF_DeliverySuburb); map.put(COLUMN_DB_NAME_OF_DeliveryCity, COLUMN_CAP_PROP_NAME_OF_DeliveryCity); map.put(COLUMN_DB_NAME_OF_DeliveryPostcode, COLUMN_CAP_PROP_NAME_OF_DeliveryPostcode); map.put(COLUMN_DB_NAME_OF_DeliveryState, COLUMN_CAP_PROP_NAME_OF_DeliveryState); map.put(COLUMN_DB_NAME_OF_DeliveryCountry, COLUMN_CAP_PROP_NAME_OF_DeliveryCountry); + map.put(COLUMN_DB_NAME_OF_DeliveryTelephone, COLUMN_CAP_PROP_NAME_OF_DeliveryTelephone); map.put(COLUMN_DB_NAME_OF_DeliveryAddressFormatId, COLUMN_CAP_PROP_NAME_OF_DeliveryAddressFormatId); map.put(COLUMN_DB_NAME_OF_BillingName, COLUMN_CAP_PROP_NAME_OF_BillingName); map.put(COLUMN_DB_NAME_OF_BillingCompany, COLUMN_CAP_PROP_NAME_OF_BillingCompany); + map.put(COLUMN_DB_NAME_OF_BillingDepartment, COLUMN_CAP_PROP_NAME_OF_BillingDepartment); map.put(COLUMN_DB_NAME_OF_BillingStreetAddress, COLUMN_CAP_PROP_NAME_OF_BillingStreetAddress); map.put(COLUMN_DB_NAME_OF_BillingSuburb, COLUMN_CAP_PROP_NAME_OF_BillingSuburb); map.put(COLUMN_DB_NAME_OF_BillingCity, COLUMN_CAP_PROP_NAME_OF_BillingCity); map.put(COLUMN_DB_NAME_OF_BillingPostcode, COLUMN_CAP_PROP_NAME_OF_BillingPostcode); map.put(COLUMN_DB_NAME_OF_BillingState, COLUMN_CAP_PROP_NAME_OF_BillingState); map.put(COLUMN_DB_NAME_OF_BillingCountry, COLUMN_CAP_PROP_NAME_OF_BillingCountry); + map.put(COLUMN_DB_NAME_OF_BillingTelephone, COLUMN_CAP_PROP_NAME_OF_BillingTelephone); map.put(COLUMN_DB_NAME_OF_BillingAddressFormatId, COLUMN_CAP_PROP_NAME_OF_BillingAddressFormatId); map.put(COLUMN_DB_NAME_OF_PaymentMethod, COLUMN_CAP_PROP_NAME_OF_PaymentMethod); map.put(COLUMN_DB_NAME_OF_CcType, COLUMN_CAP_PROP_NAME_OF_CcType); map.put(COLUMN_DB_NAME_OF_CcOwner, COLUMN_CAP_PROP_NAME_OF_CcOwner); map.put(COLUMN_DB_NAME_OF_CcNumber, COLUMN_CAP_PROP_NAME_OF_CcNumber); map.put(COLUMN_DB_NAME_OF_CcExpires, COLUMN_CAP_PROP_NAME_OF_CcExpires); + map.put(COLUMN_DB_NAME_OF_DeliveryMethodId, COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId); map.put(COLUMN_DB_NAME_OF_LastModified, COLUMN_CAP_PROP_NAME_OF_LastModified); map.put(COLUMN_DB_NAME_OF_DatePurchased, COLUMN_CAP_PROP_NAME_OF_DatePurchased); map.put(COLUMN_DB_NAME_OF_OrdersStatusId, COLUMN_CAP_PROP_NAME_OF_OrdersStatusId); @@ -425,31 +467,37 @@ map.put(COLUMN_DB_NAME_OF_CustomersState, COLUMN_UNCAP_PROP_NAME_OF_CustomersState); map.put(COLUMN_DB_NAME_OF_CustomersCountry, COLUMN_UNCAP_PROP_NAME_OF_CustomersCountry); map.put(COLUMN_DB_NAME_OF_CustomersTelephone, COLUMN_UNCAP_PROP_NAME_OF_CustomersTelephone); + map.put(COLUMN_DB_NAME_OF_CustomersCellphone, COLUMN_UNCAP_PROP_NAME_OF_CustomersCellphone); map.put(COLUMN_DB_NAME_OF_CustomersEmailAddress, COLUMN_UNCAP_PROP_NAME_OF_CustomersEmailAddress); map.put(COLUMN_DB_NAME_OF_CustomersAddressFormatId, COLUMN_UNCAP_PROP_NAME_OF_CustomersAddressFormatId); map.put(COLUMN_DB_NAME_OF_DeliveryName, COLUMN_UNCAP_PROP_NAME_OF_DeliveryName); map.put(COLUMN_DB_NAME_OF_DeliveryCompany, COLUMN_UNCAP_PROP_NAME_OF_DeliveryCompany); + map.put(COLUMN_DB_NAME_OF_DeliveryDepartment, COLUMN_UNCAP_PROP_NAME_OF_DeliveryDepartment); map.put(COLUMN_DB_NAME_OF_DeliveryStreetAddress, COLUMN_UNCAP_PROP_NAME_OF_DeliveryStreetAddress); map.put(COLUMN_DB_NAME_OF_DeliverySuburb, COLUMN_UNCAP_PROP_NAME_OF_DeliverySuburb); map.put(COLUMN_DB_NAME_OF_DeliveryCity, COLUMN_UNCAP_PROP_NAME_OF_DeliveryCity); map.put(COLUMN_DB_NAME_OF_DeliveryPostcode, COLUMN_UNCAP_PROP_NAME_OF_DeliveryPostcode); map.put(COLUMN_DB_NAME_OF_DeliveryState, COLUMN_UNCAP_PROP_NAME_OF_DeliveryState); map.put(COLUMN_DB_NAME_OF_DeliveryCountry, COLUMN_UNCAP_PROP_NAME_OF_DeliveryCountry); + map.put(COLUMN_DB_NAME_OF_DeliveryTelephone, COLUMN_UNCAP_PROP_NAME_OF_DeliveryTelephone); map.put(COLUMN_DB_NAME_OF_DeliveryAddressFormatId, COLUMN_UNCAP_PROP_NAME_OF_DeliveryAddressFormatId); map.put(COLUMN_DB_NAME_OF_BillingName, COLUMN_UNCAP_PROP_NAME_OF_BillingName); map.put(COLUMN_DB_NAME_OF_BillingCompany, COLUMN_UNCAP_PROP_NAME_OF_BillingCompany); + map.put(COLUMN_DB_NAME_OF_BillingDepartment, COLUMN_UNCAP_PROP_NAME_OF_BillingDepartment); map.put(COLUMN_DB_NAME_OF_BillingStreetAddress, COLUMN_UNCAP_PROP_NAME_OF_BillingStreetAddress); map.put(COLUMN_DB_NAME_OF_BillingSuburb, COLUMN_UNCAP_PROP_NAME_OF_BillingSuburb); map.put(COLUMN_DB_NAME_OF_BillingCity, COLUMN_UNCAP_PROP_NAME_OF_BillingCity); map.put(COLUMN_DB_NAME_OF_BillingPostcode, COLUMN_UNCAP_PROP_NAME_OF_BillingPostcode); map.put(COLUMN_DB_NAME_OF_BillingState, COLUMN_UNCAP_PROP_NAME_OF_BillingState); map.put(COLUMN_DB_NAME_OF_BillingCountry, COLUMN_UNCAP_PROP_NAME_OF_BillingCountry); + map.put(COLUMN_DB_NAME_OF_BillingTelephone, COLUMN_UNCAP_PROP_NAME_OF_BillingTelephone); map.put(COLUMN_DB_NAME_OF_BillingAddressFormatId, COLUMN_UNCAP_PROP_NAME_OF_BillingAddressFormatId); map.put(COLUMN_DB_NAME_OF_PaymentMethod, COLUMN_UNCAP_PROP_NAME_OF_PaymentMethod); map.put(COLUMN_DB_NAME_OF_CcType, COLUMN_UNCAP_PROP_NAME_OF_CcType); map.put(COLUMN_DB_NAME_OF_CcOwner, COLUMN_UNCAP_PROP_NAME_OF_CcOwner); map.put(COLUMN_DB_NAME_OF_CcNumber, COLUMN_UNCAP_PROP_NAME_OF_CcNumber); map.put(COLUMN_DB_NAME_OF_CcExpires, COLUMN_UNCAP_PROP_NAME_OF_CcExpires); + map.put(COLUMN_DB_NAME_OF_DeliveryMethodId, COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId); map.put(COLUMN_DB_NAME_OF_LastModified, COLUMN_UNCAP_PROP_NAME_OF_LastModified); map.put(COLUMN_DB_NAME_OF_DatePurchased, COLUMN_UNCAP_PROP_NAME_OF_DatePurchased); map.put(COLUMN_DB_NAME_OF_OrdersStatusId, COLUMN_UNCAP_PROP_NAME_OF_OrdersStatusId); @@ -481,31 +529,37 @@ map.put(COLUMN_CAP_PROP_NAME_OF_CustomersState, COLUMN_DB_NAME_OF_CustomersState); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersCountry, COLUMN_DB_NAME_OF_CustomersCountry); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersTelephone, COLUMN_DB_NAME_OF_CustomersTelephone); + map.put(COLUMN_CAP_PROP_NAME_OF_CustomersCellphone, COLUMN_DB_NAME_OF_CustomersCellphone); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersEmailAddress, COLUMN_DB_NAME_OF_CustomersEmailAddress); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersAddressFormatId, COLUMN_DB_NAME_OF_CustomersAddressFormatId); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryName, COLUMN_DB_NAME_OF_DeliveryName); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryCompany, COLUMN_DB_NAME_OF_DeliveryCompany); + map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryDepartment, COLUMN_DB_NAME_OF_DeliveryDepartment); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryStreetAddress, COLUMN_DB_NAME_OF_DeliveryStreetAddress); map.put(COLUMN_CAP_PROP_NAME_OF_DeliverySuburb, COLUMN_DB_NAME_OF_DeliverySuburb); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryCity, COLUMN_DB_NAME_OF_DeliveryCity); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryPostcode, COLUMN_DB_NAME_OF_DeliveryPostcode); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryState, COLUMN_DB_NAME_OF_DeliveryState); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryCountry, COLUMN_DB_NAME_OF_DeliveryCountry); + map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryTelephone, COLUMN_DB_NAME_OF_DeliveryTelephone); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryAddressFormatId, COLUMN_DB_NAME_OF_DeliveryAddressFormatId); map.put(COLUMN_CAP_PROP_NAME_OF_BillingName, COLUMN_DB_NAME_OF_BillingName); map.put(COLUMN_CAP_PROP_NAME_OF_BillingCompany, COLUMN_DB_NAME_OF_BillingCompany); + map.put(COLUMN_CAP_PROP_NAME_OF_BillingDepartment, COLUMN_DB_NAME_OF_BillingDepartment); map.put(COLUMN_CAP_PROP_NAME_OF_BillingStreetAddress, COLUMN_DB_NAME_OF_BillingStreetAddress); map.put(COLUMN_CAP_PROP_NAME_OF_BillingSuburb, COLUMN_DB_NAME_OF_BillingSuburb); map.put(COLUMN_CAP_PROP_NAME_OF_BillingCity, COLUMN_DB_NAME_OF_BillingCity); map.put(COLUMN_CAP_PROP_NAME_OF_BillingPostcode, COLUMN_DB_NAME_OF_BillingPostcode); map.put(COLUMN_CAP_PROP_NAME_OF_BillingState, COLUMN_DB_NAME_OF_BillingState); map.put(COLUMN_CAP_PROP_NAME_OF_BillingCountry, COLUMN_DB_NAME_OF_BillingCountry); + map.put(COLUMN_CAP_PROP_NAME_OF_BillingTelephone, COLUMN_DB_NAME_OF_BillingTelephone); map.put(COLUMN_CAP_PROP_NAME_OF_BillingAddressFormatId, COLUMN_DB_NAME_OF_BillingAddressFormatId); map.put(COLUMN_CAP_PROP_NAME_OF_PaymentMethod, COLUMN_DB_NAME_OF_PaymentMethod); map.put(COLUMN_CAP_PROP_NAME_OF_CcType, COLUMN_DB_NAME_OF_CcType); map.put(COLUMN_CAP_PROP_NAME_OF_CcOwner, COLUMN_DB_NAME_OF_CcOwner); map.put(COLUMN_CAP_PROP_NAME_OF_CcNumber, COLUMN_DB_NAME_OF_CcNumber); map.put(COLUMN_CAP_PROP_NAME_OF_CcExpires, COLUMN_DB_NAME_OF_CcExpires); + map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_DB_NAME_OF_DeliveryMethodId); map.put(COLUMN_CAP_PROP_NAME_OF_LastModified, COLUMN_DB_NAME_OF_LastModified); map.put(COLUMN_CAP_PROP_NAME_OF_DatePurchased, COLUMN_DB_NAME_OF_DatePurchased); map.put(COLUMN_CAP_PROP_NAME_OF_OrdersStatusId, COLUMN_DB_NAME_OF_OrdersStatusId); @@ -537,31 +591,37 @@ map.put(COLUMN_CAP_PROP_NAME_OF_CustomersState, COLUMN_UNCAP_PROP_NAME_OF_CustomersState); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersCountry, COLUMN_UNCAP_PROP_NAME_OF_CustomersCountry); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersTelephone, COLUMN_UNCAP_PROP_NAME_OF_CustomersTelephone); + map.put(COLUMN_CAP_PROP_NAME_OF_CustomersCellphone, COLUMN_UNCAP_PROP_NAME_OF_CustomersCellphone); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersEmailAddress, COLUMN_UNCAP_PROP_NAME_OF_CustomersEmailAddress); map.put(COLUMN_CAP_PROP_NAME_OF_CustomersAddressFormatId, COLUMN_UNCAP_PROP_NAME_OF_CustomersAddressFormatId); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryName, COLUMN_UNCAP_PROP_NAME_OF_DeliveryName); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryCompany, COLUMN_UNCAP_PROP_NAME_OF_DeliveryCompany); + map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryDepartment, COLUMN_UNCAP_PROP_NAME_OF_DeliveryDepartment); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryStreetAddress, COLUMN_UNCAP_PROP_NAME_OF_DeliveryStreetAddress); map.put(COLUMN_CAP_PROP_NAME_OF_DeliverySuburb, COLUMN_UNCAP_PROP_NAME_OF_DeliverySuburb); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryCity, COLUMN_UNCAP_PROP_NAME_OF_DeliveryCity); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryPostcode, COLUMN_UNCAP_PROP_NAME_OF_DeliveryPostcode); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryState, COLUMN_UNCAP_PROP_NAME_OF_DeliveryState); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryCountry, COLUMN_UNCAP_PROP_NAME_OF_DeliveryCountry); + map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryTelephone, COLUMN_UNCAP_PROP_NAME_OF_DeliveryTelephone); map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryAddressFormatId, COLUMN_UNCAP_PROP_NAME_OF_DeliveryAddressFormatId); map.put(COLUMN_CAP_PROP_NAME_OF_BillingName, COLUMN_UNCAP_PROP_NAME_OF_BillingName); map.put(COLUMN_CAP_PROP_NAME_OF_BillingCompany, COLUMN_UNCAP_PROP_NAME_OF_BillingCompany); + map.put(COLUMN_CAP_PROP_NAME_OF_BillingDepartment, COLUMN_UNCAP_PROP_NAME_OF_BillingDepartment); map.put(COLUMN_CAP_PROP_NAME_OF_BillingStreetAddress, COLUMN_UNCAP_PROP_NAME_OF_BillingStreetAddress); map.put(COLUMN_CAP_PROP_NAME_OF_BillingSuburb, COLUMN_UNCAP_PROP_NAME_OF_BillingSuburb); map.put(COLUMN_CAP_PROP_NAME_OF_BillingCity, COLUMN_UNCAP_PROP_NAME_OF_BillingCity); map.put(COLUMN_CAP_PROP_NAME_OF_BillingPostcode, COLUMN_UNCAP_PROP_NAME_OF_BillingPostcode); map.put(COLUMN_CAP_PROP_NAME_OF_BillingState, COLUMN_UNCAP_PROP_NAME_OF_BillingState); map.put(COLUMN_CAP_PROP_NAME_OF_BillingCountry, COLUMN_UNCAP_PROP_NAME_OF_BillingCountry); + map.put(COLUMN_CAP_PROP_NAME_OF_BillingTelephone, COLUMN_UNCAP_PROP_NAME_OF_BillingTelephone); map.put(COLUMN_CAP_PROP_NAME_OF_BillingAddressFormatId, COLUMN_UNCAP_PROP_NAME_OF_BillingAddressFormatId); map.put(COLUMN_CAP_PROP_NAME_OF_PaymentMethod, COLUMN_UNCAP_PROP_NAME_OF_PaymentMethod); map.put(COLUMN_CAP_PROP_NAME_OF_CcType, COLUMN_UNCAP_PROP_NAME_OF_CcType); map.put(COLUMN_CAP_PROP_NAME_OF_CcOwner, COLUMN_UNCAP_PROP_NAME_OF_CcOwner); map.put(COLUMN_CAP_PROP_NAME_OF_CcNumber, COLUMN_UNCAP_PROP_NAME_OF_CcNumber); map.put(COLUMN_CAP_PROP_NAME_OF_CcExpires, COLUMN_UNCAP_PROP_NAME_OF_CcExpires); + map.put(COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId); map.put(COLUMN_CAP_PROP_NAME_OF_LastModified, COLUMN_UNCAP_PROP_NAME_OF_LastModified); map.put(COLUMN_CAP_PROP_NAME_OF_DatePurchased, COLUMN_UNCAP_PROP_NAME_OF_DatePurchased); map.put(COLUMN_CAP_PROP_NAME_OF_OrdersStatusId, COLUMN_UNCAP_PROP_NAME_OF_OrdersStatusId); @@ -593,31 +653,37 @@ map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersState, COLUMN_DB_NAME_OF_CustomersState); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersCountry, COLUMN_DB_NAME_OF_CustomersCountry); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersTelephone, COLUMN_DB_NAME_OF_CustomersTelephone); + map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersCellphone, COLUMN_DB_NAME_OF_CustomersCellphone); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersEmailAddress, COLUMN_DB_NAME_OF_CustomersEmailAddress); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersAddressFormatId, COLUMN_DB_NAME_OF_CustomersAddressFormatId); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryName, COLUMN_DB_NAME_OF_DeliveryName); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryCompany, COLUMN_DB_NAME_OF_DeliveryCompany); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryDepartment, COLUMN_DB_NAME_OF_DeliveryDepartment); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryStreetAddress, COLUMN_DB_NAME_OF_DeliveryStreetAddress); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliverySuburb, COLUMN_DB_NAME_OF_DeliverySuburb); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryCity, COLUMN_DB_NAME_OF_DeliveryCity); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryPostcode, COLUMN_DB_NAME_OF_DeliveryPostcode); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryState, COLUMN_DB_NAME_OF_DeliveryState); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryCountry, COLUMN_DB_NAME_OF_DeliveryCountry); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryTelephone, COLUMN_DB_NAME_OF_DeliveryTelephone); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryAddressFormatId, COLUMN_DB_NAME_OF_DeliveryAddressFormatId); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingName, COLUMN_DB_NAME_OF_BillingName); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingCompany, COLUMN_DB_NAME_OF_BillingCompany); + map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingDepartment, COLUMN_DB_NAME_OF_BillingDepartment); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingStreetAddress, COLUMN_DB_NAME_OF_BillingStreetAddress); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingSuburb, COLUMN_DB_NAME_OF_BillingSuburb); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingCity, COLUMN_DB_NAME_OF_BillingCity); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingPostcode, COLUMN_DB_NAME_OF_BillingPostcode); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingState, COLUMN_DB_NAME_OF_BillingState); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingCountry, COLUMN_DB_NAME_OF_BillingCountry); + map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingTelephone, COLUMN_DB_NAME_OF_BillingTelephone); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingAddressFormatId, COLUMN_DB_NAME_OF_BillingAddressFormatId); map.put(COLUMN_UNCAP_PROP_NAME_OF_PaymentMethod, COLUMN_DB_NAME_OF_PaymentMethod); map.put(COLUMN_UNCAP_PROP_NAME_OF_CcType, COLUMN_DB_NAME_OF_CcType); map.put(COLUMN_UNCAP_PROP_NAME_OF_CcOwner, COLUMN_DB_NAME_OF_CcOwner); map.put(COLUMN_UNCAP_PROP_NAME_OF_CcNumber, COLUMN_DB_NAME_OF_CcNumber); map.put(COLUMN_UNCAP_PROP_NAME_OF_CcExpires, COLUMN_DB_NAME_OF_CcExpires); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_DB_NAME_OF_DeliveryMethodId); map.put(COLUMN_UNCAP_PROP_NAME_OF_LastModified, COLUMN_DB_NAME_OF_LastModified); map.put(COLUMN_UNCAP_PROP_NAME_OF_DatePurchased, COLUMN_DB_NAME_OF_DatePurchased); map.put(COLUMN_UNCAP_PROP_NAME_OF_OrdersStatusId, COLUMN_DB_NAME_OF_OrdersStatusId); @@ -649,31 +715,37 @@ map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersState, COLUMN_CAP_PROP_NAME_OF_CustomersState); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersCountry, COLUMN_CAP_PROP_NAME_OF_CustomersCountry); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersTelephone, COLUMN_CAP_PROP_NAME_OF_CustomersTelephone); + map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersCellphone, COLUMN_CAP_PROP_NAME_OF_CustomersCellphone); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersEmailAddress, COLUMN_CAP_PROP_NAME_OF_CustomersEmailAddress); map.put(COLUMN_UNCAP_PROP_NAME_OF_CustomersAddressFormatId, COLUMN_CAP_PROP_NAME_OF_CustomersAddressFormatId); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryName, COLUMN_CAP_PROP_NAME_OF_DeliveryName); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryCompany, COLUMN_CAP_PROP_NAME_OF_DeliveryCompany); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryDepartment, COLUMN_CAP_PROP_NAME_OF_DeliveryDepartment); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryStreetAddress, COLUMN_CAP_PROP_NAME_OF_DeliveryStreetAddress); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliverySuburb, COLUMN_CAP_PROP_NAME_OF_DeliverySuburb); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryCity, COLUMN_CAP_PROP_NAME_OF_DeliveryCity); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryPostcode, COLUMN_CAP_PROP_NAME_OF_DeliveryPostcode); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryState, COLUMN_CAP_PROP_NAME_OF_DeliveryState); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryCountry, COLUMN_CAP_PROP_NAME_OF_DeliveryCountry); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryTelephone, COLUMN_CAP_PROP_NAME_OF_DeliveryTelephone); map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryAddressFormatId, COLUMN_CAP_PROP_NAME_OF_DeliveryAddressFormatId); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingName, COLUMN_CAP_PROP_NAME_OF_BillingName); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingCompany, COLUMN_CAP_PROP_NAME_OF_BillingCompany); + map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingDepartment, COLUMN_CAP_PROP_NAME_OF_BillingDepartment); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingStreetAddress, COLUMN_CAP_PROP_NAME_OF_BillingStreetAddress); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingSuburb, COLUMN_CAP_PROP_NAME_OF_BillingSuburb); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingCity, COLUMN_CAP_PROP_NAME_OF_BillingCity); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingPostcode, COLUMN_CAP_PROP_NAME_OF_BillingPostcode); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingState, COLUMN_CAP_PROP_NAME_OF_BillingState); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingCountry, COLUMN_CAP_PROP_NAME_OF_BillingCountry); + map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingTelephone, COLUMN_CAP_PROP_NAME_OF_BillingTelephone); map.put(COLUMN_UNCAP_PROP_NAME_OF_BillingAddressFormatId, COLUMN_CAP_PROP_NAME_OF_BillingAddressFormatId); map.put(COLUMN_UNCAP_PROP_NAME_OF_PaymentMethod, COLUMN_CAP_PROP_NAME_OF_PaymentMethod); map.put(COLUMN_UNCAP_PROP_NAME_OF_CcType, COLUMN_CAP_PROP_NAME_OF_CcType); map.put(COLUMN_UNCAP_PROP_NAME_OF_CcOwner, COLUMN_CAP_PROP_NAME_OF_CcOwner); map.put(COLUMN_UNCAP_PROP_NAME_OF_CcNumber, COLUMN_CAP_PROP_NAME_OF_CcNumber); map.put(COLUMN_UNCAP_PROP_NAME_OF_CcExpires, COLUMN_CAP_PROP_NAME_OF_CcExpires); + map.put(COLUMN_UNCAP_PROP_NAME_OF_DeliveryMethodId, COLUMN_CAP_PROP_NAME_OF_DeliveryMethodId); map.put(COLUMN_UNCAP_PROP_NAME_OF_LastModified, COLUMN_CAP_PROP_NAME_OF_LastModified); map.put(COLUMN_UNCAP_PROP_NAME_OF_DatePurchased, COLUMN_CAP_PROP_NAME_OF_DatePurchased); map.put(COLUMN_UNCAP_PROP_NAME_OF_OrdersStatusId, COLUMN_CAP_PROP_NAME_OF_OrdersStatusId); @@ -808,7 +880,7 @@ * @return Column-db-name comma-string. (NotNull) */ public String getColumnDbNameCommaString() { - return "ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE"; + return "ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_CELLPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_DEPARTMENT, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_TELEPHONE, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_DEPARTMENT, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_TELEPHONE, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, DELIVERY_METHOD_ID, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE"; } // =================================================================================== @@ -998,31 +1070,37 @@ if (analyzer.init("CUSTOMERS_STATE", "customersState", "customersState")) { myEntity.setCustomersState(analyzer.analyzeString(String.class)); }; if (analyzer.init("CUSTOMERS_COUNTRY", "customersCountry", "customersCountry")) { myEntity.setCustomersCountry(analyzer.analyzeString(String.class)); }; if (analyzer.init("CUSTOMERS_TELEPHONE", "customersTelephone", "customersTelephone")) { myEntity.setCustomersTelephone(analyzer.analyzeString(String.class)); }; + if (analyzer.init("CUSTOMERS_CELLPHONE", "customersCellphone", "customersCellphone")) { myEntity.setCustomersCellphone(analyzer.analyzeString(String.class)); }; if (analyzer.init("CUSTOMERS_EMAIL_ADDRESS", "customersEmailAddress", "customersEmailAddress")) { myEntity.setCustomersEmailAddress(analyzer.analyzeString(String.class)); }; if (analyzer.init("CUSTOMERS_ADDRESS_FORMAT_ID", "customersAddressFormatId", "customersAddressFormatId")) { myEntity.setCustomersAddressFormatId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("DELIVERY_NAME", "deliveryName", "deliveryName")) { myEntity.setDeliveryName(analyzer.analyzeString(String.class)); }; if (analyzer.init("DELIVERY_COMPANY", "deliveryCompany", "deliveryCompany")) { myEntity.setDeliveryCompany(analyzer.analyzeString(String.class)); }; + if (analyzer.init("DELIVERY_DEPARTMENT", "deliveryDepartment", "deliveryDepartment")) { myEntity.setDeliveryDepartment(analyzer.analyzeString(String.class)); }; if (analyzer.init("DELIVERY_STREET_ADDRESS", "deliveryStreetAddress", "deliveryStreetAddress")) { myEntity.setDeliveryStreetAddress(analyzer.analyzeString(String.class)); }; if (analyzer.init("DELIVERY_SUBURB", "deliverySuburb", "deliverySuburb")) { myEntity.setDeliverySuburb(analyzer.analyzeString(String.class)); }; if (analyzer.init("DELIVERY_CITY", "deliveryCity", "deliveryCity")) { myEntity.setDeliveryCity(analyzer.analyzeString(String.class)); }; if (analyzer.init("DELIVERY_POSTCODE", "deliveryPostcode", "deliveryPostcode")) { myEntity.setDeliveryPostcode(analyzer.analyzeString(String.class)); }; if (analyzer.init("DELIVERY_STATE", "deliveryState", "deliveryState")) { myEntity.setDeliveryState(analyzer.analyzeString(String.class)); }; if (analyzer.init("DELIVERY_COUNTRY", "deliveryCountry", "deliveryCountry")) { myEntity.setDeliveryCountry(analyzer.analyzeString(String.class)); }; + if (analyzer.init("DELIVERY_TELEPHONE", "deliveryTelephone", "deliveryTelephone")) { myEntity.setDeliveryTelephone(analyzer.analyzeString(String.class)); }; if (analyzer.init("DELIVERY_ADDRESS_FORMAT_ID", "deliveryAddressFormatId", "deliveryAddressFormatId")) { myEntity.setDeliveryAddressFormatId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("BILLING_NAME", "billingName", "billingName")) { myEntity.setBillingName(analyzer.analyzeString(String.class)); }; if (analyzer.init("BILLING_COMPANY", "billingCompany", "billingCompany")) { myEntity.setBillingCompany(analyzer.analyzeString(String.class)); }; + if (analyzer.init("BILLING_DEPARTMENT", "billingDepartment", "billingDepartment")) { myEntity.setBillingDepartment(analyzer.analyzeString(String.class)); }; if (analyzer.init("BILLING_STREET_ADDRESS", "billingStreetAddress", "billingStreetAddress")) { myEntity.setBillingStreetAddress(analyzer.analyzeString(String.class)); }; if (analyzer.init("BILLING_SUBURB", "billingSuburb", "billingSuburb")) { myEntity.setBillingSuburb(analyzer.analyzeString(String.class)); }; if (analyzer.init("BILLING_CITY", "billingCity", "billingCity")) { myEntity.setBillingCity(analyzer.analyzeString(String.class)); }; if (analyzer.init("BILLING_POSTCODE", "billingPostcode", "billingPostcode")) { myEntity.setBillingPostcode(analyzer.analyzeString(String.class)); }; if (analyzer.init("BILLING_STATE", "billingState", "billingState")) { myEntity.setBillingState(analyzer.analyzeString(String.class)); }; if (analyzer.init("BILLING_COUNTRY", "billingCountry", "billingCountry")) { myEntity.setBillingCountry(analyzer.analyzeString(String.class)); }; + if (analyzer.init("BILLING_TELEPHONE", "billingTelephone", "billingTelephone")) { myEntity.setBillingTelephone(analyzer.analyzeString(String.class)); }; if (analyzer.init("BILLING_ADDRESS_FORMAT_ID", "billingAddressFormatId", "billingAddressFormatId")) { myEntity.setBillingAddressFormatId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("PAYMENT_METHOD", "paymentMethod", "paymentMethod")) { myEntity.setPaymentMethod(analyzer.analyzeString(String.class)); }; if (analyzer.init("CC_TYPE", "ccType", "ccType")) { myEntity.setCcType(analyzer.analyzeString(String.class)); }; if (analyzer.init("CC_OWNER", "ccOwner", "ccOwner")) { myEntity.setCcOwner(analyzer.analyzeString(String.class)); }; if (analyzer.init("CC_NUMBER", "ccNumber", "ccNumber")) { myEntity.setCcNumber(analyzer.analyzeString(String.class)); }; if (analyzer.init("CC_EXPIRES", "ccExpires", "ccExpires")) { myEntity.setCcExpires(analyzer.analyzeString(String.class)); }; + if (analyzer.init("DELIVERY_METHOD_ID", "deliveryMethodId", "deliveryMethodId")) { myEntity.setDeliveryMethodId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; if (analyzer.init("LAST_MODIFIED", "lastModified", "lastModified")) { myEntity.setLastModified(analyzer.analyzeDate(java.sql.Timestamp.class)); }; if (analyzer.init("DATE_PURCHASED", "datePurchased", "datePurchased")) { myEntity.setDatePurchased(analyzer.analyzeDate(java.sql.Timestamp.class)); }; if (analyzer.init("ORDERS_STATUS_ID", "ordersStatusId", "ordersStatusId")) { myEntity.setOrdersStatusId(analyzer.analyzeNumber(java.math.BigDecimal.class)); }; @@ -1113,31 +1191,37 @@ helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_STATE", myEntity.getCustomersState()); helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_COUNTRY", myEntity.getCustomersCountry()); helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_TELEPHONE", myEntity.getCustomersTelephone()); + helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_CELLPHONE", myEntity.getCustomersCellphone()); helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_EMAIL_ADDRESS", myEntity.getCustomersEmailAddress()); helpAppendingColumnValueString(sb, delimiter, equal, "CUSTOMERS_ADDRESS_FORMAT_ID", myEntity.getCustomersAddressFormatId()); helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_NAME", myEntity.getDeliveryName()); helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_COMPANY", myEntity.getDeliveryCompany()); + helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_DEPARTMENT", myEntity.getDeliveryDepartment()); helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_STREET_ADDRESS", myEntity.getDeliveryStreetAddress()); helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_SUBURB", myEntity.getDeliverySuburb()); helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_CITY", myEntity.getDeliveryCity()); helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_POSTCODE", myEntity.getDeliveryPostcode()); helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_STATE", myEntity.getDeliveryState()); helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_COUNTRY", myEntity.getDeliveryCountry()); + helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_TELEPHONE", myEntity.getDeliveryTelephone()); helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_ADDRESS_FORMAT_ID", myEntity.getDeliveryAddressFormatId()); helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_NAME", myEntity.getBillingName()); helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_COMPANY", myEntity.getBillingCompany()); + helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_DEPARTMENT", myEntity.getBillingDepartment()); helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_STREET_ADDRESS", myEntity.getBillingStreetAddress()); helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_SUBURB", myEntity.getBillingSuburb()); helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_CITY", myEntity.getBillingCity()); helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_POSTCODE", myEntity.getBillingPostcode()); helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_STATE", myEntity.getBillingState()); helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_COUNTRY", myEntity.getBillingCountry()); + helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_TELEPHONE", myEntity.getBillingTelephone()); helpAppendingColumnValueString(sb, delimiter, equal, "BILLING_ADDRESS_FORMAT_ID", myEntity.getBillingAddressFormatId()); helpAppendingColumnValueString(sb, delimiter, equal, "PAYMENT_METHOD", myEntity.getPaymentMethod()); helpAppendingColumnValueString(sb, delimiter, equal, "CC_TYPE", myEntity.getCcType()); helpAppendingColumnValueString(sb, delimiter, equal, "CC_OWNER", myEntity.getCcOwner()); helpAppendingColumnValueString(sb, delimiter, equal, "CC_NUMBER", myEntity.getCcNumber()); helpAppendingColumnValueString(sb, delimiter, equal, "CC_EXPIRES", myEntity.getCcExpires()); + helpAppendingColumnValueString(sb, delimiter, equal, "DELIVERY_METHOD_ID", myEntity.getDeliveryMethodId()); helpAppendingColumnValueString(sb, delimiter, equal, "LAST_MODIFIED", myEntity.getLastModified()); helpAppendingColumnValueString(sb, delimiter, equal, "DATE_PURCHASED", myEntity.getDatePurchased()); helpAppendingColumnValueString(sb, delimiter, equal, "ORDERS_STATUS_ID", myEntity.getOrdersStatusId()); @@ -1197,31 +1281,37 @@ valueMap.put("CUSTOMERS_STATE", myEntity.getCustomersState()); valueMap.put("CUSTOMERS_COUNTRY", myEntity.getCustomersCountry()); valueMap.put("CUSTOMERS_TELEPHONE", myEntity.getCustomersTelephone()); + valueMap.put("CUSTOMERS_CELLPHONE", myEntity.getCustomersCellphone()); valueMap.put("CUSTOMERS_EMAIL_ADDRESS", myEntity.getCustomersEmailAddress()); valueMap.put("CUSTOMERS_ADDRESS_FORMAT_ID", myEntity.getCustomersAddressFormatId()); valueMap.put("DELIVERY_NAME", myEntity.getDeliveryName()); valueMap.put("DELIVERY_COMPANY", myEntity.getDeliveryCompany()); + valueMap.put("DELIVERY_DEPARTMENT", myEntity.getDeliveryDepartment()); valueMap.put("DELIVERY_STREET_ADDRESS", myEntity.getDeliveryStreetAddress()); valueMap.put("DELIVERY_SUBURB", myEntity.getDeliverySuburb()); valueMap.put("DELIVERY_CITY", myEntity.getDeliveryCity()); valueMap.put("DELIVERY_POSTCODE", myEntity.getDeliveryPostcode()); valueMap.put("DELIVERY_STATE", myEntity.getDeliveryState()); valueMap.put("DELIVERY_COUNTRY", myEntity.getDeliveryCountry()); + valueMap.put("DELIVERY_TELEPHONE", myEntity.getDeliveryTelephone()); valueMap.put("DELIVERY_ADDRESS_FORMAT_ID", myEntity.getDeliveryAddressFormatId()); valueMap.put("BILLING_NAME", myEntity.getBillingName()); valueMap.put("BILLING_COMPANY", myEntity.getBillingCompany()); + valueMap.put("BILLING_DEPARTMENT", myEntity.getBillingDepartment()); valueMap.put("BILLING_STREET_ADDRESS", myEntity.getBillingStreetAddress()); valueMap.put("BILLING_SUBURB", myEntity.getBillingSuburb()); valueMap.put("BILLING_CITY", myEntity.getBillingCity()); valueMap.put("BILLING_POSTCODE", myEntity.getBillingPostcode()); valueMap.put("BILLING_STATE", myEntity.getBillingState()); valueMap.put("BILLING_COUNTRY", myEntity.getBillingCountry()); + valueMap.put("BILLING_TELEPHONE", myEntity.getBillingTelephone()); valueMap.put("BILLING_ADDRESS_FORMAT_ID", myEntity.getBillingAddressFormatId()); valueMap.put("PAYMENT_METHOD", myEntity.getPaymentMethod()); valueMap.put("CC_TYPE", myEntity.getCcType()); valueMap.put("CC_OWNER", myEntity.getCcOwner()); valueMap.put("CC_NUMBER", myEntity.getCcNumber()); valueMap.put("CC_EXPIRES", myEntity.getCcExpires()); + valueMap.put("DELIVERY_METHOD_ID", myEntity.getDeliveryMethodId()); valueMap.put("LAST_MODIFIED", myEntity.getLastModified()); valueMap.put("DATE_PURCHASED", myEntity.getDatePurchased()); valueMap.put("ORDERS_STATUS_ID", myEntity.getOrdersStatusId()); @@ -1249,31 +1339,37 @@ valueMap.put("CUSTOMERS_STATE", helpGettingColumnStringValue(myEntity.getCustomersState())); valueMap.put("CUSTOMERS_COUNTRY", helpGettingColumnStringValue(myEntity.getCustomersCountry())); valueMap.put("CUSTOMERS_TELEPHONE", helpGettingColumnStringValue(myEntity.getCustomersTelephone())); + valueMap.put("CUSTOMERS_CELLPHONE", helpGettingColumnStringValue(myEntity.getCustomersCellphone())); valueMap.put("CUSTOMERS_EMAIL_ADDRESS", helpGettingColumnStringValue(myEntity.getCustomersEmailAddress())); valueMap.put("CUSTOMERS_ADDRESS_FORMAT_ID", helpGettingColumnStringValue(myEntity.getCustomersAddressFormatId())); valueMap.put("DELIVERY_NAME", helpGettingColumnStringValue(myEntity.getDeliveryName())); valueMap.put("DELIVERY_COMPANY", helpGettingColumnStringValue(myEntity.getDeliveryCompany())); + valueMap.put("DELIVERY_DEPARTMENT", helpGettingColumnStringValue(myEntity.getDeliveryDepartment())); valueMap.put("DELIVERY_STREET_ADDRESS", helpGettingColumnStringValue(myEntity.getDeliveryStreetAddress())); valueMap.put("DELIVERY_SUBURB", helpGettingColumnStringValue(myEntity.getDeliverySuburb())); valueMap.put("DELIVERY_CITY", helpGettingColumnStringValue(myEntity.getDeliveryCity())); valueMap.put("DELIVERY_POSTCODE", helpGettingColumnStringValue(myEntity.getDeliveryPostcode())); valueMap.put("DELIVERY_STATE", helpGettingColumnStringValue(myEntity.getDeliveryState())); valueMap.put("DELIVERY_COUNTRY", helpGettingColumnStringValue(myEntity.getDeliveryCountry())); + valueMap.put("DELIVERY_TELEPHONE", helpGettingColumnStringValue(myEntity.getDeliveryTelephone())); valueMap.put("DELIVERY_ADDRESS_FORMAT_ID", helpGettingColumnStringValue(myEntity.getDeliveryAddressFormatId())); valueMap.put("BILLING_NAME", helpGettingColumnStringValue(myEntity.getBillingName())); valueMap.put("BILLING_COMPANY", helpGettingColumnStringValue(myEntity.getBillingCompany())); + valueMap.put("BILLING_DEPARTMENT", helpGettingColumnStringValue(myEntity.getBillingDepartment())); valueMap.put("BILLING_STREET_ADDRESS", helpGettingColumnStringValue(myEntity.getBillingStreetAddress())); valueMap.put("BILLING_SUBURB", helpGettingColumnStringValue(myEntity.getBillingSuburb())); valueMap.put("BILLING_CITY", helpGettingColumnStringValue(myEntity.getBillingCity())); valueMap.put("BILLING_POSTCODE", helpGettingColumnStringValue(myEntity.getBillingPostcode())); valueMap.put("BILLING_STATE", helpGettingColumnStringValue(myEntity.getBillingState())); valueMap.put("BILLING_COUNTRY", helpGettingColumnStringValue(myEntity.getBillingCountry())); + valueMap.put("BILLING_TELEPHONE", helpGettingColumnStringValue(myEntity.getBillingTelephone())); valueMap.put("BILLING_ADDRESS_FORMAT_ID", helpGettingColumnStringValue(myEntity.getBillingAddressFormatId())); valueMap.put("PAYMENT_METHOD", helpGettingColumnStringValue(myEntity.getPaymentMethod())); valueMap.put("CC_TYPE", helpGettingColumnStringValue(myEntity.getCcType())); valueMap.put("CC_OWNER", helpGettingColumnStringValue(myEntity.getCcOwner())); valueMap.put("CC_NUMBER", helpGettingColumnStringValue(myEntity.getCcNumber())); valueMap.put("CC_EXPIRES", helpGettingColumnStringValue(myEntity.getCcExpires())); + valueMap.put("DELIVERY_METHOD_ID", helpGettingColumnStringValue(myEntity.getDeliveryMethodId())); valueMap.put("LAST_MODIFIED", helpGettingColumnStringValue(myEntity.getLastModified())); valueMap.put("DATE_PURCHASED", helpGettingColumnStringValue(myEntity.getDatePurchased())); valueMap.put("ORDERS_STATUS_ID", helpGettingColumnStringValue(myEntity.getOrdersStatusId())); @@ -1287,11 +1383,11 @@ // JDBC Support // ============ public String getPreparedInsertClause() { - return "insert into ORDERS(ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; + return "insert into ORDERS(ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_CELLPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_DEPARTMENT, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_TELEPHONE, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_DEPARTMENT, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_TELEPHONE, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, DELIVERY_METHOD_ID, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; } public String getPreparedInsertClause(String tablePrefix) { - return "insert into " + tablePrefix + "ORDERS(ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; + return "insert into " + tablePrefix + "ORDERS(ORDERS_ID, CUSTOMERS_ID, CUSTOMERS_NAME, CUSTOMERS_COMPANY, CUSTOMERS_STREET_ADDRESS, CUSTOMERS_SUBURB, CUSTOMERS_CITY, CUSTOMERS_POSTCODE, CUSTOMERS_STATE, CUSTOMERS_COUNTRY, CUSTOMERS_TELEPHONE, CUSTOMERS_CELLPHONE, CUSTOMERS_EMAIL_ADDRESS, CUSTOMERS_ADDRESS_FORMAT_ID, DELIVERY_NAME, DELIVERY_COMPANY, DELIVERY_DEPARTMENT, DELIVERY_STREET_ADDRESS, DELIVERY_SUBURB, DELIVERY_CITY, DELIVERY_POSTCODE, DELIVERY_STATE, DELIVERY_COUNTRY, DELIVERY_TELEPHONE, DELIVERY_ADDRESS_FORMAT_ID, BILLING_NAME, BILLING_COMPANY, BILLING_DEPARTMENT, BILLING_STREET_ADDRESS, BILLING_SUBURB, BILLING_CITY, BILLING_POSTCODE, BILLING_STATE, BILLING_COUNTRY, BILLING_TELEPHONE, BILLING_ADDRESS_FORMAT_ID, PAYMENT_METHOD, CC_TYPE, CC_OWNER, CC_NUMBER, CC_EXPIRES, DELIVERY_METHOD_ID, LAST_MODIFIED, DATE_PURCHASED, ORDERS_STATUS_ID, ORDERS_DATE_FINISHED, CURRENCY, CURRENCY_VALUE) values(? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )"; } // =================================================================================== 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodCB.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/DeliveryMethodDescriptionCB.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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/bs/BsDeliveryMethodCB.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodCB.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodCB.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,204 @@ +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.*; +import jp.sf.pal.pompei.cbean.nss.*; + +/** + * 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 + // ========== + /** + * This method implements the method that is declared at super. + * + * @return Table db-name. (NotNull) + */ + final public String getTableDbName() { + return "DELIVERY_METHOD"; + } + + // =================================================================================== + // Accept Primary-Key + // ================== + /** + * This method implements the method that is declared at super. + * + * @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 + // ======== + /** + * This method implements the method that is declared at super. + * + * @return this. (NotNull) + */ + public ConditionBean addOrderBy_PK_Asc() { + + query().addOrderBy_DeliveryMethodId_Asc(); + + return this; + + } + + /** + * This method implements the method that is declared at super. + * + * @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; + } + + /** + * This method implements the method that is declared at super. + * + * @return Instance of query as interface. (NotNull) + */ + public ConditionQuery getConditionQueryAsInterface() { + return getConditionQuery(); + } + + // =================================================================================== + // Union + // ===== + /** + * Union. + * <pre> + * Add union query to condition bean. + * </pre> + * @param unionQuery Union query. (NotNull) + */ + public void union(DeliveryMethodCQ unionQuery) { + query().xsetUnionQuery(unionQuery); + } + + /** + * Union all. + * <pre> + * Add union all query to condition bean. + * </pre> + * @param unionAllQuery Union all query. (NotNull) + */ + public void unionAll(DeliveryMethodCQ unionAllQuery) { + query().xsetUnionAllQuery(unionAllQuery); + } + + 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/bs/BsDeliveryMethodDescriptionCB.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,275 @@ +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.*; +import jp.sf.pal.pompei.cbean.nss.*; + +/** + * 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 + // ========== + /** + * This method implements the method that is declared at super. + * + * @return Table db-name. (NotNull) + */ + final public String getTableDbName() { + return "DELIVERY_METHOD_DESCRIPTION"; + } + + // =================================================================================== + // Accept Primary-Key + // ================== + /** + * This method implements the method that is declared at super. + * + * @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 + // ======== + /** + * This method implements the method that is declared at super. + * + * @return this. (NotNull) + */ + public ConditionBean addOrderBy_PK_Asc() { + + query().addOrderBy_DeliveryMethodId_Asc(); + + query().addOrderBy_LanguageId_Asc(); + + return this; + + } + + /** + * This method implements the method that is declared at super. + * + * @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; + } + + /** + * This method implements the method that is declared at super. + * + * @return Instance of query as interface. (NotNull) + */ + public ConditionQuery getConditionQueryAsInterface() { + return getConditionQuery(); + } + + // =================================================================================== + // Union + // ===== + /** + * Union. + * <pre> + * Add union query to condition bean. + * </pre> + * @param unionQuery Union query. (NotNull) + */ + public void union(DeliveryMethodDescriptionCQ unionQuery) { + query().xsetUnionQuery(unionQuery); + } + + /** + * Union all. + * <pre> + * Add union all query to condition bean. + * </pre> + * @param unionAllQuery Union all query. (NotNull) + */ + public void unionAll(DeliveryMethodDescriptionCQ unionAllQuery) { + query().xsetUnionAllQuery(unionAllQuery); + } + + 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 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 DeliveryMethodNss getNssDeliveryMethod() { + if (_nssDeliveryMethod == null) { + _nssDeliveryMethod = new 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 DeliveryMethodNss setupSelect_DeliveryMethod() { + query().queryDeliveryMethod();// For setting outer join. + if (_nssDeliveryMethod == null || !_nssDeliveryMethod.hasConditionQuery()) { + _nssDeliveryMethod = new DeliveryMethodNss(query().queryDeliveryMethod()); + } + _isSelectDeliveryMethod = true; + limitSelect_Off(); + return _nssDeliveryMethod; + } + + // =================================================================================== + // 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/cq/DeliveryMethodCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodCQ.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/DeliveryMethodDescriptionCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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 Modified: 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsAddressBookCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -613,6 +613,163 @@ abstract protected ConditionValue getCValueEntryCompany(); + /** Column db name of entryDepartment. */ + protected static final String COL_ENTRY_DEPARTMENT = "ENTRY_DEPARTMENT"; + + /** Column java name of entryDepartment. */ + protected static final String J_EntryDepartment = "EntryDepartment"; + + /** Column uncapitalised java name of entryDepartment. */ + protected static final String UJ_entryDepartment = "entryDepartment"; + + /** + * Set the value of entryDepartment using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryDepartment The value of entryDepartment as equal. + */ + public void setEntryDepartment_Equal(String entryDepartment) { + registerEntryDepartment(ConditionKey.CK_EQUAL, filterRemoveEmptyString(entryDepartment)); + } + + /** + * Set the value of entryDepartment using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryDepartment The value of entryDepartment as notEqual. + */ + public void setEntryDepartment_NotEqual(String entryDepartment) { + registerEntryDepartment(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(entryDepartment)); + } + + /** + * Set the value of entryDepartment using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryDepartment The value of entryDepartment as greaterThan. + */ + public void setEntryDepartment_GreaterThan(String entryDepartment) { + registerEntryDepartment(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(entryDepartment)); + } + + /** + * Set the value of entryDepartment using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryDepartment The value of entryDepartment as lessThan. + */ + public void setEntryDepartment_LessThan(String entryDepartment) { + registerEntryDepartment(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(entryDepartment)); + } + + /** + * Set the value of entryDepartment using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryDepartment The value of entryDepartment as greaterEqual. + */ + public void setEntryDepartment_GreaterEqual(String entryDepartment) { + registerEntryDepartment(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(entryDepartment)); + } + + /** + * Set the value of entryDepartment using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryDepartment The value of entryDepartment as lessEqual. + */ + public void setEntryDepartment_LessEqual(String entryDepartment) { + registerEntryDepartment(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(entryDepartment)); + } + + /** + * Set the value of entryDepartment using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryDepartment The value of entryDepartment as prefixSearch. + */ + public void setEntryDepartment_PrefixSearch(String entryDepartment) { + registerEntryDepartment(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(entryDepartment)); + } + + /** + * Set the value of entryDepartment 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 entryDepartment The value of entryDepartment as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setEntryDepartment_LikeSearch(String entryDepartment, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(entryDepartment), getCValueEntryDepartment(), COL_ENTRY_DEPARTMENT, J_EntryDepartment, UJ_entryDepartment, likeSearchOption); + } + + /** + * Set the value of entryDepartment using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryDepartmentList The value of entryDepartment as inScope. + */ + public void setEntryDepartment_InScope(java.util.List<String> entryDepartmentList) { + registerEntryDepartment(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(entryDepartmentList)); + } + + /** + * Set the value of entryDepartment using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryDepartment The value of entryDepartment as inScope. + */ + public void setEntryDepartment_InScope(String entryDepartment, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(entryDepartment), getCValueEntryDepartment(), COL_ENTRY_DEPARTMENT, J_EntryDepartment, UJ_entryDepartment, option); + } + + /** + * Set the value of entryDepartment using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryDepartmentList The value of entryDepartment as notInScope. + */ + public void setEntryDepartment_NotInScope(java.util.List<String> entryDepartmentList) { + registerEntryDepartment(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(entryDepartmentList)); + } + + /** + * Set the value of entryDepartment using isNull. { is null } + */ + public void setEntryDepartment_IsNull() { + registerEntryDepartment(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of entryDepartment using isNotNull. { is not null } + */ + public void setEntryDepartment_IsNotNull() { + registerEntryDepartment(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of entryDepartment. + * + * @param key Condition key. (NotNull) + * @param value The value of entryDepartment. (Nullable) + */ + protected void registerEntryDepartment(ConditionKey key, Object value) { + registerQuery(key, value, getCValueEntryDepartment(), COL_ENTRY_DEPARTMENT, J_EntryDepartment, UJ_entryDepartment); + } + + /** + * Register inline condition of entryDepartment. + * + * @param key Condition key. (NotNull) + * @param value The value of entryDepartment. (Nullable) + */ + protected void registerInlineEntryDepartment(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueEntryDepartment(), COL_ENTRY_DEPARTMENT, J_EntryDepartment, UJ_entryDepartment); + } + + abstract protected ConditionValue getCValueEntryDepartment(); + /** Column db name of entryFirstname. */ protected static final String COL_ENTRY_FIRSTNAME = "ENTRY_FIRSTNAME"; @@ -1642,6 +1799,463 @@ abstract protected ConditionValue getCValueEntryState(); + /** Column db name of entryTelephone. */ + protected static final String COL_ENTRY_TELEPHONE = "ENTRY_TELEPHONE"; + + /** Column java name of entryTelephone. */ + protected static final String J_EntryTelephone = "EntryTelephone"; + + /** Column uncapitalised java name of entryTelephone. */ + protected static final String UJ_entryTelephone = "entryTelephone"; + + /** + * Set the value of entryTelephone using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryTelephone The value of entryTelephone as equal. + */ + public void setEntryTelephone_Equal(String entryTelephone) { + registerEntryTelephone(ConditionKey.CK_EQUAL, filterRemoveEmptyString(entryTelephone)); + } + + /** + * Set the value of entryTelephone using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryTelephone The value of entryTelephone as notEqual. + */ + public void setEntryTelephone_NotEqual(String entryTelephone) { + registerEntryTelephone(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(entryTelephone)); + } + + /** + * Set the value of entryTelephone using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryTelephone The value of entryTelephone as greaterThan. + */ + public void setEntryTelephone_GreaterThan(String entryTelephone) { + registerEntryTelephone(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(entryTelephone)); + } + + /** + * Set the value of entryTelephone using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryTelephone The value of entryTelephone as lessThan. + */ + public void setEntryTelephone_LessThan(String entryTelephone) { + registerEntryTelephone(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(entryTelephone)); + } + + /** + * Set the value of entryTelephone using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryTelephone The value of entryTelephone as greaterEqual. + */ + public void setEntryTelephone_GreaterEqual(String entryTelephone) { + registerEntryTelephone(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(entryTelephone)); + } + + /** + * Set the value of entryTelephone using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryTelephone The value of entryTelephone as lessEqual. + */ + public void setEntryTelephone_LessEqual(String entryTelephone) { + registerEntryTelephone(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(entryTelephone)); + } + + /** + * Set the value of entryTelephone using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryTelephone The value of entryTelephone as prefixSearch. + */ + public void setEntryTelephone_PrefixSearch(String entryTelephone) { + registerEntryTelephone(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(entryTelephone)); + } + + /** + * Set the value of entryTelephone 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 entryTelephone The value of entryTelephone as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setEntryTelephone_LikeSearch(String entryTelephone, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(entryTelephone), getCValueEntryTelephone(), COL_ENTRY_TELEPHONE, J_EntryTelephone, UJ_entryTelephone, likeSearchOption); + } + + /** + * Set the value of entryTelephone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryTelephoneList The value of entryTelephone as inScope. + */ + public void setEntryTelephone_InScope(java.util.List<String> entryTelephoneList) { + registerEntryTelephone(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(entryTelephoneList)); + } + + /** + * Set the value of entryTelephone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryTelephone The value of entryTelephone as inScope. + */ + public void setEntryTelephone_InScope(String entryTelephone, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(entryTelephone), getCValueEntryTelephone(), COL_ENTRY_TELEPHONE, J_EntryTelephone, UJ_entryTelephone, option); + } + + /** + * Set the value of entryTelephone using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryTelephoneList The value of entryTelephone as notInScope. + */ + public void setEntryTelephone_NotInScope(java.util.List<String> entryTelephoneList) { + registerEntryTelephone(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(entryTelephoneList)); + } + + /** + * Register condition of entryTelephone. + * + * @param key Condition key. (NotNull) + * @param value The value of entryTelephone. (Nullable) + */ + protected void registerEntryTelephone(ConditionKey key, Object value) { + registerQuery(key, value, getCValueEntryTelephone(), COL_ENTRY_TELEPHONE, J_EntryTelephone, UJ_entryTelephone); + } + + /** + * Register inline condition of entryTelephone. + * + * @param key Condition key. (NotNull) + * @param value The value of entryTelephone. (Nullable) + */ + protected void registerInlineEntryTelephone(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueEntryTelephone(), COL_ENTRY_TELEPHONE, J_EntryTelephone, UJ_entryTelephone); + } + + abstract protected ConditionValue getCValueEntryTelephone(); + + /** Column db name of entryFax. */ + protected static final String COL_ENTRY_FAX = "ENTRY_FAX"; + + /** Column java name of entryFax. */ + protected static final String J_EntryFax = "EntryFax"; + + /** Column uncapitalised java name of entryFax. */ + protected static final String UJ_entryFax = "entryFax"; + + /** + * Set the value of entryFax using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryFax The value of entryFax as equal. + */ + public void setEntryFax_Equal(String entryFax) { + registerEntryFax(ConditionKey.CK_EQUAL, filterRemoveEmptyString(entryFax)); + } + + /** + * Set the value of entryFax using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryFax The value of entryFax as notEqual. + */ + public void setEntryFax_NotEqual(String entryFax) { + registerEntryFax(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(entryFax)); + } + + /** + * Set the value of entryFax using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryFax The value of entryFax as greaterThan. + */ + public void setEntryFax_GreaterThan(String entryFax) { + registerEntryFax(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(entryFax)); + } + + /** + * Set the value of entryFax using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryFax The value of entryFax as lessThan. + */ + public void setEntryFax_LessThan(String entryFax) { + registerEntryFax(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(entryFax)); + } + + /** + * Set the value of entryFax using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryFax The value of entryFax as greaterEqual. + */ + public void setEntryFax_GreaterEqual(String entryFax) { + registerEntryFax(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(entryFax)); + } + + /** + * Set the value of entryFax using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryFax The value of entryFax as lessEqual. + */ + public void setEntryFax_LessEqual(String entryFax) { + registerEntryFax(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(entryFax)); + } + + /** + * Set the value of entryFax using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryFax The value of entryFax as prefixSearch. + */ + public void setEntryFax_PrefixSearch(String entryFax) { + registerEntryFax(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(entryFax)); + } + + /** + * Set the value of entryFax 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 entryFax The value of entryFax as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setEntryFax_LikeSearch(String entryFax, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(entryFax), getCValueEntryFax(), COL_ENTRY_FAX, J_EntryFax, UJ_entryFax, likeSearchOption); + } + + /** + * Set the value of entryFax using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryFaxList The value of entryFax as inScope. + */ + public void setEntryFax_InScope(java.util.List<String> entryFaxList) { + registerEntryFax(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(entryFaxList)); + } + + /** + * Set the value of entryFax using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryFax The value of entryFax as inScope. + */ + public void setEntryFax_InScope(String entryFax, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(entryFax), getCValueEntryFax(), COL_ENTRY_FAX, J_EntryFax, UJ_entryFax, option); + } + + /** + * Set the value of entryFax using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryFaxList The value of entryFax as notInScope. + */ + public void setEntryFax_NotInScope(java.util.List<String> entryFaxList) { + registerEntryFax(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(entryFaxList)); + } + + /** + * Set the value of entryFax using isNull. { is null } + */ + public void setEntryFax_IsNull() { + registerEntryFax(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of entryFax using isNotNull. { is not null } + */ + public void setEntryFax_IsNotNull() { + registerEntryFax(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of entryFax. + * + * @param key Condition key. (NotNull) + * @param value The value of entryFax. (Nullable) + */ + protected void registerEntryFax(ConditionKey key, Object value) { + registerQuery(key, value, getCValueEntryFax(), COL_ENTRY_FAX, J_EntryFax, UJ_entryFax); + } + + /** + * Register inline condition of entryFax. + * + * @param key Condition key. (NotNull) + * @param value The value of entryFax. (Nullable) + */ + protected void registerInlineEntryFax(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueEntryFax(), COL_ENTRY_FAX, J_EntryFax, UJ_entryFax); + } + + abstract protected ConditionValue getCValueEntryFax(); + + /** Column db name of entryCellphone. */ + protected static final String COL_ENTRY_CELLPHONE = "ENTRY_CELLPHONE"; + + /** Column java name of entryCellphone. */ + protected static final String J_EntryCellphone = "EntryCellphone"; + + /** Column uncapitalised java name of entryCellphone. */ + protected static final String UJ_entryCellphone = "entryCellphone"; + + /** + * Set the value of entryCellphone using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryCellphone The value of entryCellphone as equal. + */ + public void setEntryCellphone_Equal(String entryCellphone) { + registerEntryCellphone(ConditionKey.CK_EQUAL, filterRemoveEmptyString(entryCellphone)); + } + + /** + * Set the value of entryCellphone using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryCellphone The value of entryCellphone as notEqual. + */ + public void setEntryCellphone_NotEqual(String entryCellphone) { + registerEntryCellphone(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(entryCellphone)); + } + + /** + * Set the value of entryCellphone using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryCellphone The value of entryCellphone as greaterThan. + */ + public void setEntryCellphone_GreaterThan(String entryCellphone) { + registerEntryCellphone(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(entryCellphone)); + } + + /** + * Set the value of entryCellphone using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryCellphone The value of entryCellphone as lessThan. + */ + public void setEntryCellphone_LessThan(String entryCellphone) { + registerEntryCellphone(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(entryCellphone)); + } + + /** + * Set the value of entryCellphone using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryCellphone The value of entryCellphone as greaterEqual. + */ + public void setEntryCellphone_GreaterEqual(String entryCellphone) { + registerEntryCellphone(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(entryCellphone)); + } + + /** + * Set the value of entryCellphone using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryCellphone The value of entryCellphone as lessEqual. + */ + public void setEntryCellphone_LessEqual(String entryCellphone) { + registerEntryCellphone(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(entryCellphone)); + } + + /** + * Set the value of entryCellphone using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param entryCellphone The value of entryCellphone as prefixSearch. + */ + public void setEntryCellphone_PrefixSearch(String entryCellphone) { + registerEntryCellphone(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(entryCellphone)); + } + + /** + * Set the value of entryCellphone 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 entryCellphone The value of entryCellphone as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setEntryCellphone_LikeSearch(String entryCellphone, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(entryCellphone), getCValueEntryCellphone(), COL_ENTRY_CELLPHONE, J_EntryCellphone, UJ_entryCellphone, likeSearchOption); + } + + /** + * Set the value of entryCellphone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryCellphoneList The value of entryCellphone as inScope. + */ + public void setEntryCellphone_InScope(java.util.List<String> entryCellphoneList) { + registerEntryCellphone(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(entryCellphoneList)); + } + + /** + * Set the value of entryCellphone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryCellphone The value of entryCellphone as inScope. + */ + public void setEntryCellphone_InScope(String entryCellphone, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(entryCellphone), getCValueEntryCellphone(), COL_ENTRY_CELLPHONE, J_EntryCellphone, UJ_entryCellphone, option); + } + + /** + * Set the value of entryCellphone using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param entryCellphoneList The value of entryCellphone as notInScope. + */ + public void setEntryCellphone_NotInScope(java.util.List<String> entryCellphoneList) { + registerEntryCellphone(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(entryCellphoneList)); + } + + /** + * Set the value of entryCellphone using isNull. { is null } + */ + public void setEntryCellphone_IsNull() { + registerEntryCellphone(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of entryCellphone using isNotNull. { is not null } + */ + public void setEntryCellphone_IsNotNull() { + registerEntryCellphone(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of entryCellphone. + * + * @param key Condition key. (NotNull) + * @param value The value of entryCellphone. (Nullable) + */ + protected void registerEntryCellphone(ConditionKey key, Object value) { + registerQuery(key, value, getCValueEntryCellphone(), COL_ENTRY_CELLPHONE, J_EntryCellphone, UJ_entryCellphone); + } + + /** + * Register inline condition of entryCellphone. + * + * @param key Condition key. (NotNull) + * @param value The value of entryCellphone. (Nullable) + */ + protected void registerInlineEntryCellphone(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueEntryCellphone(), COL_ENTRY_CELLPHONE, J_EntryCellphone, UJ_entryCellphone); + } + + abstract protected ConditionValue getCValueEntryCellphone(); + /** Column db name of entryCountryId. */ protected static final String COL_ENTRY_COUNTRY_ID = "ENTRY_COUNTRY_ID"; Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsCustomersCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsCustomersCQ.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsCustomersCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -1437,148 +1437,162 @@ abstract protected ConditionValue getCValueCustomersFax(); - /** Column db name of customersPassword. */ - protected static final String COL_CUSTOMERS_PASSWORD = "CUSTOMERS_PASSWORD"; + /** Column db name of customersCellphone. */ + protected static final String COL_CUSTOMERS_CELLPHONE = "CUSTOMERS_CELLPHONE"; - /** Column java name of customersPassword. */ - protected static final String J_CustomersPassword = "CustomersPassword"; + /** Column java name of customersCellphone. */ + protected static final String J_CustomersCellphone = "CustomersCellphone"; - /** Column uncapitalised java name of customersPassword. */ - protected static final String UJ_customersPassword = "customersPassword"; + /** Column uncapitalised java name of customersCellphone. */ + protected static final String UJ_customersCellphone = "customersCellphone"; /** - * Set the value of customersPassword using equal. { = } + * Set the value of customersCellphone using equal. { = } * If the value is null or empty-string, this condition is ignored. * - * @param customersPassword The value of customersPassword as equal. + * @param customersCellphone The value of customersCellphone as equal. */ - public void setCustomersPassword_Equal(String customersPassword) { - registerCustomersPassword(ConditionKey.CK_EQUAL, filterRemoveEmptyString(customersPassword)); + public void setCustomersCellphone_Equal(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_EQUAL, filterRemoveEmptyString(customersCellphone)); } /** - * Set the value of customersPassword using notEqual. { != } + * Set the value of customersCellphone using notEqual. { != } * If the value is null or empty-string, this condition is ignored. * - * @param customersPassword The value of customersPassword as notEqual. + * @param customersCellphone The value of customersCellphone as notEqual. */ - public void setCustomersPassword_NotEqual(String customersPassword) { - registerCustomersPassword(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(customersPassword)); + public void setCustomersCellphone_NotEqual(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(customersCellphone)); } /** - * Set the value of customersPassword using greaterThan. { > } + * Set the value of customersCellphone using greaterThan. { > } * If the value is null or empty-string, this condition is ignored. * - * @param customersPassword The value of customersPassword as greaterThan. + * @param customersCellphone The value of customersCellphone as greaterThan. */ - public void setCustomersPassword_GreaterThan(String customersPassword) { - registerCustomersPassword(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(customersPassword)); + public void setCustomersCellphone_GreaterThan(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(customersCellphone)); } /** - * Set the value of customersPassword using lessThan. { < } + * Set the value of customersCellphone using lessThan. { < } * If the value is null or empty-string, this condition is ignored. * - * @param customersPassword The value of customersPassword as lessThan. + * @param customersCellphone The value of customersCellphone as lessThan. */ - public void setCustomersPassword_LessThan(String customersPassword) { - registerCustomersPassword(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(customersPassword)); + public void setCustomersCellphone_LessThan(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(customersCellphone)); } /** - * Set the value of customersPassword using greaterEqual. { >= } + * Set the value of customersCellphone using greaterEqual. { >= } * If the value is null or empty-string, this condition is ignored. * - * @param customersPassword The value of customersPassword as greaterEqual. + * @param customersCellphone The value of customersCellphone as greaterEqual. */ - public void setCustomersPassword_GreaterEqual(String customersPassword) { - registerCustomersPassword(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(customersPassword)); + public void setCustomersCellphone_GreaterEqual(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(customersCellphone)); } /** - * Set the value of customersPassword using lessEqual. { <= } + * Set the value of customersCellphone using lessEqual. { <= } * If the value is null or empty-string, this condition is ignored. * - * @param customersPassword The value of customersPassword as lessEqual. + * @param customersCellphone The value of customersCellphone as lessEqual. */ - public void setCustomersPassword_LessEqual(String customersPassword) { - registerCustomersPassword(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(customersPassword)); + public void setCustomersCellphone_LessEqual(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(customersCellphone)); } /** - * Set the value of customersPassword using prefixSearch. { like 'xxx%' } + * Set the value of customersCellphone using prefixSearch. { like 'xxx%' } * If the value is null or empty-string, this condition is ignored. * - * @param customersPassword The value of customersPassword as prefixSearch. + * @param customersCellphone The value of customersCellphone as prefixSearch. */ - public void setCustomersPassword_PrefixSearch(String customersPassword) { - registerCustomersPassword(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(customersPassword)); + public void setCustomersCellphone_PrefixSearch(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(customersCellphone)); } /** - * Set the value of customersPassword using likeSearch. { like '%xxx%' } + * Set the value of customersCellphone 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 customersPassword The value of customersPassword as likeSearch. + * @param customersCellphone The value of customersCellphone as likeSearch. * @param likeSearchOption Like search option. (NotNull) */ - public void setCustomersPassword_LikeSearch(String customersPassword, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { - registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(customersPassword), getCValueCustomersPassword(), COL_CUSTOMERS_PASSWORD, J_CustomersPassword, UJ_customersPassword, likeSearchOption); + public void setCustomersCellphone_LikeSearch(String customersCellphone, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(customersCellphone), getCValueCustomersCellphone(), COL_CUSTOMERS_CELLPHONE, J_CustomersCellphone, UJ_customersCellphone, likeSearchOption); } /** - * Set the value of customersPassword using inScope. { in ('a', 'b') } + * Set the value of customersCellphone using inScope. { in ('a', 'b') } * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param customersPasswordList The value of customersPassword as inScope. + * @param customersCellphoneList The value of customersCellphone as inScope. */ - public void setCustomersPassword_InScope(java.util.List<String> customersPasswordList) { - registerCustomersPassword(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(customersPasswordList)); + public void setCustomersCellphone_InScope(java.util.List<String> customersCellphoneList) { + registerCustomersCellphone(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(customersCellphoneList)); } /** - * Set the value of customersPassword using inScope. { in ('a', 'b') } + * Set the value of customersCellphone using inScope. { in ('a', 'b') } * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param customersPassword The value of customersPassword as inScope. + * @param customersCellphone The value of customersCellphone as inScope. */ - public void setCustomersPassword_InScope(String customersPassword, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { - registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(customersPassword), getCValueCustomersPassword(), COL_CUSTOMERS_PASSWORD, J_CustomersPassword, UJ_customersPassword, option); + public void setCustomersCellphone_InScope(String customersCellphone, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(customersCellphone), getCValueCustomersCellphone(), COL_CUSTOMERS_CELLPHONE, J_CustomersCellphone, UJ_customersCellphone, option); } /** - * Set the value of customersPassword using notInScope. { not in ('a', 'b') } + * Set the value of customersCellphone using notInScope. { not in ('a', 'b') } * If the element in the list is null or empty-string, the condition-element is ignored. * - * @param customersPasswordList The value of customersPassword as notInScope. + * @param customersCellphoneList The value of customersCellphone as notInScope. */ - public void setCustomersPassword_NotInScope(java.util.List<String> customersPasswordList) { - registerCustomersPassword(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(customersPasswordList)); + public void setCustomersCellphone_NotInScope(java.util.List<String> customersCellphoneList) { + registerCustomersCellphone(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(customersCellphoneList)); } - + /** - * Register condition of customersPassword. + * Set the value of customersCellphone using isNull. { is null } + */ + public void setCustomersCellphone_IsNull() { + registerCustomersCellphone(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of customersCellphone using isNotNull. { is not null } + */ + public void setCustomersCellphone_IsNotNull() { + registerCustomersCellphone(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of customersCellphone. * * @param key Condition key. (NotNull) - * @param value The value of customersPassword. (Nullable) + * @param value The value of customersCellphone. (Nullable) */ - protected void registerCustomersPassword(ConditionKey key, Object value) { - registerQuery(key, value, getCValueCustomersPassword(), COL_CUSTOMERS_PASSWORD, J_CustomersPassword, UJ_customersPassword); + protected void registerCustomersCellphone(ConditionKey key, Object value) { + registerQuery(key, value, getCValueCustomersCellphone(), COL_CUSTOMERS_CELLPHONE, J_CustomersCellphone, UJ_customersCellphone); } /** - * Register inline condition of customersPassword. + * Register inline condition of customersCellphone. * * @param key Condition key. (NotNull) - * @param value The value of customersPassword. (Nullable) + * @param value The value of customersCellphone. (Nullable) */ - protected void registerInlineCustomersPassword(ConditionKey key, Object value) { - registerInlineQuery(key, value, getCValueCustomersPassword(), COL_CUSTOMERS_PASSWORD, J_CustomersPassword, UJ_customersPassword); + protected void registerInlineCustomersCellphone(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueCustomersCellphone(), COL_CUSTOMERS_CELLPHONE, J_CustomersCellphone, UJ_customersCellphone); } - abstract protected ConditionValue getCValueCustomersPassword(); + abstract protected ConditionValue getCValueCustomersCellphone(); /** Column db name of customersNewsletter. */ protected static final String COL_CUSTOMERS_NEWSLETTER = "CUSTOMERS_NEWSLETTER"; 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsDeliveryMethodCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,685 @@ + +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; +import jp.sf.pal.pompei.cbean.cq.*; + +/** + * 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 + // ========== + /** + * This method implements the method that is declared at super. + * + * @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(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(DeliveryMethodDescriptionCQ 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(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(DeliveryMethodDescriptionCQ 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 deliveryClass. */ + protected static final String COL_DELIVERY_CLASS = "DELIVERY_CLASS"; + + /** Column java name of deliveryClass. */ + protected static final String J_DeliveryClass = "DeliveryClass"; + + /** Column uncapitalised java name of deliveryClass. */ + protected static final String UJ_deliveryClass = "deliveryClass"; + + /** + * Set the value of deliveryClass using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryClass The value of deliveryClass as equal. + */ + public void setDeliveryClass_Equal(String deliveryClass) { + registerDeliveryClass(ConditionKey.CK_EQUAL, filterRemoveEmptyString(deliveryClass)); + } + + /** + * Set the value of deliveryClass using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryClass The value of deliveryClass as notEqual. + */ + public void setDeliveryClass_NotEqual(String deliveryClass) { + registerDeliveryClass(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(deliveryClass)); + } + + /** + * Set the value of deliveryClass using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryClass The value of deliveryClass as greaterThan. + */ + public void setDeliveryClass_GreaterThan(String deliveryClass) { + registerDeliveryClass(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(deliveryClass)); + } + + /** + * Set the value of deliveryClass using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryClass The value of deliveryClass as lessThan. + */ + public void setDeliveryClass_LessThan(String deliveryClass) { + registerDeliveryClass(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(deliveryClass)); + } + + /** + * Set the value of deliveryClass using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryClass The value of deliveryClass as greaterEqual. + */ + public void setDeliveryClass_GreaterEqual(String deliveryClass) { + registerDeliveryClass(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(deliveryClass)); + } + + /** + * Set the value of deliveryClass using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryClass The value of deliveryClass as lessEqual. + */ + public void setDeliveryClass_LessEqual(String deliveryClass) { + registerDeliveryClass(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(deliveryClass)); + } + + /** + * Set the value of deliveryClass using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryClass The value of deliveryClass as prefixSearch. + */ + public void setDeliveryClass_PrefixSearch(String deliveryClass) { + registerDeliveryClass(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(deliveryClass)); + } + + /** + * Set the value of deliveryClass 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 deliveryClass The value of deliveryClass as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setDeliveryClass_LikeSearch(String deliveryClass, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(deliveryClass), getCValueDeliveryClass(), COL_DELIVERY_CLASS, J_DeliveryClass, UJ_deliveryClass, likeSearchOption); + } + + /** + * Set the value of deliveryClass using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryClassList The value of deliveryClass as inScope. + */ + public void setDeliveryClass_InScope(java.util.List<String> deliveryClassList) { + registerDeliveryClass(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(deliveryClassList)); + } + + /** + * Set the value of deliveryClass using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryClass The value of deliveryClass as inScope. + */ + public void setDeliveryClass_InScope(String deliveryClass, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(deliveryClass), getCValueDeliveryClass(), COL_DELIVERY_CLASS, J_DeliveryClass, UJ_deliveryClass, option); + } + + /** + * Set the value of deliveryClass using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryClassList The value of deliveryClass as notInScope. + */ + public void setDeliveryClass_NotInScope(java.util.List<String> deliveryClassList) { + registerDeliveryClass(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(deliveryClassList)); + } + + /** + * Register condition of deliveryClass. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryClass. (Nullable) + */ + protected void registerDeliveryClass(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDeliveryClass(), COL_DELIVERY_CLASS, J_DeliveryClass, UJ_deliveryClass); + } + + /** + * Register inline condition of deliveryClass. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryClass. (Nullable) + */ + protected void registerInlineDeliveryClass(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDeliveryClass(), COL_DELIVERY_CLASS, J_DeliveryClass, UJ_deliveryClass); + } + + abstract protected ConditionValue getCValueDeliveryClass(); + + /** 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); + } + + /** + * Set the value of sortOrder using isNull. { is null } + */ + public void setSortOrder_IsNull() { + registerSortOrder(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of sortOrder using isNotNull. { is not null } + */ + public void setSortOrder_IsNotNull() { + registerSortOrder(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * 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 dateAdded The value of dateAdded as from-to. + * @param fromToOption From-To option. (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); + } + + /** + * Set the value of dateAdded using isNull. { is null } + */ + public void setDateAdded_IsNull() { + registerDateAdded(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of dateAdded using isNotNull. { is not null } + */ + public void setDateAdded_IsNotNull() { + registerDateAdded(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * 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 lastModified The value of lastModified as from-to. + * @param fromToOption From-To option. (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(); + + // =================================================================================== + // 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsDeliveryMethodDescriptionCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,436 @@ + +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; +import jp.sf.pal.pompei.cbean.cq.*; + +/** + * 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 + // ========== + /** + * This method implements the method that is declared at super. + * + * @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(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(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); + } + + /** + * 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 deliveryMethodName. */ + protected static final String COL_DELIVERY_METHOD_NAME = "DELIVERY_METHOD_NAME"; + + /** Column java name of deliveryMethodName. */ + protected static final String J_DeliveryMethodName = "DeliveryMethodName"; + + /** Column uncapitalised java name of deliveryMethodName. */ + protected static final String UJ_deliveryMethodName = "deliveryMethodName"; + + /** + * Set the value of deliveryMethodName using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryMethodName The value of deliveryMethodName as equal. + */ + public void setDeliveryMethodName_Equal(String deliveryMethodName) { + registerDeliveryMethodName(ConditionKey.CK_EQUAL, filterRemoveEmptyString(deliveryMethodName)); + } + + /** + * Set the value of deliveryMethodName using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryMethodName The value of deliveryMethodName as notEqual. + */ + public void setDeliveryMethodName_NotEqual(String deliveryMethodName) { + registerDeliveryMethodName(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(deliveryMethodName)); + } + + /** + * Set the value of deliveryMethodName using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryMethodName The value of deliveryMethodName as greaterThan. + */ + public void setDeliveryMethodName_GreaterThan(String deliveryMethodName) { + registerDeliveryMethodName(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(deliveryMethodName)); + } + + /** + * Set the value of deliveryMethodName using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryMethodName The value of deliveryMethodName as lessThan. + */ + public void setDeliveryMethodName_LessThan(String deliveryMethodName) { + registerDeliveryMethodName(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(deliveryMethodName)); + } + + /** + * Set the value of deliveryMethodName using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryMethodName The value of deliveryMethodName as greaterEqual. + */ + public void setDeliveryMethodName_GreaterEqual(String deliveryMethodName) { + registerDeliveryMethodName(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(deliveryMethodName)); + } + + /** + * Set the value of deliveryMethodName using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryMethodName The value of deliveryMethodName as lessEqual. + */ + public void setDeliveryMethodName_LessEqual(String deliveryMethodName) { + registerDeliveryMethodName(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(deliveryMethodName)); + } + + /** + * Set the value of deliveryMethodName using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryMethodName The value of deliveryMethodName as prefixSearch. + */ + public void setDeliveryMethodName_PrefixSearch(String deliveryMethodName) { + registerDeliveryMethodName(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(deliveryMethodName)); + } + + /** + * Set the value of deliveryMethodName 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 deliveryMethodName The value of deliveryMethodName as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setDeliveryMethodName_LikeSearch(String deliveryMethodName, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(deliveryMethodName), getCValueDeliveryMethodName(), COL_DELIVERY_METHOD_NAME, J_DeliveryMethodName, UJ_deliveryMethodName, likeSearchOption); + } + + /** + * Set the value of deliveryMethodName using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryMethodNameList The value of deliveryMethodName as inScope. + */ + public void setDeliveryMethodName_InScope(java.util.List<String> deliveryMethodNameList) { + registerDeliveryMethodName(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(deliveryMethodNameList)); + } + + /** + * Set the value of deliveryMethodName using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryMethodName The value of deliveryMethodName as inScope. + */ + public void setDeliveryMethodName_InScope(String deliveryMethodName, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(deliveryMethodName), getCValueDeliveryMethodName(), COL_DELIVERY_METHOD_NAME, J_DeliveryMethodName, UJ_deliveryMethodName, option); + } + + /** + * Set the value of deliveryMethodName using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryMethodNameList The value of deliveryMethodName as notInScope. + */ + public void setDeliveryMethodName_NotInScope(java.util.List<String> deliveryMethodNameList) { + registerDeliveryMethodName(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(deliveryMethodNameList)); + } + + /** + * Register condition of deliveryMethodName. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryMethodName. (Nullable) + */ + protected void registerDeliveryMethodName(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDeliveryMethodName(), COL_DELIVERY_METHOD_NAME, J_DeliveryMethodName, UJ_deliveryMethodName); + } + + /** + * Register inline condition of deliveryMethodName. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryMethodName. (Nullable) + */ + protected void registerInlineDeliveryMethodName(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDeliveryMethodName(), COL_DELIVERY_METHOD_NAME, J_DeliveryMethodName, UJ_deliveryMethodName); + } + + abstract protected ConditionValue getCValueDeliveryMethodName(); + + // =================================================================================== + // 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 Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrdersCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrdersCQ.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/AbstractBsOrdersCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -1625,6 +1625,163 @@ abstract protected ConditionValue getCValueCustomersTelephone(); + /** Column db name of customersCellphone. */ + protected static final String COL_CUSTOMERS_CELLPHONE = "CUSTOMERS_CELLPHONE"; + + /** Column java name of customersCellphone. */ + protected static final String J_CustomersCellphone = "CustomersCellphone"; + + /** Column uncapitalised java name of customersCellphone. */ + protected static final String UJ_customersCellphone = "customersCellphone"; + + /** + * Set the value of customersCellphone using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param customersCellphone The value of customersCellphone as equal. + */ + public void setCustomersCellphone_Equal(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_EQUAL, filterRemoveEmptyString(customersCellphone)); + } + + /** + * Set the value of customersCellphone using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param customersCellphone The value of customersCellphone as notEqual. + */ + public void setCustomersCellphone_NotEqual(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(customersCellphone)); + } + + /** + * Set the value of customersCellphone using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param customersCellphone The value of customersCellphone as greaterThan. + */ + public void setCustomersCellphone_GreaterThan(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(customersCellphone)); + } + + /** + * Set the value of customersCellphone using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param customersCellphone The value of customersCellphone as lessThan. + */ + public void setCustomersCellphone_LessThan(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(customersCellphone)); + } + + /** + * Set the value of customersCellphone using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param customersCellphone The value of customersCellphone as greaterEqual. + */ + public void setCustomersCellphone_GreaterEqual(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(customersCellphone)); + } + + /** + * Set the value of customersCellphone using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param customersCellphone The value of customersCellphone as lessEqual. + */ + public void setCustomersCellphone_LessEqual(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(customersCellphone)); + } + + /** + * Set the value of customersCellphone using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param customersCellphone The value of customersCellphone as prefixSearch. + */ + public void setCustomersCellphone_PrefixSearch(String customersCellphone) { + registerCustomersCellphone(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(customersCellphone)); + } + + /** + * Set the value of customersCellphone 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 customersCellphone The value of customersCellphone as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setCustomersCellphone_LikeSearch(String customersCellphone, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(customersCellphone), getCValueCustomersCellphone(), COL_CUSTOMERS_CELLPHONE, J_CustomersCellphone, UJ_customersCellphone, likeSearchOption); + } + + /** + * Set the value of customersCellphone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param customersCellphoneList The value of customersCellphone as inScope. + */ + public void setCustomersCellphone_InScope(java.util.List<String> customersCellphoneList) { + registerCustomersCellphone(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(customersCellphoneList)); + } + + /** + * Set the value of customersCellphone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param customersCellphone The value of customersCellphone as inScope. + */ + public void setCustomersCellphone_InScope(String customersCellphone, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(customersCellphone), getCValueCustomersCellphone(), COL_CUSTOMERS_CELLPHONE, J_CustomersCellphone, UJ_customersCellphone, option); + } + + /** + * Set the value of customersCellphone using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param customersCellphoneList The value of customersCellphone as notInScope. + */ + public void setCustomersCellphone_NotInScope(java.util.List<String> customersCellphoneList) { + registerCustomersCellphone(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(customersCellphoneList)); + } + + /** + * Set the value of customersCellphone using isNull. { is null } + */ + public void setCustomersCellphone_IsNull() { + registerCustomersCellphone(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of customersCellphone using isNotNull. { is not null } + */ + public void setCustomersCellphone_IsNotNull() { + registerCustomersCellphone(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of customersCellphone. + * + * @param key Condition key. (NotNull) + * @param value The value of customersCellphone. (Nullable) + */ + protected void registerCustomersCellphone(ConditionKey key, Object value) { + registerQuery(key, value, getCValueCustomersCellphone(), COL_CUSTOMERS_CELLPHONE, J_CustomersCellphone, UJ_customersCellphone); + } + + /** + * Register inline condition of customersCellphone. + * + * @param key Condition key. (NotNull) + * @param value The value of customersCellphone. (Nullable) + */ + protected void registerInlineCustomersCellphone(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueCustomersCellphone(), COL_CUSTOMERS_CELLPHONE, J_CustomersCellphone, UJ_customersCellphone); + } + + abstract protected ConditionValue getCValueCustomersCellphone(); + /** Column db name of customersEmailAddress. */ protected static final String COL_CUSTOMERS_EMAIL_ADDRESS = "CUSTOMERS_EMAIL_ADDRESS"; @@ -2173,6 +2330,163 @@ abstract protected ConditionValue getCValueDeliveryCompany(); + /** Column db name of deliveryDepartment. */ + protected static final String COL_DELIVERY_DEPARTMENT = "DELIVERY_DEPARTMENT"; + + /** Column java name of deliveryDepartment. */ + protected static final String J_DeliveryDepartment = "DeliveryDepartment"; + + /** Column uncapitalised java name of deliveryDepartment. */ + protected static final String UJ_deliveryDepartment = "deliveryDepartment"; + + /** + * Set the value of deliveryDepartment using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryDepartment The value of deliveryDepartment as equal. + */ + public void setDeliveryDepartment_Equal(String deliveryDepartment) { + registerDeliveryDepartment(ConditionKey.CK_EQUAL, filterRemoveEmptyString(deliveryDepartment)); + } + + /** + * Set the value of deliveryDepartment using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryDepartment The value of deliveryDepartment as notEqual. + */ + public void setDeliveryDepartment_NotEqual(String deliveryDepartment) { + registerDeliveryDepartment(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(deliveryDepartment)); + } + + /** + * Set the value of deliveryDepartment using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryDepartment The value of deliveryDepartment as greaterThan. + */ + public void setDeliveryDepartment_GreaterThan(String deliveryDepartment) { + registerDeliveryDepartment(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(deliveryDepartment)); + } + + /** + * Set the value of deliveryDepartment using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryDepartment The value of deliveryDepartment as lessThan. + */ + public void setDeliveryDepartment_LessThan(String deliveryDepartment) { + registerDeliveryDepartment(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(deliveryDepartment)); + } + + /** + * Set the value of deliveryDepartment using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryDepartment The value of deliveryDepartment as greaterEqual. + */ + public void setDeliveryDepartment_GreaterEqual(String deliveryDepartment) { + registerDeliveryDepartment(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(deliveryDepartment)); + } + + /** + * Set the value of deliveryDepartment using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryDepartment The value of deliveryDepartment as lessEqual. + */ + public void setDeliveryDepartment_LessEqual(String deliveryDepartment) { + registerDeliveryDepartment(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(deliveryDepartment)); + } + + /** + * Set the value of deliveryDepartment using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryDepartment The value of deliveryDepartment as prefixSearch. + */ + public void setDeliveryDepartment_PrefixSearch(String deliveryDepartment) { + registerDeliveryDepartment(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(deliveryDepartment)); + } + + /** + * Set the value of deliveryDepartment 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 deliveryDepartment The value of deliveryDepartment as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setDeliveryDepartment_LikeSearch(String deliveryDepartment, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(deliveryDepartment), getCValueDeliveryDepartment(), COL_DELIVERY_DEPARTMENT, J_DeliveryDepartment, UJ_deliveryDepartment, likeSearchOption); + } + + /** + * Set the value of deliveryDepartment using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryDepartmentList The value of deliveryDepartment as inScope. + */ + public void setDeliveryDepartment_InScope(java.util.List<String> deliveryDepartmentList) { + registerDeliveryDepartment(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(deliveryDepartmentList)); + } + + /** + * Set the value of deliveryDepartment using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryDepartment The value of deliveryDepartment as inScope. + */ + public void setDeliveryDepartment_InScope(String deliveryDepartment, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(deliveryDepartment), getCValueDeliveryDepartment(), COL_DELIVERY_DEPARTMENT, J_DeliveryDepartment, UJ_deliveryDepartment, option); + } + + /** + * Set the value of deliveryDepartment using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryDepartmentList The value of deliveryDepartment as notInScope. + */ + public void setDeliveryDepartment_NotInScope(java.util.List<String> deliveryDepartmentList) { + registerDeliveryDepartment(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(deliveryDepartmentList)); + } + + /** + * Set the value of deliveryDepartment using isNull. { is null } + */ + public void setDeliveryDepartment_IsNull() { + registerDeliveryDepartment(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of deliveryDepartment using isNotNull. { is not null } + */ + public void setDeliveryDepartment_IsNotNull() { + registerDeliveryDepartment(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of deliveryDepartment. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryDepartment. (Nullable) + */ + protected void registerDeliveryDepartment(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDeliveryDepartment(), COL_DELIVERY_DEPARTMENT, J_DeliveryDepartment, UJ_deliveryDepartment); + } + + /** + * Register inline condition of deliveryDepartment. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryDepartment. (Nullable) + */ + protected void registerInlineDeliveryDepartment(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDeliveryDepartment(), COL_DELIVERY_DEPARTMENT, J_DeliveryDepartment, UJ_deliveryDepartment); + } + + abstract protected ConditionValue getCValueDeliveryDepartment(); + /** Column db name of deliveryStreetAddress. */ protected static final String COL_DELIVERY_STREET_ADDRESS = "DELIVERY_STREET_ADDRESS"; @@ -3059,6 +3373,163 @@ abstract protected ConditionValue getCValueDeliveryCountry(); + /** Column db name of deliveryTelephone. */ + protected static final String COL_DELIVERY_TELEPHONE = "DELIVERY_TELEPHONE"; + + /** Column java name of deliveryTelephone. */ + protected static final String J_DeliveryTelephone = "DeliveryTelephone"; + + /** Column uncapitalised java name of deliveryTelephone. */ + protected static final String UJ_deliveryTelephone = "deliveryTelephone"; + + /** + * Set the value of deliveryTelephone using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryTelephone The value of deliveryTelephone as equal. + */ + public void setDeliveryTelephone_Equal(String deliveryTelephone) { + registerDeliveryTelephone(ConditionKey.CK_EQUAL, filterRemoveEmptyString(deliveryTelephone)); + } + + /** + * Set the value of deliveryTelephone using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryTelephone The value of deliveryTelephone as notEqual. + */ + public void setDeliveryTelephone_NotEqual(String deliveryTelephone) { + registerDeliveryTelephone(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(deliveryTelephone)); + } + + /** + * Set the value of deliveryTelephone using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryTelephone The value of deliveryTelephone as greaterThan. + */ + public void setDeliveryTelephone_GreaterThan(String deliveryTelephone) { + registerDeliveryTelephone(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(deliveryTelephone)); + } + + /** + * Set the value of deliveryTelephone using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryTelephone The value of deliveryTelephone as lessThan. + */ + public void setDeliveryTelephone_LessThan(String deliveryTelephone) { + registerDeliveryTelephone(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(deliveryTelephone)); + } + + /** + * Set the value of deliveryTelephone using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryTelephone The value of deliveryTelephone as greaterEqual. + */ + public void setDeliveryTelephone_GreaterEqual(String deliveryTelephone) { + registerDeliveryTelephone(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(deliveryTelephone)); + } + + /** + * Set the value of deliveryTelephone using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryTelephone The value of deliveryTelephone as lessEqual. + */ + public void setDeliveryTelephone_LessEqual(String deliveryTelephone) { + registerDeliveryTelephone(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(deliveryTelephone)); + } + + /** + * Set the value of deliveryTelephone using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param deliveryTelephone The value of deliveryTelephone as prefixSearch. + */ + public void setDeliveryTelephone_PrefixSearch(String deliveryTelephone) { + registerDeliveryTelephone(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(deliveryTelephone)); + } + + /** + * Set the value of deliveryTelephone 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 deliveryTelephone The value of deliveryTelephone as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setDeliveryTelephone_LikeSearch(String deliveryTelephone, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(deliveryTelephone), getCValueDeliveryTelephone(), COL_DELIVERY_TELEPHONE, J_DeliveryTelephone, UJ_deliveryTelephone, likeSearchOption); + } + + /** + * Set the value of deliveryTelephone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryTelephoneList The value of deliveryTelephone as inScope. + */ + public void setDeliveryTelephone_InScope(java.util.List<String> deliveryTelephoneList) { + registerDeliveryTelephone(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(deliveryTelephoneList)); + } + + /** + * Set the value of deliveryTelephone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryTelephone The value of deliveryTelephone as inScope. + */ + public void setDeliveryTelephone_InScope(String deliveryTelephone, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(deliveryTelephone), getCValueDeliveryTelephone(), COL_DELIVERY_TELEPHONE, J_DeliveryTelephone, UJ_deliveryTelephone, option); + } + + /** + * Set the value of deliveryTelephone using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param deliveryTelephoneList The value of deliveryTelephone as notInScope. + */ + public void setDeliveryTelephone_NotInScope(java.util.List<String> deliveryTelephoneList) { + registerDeliveryTelephone(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(deliveryTelephoneList)); + } + + /** + * Set the value of deliveryTelephone using isNull. { is null } + */ + public void setDeliveryTelephone_IsNull() { + registerDeliveryTelephone(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of deliveryTelephone using isNotNull. { is not null } + */ + public void setDeliveryTelephone_IsNotNull() { + registerDeliveryTelephone(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of deliveryTelephone. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryTelephone. (Nullable) + */ + protected void registerDeliveryTelephone(ConditionKey key, Object value) { + registerQuery(key, value, getCValueDeliveryTelephone(), COL_DELIVERY_TELEPHONE, J_DeliveryTelephone, UJ_deliveryTelephone); + } + + /** + * Register inline condition of deliveryTelephone. + * + * @param key Condition key. (NotNull) + * @param value The value of deliveryTelephone. (Nullable) + */ + protected void registerInlineDeliveryTelephone(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueDeliveryTelephone(), COL_DELIVERY_TELEPHONE, J_DeliveryTelephone, UJ_deliveryTelephone); + } + + abstract protected ConditionValue getCValueDeliveryTelephone(); + /** Column db name of deliveryAddressFormatId. */ protected static final String COL_DELIVERY_ADDRESS_FORMAT_ID = "DELIVERY_ADDRESS_FORMAT_ID"; @@ -3464,6 +3935,163 @@ abstract protected ConditionValue getCValueBillingCompany(); + /** Column db name of billingDepartment. */ + protected static final String COL_BILLING_DEPARTMENT = "BILLING_DEPARTMENT"; + + /** Column java name of billingDepartment. */ + protected static final String J_BillingDepartment = "BillingDepartment"; + + /** Column uncapitalised java name of billingDepartment. */ + protected static final String UJ_billingDepartment = "billingDepartment"; + + /** + * Set the value of billingDepartment using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingDepartment The value of billingDepartment as equal. + */ + public void setBillingDepartment_Equal(String billingDepartment) { + registerBillingDepartment(ConditionKey.CK_EQUAL, filterRemoveEmptyString(billingDepartment)); + } + + /** + * Set the value of billingDepartment using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingDepartment The value of billingDepartment as notEqual. + */ + public void setBillingDepartment_NotEqual(String billingDepartment) { + registerBillingDepartment(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(billingDepartment)); + } + + /** + * Set the value of billingDepartment using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingDepartment The value of billingDepartment as greaterThan. + */ + public void setBillingDepartment_GreaterThan(String billingDepartment) { + registerBillingDepartment(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(billingDepartment)); + } + + /** + * Set the value of billingDepartment using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingDepartment The value of billingDepartment as lessThan. + */ + public void setBillingDepartment_LessThan(String billingDepartment) { + registerBillingDepartment(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(billingDepartment)); + } + + /** + * Set the value of billingDepartment using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingDepartment The value of billingDepartment as greaterEqual. + */ + public void setBillingDepartment_GreaterEqual(String billingDepartment) { + registerBillingDepartment(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(billingDepartment)); + } + + /** + * Set the value of billingDepartment using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingDepartment The value of billingDepartment as lessEqual. + */ + public void setBillingDepartment_LessEqual(String billingDepartment) { + registerBillingDepartment(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(billingDepartment)); + } + + /** + * Set the value of billingDepartment using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingDepartment The value of billingDepartment as prefixSearch. + */ + public void setBillingDepartment_PrefixSearch(String billingDepartment) { + registerBillingDepartment(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(billingDepartment)); + } + + /** + * Set the value of billingDepartment 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 billingDepartment The value of billingDepartment as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setBillingDepartment_LikeSearch(String billingDepartment, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(billingDepartment), getCValueBillingDepartment(), COL_BILLING_DEPARTMENT, J_BillingDepartment, UJ_billingDepartment, likeSearchOption); + } + + /** + * Set the value of billingDepartment using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param billingDepartmentList The value of billingDepartment as inScope. + */ + public void setBillingDepartment_InScope(java.util.List<String> billingDepartmentList) { + registerBillingDepartment(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(billingDepartmentList)); + } + + /** + * Set the value of billingDepartment using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param billingDepartment The value of billingDepartment as inScope. + */ + public void setBillingDepartment_InScope(String billingDepartment, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(billingDepartment), getCValueBillingDepartment(), COL_BILLING_DEPARTMENT, J_BillingDepartment, UJ_billingDepartment, option); + } + + /** + * Set the value of billingDepartment using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param billingDepartmentList The value of billingDepartment as notInScope. + */ + public void setBillingDepartment_NotInScope(java.util.List<String> billingDepartmentList) { + registerBillingDepartment(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(billingDepartmentList)); + } + + /** + * Set the value of billingDepartment using isNull. { is null } + */ + public void setBillingDepartment_IsNull() { + registerBillingDepartment(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of billingDepartment using isNotNull. { is not null } + */ + public void setBillingDepartment_IsNotNull() { + registerBillingDepartment(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of billingDepartment. + * + * @param key Condition key. (NotNull) + * @param value The value of billingDepartment. (Nullable) + */ + protected void registerBillingDepartment(ConditionKey key, Object value) { + registerQuery(key, value, getCValueBillingDepartment(), COL_BILLING_DEPARTMENT, J_BillingDepartment, UJ_billingDepartment); + } + + /** + * Register inline condition of billingDepartment. + * + * @param key Condition key. (NotNull) + * @param value The value of billingDepartment. (Nullable) + */ + protected void registerInlineBillingDepartment(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueBillingDepartment(), COL_BILLING_DEPARTMENT, J_BillingDepartment, UJ_billingDepartment); + } + + abstract protected ConditionValue getCValueBillingDepartment(); + /** Column db name of billingStreetAddress. */ protected static final String COL_BILLING_STREET_ADDRESS = "BILLING_STREET_ADDRESS"; @@ -4350,6 +4978,163 @@ abstract protected ConditionValue getCValueBillingCountry(); + /** Column db name of billingTelephone. */ + protected static final String COL_BILLING_TELEPHONE = "BILLING_TELEPHONE"; + + /** Column java name of billingTelephone. */ + protected static final String J_BillingTelephone = "BillingTelephone"; + + /** Column uncapitalised java name of billingTelephone. */ + protected static final String UJ_billingTelephone = "billingTelephone"; + + /** + * Set the value of billingTelephone using equal. { = } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingTelephone The value of billingTelephone as equal. + */ + public void setBillingTelephone_Equal(String billingTelephone) { + registerBillingTelephone(ConditionKey.CK_EQUAL, filterRemoveEmptyString(billingTelephone)); + } + + /** + * Set the value of billingTelephone using notEqual. { != } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingTelephone The value of billingTelephone as notEqual. + */ + public void setBillingTelephone_NotEqual(String billingTelephone) { + registerBillingTelephone(ConditionKey.CK_NOT_EQUAL, filterRemoveEmptyString(billingTelephone)); + } + + /** + * Set the value of billingTelephone using greaterThan. { > } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingTelephone The value of billingTelephone as greaterThan. + */ + public void setBillingTelephone_GreaterThan(String billingTelephone) { + registerBillingTelephone(ConditionKey.CK_GREATER_THAN, filterRemoveEmptyString(billingTelephone)); + } + + /** + * Set the value of billingTelephone using lessThan. { < } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingTelephone The value of billingTelephone as lessThan. + */ + public void setBillingTelephone_LessThan(String billingTelephone) { + registerBillingTelephone(ConditionKey.CK_LESS_THAN, filterRemoveEmptyString(billingTelephone)); + } + + /** + * Set the value of billingTelephone using greaterEqual. { >= } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingTelephone The value of billingTelephone as greaterEqual. + */ + public void setBillingTelephone_GreaterEqual(String billingTelephone) { + registerBillingTelephone(ConditionKey.CK_GREATER_EQUAL, filterRemoveEmptyString(billingTelephone)); + } + + /** + * Set the value of billingTelephone using lessEqual. { <= } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingTelephone The value of billingTelephone as lessEqual. + */ + public void setBillingTelephone_LessEqual(String billingTelephone) { + registerBillingTelephone(ConditionKey.CK_LESS_EQUAL, filterRemoveEmptyString(billingTelephone)); + } + + /** + * Set the value of billingTelephone using prefixSearch. { like 'xxx%' } + * If the value is null or empty-string, this condition is ignored. + * + * @param billingTelephone The value of billingTelephone as prefixSearch. + */ + public void setBillingTelephone_PrefixSearch(String billingTelephone) { + registerBillingTelephone(ConditionKey.CK_PREFIX_SEARCH, filterRemoveEmptyString(billingTelephone)); + } + + /** + * Set the value of billingTelephone 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 billingTelephone The value of billingTelephone as likeSearch. + * @param likeSearchOption Like search option. (NotNull) + */ + public void setBillingTelephone_LikeSearch(String billingTelephone, jp.sf.pal.pompei.allcommon.cbean.coption.LikeSearchOption likeSearchOption) { + registerLikeSearchQuery(ConditionKey.CK_LIKE_SEARCH, filterRemoveEmptyString(billingTelephone), getCValueBillingTelephone(), COL_BILLING_TELEPHONE, J_BillingTelephone, UJ_billingTelephone, likeSearchOption); + } + + /** + * Set the value of billingTelephone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param billingTelephoneList The value of billingTelephone as inScope. + */ + public void setBillingTelephone_InScope(java.util.List<String> billingTelephoneList) { + registerBillingTelephone(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyStringFromList(billingTelephoneList)); + } + + /** + * Set the value of billingTelephone using inScope. { in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param billingTelephone The value of billingTelephone as inScope. + */ + public void setBillingTelephone_InScope(String billingTelephone, jp.sf.pal.pompei.allcommon.cbean.coption.InScopeOption option) { + registerInScopeQuery(ConditionKey.CK_IN_SCOPE, filterRemoveEmptyString(billingTelephone), getCValueBillingTelephone(), COL_BILLING_TELEPHONE, J_BillingTelephone, UJ_billingTelephone, option); + } + + /** + * Set the value of billingTelephone using notInScope. { not in ('a', 'b') } + * If the element in the list is null or empty-string, the condition-element is ignored. + * + * @param billingTelephoneList The value of billingTelephone as notInScope. + */ + public void setBillingTelephone_NotInScope(java.util.List<String> billingTelephoneList) { + registerBillingTelephone(ConditionKey.CK_NOT_IN_SCOPE, filterRemoveEmptyStringFromList(billingTelephoneList)); + } + + /** + * Set the value of billingTelephone using isNull. { is null } + */ + public void setBillingTelephone_IsNull() { + registerBillingTelephone(ConditionKey.CK_IS_NULL, DUMMY_OBJECT); + } + + /** + * Set the value of billingTelephone using isNotNull. { is not null } + */ + public void setBillingTelephone_IsNotNull() { + registerBillingTelephone(ConditionKey.CK_IS_NOT_NULL, DUMMY_OBJECT); + } + + /** + * Register condition of billingTelephone. + * + * @param key Condition key. (NotNull) + * @param value The value of billingTelephone. (Nullable) + */ + protected void registerBillingTelephone(ConditionKey key, Object value) { + registerQuery(key, value, getCValueBillingTelephone(), COL_BILLING_TELEPHONE, J_BillingTelephone, UJ_billingTelephone); + } + + /** + * Register inline condition of billingTelephone. + * + * @param key Condition key. (NotNull) + * @param value The value of billingTelephone. (Nullable) + */ + protected void registerInlineBillingTelephone(ConditionKey key, Object value) { + registerInlineQuery(key, value, getCValueBillingTelephone(), COL_BILLING_TELEPHONE, J_BillingTelephone, UJ_billingTelephone); + } + + abstract protected ConditionValue getCValueBillingTelephone(); + /** Column db name of billingAddressFormatId. */ protected static final String COL_BILLING_ADDRESS_FORMAT_ID = "BILLING_ADDRESS_FORMAT_ID"; @@ -5226,6 +6011,111 @@ abstract protected ConditionValue getCValueCcExpires(); + /** 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); + } + + /** + * 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 lastModified. */ protected static final String COL_LAST_MODIFIED = "LAST_MODIFIED"; Modified: 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsAddressBookCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -129,6 +129,24 @@ } /** + * Include select-column of entryDepartment as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_EntryDepartment() { + registerIncludedSelectColumn("EntryDepartment", getRealColumnName("ENTRY_DEPARTMENT")); + } + + /** + * Include select-column of entryDepartment as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_EntryDepartment(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("ENTRY_DEPARTMENT")); + } + + /** * Include select-column of entryFirstname as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -255,6 +273,60 @@ } /** + * Include select-column of entryTelephone as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_EntryTelephone() { + registerIncludedSelectColumn("EntryTelephone", getRealColumnName("ENTRY_TELEPHONE")); + } + + /** + * Include select-column of entryTelephone as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_EntryTelephone(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("ENTRY_TELEPHONE")); + } + + /** + * Include select-column of entryFax as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_EntryFax() { + registerIncludedSelectColumn("EntryFax", getRealColumnName("ENTRY_FAX")); + } + + /** + * Include select-column of entryFax as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_EntryFax(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("ENTRY_FAX")); + } + + /** + * Include select-column of entryCellphone as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_EntryCellphone() { + registerIncludedSelectColumn("EntryCellphone", getRealColumnName("ENTRY_CELLPHONE")); + } + + /** + * Include select-column of entryCellphone as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_EntryCellphone(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("ENTRY_CELLPHONE")); + } + + /** * Include select-column of entryCountryId as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -514,6 +586,48 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ENTRY_DEPARTMENT] + // - - - - - - - - -/ + + /** The attribute of entryDepartment. */ + protected ConditionValue _entryDepartment; + + /** + * Get the value of entryDepartment. + * + * @return The value of entryDepartment. + */ + public ConditionValue getEntryDepartment() { + if (_entryDepartment == null) { + _entryDepartment = new ConditionValue(); + } + return _entryDepartment; + } + + protected ConditionValue getCValueEntryDepartment() { + return getEntryDepartment(); + } + + + /** + * Add order-by of entryDepartment as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_EntryDepartment_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ENTRY_DEPARTMENT), null, true);return this; + } + + /** + * Add order-by of entryDepartment as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_EntryDepartment_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ENTRY_DEPARTMENT), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [ENTRY_FIRSTNAME] // - - - - - - - - -/ @@ -808,6 +922,132 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ENTRY_TELEPHONE] + // - - - - - - - - -/ + + /** The attribute of entryTelephone. */ + protected ConditionValue _entryTelephone; + + /** + * Get the value of entryTelephone. + * + * @return The value of entryTelephone. + */ + public ConditionValue getEntryTelephone() { + if (_entryTelephone == null) { + _entryTelephone = new ConditionValue(); + } + return _entryTelephone; + } + + protected ConditionValue getCValueEntryTelephone() { + return getEntryTelephone(); + } + + + /** + * Add order-by of entryTelephone as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_EntryTelephone_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ENTRY_TELEPHONE), null, true);return this; + } + + /** + * Add order-by of entryTelephone as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_EntryTelephone_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ENTRY_TELEPHONE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ENTRY_FAX] + // - - - - - - - - -/ + + /** The attribute of entryFax. */ + protected ConditionValue _entryFax; + + /** + * Get the value of entryFax. + * + * @return The value of entryFax. + */ + public ConditionValue getEntryFax() { + if (_entryFax == null) { + _entryFax = new ConditionValue(); + } + return _entryFax; + } + + protected ConditionValue getCValueEntryFax() { + return getEntryFax(); + } + + + /** + * Add order-by of entryFax as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_EntryFax_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ENTRY_FAX), null, true);return this; + } + + /** + * Add order-by of entryFax as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_EntryFax_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ENTRY_FAX), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ENTRY_CELLPHONE] + // - - - - - - - - -/ + + /** The attribute of entryCellphone. */ + protected ConditionValue _entryCellphone; + + /** + * Get the value of entryCellphone. + * + * @return The value of entryCellphone. + */ + public ConditionValue getEntryCellphone() { + if (_entryCellphone == null) { + _entryCellphone = new ConditionValue(); + } + return _entryCellphone; + } + + protected ConditionValue getCValueEntryCellphone() { + return getEntryCellphone(); + } + + + /** + * Add order-by of entryCellphone as ASC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_EntryCellphone_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ENTRY_CELLPHONE), null, true);return this; + } + + /** + * Add order-by of entryCellphone as DESC. + * + * @return this. (NotNull) + */ + public BsAddressBookCQ addOrderBy_EntryCellphone_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_ENTRY_CELLPHONE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [ENTRY_COUNTRY_ID] // - - - - - - - - -/ Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsCustomersCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsCustomersCQ.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsCustomersCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -237,21 +237,21 @@ } /** - * Include select-column of customersPassword as mine. + * Include select-column of customersCellphone as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. */ - public void includeAsMine_CustomersPassword() { - registerIncludedSelectColumn("CustomersPassword", getRealColumnName("CUSTOMERS_PASSWORD")); + public void includeAsMine_CustomersCellphone() { + registerIncludedSelectColumn("CustomersCellphone", getRealColumnName("CUSTOMERS_CELLPHONE")); } /** - * Include select-column of customersPassword as mine. + * Include select-column of customersCellphone as mine. * * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) */ - public void includeAsMine_CustomersPassword(String aliasName) { - registerIncludedSelectColumn(aliasName, getRealColumnName("CUSTOMERS_PASSWORD")); + public void includeAsMine_CustomersCellphone(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("CUSTOMERS_CELLPHONE")); } /** @@ -748,45 +748,45 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - - // Column = [CUSTOMERS_PASSWORD] + // Column = [CUSTOMERS_CELLPHONE] // - - - - - - - - -/ - /** The attribute of customersPassword. */ - protected ConditionValue _customersPassword; + /** The attribute of customersCellphone. */ + protected ConditionValue _customersCellphone; /** - * Get the value of customersPassword. + * Get the value of customersCellphone. * - * @return The value of customersPassword. + * @return The value of customersCellphone. */ - public ConditionValue getCustomersPassword() { - if (_customersPassword == null) { - _customersPassword = new ConditionValue(); + public ConditionValue getCustomersCellphone() { + if (_customersCellphone == null) { + _customersCellphone = new ConditionValue(); } - return _customersPassword; + return _customersCellphone; } - protected ConditionValue getCValueCustomersPassword() { - return getCustomersPassword(); + protected ConditionValue getCValueCustomersCellphone() { + return getCustomersCellphone(); } - + /** - * Add order-by of customersPassword as ASC. + * Add order-by of customersCellphone as ASC. * * @return this. (NotNull) */ - public BsCustomersCQ addOrderBy_CustomersPassword_Asc() { - getSqlClause().registerOrderBy(getRealColumnName(COL_CUSTOMERS_PASSWORD), null, true);return this; + public BsCustomersCQ addOrderBy_CustomersCellphone_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CUSTOMERS_CELLPHONE), null, true);return this; } /** - * Add order-by of customersPassword as DESC. + * Add order-by of customersCellphone as DESC. * * @return this. (NotNull) */ - public BsCustomersCQ addOrderBy_CustomersPassword_Desc() { - getSqlClause().registerOrderBy(getRealColumnName(COL_CUSTOMERS_PASSWORD), null, false);return this; + public BsCustomersCQ addOrderBy_CustomersCellphone_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CUSTOMERS_CELLPHONE), null, false);return this; } // /- - - - - - - - - - - - - - - - - - - - - - - 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,412 @@ + +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.ckey.*; +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 deliveryClass as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_DeliveryClass() { + registerIncludedSelectColumn("DeliveryClass", getRealColumnName("DELIVERY_CLASS")); + } + + /** + * Include select-column of deliveryClass as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_DeliveryClass(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DELIVERY_CLASS")); + } + + /** + * 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_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; + } + + /** + * 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 = [DELIVERY_CLASS] + // - - - - - - - - -/ + + /** The attribute of deliveryClass. */ + protected ConditionValue _deliveryClass; + + /** + * Get the value of deliveryClass. + * + * @return The value of deliveryClass. + */ + public ConditionValue getDeliveryClass() { + if (_deliveryClass == null) { + _deliveryClass = new ConditionValue(); + } + return _deliveryClass; + } + + protected ConditionValue getCValueDeliveryClass() { + return getDeliveryClass(); + } + + + /** + * Add order-by of deliveryClass as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_DeliveryClass_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_CLASS), null, true);return this; + } + + /** + * Add order-by of deliveryClass as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodCQ addOrderBy_DeliveryClass_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_CLASS), 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) { + final DeliveryMethodCQ baseQuery = (DeliveryMethodCQ)baseQueryAsSuper; + final DeliveryMethodCQ unionQuery = (DeliveryMethodCQ)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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsDeliveryMethodDescriptionCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,345 @@ + +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.ckey.*; +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 deliveryMethodName as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_DeliveryMethodName() { + registerIncludedSelectColumn("DeliveryMethodName", getRealColumnName("DELIVERY_METHOD_NAME")); + } + + /** + * Include select-column of deliveryMethodName as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_DeliveryMethodName(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DELIVERY_METHOD_NAME")); + } + + // =================================================================================== + // 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(); + } + + + /** + * 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 = [DELIVERY_METHOD_NAME] + // - - - - - - - - -/ + + /** The attribute of deliveryMethodName. */ + protected ConditionValue _deliveryMethodName; + + /** + * Get the value of deliveryMethodName. + * + * @return The value of deliveryMethodName. + */ + public ConditionValue getDeliveryMethodName() { + if (_deliveryMethodName == null) { + _deliveryMethodName = new ConditionValue(); + } + return _deliveryMethodName; + } + + protected ConditionValue getCValueDeliveryMethodName() { + return getDeliveryMethodName(); + } + + + /** + * Add order-by of deliveryMethodName as ASC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodDescriptionCQ addOrderBy_DeliveryMethodName_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_METHOD_NAME), null, true);return this; + } + + /** + * Add order-by of deliveryMethodName as DESC. + * + * @return this. (NotNull) + */ + public BsDeliveryMethodDescriptionCQ addOrderBy_DeliveryMethodName_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_METHOD_NAME), 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()); + } + + } + + // =================================================================================== + // 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; + } + + +} 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 Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrdersCQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrdersCQ.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/bs/BsOrdersCQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -255,6 +255,24 @@ } /** + * Include select-column of customersCellphone as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_CustomersCellphone() { + registerIncludedSelectColumn("CustomersCellphone", getRealColumnName("CUSTOMERS_CELLPHONE")); + } + + /** + * Include select-column of customersCellphone as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_CustomersCellphone(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("CUSTOMERS_CELLPHONE")); + } + + /** * Include select-column of customersEmailAddress as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -327,6 +345,24 @@ } /** + * Include select-column of deliveryDepartment as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_DeliveryDepartment() { + registerIncludedSelectColumn("DeliveryDepartment", getRealColumnName("DELIVERY_DEPARTMENT")); + } + + /** + * Include select-column of deliveryDepartment as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_DeliveryDepartment(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DELIVERY_DEPARTMENT")); + } + + /** * Include select-column of deliveryStreetAddress as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -435,6 +471,24 @@ } /** + * Include select-column of deliveryTelephone as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_DeliveryTelephone() { + registerIncludedSelectColumn("DeliveryTelephone", getRealColumnName("DELIVERY_TELEPHONE")); + } + + /** + * Include select-column of deliveryTelephone as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_DeliveryTelephone(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("DELIVERY_TELEPHONE")); + } + + /** * Include select-column of deliveryAddressFormatId as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -489,6 +543,24 @@ } /** + * Include select-column of billingDepartment as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_BillingDepartment() { + registerIncludedSelectColumn("BillingDepartment", getRealColumnName("BILLING_DEPARTMENT")); + } + + /** + * Include select-column of billingDepartment as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_BillingDepartment(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("BILLING_DEPARTMENT")); + } + + /** * Include select-column of billingStreetAddress as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -597,6 +669,24 @@ } /** + * Include select-column of billingTelephone as mine. + * Alias name is java-name of this column. + * Be careful to whether your table have the same column. + */ + public void includeAsMine_BillingTelephone() { + registerIncludedSelectColumn("BillingTelephone", getRealColumnName("BILLING_TELEPHONE")); + } + + /** + * Include select-column of billingTelephone as mine. + * + * @param aliasName Alias name. {select columnName as aliasName from ...} This should not contain comma. (NotNull) + */ + public void includeAsMine_BillingTelephone(String aliasName) { + registerIncludedSelectColumn(aliasName, getRealColumnName("BILLING_TELEPHONE")); + } + + /** * Include select-column of billingAddressFormatId as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -705,6 +795,24 @@ } /** + * 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 lastModified as mine. * Alias name is java-name of this column. * Be careful to whether your table have the same column. @@ -1314,6 +1422,48 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CUSTOMERS_CELLPHONE] + // - - - - - - - - -/ + + /** The attribute of customersCellphone. */ + protected ConditionValue _customersCellphone; + + /** + * Get the value of customersCellphone. + * + * @return The value of customersCellphone. + */ + public ConditionValue getCustomersCellphone() { + if (_customersCellphone == null) { + _customersCellphone = new ConditionValue(); + } + return _customersCellphone; + } + + protected ConditionValue getCValueCustomersCellphone() { + return getCustomersCellphone(); + } + + + /** + * Add order-by of customersCellphone as ASC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ addOrderBy_CustomersCellphone_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CUSTOMERS_CELLPHONE), null, true);return this; + } + + /** + * Add order-by of customersCellphone as DESC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ addOrderBy_CustomersCellphone_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_CUSTOMERS_CELLPHONE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [CUSTOMERS_EMAIL_ADDRESS] // - - - - - - - - -/ @@ -1482,6 +1632,48 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_DEPARTMENT] + // - - - - - - - - -/ + + /** The attribute of deliveryDepartment. */ + protected ConditionValue _deliveryDepartment; + + /** + * Get the value of deliveryDepartment. + * + * @return The value of deliveryDepartment. + */ + public ConditionValue getDeliveryDepartment() { + if (_deliveryDepartment == null) { + _deliveryDepartment = new ConditionValue(); + } + return _deliveryDepartment; + } + + protected ConditionValue getCValueDeliveryDepartment() { + return getDeliveryDepartment(); + } + + + /** + * Add order-by of deliveryDepartment as ASC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ addOrderBy_DeliveryDepartment_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_DEPARTMENT), null, true);return this; + } + + /** + * Add order-by of deliveryDepartment as DESC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ addOrderBy_DeliveryDepartment_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_DEPARTMENT), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [DELIVERY_STREET_ADDRESS] // - - - - - - - - -/ @@ -1734,6 +1926,48 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_TELEPHONE] + // - - - - - - - - -/ + + /** The attribute of deliveryTelephone. */ + protected ConditionValue _deliveryTelephone; + + /** + * Get the value of deliveryTelephone. + * + * @return The value of deliveryTelephone. + */ + public ConditionValue getDeliveryTelephone() { + if (_deliveryTelephone == null) { + _deliveryTelephone = new ConditionValue(); + } + return _deliveryTelephone; + } + + protected ConditionValue getCValueDeliveryTelephone() { + return getDeliveryTelephone(); + } + + + /** + * Add order-by of deliveryTelephone as ASC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ addOrderBy_DeliveryTelephone_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_TELEPHONE), null, true);return this; + } + + /** + * Add order-by of deliveryTelephone as DESC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ addOrderBy_DeliveryTelephone_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_TELEPHONE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [DELIVERY_ADDRESS_FORMAT_ID] // - - - - - - - - -/ @@ -1860,6 +2094,48 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [BILLING_DEPARTMENT] + // - - - - - - - - -/ + + /** The attribute of billingDepartment. */ + protected ConditionValue _billingDepartment; + + /** + * Get the value of billingDepartment. + * + * @return The value of billingDepartment. + */ + public ConditionValue getBillingDepartment() { + if (_billingDepartment == null) { + _billingDepartment = new ConditionValue(); + } + return _billingDepartment; + } + + protected ConditionValue getCValueBillingDepartment() { + return getBillingDepartment(); + } + + + /** + * Add order-by of billingDepartment as ASC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ addOrderBy_BillingDepartment_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_BILLING_DEPARTMENT), null, true);return this; + } + + /** + * Add order-by of billingDepartment as DESC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ addOrderBy_BillingDepartment_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_BILLING_DEPARTMENT), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [BILLING_STREET_ADDRESS] // - - - - - - - - -/ @@ -2112,6 +2388,48 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [BILLING_TELEPHONE] + // - - - - - - - - -/ + + /** The attribute of billingTelephone. */ + protected ConditionValue _billingTelephone; + + /** + * Get the value of billingTelephone. + * + * @return The value of billingTelephone. + */ + public ConditionValue getBillingTelephone() { + if (_billingTelephone == null) { + _billingTelephone = new ConditionValue(); + } + return _billingTelephone; + } + + protected ConditionValue getCValueBillingTelephone() { + return getBillingTelephone(); + } + + + /** + * Add order-by of billingTelephone as ASC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ addOrderBy_BillingTelephone_Asc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_BILLING_TELEPHONE), null, true);return this; + } + + /** + * Add order-by of billingTelephone as DESC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ addOrderBy_BillingTelephone_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_BILLING_TELEPHONE), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [BILLING_ADDRESS_FORMAT_ID] // - - - - - - - - -/ @@ -2364,6 +2682,48 @@ } // /- - - - - - - - - - - - - - - - - - - - - - - + // 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(); + } + + + /** + * Add order-by of deliveryMethodId as ASC. + * + * @return this. (NotNull) + */ + public BsOrdersCQ 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 BsOrdersCQ addOrderBy_DeliveryMethodId_Desc() { + getSqlClause().registerOrderBy(getRealColumnName(COL_DELIVERY_METHOD_ID), null, false);return this; + } + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [LAST_MODIFIED] // - - - - - - - - -/ Modified: 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/AddressBookCIQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -113,6 +113,14 @@ // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ENTRY_DEPARTMENT] + // - - - - - - - - -/ + protected ConditionValue getCValueEntryDepartment() { + return _myCQ.getEntryDepartment(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [ENTRY_FIRSTNAME] // - - - - - - - - -/ protected ConditionValue getCValueEntryFirstname() { @@ -169,6 +177,30 @@ // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ENTRY_TELEPHONE] + // - - - - - - - - -/ + protected ConditionValue getCValueEntryTelephone() { + return _myCQ.getEntryTelephone(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ENTRY_FAX] + // - - - - - - - - -/ + protected ConditionValue getCValueEntryFax() { + return _myCQ.getEntryFax(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [ENTRY_CELLPHONE] + // - - - - - - - - -/ + protected ConditionValue getCValueEntryCellphone() { + return _myCQ.getEntryCellphone(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [ENTRY_COUNTRY_ID] // - - - - - - - - -/ protected ConditionValue getCValueEntryCountryId() { Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/CustomersCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/CustomersCIQ.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/CustomersCIQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -161,13 +161,13 @@ // /- - - - - - - - - - - - - - - - - - - - - - - - // Column = [CUSTOMERS_PASSWORD] + // Column = [CUSTOMERS_CELLPHONE] // - - - - - - - - -/ - protected ConditionValue getCValueCustomersPassword() { - return _myCQ.getCustomersPassword(); + protected ConditionValue getCValueCustomersCellphone() { + return _myCQ.getCustomersCellphone(); } - + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [CUSTOMERS_NEWSLETTER] // - - - - - - - - -/ 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodCIQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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.cbean.cq.*; + +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. + */ + 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); + } + + // =================================================================================== + // Override about Query + // ==================== + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [DELIVERY_METHOD] + // * * * * * * * * */ + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_METHOD_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueDeliveryMethodId() { + return _myCQ.getDeliveryMethodId(); + } + + + public void keepDeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList(DeliveryMethodDescriptionCQ subQuery) { + _myCQ.keepDeliveryMethodId_InScopeSubQuery_DeliveryMethodDescriptionList(subQuery); + } + + public void keepDeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList(DeliveryMethodDescriptionCQ subQuery) { + throw new UnsupportedOperationException("ExistsSubQuery at inline() is unsupported! Sorry!"); + // _myCQ.keepDeliveryMethodId_ExistsSubQuery_DeliveryMethodDescriptionList(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_CLASS] + // - - - - - - - - -/ + protected ConditionValue getCValueDeliveryClass() { + return _myCQ.getDeliveryClass(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/DeliveryMethodDescriptionCIQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,98 @@ +package jp.sf.pal.pompei.cbean.cq.ciq; + +import 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.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. + */ + 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); + } + + // =================================================================================== + // Override about Query + // ==================== + // /* * * * * * * * * * * * * * * * * * * * * * * + // MyTable = [DELIVERY_METHOD_DESCRIPTION] + // * * * * * * * * */ + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_METHOD_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueDeliveryMethodId() { + return _myCQ.getDeliveryMethodId(); + } + + + public void keepDeliveryMethodId_InScopeSubQuery_DeliveryMethod(DeliveryMethodCQ subQuery) { + _myCQ.keepDeliveryMethodId_InScopeSubQuery_DeliveryMethod(subQuery); + } + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [LANGUAGE_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueLanguageId() { + return _myCQ.getLanguageId(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_METHOD_NAME] + // - - - - - - - - -/ + protected ConditionValue getCValueDeliveryMethodName() { + return _myCQ.getDeliveryMethodName(); + } + + +} 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 Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrdersCIQ.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrdersCIQ.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/cq/ciq/OrdersCIQ.java 2007-08-26 13:47:59 UTC (rev 497) @@ -165,6 +165,14 @@ // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [CUSTOMERS_CELLPHONE] + // - - - - - - - - -/ + protected ConditionValue getCValueCustomersCellphone() { + return _myCQ.getCustomersCellphone(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [CUSTOMERS_EMAIL_ADDRESS] // - - - - - - - - -/ protected ConditionValue getCValueCustomersEmailAddress() { @@ -197,6 +205,14 @@ // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_DEPARTMENT] + // - - - - - - - - -/ + protected ConditionValue getCValueDeliveryDepartment() { + return _myCQ.getDeliveryDepartment(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [DELIVERY_STREET_ADDRESS] // - - - - - - - - -/ protected ConditionValue getCValueDeliveryStreetAddress() { @@ -245,6 +261,14 @@ // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_TELEPHONE] + // - - - - - - - - -/ + protected ConditionValue getCValueDeliveryTelephone() { + return _myCQ.getDeliveryTelephone(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [DELIVERY_ADDRESS_FORMAT_ID] // - - - - - - - - -/ protected ConditionValue getCValueDeliveryAddressFormatId() { @@ -269,6 +293,14 @@ // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [BILLING_DEPARTMENT] + // - - - - - - - - -/ + protected ConditionValue getCValueBillingDepartment() { + return _myCQ.getBillingDepartment(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [BILLING_STREET_ADDRESS] // - - - - - - - - -/ protected ConditionValue getCValueBillingStreetAddress() { @@ -317,6 +349,14 @@ // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [BILLING_TELEPHONE] + // - - - - - - - - -/ + protected ConditionValue getCValueBillingTelephone() { + return _myCQ.getBillingTelephone(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [BILLING_ADDRESS_FORMAT_ID] // - - - - - - - - -/ protected ConditionValue getCValueBillingAddressFormatId() { @@ -365,6 +405,14 @@ // /- - - - - - - - - - - - - - - - - - - - - - - + // Column = [DELIVERY_METHOD_ID] + // - - - - - - - - -/ + protected ConditionValue getCValueDeliveryMethodId() { + return _myCQ.getDeliveryMethodId(); + } + + + // /- - - - - - - - - - - - - - - - - - - - - - - // Column = [LAST_MODIFIED] // - - - - - - - - -/ protected ConditionValue getCValueLastModified() { 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/DeliveryMethodDescriptionNss.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,85 @@ +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 + // ======== + /** + * @deprecated This method is INTERNAL! Please use cb.query().queryXxx().setXxx_Equal()... + */ + public DeliveryMethodDescriptionCQ query() { + return _query; + } + + /** + * 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; + } + + // =================================================================================== + // 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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/cbean/nss/DeliveryMethodNss.java 2007-08-26 13:47:59 UTC (rev 497) @@ -0,0 +1,64 @@ +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 + // ======== + /** + * @deprecated This method is INTERNAL! Please use cb.query().queryXxx().setXxx_Equal()... + */ + public DeliveryMethodCQ query() { + return _query; + } + + /** + * 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/exbhv/DeliveryMethodBhv.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodBhv.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodBhv.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exbhv/DeliveryMethodDescriptionBhv.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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/exdao/DeliveryMethodDao.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDao.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDao.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exdao/DeliveryMethodDescriptionDao.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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/exentity/DeliveryMethod.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethod.java 2007-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethod.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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-08-26 13:46:23 UTC (rev 496) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/exentity/DeliveryMethodDescription.java 2007-08-26 13:47:59 UTC (rev 497) @@ -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