|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PrivateCustomerDao
Represents a Data Access Object, as defined in the Core J2EE Pattern Catalog (see http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html), to abstract and encapsulate all access to entity PrivateCustomerDao.
PrivateCustomerDao| Method Summary | |
|---|---|
PrivateCustomer |
create()
Factory method to create an empty PrivateCustomerDao entity with an already assigned identifier. |
PrivateCustomer |
create(java.lang.String customerFirstName,
java.lang.String customerLastName,
java.lang.String emailAddress,
java.util.Date customerBirthDate,
CreditCardInfo ccInfo)
Factory method to create an empty PrivateCustomerDao taking all not null attributes. |
PrivateCustomer |
createAndSave(java.lang.String customerFirstName,
java.lang.String customerLastName,
java.lang.String emailAddress,
java.util.Date customerBirthDate,
CreditCardInfo ccInfo)
Factory method to create and save an empty PrivateCustomerDao taking all not null attributes. |
| Methods inherited from interface org.openxma.dsl.platform.dao.GenericDao |
|---|
delete, delete, evict, find, findAll, findByExample, get, load, merge, refresh, saveOrUpdate, update |
| Methods inherited from interface org.openxma.dsl.platform.dao.EntityFactory |
|---|
createEntity |
| Method Detail |
|---|
PrivateCustomer create()
PrivateCustomerDao 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.
PrivateCustomerDao entity with an already assigned identifier.
PrivateCustomer create(java.lang.String customerFirstName,
java.lang.String customerLastName,
java.lang.String emailAddress,
java.util.Date customerBirthDate,
CreditCardInfo ccInfo)
PrivateCustomerDao taking all not null attributes.
firstName - lastName - emailAddress - birthDate - ccInfo -
PrivateCustomerDao entity with the given natural identifier and not null attributes set.
PrivateCustomer createAndSave(java.lang.String customerFirstName,
java.lang.String customerLastName,
java.lang.String emailAddress,
java.util.Date customerBirthDate,
CreditCardInfo ccInfo)
PrivateCustomerDao taking all not null attributes.
firstName - lastName - emailAddress - birthDate - ccInfo -
PrivateCustomerDao entity with the given natural identifier and not null attributes set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||