org.opencrx.kernel.product1.jdo2
Class DiscountPriceModifier

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.opencrx.kernel.product1.jdo2.PriceModifier
              extended by org.opencrx.kernel.product1.jdo2.DiscountPriceModifier
All Implemented Interfaces:
Serializable, SecureObject, DiscountPriceModifier, PriceModifier, org.openmdx.base.cci2.BasicObject, org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.ExtentCapable, org.openmdx.compatibility.view1.cci2.ViewCapable

public class DiscountPriceModifier
extends PriceModifier
implements DiscountPriceModifier

Class DiscountPriceModifier

See Also:
Serialized Form

Nested Class Summary
static class DiscountPriceModifier.Slice
          Slice object hold the DiscountPriceModifier's multivalued attributes
 
Nested classes/interfaces inherited from class org.opencrx.kernel.product1.jdo2.PriceModifier
PriceModifier.Identity
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Nested classes/interfaces inherited from interface org.opencrx.kernel.product1.cci2.PriceModifier
PriceModifier.Identity
 
Field Summary
static List<String> CLASS
          Define the model class org::opencrx::kernel::product1::DiscountPriceModifier
 
Fields inherited from class org.opencrx.kernel.product1.jdo2.PriceModifier
BASE_CLASS
 
Constructor Summary
DiscountPriceModifier()
           
 
Method Summary
 BigDecimal getDiscount()
          Retrieves the possibly null value for the optional attribute discount.
 Boolean isDiscountIsPercentage()
          Retrieves the possibly null value for the optional attribute discountIsPercentage.
static PriceModifier.Identity newIdentity(AbstractPriceLevel.Identity priceLevel, boolean idIsPersistent, String id)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
static PriceModifier.Identity openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)
           
 void setDiscount(BigDecimal discount)
          Sets a new value for the attribute discount.
 void setDiscountIsPercentage(Boolean discountIsPercentage)
          Sets a new value for the attribute discountIsPercentage.
 
Methods inherited from class org.opencrx.kernel.product1.jdo2.PriceModifier
addOwningGroup, addToPriceLevel, addToPriceLevel, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getCreatedAt, getCreatedBy, getDescription, getIdentity, getModifiedAt, getModifiedBy, getOwner, getOwningGroup, getOwningUser, getQuantityFrom, getQuantityTo, getView, getView, openmdxjdoGetObjectId, openmdxjdoGetObjectsByParent, openmdxjdoGetSlices, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setDescription, setOwningUser, setOwningUser, setQuantityFrom, setQuantityTo
 
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
openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.PriceModifier
getDescription, getQuantityFrom, getQuantityTo, setDescription, setQuantityFrom, setQuantityTo
 
Methods inherited from interface org.opencrx.kernel.base.cci2.SecureObject
addOwningGroup, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, getOwningUser, removeAllOwningGroup, removeOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser, setOwningUser
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView, getView
 

Field Detail

CLASS

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

Constructor Detail

DiscountPriceModifier

public DiscountPriceModifier()
Method Detail

isDiscountIsPercentage

public final Boolean isDiscountIsPercentage()
Retrieves the possibly null value for the optional attribute discountIsPercentage.

Specified by:
isDiscountIsPercentage in interface DiscountPriceModifier
Returns:
The possibly null value for attribute discountIsPercentage.

setDiscountIsPercentage

public void setDiscountIsPercentage(Boolean discountIsPercentage)
Sets a new value for the attribute discountIsPercentage.

Specified by:
setDiscountIsPercentage in interface DiscountPriceModifier
Parameters:
discountIsPercentage - The possibly null new value for attribute discountIsPercentage.

getDiscount

public final BigDecimal getDiscount()
Retrieves the possibly null value for the optional attribute discount.

Specified by:
getDiscount in interface DiscountPriceModifier
Returns:
The possibly null value for attribute discount.

setDiscount

public void setDiscount(BigDecimal discount)
Sets a new value for the attribute discount.

Specified by:
setDiscount in interface DiscountPriceModifier
Parameters:
discount - The possibly null new value for attribute discount.

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class PriceModifier

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class PriceModifier

newSlice

protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
Overrides:
newSlice in class PriceModifier

openmdxjdoGetClass

protected List<String> openmdxjdoGetClass()
Retrieve the model class

Overrides:
openmdxjdoGetClass in class PriceModifier
Returns:
the model class
See Also:
DiscountPriceModifier.CLASS

newIdentity

public static PriceModifier.Identity newIdentity(AbstractPriceLevel.Identity priceLevel,
                                                 boolean idIsPersistent,
                                                 String id)

openmdxjdoToIdentity

public static PriceModifier.Identity openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)


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