|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxma.dsl.platform.dao.impl.GenericDaoHibernateImpl<Order,java.lang.String>
org.openxma.dsl.reference.dao.impl.AbstractOrderDaoImpl
public abstract class AbstractOrderDaoImpl
OrderDao| Field Summary |
|---|
| Fields inherited from class org.openxma.dsl.platform.dao.impl.GenericDaoHibernateImpl |
|---|
argumentTypeFactory, dataFieldMaxValueIncrementer, logger, namingStrategy, sessionFactory, type |
| Fields inherited from interface org.openxma.dsl.reference.dao.OrderDao |
|---|
AMOUNT_ASC, DATE_ASC |
| Constructor Summary | |
|---|---|
AbstractOrderDaoImpl()
|
|
| Method Summary | |
|---|---|
Order |
create()
Factory method to create an empty OrderDao entity with an already assigned identifier. |
Order |
create(Customer customer,
OrderNumber orderOrderNumber,
java.lang.String storeId,
java.util.Date placementDate,
java.lang.String orderState,
java.lang.Double totalAmount)
Factory method to create an empty OrderDao taking all not null attributes. |
Order |
createAndSave(Customer customer,
OrderNumber orderOrderNumber,
java.lang.String storeId,
java.util.Date placementDate,
java.lang.String orderState,
java.lang.Double totalAmount)
Factory method to create and save an empty OrderDao taking all not null attributes. |
Order |
createEntity(java.lang.Object context)
|
Order |
findByCustomerLastNameOrOrderNumber(java.lang.String customerLastName,
OrderNumber orderNumber)
Execute a query based on the given attributes. |
Order |
findByCustomerOrOrderNumber(java.lang.String customerLastName,
OrderNumber orderNumber)
Execute a query based on the given attributes. |
Order |
findByCustomerStoreAndDate(java.lang.String customerOid,
java.lang.String storeId,
java.util.Date placementDate)
Execute a query based on the given attributes. |
Order |
findByFindByStateAndDate(java.lang.String orderState,
java.util.Date placementDate,
QuantityQuery quantityQuery)
Execute a query based on the given attributes. |
Order |
findByOrderNumber(OrderNumber orderNumber)
Execute a query based on the given attributes. |
Order |
findByOrderNumberAndCustomerFirstName(OrderNumber orderNumber,
java.lang.String customerLastName)
Execute a query based on the given attributes. |
Order |
loadByOrderNk(java.lang.String customerFirstName,
java.lang.String customerLastName,
java.util.Date customerBirthDate,
java.lang.String storeId,
java.util.Date placementDate)
Return the persistent instance of the Order entity class with the given natural identifier or null if not found. |
Order |
loadByOrderUkOrderNumber(Customer customer,
OrderNumber orderOrderNumber)
Return the persistent instance of the Order entity class with the given unique-key or null if not found. |
Order |
loadByOrderUkOrderNumber(java.lang.String customerOid,
OrderNumber orderNumber)
Return the persistent instance of the Order entity class with the given unique-key or null if not found. |
void |
setDataFieldMaxValueIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer dataFieldMaxValueIncrementer)
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
|
| Methods inherited from class org.openxma.dsl.platform.dao.impl.GenericDaoHibernateImpl |
|---|
applyPagingParameters, delete, delete, evict, executeFinder, find, findAll, findByExample, get, iterateFinder, load, merge, read, refresh, saveOrUpdate, setArgumentTypeFactory, setNamingStrategy, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openxma.dsl.reference.dao.OrderDao |
|---|
findAllOrderStatesBetweenDate, readOrderStateByCustomerAndDate |
| Methods inherited from interface org.openxma.dsl.platform.dao.GenericDao |
|---|
delete, delete, evict, find, findAll, findByExample, get, load, merge, refresh, saveOrUpdate, update |
| Constructor Detail |
|---|
public AbstractOrderDaoImpl()
| Method Detail |
|---|
public void setSessionFactory(@Qualifier(value="default")
org.hibernate.SessionFactory sessionFactory)
setSessionFactory in class org.openxma.dsl.platform.dao.impl.GenericDaoHibernateImpl<Order,java.lang.String>sessionFactory - the sessionFactory to set
public void setDataFieldMaxValueIncrementer(@Qualifier(value="default")
org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer dataFieldMaxValueIncrementer)
setDataFieldMaxValueIncrementer in class org.openxma.dsl.platform.dao.impl.GenericDaoHibernateImpl<Order,java.lang.String>dataFieldMaxValueIncrementer - the dataFieldMaxValueIncrementer to setpublic Order createEntity(java.lang.Object context)
createEntity in interface org.openxma.dsl.platform.dao.EntityFactory<Order>context - the context for the object creation
public Order create()
OrderDaoOrderDao entity with an already assigned identifier.
The advantage of this approach, coupled with the fact that we're using the id for equals,
is that equality test's are immediately possible and therefore independent from the persistence state
of the entity. This in contrast to other solutions where auto generated Keys are used
which must wait until the object is persisted or differentiate between transient and managed states.
create in interface OrderDaocreate in class org.openxma.dsl.platform.dao.impl.GenericDaoHibernateImpl<Order,java.lang.String>OrderDao entity with an already assigned identifier.
public Order create(Customer customer,
OrderNumber orderOrderNumber,
java.lang.String storeId,
java.util.Date placementDate,
java.lang.String orderState,
java.lang.Double totalAmount)
OrderDaoOrderDao taking all not null attributes.
create in interface OrderDaoOrderDao entity with the given natural identifier and not null attributes set.
public Order createAndSave(Customer customer,
OrderNumber orderOrderNumber,
java.lang.String storeId,
java.util.Date placementDate,
java.lang.String orderState,
java.lang.Double totalAmount)
OrderDaoOrderDao taking all not null attributes.
createAndSave in interface OrderDaoOrderDao entity with the given natural identifier and not null attributes set.
public Order loadByOrderUkOrderNumber(Customer customer,
OrderNumber orderOrderNumber)
OrderDaonull if not found.
loadByOrderUkOrderNumber in interface OrderDaonull if not found
public Order loadByOrderNk(java.lang.String customerFirstName,
java.lang.String customerLastName,
java.util.Date customerBirthDate,
java.lang.String storeId,
java.util.Date placementDate)
OrderDaonull if not found.
loadByOrderNk in interface OrderDaonull if not found
public Order loadByOrderUkOrderNumber(java.lang.String customerOid,
OrderNumber orderNumber)
OrderDaonull if not found.
loadByOrderUkOrderNumber in interface OrderDaonull if not foundpublic Order findByOrderNumber(OrderNumber orderNumber)
OrderDao
findByOrderNumber in interface OrderDaonull if not found
public Order findByCustomerStoreAndDate(java.lang.String customerOid,
java.lang.String storeId,
java.util.Date placementDate)
OrderDao
findByCustomerStoreAndDate in interface OrderDaonull if not found
public Order findByCustomerLastNameOrOrderNumber(java.lang.String customerLastName,
OrderNumber orderNumber)
OrderDao
findByCustomerLastNameOrOrderNumber in interface OrderDaonull if not found
public Order findByCustomerOrOrderNumber(java.lang.String customerLastName,
OrderNumber orderNumber)
OrderDao
findByCustomerOrOrderNumber in interface OrderDaonull if not found
public Order findByOrderNumberAndCustomerFirstName(OrderNumber orderNumber,
java.lang.String customerLastName)
OrderDao
findByOrderNumberAndCustomerFirstName in interface OrderDaonull if not found
public Order findByFindByStateAndDate(java.lang.String orderState,
java.util.Date placementDate,
QuantityQuery quantityQuery)
OrderDao
findByFindByStateAndDate in interface OrderDaonull if not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||