org.opencrx.kernel.account1.jmi1
Interface Account

All Superinterfaces:
Account, AlertSender, Auditee, org.openmdx.base.cci2.BasicObject, Cloneable, org.openmdx.base.cci2.ContextCapable, CrxObject, org.openmdx.base.cci2.ExtentCapable, GenericAccount, Importer, Indexed, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, SecureObject, org.openmdx.compatibility.view1.cci2.ViewCapable, XmlExporter
All Known Subinterfaces:
AbstractGroup, Contact, Group, LegalEntity, UnspecifiedAccount

public interface Account
extends Account, CrxObject, GenericAccount

Abstract class Account


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.account1.cci2.Account
Account.Identity
 
Method Summary
 void addAddress(boolean idIsPersistent, String id, AccountAddress address)
          Adds the specified element to the set of the values for the reference address.
 void addMember(boolean idIsPersistent, String id, Member member)
          Adds the specified element to the set of the values for the reference member.
 CreateInvoiceResult createInvoice(CreateInvoiceParams params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 CreateInvoiceResult createInvoice(Invoice basedOn, String description, String name)
           
 CreateLeadResult createLead(CreateLeadParams params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 CreateLeadResult createLead(Lead basedOn, String description, String name, String nextStep)
           
 CreateOpportunityResult createOpportunity(CreateOpportunityParams params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 CreateOpportunityResult createOpportunity(Opportunity basedOn, String description, String name)
           
 CreateQuoteResult createQuote(CreateQuoteParams params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 CreateQuoteResult createQuote(Quote basedOn, String description, String name)
           
 CreateSalesOrderResult createSalesOrder(CreateSalesOrderParams params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 CreateSalesOrderResult createSalesOrder(SalesOrder basedOn, String description, String name)
           
 List<Short> getAccountCategory()
          Retrieves a list containing all the elements for the attribute accountCategory.
<T extends AccountMembership>
List<T>
getAccountMembership(AccountMembershipQuery query)
          Retrieves the value for the reference accountMembership for the specified query.
 AccountMembership getAccountMembership(boolean idIsPersistent, String id)
          Retrieves the value for the reference accountMembership for the specified qualifier attribute value.
 AccountMembership getAccountMembership(String id)
          Retrieves the value for the reference accountMembership for the specified qualifier attribute value.
 List<Short> getAccountType()
          Retrieves a list containing all the elements for the attribute accountType.
<T extends AccountAddress>
List<T>
getAddress(AccountAddressQuery query)
          Retrieves the value for the reference address for the specified query.
 AccountAddress getAddress(boolean idIsPersistent, String id)
          Retrieves the value for the reference address for the specified qualifier attribute value.
 AccountAddress getAddress(String id)
          Retrieves the value for the reference address for the specified qualifier attribute value.
<T extends Activity>
List<T>
getAssignedActivity(ActivityQuery query)
          Retrieves the value for the reference assignedActivity for the specified query.
 Activity getAssignedActivity(boolean idIsPersistent, String id)
          Retrieves the value for the reference assignedActivity for the specified qualifier attribute value.
 Activity getAssignedActivity(String id)
          Retrieves the value for the reference assignedActivity for the specified qualifier attribute value.
<T extends AbstractContract>
List<T>
getAssignedContract(AbstractContractQuery query)
          Retrieves the value for the reference assignedContract for the specified query.
 AbstractContract getAssignedContract(boolean idIsPersistent, String id)
          Retrieves the value for the reference assignedContract for the specified qualifier attribute value.
 AbstractContract getAssignedContract(String id)
          Retrieves the value for the reference assignedContract for the specified qualifier attribute value.
 List<Short> getBusinessType()
          Retrieves a list containing all the elements for the attribute businessType.
 Account getMaster()
          Retrieves the value for the reference master.
 Member getMember(boolean idIsPersistent, String id)
          Retrieves the value for the reference member for the specified qualifier attribute value.
<T extends Member>
List<T>
getMember(MemberQuery query)
          Retrieves the value for the reference member for the specified query.
 Member getMember(String id)
          Retrieves the value for the reference member for the specified qualifier attribute value.
 Product getProduct(boolean idIsPersistent, String id)
          Retrieves the value for the reference product for the specified qualifier attribute value.
<T extends Product>
List<T>
getProduct(ProductQuery query)
          Retrieves the value for the reference product for the specified query.
 Product getProduct(String id)
          Retrieves the value for the reference product for the specified qualifier attribute value.
 void setAccountCategory(List<Short> accountCategory)
          Clears accountCategory and adds the members of the given List.
 void setAccountType(List<Short> accountType)
          Clears accountType and adds the members of the given List.
 void setBusinessType(List<Short> businessType)
          Clears businessType and adds the members of the given List.
 void setMaster(Account master)
          Sets a new value for the reference master.
 
Methods inherited from interface org.opencrx.kernel.account1.cci2.Account
addAddress, addMember, getAccountMembership, getAccountRating, getAccountState, getAddress, getAliasName, getAssignedActivity, getAssignedContract, getContact, getDescription, getExtCode0, getExtCode1, getExtCode10, getExtCode11, getExtCode12, getExtCode13, getExtCode14, getExtCode15, getExtCode16, getExtCode17, getExtCode18, getExtCode19, getExtCode2, getExtCode3, getExtCode4, getExtCode5, getExtCode6, getExtCode7, getExtCode8, getExtCode9, getExtDate0, getExtDate1, getExtDate2, getExtDate3, getExtDate4, getExtDate5, getExtDate6, getExtDate7, getExtDate8, getExtDate9, getExtDateTime0, getExtDateTime1, getExtDateTime2, getExtDateTime3, getExtDateTime4, getExtDateTime5, getExtDateTime6, getExtDateTime7, getExtDateTime8, getExtDateTime9, getExtNumber0, getExtNumber1, getExtNumber2, getExtNumber3, getExtNumber4, getExtNumber5, getExtNumber6, getExtNumber7, getExtNumber8, getExtNumber9, getExtString0, getExtString1, getExtString2, getExtString3, getExtString4, getExtString5, getExtString6, getExtString7, getExtString8, getExtString9, getFullName, getMember, getPartner, getProduct, isExtBoolean0, isExtBoolean1, isExtBoolean2, isExtBoolean3, isExtBoolean4, isExtBoolean5, isExtBoolean6, isExtBoolean7, isExtBoolean8, isExtBoolean9, setAccountCategory, setAccountRating, setAccountState, setAccountType, setAliasName, setBusinessType, setDescription, setExtBoolean0, setExtBoolean1, setExtBoolean2, setExtBoolean3, setExtBoolean4, setExtBoolean5, setExtBoolean6, setExtBoolean7, setExtBoolean8, setExtBoolean9, setExtCode0, setExtCode1, setExtCode10, setExtCode11, setExtCode12, setExtCode13, setExtCode14, setExtCode15, setExtCode16, setExtCode17, setExtCode18, setExtCode19, setExtCode2, setExtCode3, setExtCode4, setExtCode5, setExtCode6, setExtCode7, setExtCode8, setExtCode9, setExtDate0, setExtDate1, setExtDate2, setExtDate3, setExtDate4, setExtDate5, setExtDate6, setExtDate7, setExtDate8, setExtDate9, setExtDateTime0, setExtDateTime1, setExtDateTime2, setExtDateTime3, setExtDateTime4, setExtDateTime5, setExtDateTime6, setExtDateTime7, setExtDateTime8, setExtDateTime9, setExtNumber0, setExtNumber1, setExtNumber2, setExtNumber3, setExtNumber4, setExtNumber5, setExtNumber6, setExtNumber7, setExtNumber8, setExtNumber9, setExtString0, setExtString1, setExtString2, setExtString3, setExtString4, setExtString5, setExtString6, setExtString7, setExtString8, setExtString9
 
Methods inherited from interface org.opencrx.kernel.generic.jmi1.CrxObject
addAdditionalExternalLink, addAttachedDocument, addMedia, addNote, addPropertySet, addRating, getAdditionalExternalLink, getAdditionalExternalLink, getAdditionalExternalLink, getAttachedDocument, getAttachedDocument, getAttachedDocument, getCategory, getExternalLink, getMedia, getMedia, getMedia, getNote, getNote, getNote, getPropertySet, getPropertySet, getPropertySet, getPropertySetEntry, getPropertySetEntry, getPropertySetEntry, getRating, getRating, getRating, getUserBoolean4, getUserCode4, getUserDate4, getUserDateTime4, getUserNumber4, getUserString4, setCategory, setExternalLink, setUserBoolean4, setUserCode4, setUserDate4, setUserDateTime4, setUserNumber4, setUserString4
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.CrxObject
addAdditionalExternalLink, addAttachedDocument, addMedia, addNote, addPropertySet, addRating, getAdditionalExternalLink, getAttachedDocument, getDisabledReason, getMedia, getNote, getPropertySet, getPropertySetEntry, getRating, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserString0, getUserString1, getUserString2, getUserString3, isDisabled, isUserBoolean0, isUserBoolean1, isUserBoolean2, isUserBoolean3, setCategory, setDisabled, setDisabledReason, setExternalLink, setUserBoolean0, setUserBoolean1, setUserBoolean2, setUserBoolean3, setUserBoolean4, setUserCode0, setUserCode1, setUserCode2, setUserCode3, setUserCode4, setUserDate0, setUserDate1, setUserDate2, setUserDate3, setUserDate4, setUserDateTime0, setUserDateTime1, setUserDateTime2, setUserDateTime3, setUserDateTime4, setUserNumber0, setUserNumber1, setUserNumber2, setUserNumber3, setUserNumber4, setUserString0, setUserString1, setUserString2, setUserString3, setUserString4
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.AlertSender
sendAlert, sendAlert
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Auditee
getAudit, getAudit, getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Auditee
getAudit
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Cloneable
clone_, clone_
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Importer
importItem, importItem
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Indexed
getIndexEntry, getIndexEntry, getIndexEntry, updateIndex, updateIndex
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Indexed
getIndexEntry
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.SecureObject
addOwningGroup, addOwningGroup, checkPermissions, checkPermissions, getAccessGrantedByParent, getOwner, getOwningUser, removeAllOwningGroup, removeAllOwningGroup, removeOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevel, setOwningUser, setOwningUser, setOwningUser
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwningGroup, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.XmlExporter
exportXml, exportXml
 
Methods inherited from interface org.openmdx.base.jmi1.BasicObject
getCreatedBy, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getModifiedAt
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.jmi1.ViewCapable
getView, getView, getView
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getAccountCategory

List<Short> getAccountCategory()
Retrieves a list containing all the elements for the attribute accountCategory.

Specified by:
getAccountCategory in interface Account
Returns:
A list containing all elements for this attribute.

setAccountCategory

void setAccountCategory(List<Short> accountCategory)
Clears accountCategory and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(accountCategory);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
accountCategory - collection to be copied.

getAccountMembership

<T extends AccountMembership> List<T> getAccountMembership(AccountMembershipQuery query)
Retrieves the value for the reference accountMembership for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getAccountMembership

AccountMembership getAccountMembership(boolean idIsPersistent,
                                       String id)
Retrieves the value for the reference accountMembership for the specified qualifier attribute value.

Specified by:
getAccountMembership in interface Account
Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getAccountMembership

AccountMembership getAccountMembership(String id)
Retrieves the value for the reference accountMembership for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getAccountMembership(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getAccountType

List<Short> getAccountType()
Retrieves a list containing all the elements for the attribute accountType.

Specified by:
getAccountType in interface Account
Returns:
A list containing all elements for this attribute.

setAccountType

void setAccountType(List<Short> accountType)
Clears accountType and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(accountType);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
accountType - collection to be copied.

getAddress

<T extends AccountAddress> List<T> getAddress(AccountAddressQuery query)
Retrieves the value for the reference address for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getAddress

AccountAddress getAddress(boolean idIsPersistent,
                          String id)
Retrieves the value for the reference address for the specified qualifier attribute value.

Specified by:
getAddress in interface Account
Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getAddress

AccountAddress getAddress(String id)
Retrieves the value for the reference address for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getAddress(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

addAddress

void addAddress(boolean idIsPersistent,
                String id,
                AccountAddress address)
Adds the specified element to the set of the values for the reference address.

Note: This is an extension to the JMI 1 standard.

Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
address - The element to be appended.

getAssignedActivity

<T extends Activity> List<T> getAssignedActivity(ActivityQuery query)
Retrieves the value for the reference assignedActivity for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getAssignedActivity

Activity getAssignedActivity(boolean idIsPersistent,
                             String id)
Retrieves the value for the reference assignedActivity for the specified qualifier attribute value.

Specified by:
getAssignedActivity in interface Account
Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getAssignedActivity

Activity getAssignedActivity(String id)
Retrieves the value for the reference assignedActivity for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getAssignedActivity(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getAssignedContract

<T extends AbstractContract> List<T> getAssignedContract(AbstractContractQuery query)
Retrieves the value for the reference assignedContract for the specified query. Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should substitute this method with java.jdo.Query

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

getAssignedContract

AbstractContract getAssignedContract(boolean idIsPersistent,
                                     String id)
Retrieves the value for the reference assignedContract for the specified qualifier attribute value.

Specified by:
getAssignedContract in interface Account
Parameters:
idIsPersistent - Defines whether value for the qualifier is persistent or not
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getAssignedContract

AbstractContract getAssignedContract(String id)
Retrieves the value for the reference assignedContract for the specified qualifier attribute value.

This method is equivalent to the preferred invocation getAssignedContract(false,id).

Parameters:
id - The value for the qualifier attribute that qualifies this reference.
Returns:
The possibly null value for this qualifier

getBusinessType

List<Short> getBusinessType()
Retrieves a list containing all the elements for the attribute businessType.

Specified by:
getBusinessType in interface Account
Returns:
A list containing all elements for this attribute.

setBusinessType

void setBusinessType(List<Short> businessType)
Clears businessType and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(businessType);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
businessType - collection to be copied.

createInvoice

CreateInvoiceResult createInvoice(CreateInvoiceParams params)
                                  throws RefException
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.

Throws:
RefException

createInvoice

CreateInvoiceResult createInvoice(Invoice basedOn,
                                  String description,
                                  String name)
Specified by:
createInvoice in interface Account

createLead

CreateLeadResult createLead(CreateLeadParams params)
                            throws RefException
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.

Throws:
RefException

createLead

CreateLeadResult createLead(Lead basedOn,
                            String description,
                            String name,
                            String nextStep)
Specified by:
createLead in interface Account

createOpportunity

CreateOpportunityResult createOpportunity(CreateOpportunityParams params)
                                          throws RefException
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you sho