|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.dataservices.model.domain.AccountFactory
Factory class for creating accounts in the data store.
AccountEntity
Constructor Summary | |
---|---|
AccountFactory()
Default constructor for the factory. |
Method Summary | |
---|---|
AccountEntity |
create(PersonEntity owner,
ServiceEntity service,
Account account)
Creates an account in the data store with the given value object to define the account's attributes. |
AccountEntity |
create(PersonEntity owner,
ServiceEntity service,
Account account,
ObjectProfile profile)
Creates an account in the data store with the given value object to define the account's attributes. |
AccountEntity |
create(ServiceEntity service,
Account account)
Creates an orphan account in the data store with the given value object to define the account's attributes. |
AccountEntity |
create(ServiceEntity service,
Account account,
ObjectProfile profile)
Creates an orphan account in the data store with the given value object to define the account's attributes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AccountFactory()
Method Detail |
public AccountEntity create(PersonEntity owner, ServiceEntity service, Account account) throws ModelCommunicationException, ModelCreationException
account
- Account value object to use for creation.service
- ServiceEntity that hosts the account.owner
- PersonEntity representing the owner of the account.
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ModelCreationException
- Thrown if unable to create the
entity in the data store. Most likely due to some sort of
schema violation caused by improper attributes set in the
value object.public AccountEntity create(PersonEntity owner, ServiceEntity service, Account account, ObjectProfile profile) throws ModelCommunicationException, ModelCreationException
account
- Account value object to use for creation.service
- ServiceEntity that hosts the account.owner
- PersonEntity representing the owner of the account.profile
- ObjectProfile representing the profile use for account creation.
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ModelCreationException
- Thrown if unable to create the
entity in the data store. Most likely due to some sort of
schema violation caused by improper attributes set in the
value object.public AccountEntity create(ServiceEntity service, Account account) throws ModelCommunicationException, ModelCreationException
service
- ServiceEntity that hosts the account.account
- Account value object to use for creation.
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ModelCreationException
- Thrown if unable to create the
entity in the data store. Most likely due to some sort of
schema violation caused by improper attributes set in the
value object.public AccountEntity create(ServiceEntity service, Account account, ObjectProfile profile) throws ModelCommunicationException, ModelCreationException
service
- ServiceEntity that hosts the account.account
- Account value object to use for creation.profile
- ObjectProfile profile of a new account.
ModelCommunicationException
- Thrown if unable to communicate
with the data store.
ModelCreationException
- Thrown if unable to create the
entity in the data store. Most likely due to some sort of
schema violation caused by improper attributes set in the
value object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |