org.opencrx.kernel.product1.jdo2
Class DiscountPriceModifier
java.lang.Object
org.oasisopen.jdo2.Identifiable
org.w3c.jdo2.AbstractObject
org.opencrx.kernel.product1.jdo2.PriceModifier
org.opencrx.kernel.product1.jdo2.DiscountPriceModifier
- All Implemented Interfaces:
- Serializable, SecureObject, DiscountPriceModifier, PriceModifier, AspectCapable, BasicObject, ContextCapable, Creatable, ExtentCapable, Modifiable
public class DiscountPriceModifier
- extends PriceModifier
- implements DiscountPriceModifier
Class DiscountPriceModifier
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject |
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E> |
|
Field Summary |
static List<String> |
CLASS
Define the model class org::opencrx::kernel::product1::DiscountPriceModifier |
| Methods inherited from class org.opencrx.kernel.product1.jdo2.PriceModifier |
addOwningGroup, addToPriceLevel, addToPriceLevel, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getContext, getCreatedAt, getCreatedBy, getDescription, getIdentity, getModifiedAt, getModifiedBy, getOwner, getOwningGroup, getOwningUser, getQuantityFrom, getQuantityTo, openmdxjdoGetObjectId, openmdxjdoGetSlices, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setDescription, setOwningUser, setOwningUser, setQuantityFrom, setQuantityTo |
| Methods inherited from class org.w3c.jdo2.AbstractObject |
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewMap, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement |
| Methods inherited from class org.oasisopen.jdo2.Identifiable |
jdoClass, modelClasses, 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.base.cci2.SecureObject |
addOwningGroup, checkPermissions, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getOwner, getOwningGroup, getOwningUser, removeAllOwningGroup, removeOwningGroup, replaceOwningGroup, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setOwningUser, setOwningUser |
CLASS
public static final List<String> CLASS
- Define the model class
org::opencrx::kernel::product1::DiscountPriceModifier
DiscountPriceModifier
public DiscountPriceModifier()
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,
QualifierType idType,
String id)
openmdxjdoToIdentity
public static PriceModifier.Identity openmdxjdoToIdentity(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.