org.opencrx.kernel.product1.jdo2
Class PriceLevel

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.opencrx.kernel.product1.jdo2.PriceLevel
All Implemented Interfaces:
Serializable, AbstractFilterAccount, AbstractFilter, AlertSender, Auditee, Cloneable, Importer, Indexed, SecureObject, SubscriptionTarget, XmlExporter, CrxObject, AbstractFilterProduct, PriceLevel, org.openmdx.base.cci2.BasicObject, org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.ExtentCapable, org.openmdx.compatibility.view1.cci2.ViewCapable

public class PriceLevel
extends org.w3c.jdo2.AbstractObject
implements PriceLevel

Class PriceLevel

See Also:
Serialized Form

Nested Class Summary
static class PriceLevel.Identity
          The object's application identity
static class PriceLevel.Slice
           
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.BLOB, org.w3c.jdo2.AbstractObject.CLOB, org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Field Summary
static List<String> BASE_CLASS
          Define this class as base class
static List<String> CLASS
          Define the model class org::opencrx::kernel::product1::PriceLevel
 
Constructor Summary
PriceLevel()
           
 
Method Summary
<T extends ModifySecureObjectResult>
T
addOwningGroup(PrincipalGroup group, short mode)
           
<T extends org.openmdx.base.cci2.Void>
T
addSubscription()
           
<T extends org.openmdx.base.cci2.Void>
T
addSubscriptionForParent()
           
<T extends ProcessPricesResult>
T
calculatePrices(Short processingMode)
           
<T extends CloneResult>
T
clone_(String referenceFilter)
           
<T extends ProcessPricesResult>
T
clonePriceLevel(String nameReplacementRegex, String nameReplacementValue, Short processingMode, Date validFrom, Date validTo)
           
<T extends CountFilteredObjectsResult>
T
countFilteredAccount()
           
<T extends CountFilteredObjectsResult>
T
countFilteredProduct()
           
<T extends ProcessPricesResult>
T
createInitialPrices(Uom priceUom, short processingMode)
           
<T extends ExportResult>
T
exportXml(String attributeFilter, String referenceFilter)
           
 org.openmdx.base.cci2.BasicObject getAccessGrantedByParent()
          Retrieves the value for the reference accessGrantedByParent.
 short getAccessLevelBrowse()
          Retrieves the value for the attribute accessLevelBrowse.
 short getAccessLevelDelete()
          Retrieves the value for the attribute accessLevelDelete.
 short getAccessLevelUpdate()
          Retrieves the value for the attribute accessLevelUpdate.
<T extends AccountFilterProperty>
Collection<T>
getAccountFilterProperty()
          Retrieves a set containing all the elements for the reference accountFilterProperty.
<T extends AdditionalExternalLink>
Collection<T>
getAdditionalExternalLink()
          Retrieves a set containing all the elements for the reference additionalExternalLink.
<T extends AccountAssignment>
Collection<T>
getAssignedAccount()
          Retrieves a set containing all the elements for the reference assignedAccount.
<T extends DocumentAttachment>
Collection<T>
getAttachedDocument()
          Retrieves a set containing all the elements for the reference attachedDocument.
<T extends AuditEntry>
Collection<T>
getAudit()
          Retrieves a set containing all the elements for the reference audit.
 PriceLevel getBasedOn()
          Retrieves the value for the reference basedOn.
 List<String> getCategory()
           
 Date getCreatedAt()
          Retrieves the value for the attribute createdAt.
 Set<String> getCreatedBy()
           
 String getDescription()
           
 String getDisabledReason()
           
 List<URI> getExternalLink()
           
<T extends Account>
Set<T>
getFilteredAccount()
          Retrieves a set containing all the elements for the reference filteredAccount.
<T extends AbstractProduct>
Set<T>
getFilteredProduct()
          Retrieves a set containing all the elements for the reference filteredProduct.
 XRI getIdentity()
          Retrieves the value for the derived attribute identity.
<T extends IndexEntry>
Collection<T>
getIndexEntry()
          Retrieves a set containing all the elements for the reference indexEntry.
<T extends Media>
Collection<T>
getMedia()
          Retrieves a set containing all the elements for the reference media.
 Date getModifiedAt()
          Retrieves the value for the attribute modifiedAt.
 Set<String> getModifiedBy()
           
 String getName()
          Retrieves the value for the attribute name.
<T extends Note>
Collection<T>
getNote()
          Retrieves a set containing all the elements for the reference note.
 List<String> getOwner()
           
