org.opencrx.kernel.contract1.jmi1
Interface AbstractContract

All Superinterfaces:
AbstractContract, AddressContainer, Assignable, DeliveryRequestContainer, DepotReferenceHolder, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, SecureObject, ShippingDetail
All Known Subinterfaces:
Invoice, Lead, Opportunity, Quote, SalesOrder

public interface AbstractContract
extends AbstractContract, Assignable, SecureObject, AddressContainer, DeliveryRequestContainer, ShippingDetail, DepotReferenceHolder

Abstract class AbstractContract


Method Summary
 CreatePositionResult createPosition(CreatePositionParams params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 CreatePositionResult createPosition(String name, Uom priceUom, Date pricingDate, PricingRule pricingRule, Product product, BigDecimal quantity, Uom uom)
           
 Account getBroker()
          Retrieves the value for the reference broker.
 CalculationRule getCalcRule()
          Retrieves the value for the reference calcRule.
 Account getCustomer()
          Retrieves the value for the reference customer.
 AbstractContract getOrigin()
          Retrieves the value for the reference origin.
 PositionModification getPositionModification(boolean idIsPersistent, String id)
          Retrieves the value for the reference positionModification for the specified qualifier attribute value.
<T extends PositionModification>
List<T>
getPositionModification(PositionModificationQuery query)
          Retrieves the value for the reference positionModification for the specified query.
 PositionModification getPositionModification(String id)
          Retrieves the value for the reference positionModification for the specified qualifier attribute value.
 PricingRule getPricingRule()
          Retrieves the value for the reference pricingRule.
<T extends AbstractRemovedPosition>
List<T>
getRemovedPosition(AbstractRemovedPositionQuery query)
          Retrieves the value for the reference removedPosition for the specified query.
 AbstractRemovedPosition getRemovedPosition(boolean idIsPersistent, String id)
          Retrieves the value for the reference removedPosition for the specified qualifier attribute value.
 AbstractRemovedPosition getRemovedPosition(String id)
          Retrieves the value for the reference removedPosition for the specified qualifier attribute value.
 Account getSalesRep()
          Retrieves the value for the reference salesRep.
 Account getSupplier()
          Retrieves the value for the reference supplier.
 org.openmdx.base.jmi1.Void removePendingInventoryBookings()
           
 org.openmdx.base.jmi1.Void removePendingInventoryBookings(org.openmdx.base.jmi1.Void params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 org.openmdx.base.jmi1.Void reprice()
           
 org.openmdx.base.jmi1.Void reprice(org.openmdx.base.jmi1.Void params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 void setBroker(Account broker)
          Sets a new value for the reference broker.
 void setCalcRule(CalculationRule calcRule)
          Sets a new value for the reference calcRule.
 void setCustomer(Account customer)
          Sets a new value for the reference customer.
 void setOrigin(AbstractContract origin)
          Sets a new value for the reference origin.
 void setPricingRule(PricingRule pricingRule)
          Sets a new value for the reference pricingRule.
 void setSalesRep(Account salesRep)
          Sets a new value for the reference salesRep.
 void setSupplier(Account supplier)
          Sets a new value for the reference supplier.
 UpdateInventoryResult updateInventory()
           
 UpdateInventoryResult updateInventory(org.openmdx.base.jmi1.Void params)
          Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the non-struct signature.
.
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.AbstractContract
getActiveOn, getActivity, getCancelOn, getClosedOn, getCompetitor, getContact, getContractCurrency, getContractLanguage, getContractNumber, getContractState, getDescription, getExpiresOn, getInventoryCb, getName, getPaymentTerms, getPositionModification, getPricingDate, getPricingState, getPriority, getRemovedPosition, getTotalAmount, getTotalAmountIncludingTax, getTotalBaseAmount, getTotalDiscountAmount, getTotalSalesCommission, getTotalTaxAmount, setActiveOn, setCancelOn, setClosedOn, setContractCurrency, setContractLanguage, setContractNumber, setContractState, setDescription, setExpiresOn, setName, setPaymentTerms, setPricingDate, setPriority
 
Methods inherited from interface org.opencrx.kernel.base.jmi1.Assignable
assignToMe, assignToMe
 
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.contract1.jmi1.AddressContainer
addAddress, getAddress, getAddress, getAddress
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.AddressContainer
addAddress, getAddress
 
Methods inherited from interface org.opencrx.kernel.contract1.jmi1.DeliveryRequestContainer
addDeliveryRequest, getDeliveryRequest, getDeliveryRequest, getDeliveryRequest
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.DeliveryRequestContainer
addDeliveryRequest, getDeliveryRequest
 
Methods inherited from interface org.opencrx.kernel.contract1.jmi1.ShippingDetail
getCarrier, setCarrier
 
Methods inherited from interface org.opencrx.kernel.contract1.cci2.ShippingDetail
getGiftMessage, getShippingInstructions, getShippingMethod, getShippingTrackingNumber, isGift, setGift, setGiftMessage, setShippingInstructions, setShippingMethod, setShippingTrackingNumber
 
Methods inherited from interface org.opencrx.kernel.depot1.jmi1.DepotReferenceHolder
addDepotReference, getDepotReference, getDepotReference, getDepotReference
 
Methods inherited from interface org.opencrx.kernel.depot1.cci2.DepotReferenceHolder
addDepotReference, getDepotReference
 
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

getBroker

Account getBroker()
Retrieves the value for the reference broker.

Specified by:
getBroker in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setBroker

void setBroker(Account broker)
Sets a new value for the reference broker.

Specified by:
setBroker in interface AbstractContract
Parameters:
broker - The non-null new value for this reference.

getCalcRule

CalculationRule getCalcRule()
Retrieves the value for the reference calcRule.

Specified by:
getCalcRule in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setCalcRule

void setCalcRule(CalculationRule calcRule)
Sets a new value for the reference calcRule.

Specified by:
setCalcRule in interface AbstractContract
Parameters:
calcRule - The non-null new value for this reference.

createPosition

CreatePositionResult createPosition(CreatePositionParams 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

createPosition

CreatePositionResult createPosition(String name,
                                    Uom priceUom,
                                    Date pricingDate,
                                    PricingRule pricingRule,
                                    Product product,
                                    BigDecimal quantity,
                                    Uom uom)
Specified by:
createPosition in interface AbstractContract

getCustomer

Account getCustomer()
Retrieves the value for the reference customer.

Specified by:
getCustomer in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setCustomer

void setCustomer(Account customer)
Sets a new value for the reference customer.

Specified by:
setCustomer in interface AbstractContract
Parameters:
customer - The non-null new value for this reference.

getOrigin

AbstractContract getOrigin()
Retrieves the value for the reference origin.

Specified by:
getOrigin in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setOrigin

void setOrigin(AbstractContract origin)
Sets a new value for the reference origin.

Specified by:
setOrigin in interface AbstractContract
Parameters:
origin - The non-null new value for this reference.

getPositionModification

<T extends PositionModification> List<T> getPositionModification(PositionModificationQuery query)
Retrieves the value for the reference positionModification 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.

getPositionModification

PositionModification getPositionModification(boolean idIsPersistent,
                                             String id)
Retrieves the value for the reference positionModification for the specified qualifier attribute value.

Specified by:
getPositionModification in interface AbstractContract
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

getPositionModification

PositionModification getPositionModification(String id)
Retrieves the value for the reference positionModification for the specified qualifier attribute value.

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

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

getPricingRule

PricingRule getPricingRule()
Retrieves the value for the reference pricingRule.

Specified by:
getPricingRule in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setPricingRule

void setPricingRule(PricingRule pricingRule)
Sets a new value for the reference pricingRule.

Specified by:
setPricingRule in interface AbstractContract
Parameters:
pricingRule - The non-null new value for this reference.

removePendingInventoryBookings

org.openmdx.base.jmi1.Void removePendingInventoryBookings(org.openmdx.base.jmi1.Void 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

removePendingInventoryBookings

org.openmdx.base.jmi1.Void removePendingInventoryBookings()
Specified by:
removePendingInventoryBookings in interface AbstractContract

getRemovedPosition

<T extends AbstractRemovedPosition> List<T> getRemovedPosition(AbstractRemovedPositionQuery query)
Retrieves the value for the reference removedPosition 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.

getRemovedPosition

AbstractRemovedPosition getRemovedPosition(boolean idIsPersistent,
                                           String id)
Retrieves the value for the reference removedPosition for the specified qualifier attribute value.

Specified by:
getRemovedPosition in interface AbstractContract
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

getRemovedPosition

AbstractRemovedPosition getRemovedPosition(String id)
Retrieves the value for the reference removedPosition for the specified qualifier attribute value.

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

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

reprice

org.openmdx.base.jmi1.Void reprice(org.openmdx.base.jmi1.Void 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

reprice

org.openmdx.base.jmi1.Void reprice()
Specified by:
reprice in interface AbstractContract

getSalesRep

Account getSalesRep()
Retrieves the value for the reference salesRep.

Specified by:
getSalesRep in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setSalesRep

void setSalesRep(Account salesRep)
Sets a new value for the reference salesRep.

Specified by:
setSalesRep in interface AbstractContract
Parameters:
salesRep - The non-null new value for this reference.

getSupplier

Account getSupplier()
Retrieves the value for the reference supplier.

Specified by:
getSupplier in interface AbstractContract
Returns:
The – possibly null – value for this reference.

setSupplier

void setSupplier(Account supplier)
Sets a new value for the reference supplier.

Specified by:
setSupplier in interface AbstractContract
Parameters:
supplier - The non-null new value for this reference.

updateInventory

UpdateInventoryResult updateInventory(org.openmdx.base.jmi1.Void 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

updateInventory

UpdateInventoryResult updateInventory()
Specified by:
updateInventory in interface AbstractContract


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.