com.ibm.itim.dataservices.model.domain
Class AccountFactory
java.lang.Object
|
+--com.ibm.itim.dataservices.model.domain.AccountFactory
- public class AccountFactory
- extends java.lang.Object
Factory class for creating accounts in the data store.
- See Also:
AccountEntity
Constructor Summary |
AccountFactory()
Default constructor for the factory. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccountFactory
public AccountFactory()
- Default constructor for the factory.
create
public AccountEntity create(PersonEntity owner,
ServiceEntity service,
Account account)
throws ModelCommunicationException,
ModelCreationException
- Creates an account in the data store with the given
value object to define the account's attributes.
- Parameters:
account
- Account value object to use for creation.service
- ServiceEntity that hosts the account.owner
- PersonEntity representing the owner of the account.- Returns:
- AccountEntity representing account saved in data store.
- Throws:
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.
create
public AccountEntity create(PersonEntity owner,
ServiceEntity service,
Account account,
ObjectProfile profile)
throws ModelCommunicationException,
ModelCreationException
- Creates an account in the data store with the given
value object to define the account's attributes.
- Parameters:
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.- Returns:
- AccountEntity representing account saved in data store.
- Throws:
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.
create
public AccountEntity create(ServiceEntity service,
Account account)
throws ModelCommunicationException,
ModelCreationException
- Creates an orphan account in the data store with the given
value object to define the account's attributes.
- Parameters:
service
- ServiceEntity that hosts the account.account
- Account value object to use for creation.- Returns:
- AccountEntity representing account saved in data store.
- Throws:
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.
create
public AccountEntity create(ServiceEntity service,
Account account,
ObjectProfile profile)
throws ModelCommunicationException,
ModelCreationException
- Creates an orphan account in the data store with the given
value object to define the account's attributes.
- Parameters:
service
- ServiceEntity that hosts the account.account
- Account value object to use for creation.profile
- ObjectProfile profile of a new account.- Returns:
- AccountEntity representing account saved in data store.
- Throws:
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.