<T extends PrincipalGroup>
List<T>
getOwningGroup()
          Retrieves the Collection of objects referenced by owningGroup.
 User getOwningUser()
          Retrieves the value for the reference owningUser.
 List<Short> getPaymentMethod()
           
 short getPriceCurrency()
          Retrieves the value for the attribute priceCurrency.
<T extends PriceListEntry>
Set<T>
getPriceListEntry()
          Retrieves a set containing all the elements for the reference priceListEntry.
<T extends PriceModifier>
Collection<T>
getPriceModifier()
          Retrieves a set containing all the elements for the reference priceModifier.
 List<Short> getPriceUsage()
           
<T extends ProductFilterProperty>
Collection<T>
getProductFilterProperty()
          Retrieves a set containing all the elements for the reference productFilterProperty.
<T extends PropertySet>
Collection<T>
getPropertySet()
          Retrieves a set containing all the elements for the reference propertySet.
<T extends PropertySetEntry>
Collection<T>
getPropertySetEntry()
          Retrieves a set containing all the elements for the reference propertySetEntry.
<T extends Rating>
Collection<T>
getRating()
          Retrieves a set containing all the elements for the reference rating.
 List<Short> getShippingMethod()
           
 List<Boolean> getUserBoolean4()
           
 Short getUserCode0()
           
 Short getUserCode1()
           
 Short getUserCode2()
           
 Short getUserCode3()
           
 List<Short> getUserCode4()
           
 javax.xml.datatype.XMLGregorianCalendar getUserDate0()
           
 javax.xml.datatype.XMLGregorianCalendar getUserDate1()
           
 javax.xml.datatype.XMLGregorianCalendar getUserDate2()
           
 javax.xml.datatype.XMLGregorianCalendar getUserDate3()
           
 List<javax.xml.datatype.XMLGregorianCalendar> getUserDate4()
           
 Date getUserDateTime0()
           
 Date getUserDateTime1()
           
 Date getUserDateTime2()
           
 Date getUserDateTime3()
           
 List<Date> getUserDateTime4()
           
 BigDecimal getUserNumber0()
           
 BigDecimal getUserNumber1()
           
 BigDecimal getUserNumber2()
           
 BigDecimal getUserNumber3()
           
 List<BigDecimal> getUserNumber4()
           
 String getUserString0()
           
 String getUserString1()
           
 String getUserString2()
           
 String getUserString3()
           
 List<String> getUserString4()
           
 Date getValidFrom()
           
 Date getValidTo()
           
<T extends org.openmdx.compatibility.view1.cci2.View>
Collection<T>
getView()
          Retrieves a set containing all the elements for the reference view.
<T extends ImportResult>
T
importItem(byte[] item, String itemMimeType, String itemName, short locale)
           
 boolean isDisabled()
          Retrieves the value for the attribute disabled.
 Boolean isFinal()
           
 Boolean isUserBoolean0()
           
 Boolean isUserBoolean1()
           
 Boolean isUserBoolean2()
           
 Boolean isUserBoolean3()
           
static PriceLevel.Identity newIdentity(org.openmdx.base.cci2.Segment.Identity segment, boolean idIsPersistent, String id)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  String openmdxjdoGetObjectId()
          Retrieve the object's JDO identity key
static CloseableCollection<PriceLevel> openmdxjdoGetObjectsByParent(Segment segment)
          Navigate through an object's composite association
protected  int openmdxjdoGetSize(int field)
           
protected
<E extends org.w3c.jdo2.AbstractObject.Slice>
SortedMap<Integer,E>
openmdxjdoGetSlices()
           
protected  void openmdxjdoSetSize(int field, int size)
           
<T extends ModifySecureObjectResult>
T
removeAllOwningGroup(short mode)
           
<T extends ModifySecureObjectResult>
T
removeOwningGroup(PrincipalGroup group, short mode)
           
<T extends ProcessPricesResult>
T
removePriceLevels(short processingMode)
           
<T extends ProcessPricesResult>
T
removePrices(Short processingMode)
           
<T extends org.openmdx.base.cci2.Void>
T
removeSubscription()
           
<T extends org.openmdx.base.cci2.Void>
T
removeSubscriptionForParent()
           
<T extends org.openmdx.base.cci2.Void>
T
sendAlert(String description, short importance, String name, org.openmdx.base.cci2.BasicObject reference, String toUsers)
           
<T extends ModifySecureObjectResult>
T
setAccessLevel(short accessLevelBrowse, short accessLevelDelete, short accessLevelUpdate, short mode)
           
 void setAccessLevelBrowse(short accessLevelBrowse)
          Sets a new value for the attribute accessLevelBrowse.
 void setAccessLevelDelete(short accessLevelDelete)
          Sets a new value for the attribute accessLevelDelete.
 void setAccessLevelUpdate(short accessLevelUpdate)
          Sets a new value for the attribute accessLevelUpdate.
 void setBasedOn(PriceLevel basedOn)
          Sets a new value for the reference basedOn.
 void setCategory(String... category)
           This method is equivalent to
 void setDescription(String description)
          Sets a new value for the attribute description.
 void setDisabled(boolean disabled)
          Sets a new value for the attribute disabled.
 void setDisabledReason(String disabledReason)
          Sets a new value for the attribute disabledReason.
 void setExternalLink(URI... externalLink)
           This method is equivalent to
 void setFinal(Boolean isFinal)
          Sets a new value for the attribute isFinal.
 void setName(String name)
          Sets a new value for the attribute name.
<T extends ModifySecureObjectResult>
T
setOwningUser(short mode, User user)
           
 void setOwningUser(User owningUser)
          Sets a new value for the reference owningUser.
 void setPaymentMethod(short... paymentMethod)
           This method is equivalent to
 void setPriceCurrency(short priceCurrency)
          Sets a new value for the attribute priceCurrency.
 void setPriceUsage(short... priceUsage)
           This method is equivalent to
 void setSegment(Segment segment)
          Sets a new value for the reference segment.
 void setSegment(Segment segment, boolean idIsPersistent, String id)
          Set the object's composite association org:opencrx:kernel:product1:SegmentContainsPriceLevel.
 void setShippingMethod(short... shippingMethod)
           This method is equivalent to
 void setUserBoolean0(Boolean userBoolean0)
          Sets a new value for the attribute userBoolean0.
 void setUserBoolean1(Boolean userBoolean1)
          Sets a new value for the attribute userBoolean1.
 void setUserBoolean2(Boolean userBoolean2)
          Sets a new value for the attribute userBoolean2.
 void setUserBoolean3(Boolean userBoolean3)
          Sets a new value for the attribute userBoolean3.
 void setUserBoolean4(boolean... userBoolean4)
           This method is equivalent to
 void setUserCode0(Short userCode0)
          Sets a new value for the attribute userCode0.
 void setUserCode1(Short userCode1)
          Sets a new value for the attribute userCode1.
 void setUserCode2(Short userCode2)
          Sets a new value for the attribute userCode2.
 void setUserCode3(Short userCode3)
          Sets a new value for the attribute userCode3.
 void setUserCode4(short... userCode4)
           This method is equivalent to
 void setUserDate0(javax.xml.datatype.XMLGregorianCalendar userDate0)
          Sets a new value for the attribute userDate0.
 void setUserDate1(javax.xml.datatype.XMLGregorianCalendar userDate1)
          Sets a new value for the attribute userDate1.
 void setUserDate2(javax.xml.datatype.XMLGregorianCalendar userDate2)
          Sets a new value for the attribute userDate2.
 void setUserDate3(javax.xml.datatype.XMLGregorianCalendar userDate3)
          Sets a new value for the attribute userDate3.
 void setUserDate4(javax.xml.datatype.XMLGregorianCalendar... userDate4)
           This method is equivalent to
 void setUserDateTime0(Date userDateTime0)
          Sets a new value for the attribute userDateTime0.
 void setUserDateTime1(Date userDateTime1)
          Sets a new value for the attribute userDateTime1.
 void setUserDateTime2(Date userDateTime2)
          Sets a new value for the attribute userDateTime2.
 void setUserDateTime3(Date userDateTime3)
          Sets a new value for the attribute userDateTime3.
 void setUserDateTime4(Date... userDateTime4)
           This method is equivalent to
 void setUserNumber0(BigDecimal userNumber0)
          Sets a new value for the attribute userNumber0.
 void setUserNumber1(BigDecimal userNumber1)
          Sets a new value for the attribute userNumber1.
 void setUserNumber2(BigDecimal userNumber2)
          Sets a new value for the attribute userNumber2.
 void setUserNumber3(BigDecimal userNumber3)
          Sets a new value for the attribute userNumber3.
 void setUserNumber4(BigDecimal... userNumber4)
           This method is equivalent to
 void setUserString0(String userString0)
          Sets a new value for the attribute userString0.
 void setUserString1(String userString1)
          Sets a new value for the attribute userString1.
 void setUserString2(String userString2)
          Sets a new value for the attribute userString2.
 void setUserString3(String userString3)
          Sets a new value for the attribute userString3.
 void setUserString4(String... userString4)
           This method is equivalent to
 void setValidFrom(Date validFrom)
          Sets a new value for the attribute validFrom.
 void setValidTo(Date validTo)
          Sets a new value for the attribute validTo.
<T extends org.openmdx.base.cci2.Void>
T
updateIndex()
           
 
Methods inherited from class org.w3c.jdo2.AbstractObject
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
openmdxjdoGetIdentity, openmdxjdoGetIdentity, openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::opencrx::kernel::product1::PriceLevel


BASE_CLASS

public static final List<String> BASE_CLASS
Define this class as base class

See Also:
PriceLevel.CLASS
Constructor Detail

PriceLevel

public PriceLevel()
Method Detail

openmdxjdoGetObjectId

protected String openmdxjdoGetObjectId()
Retrieve the object's JDO identity key

Specified by:
openmdxjdoGetObjectId in class org.oasisopen.jdo2.Identifiable
Returns:
the value of the object's JDO identity key

openmdxjdoGetSlices

protected final <E extends org.w3c.jdo2.AbstractObject.Slice> SortedMap<Integer,E> openmdxjdoGetSlices()
Overrides:
openmdxjdoGetSlices in class org.w3c.jdo2.AbstractObject

getAccessLevelDelete

public short getAccessLevelDelete()
Retrieves the value for the attribute accessLevelDelete.

Specified by:
getAccessLevelDelete in interface SecureObject
Returns:
The non-null value for attribute accessLevelDelete.

setAccessLevelDelete

public void setAccessLevelDelete(short accessLevelDelete)
Sets a new value for the attribute accessLevelDelete.

Specified by:
setAccessLevelDelete in interface SecureObject
Parameters:
accessLevelDelete - The non-null new value for attribute accessLevelDelete.

getFilteredAccount

public <T extends Account> Set<T> getFilteredAccount()
Retrieves a set containing all the elements for the reference filteredAccount.

Specified by:
getFilteredAccount in interface AbstractFilterAccount
Returns:
A set containing all the elements for this reference.

exportXml

public <T extends ExportResult> T exportXml(String attributeFilter,
                                            String referenceFilter)
                                 throws RefException
Specified by:
exportXml in interface XmlExporter
Throws:
RefException

getUserString4

public final List<String> getUserString4()
Specified by:
getUserString4 in interface CrxObject
Returns:
A list containing all elements for this attribute.

setUserString4

public void setUserString4(String... userString4)

This method is equivalent to

   list.clear();
   for(java.lang.String e : attributeName){
     list.add(e);
   }
 

Specified by:
setUserString4 in interface CrxObject
Parameters:
userString4 - value(s) to be added to userString4

getModifiedBy

public final Set<String> getModifiedBy()
Specified by:
getModifiedBy in interface org.openmdx.base.cci2.BasicObject
Returns:
A set containing all elements for this attribute.

removePriceLevels

public <T extends ProcessPricesResult> T removePriceLevels(short processingMode)
                                                throws RefException
Specified by:
removePriceLevels in interface PriceLevel
Throws:
RefException

getPriceUsage

public final List<Short> getPriceUsage()
Specified by:
getPriceUsage in interface PriceLevel
Returns:
A list containing all elements for this attribute.

setPriceUsage

public void setPriceUsage(short... priceUsage)

This method is equivalent to

   list.clear();
   for(short e : attributeName){
     list.add(e);
   }
 

Specified by:
setPriceUsage in interface PriceLevel
Parameters:
priceUsage - value(s) to be added to priceUsage

getAssignedAccount

public <T extends AccountAssignment> Collection<T> getAssignedAccount()
Retrieves a set containing all the elements for the reference assignedAccount.

Specified by:
getAssignedAccount in interface PriceLevel
Returns:
A set containing all the elements for this reference.

getUserString0

public final String getUserString0()
Specified by:
getUserString0 in interface CrxObject
Returns:
The possibly null value for attribute userString0.

setUserString0

public void setUserString0(String userString0)
Sets a new value for the attribute userString0.

Specified by:
setUserString0 in interface CrxObject
Parameters:
userString0 - The possibly null new value for attribute userString0.

getUserString1

public final String getUserString1()
Specified by:
getUserString1 in interface CrxObject
Returns:
The possibly null value for attribute userString1.

setUserString1

public void setUserString1(String userString1)
Sets a new value for the attribute userString1.

Specified by:
setUserString1 in interface CrxObject
Parameters:
userString1 - The possibly null new value for attribute userString1.

getUserString2

public final