org.opencrx.kernel.ras1.jdo2
Class Asset

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.opencrx.kernel.product1.jdo2.Product
              extended by org.opencrx.kernel.ras1.jdo2.Asset
All Implemented Interfaces:
Serializable, AlertSender, Auditee, Cloneable, Importer, Indexed, SecureObject, XmlExporter, DepotReferenceHolder, CrxObject, DescriptionContainer, Pictured, AbstractProduct, AddressContainer, ContractPositionConstrained, Product, ProductConfigurationSet, Asset, org.openmdx.base.cci2.BasicObject, org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.ExtentCapable, org.openmdx.compatibility.view1.cci2.ViewCapable

public class Asset
extends Product
implements Asset

Class Asset

See Also:
Serialized Form

Nested Class Summary
static class Asset.Slice
          Slice object hold the Asset's multivalued attributes
 
Nested classes/interfaces inherited from class org.opencrx.kernel.product1.jdo2.Product
Product.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.Product
Product.Identity
 
Field Summary
static List<String> CLASS
          Define the model class org::opencrx::kernel::ras1::Asset
 
Fields inherited from class org.opencrx.kernel.product1.jdo2.Product
BASE_CLASS
 
Constructor Summary
Asset()
           
 
Method Summary
 void addClassificationElement(boolean idIsPersistent, String id, ClassificationElement classificationElement)
          Adds the specified element to the set of the values for the reference classificationElement.
 void addDefiningProfile(boolean idIsPersistent, String id, Profile definingProfile)
          Adds the specified element to the set of the values for the reference definingProfile.
 void addSolutionPart(boolean idIsPersistent, String id, SolutionPart solutionPart)
          Adds the specified element to the set of the values for the reference solutionPart.
<T extends ClassificationElement>
Collection<T>
getClassificationElement()
          Retrieves a set containing all the elements for the reference classificationElement.
 ClassificationElement getClassificationElement(boolean idIsPersistent, String id)
          Retrieves the value for the reference classificationElement for the specified qualifier attribute value.
<T extends Profile>
Collection<T>
getDefiningProfile()
          Retrieves a set containing all the elements for the reference definingProfile.
 Profile getDefiningProfile(boolean idIsPersistent, String id)
          Retrieves the value for the reference definingProfile for the specified qualifier attribute value.
 Profile getProfile()
          Retrieves the value for the reference profile.
<T extends SolutionPart>
Collection<T>
getSolutionPart()
          Retrieves a set containing all the elements for the reference solutionPart.
 SolutionPart getSolutionPart(boolean idIsPersistent, String id)
          Retrieves the value for the reference solutionPart for the specified qualifier attribute value.
 String getVersion()
          Retrieves the possibly null value for the optional attribute version.
static Product.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  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
static Product.Identity openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)
           
 void setProfile(Profile profile)
          Sets a new value for the reference profile.
 void setVersion(String version)
          Sets a new value for the attribute version.
 
Methods inherited from class org.opencrx.kernel.product1.jdo2.Product
addAdditionalDescription, addAdditionalExternalLink, addAddress, addAssignedAccount, addAttachedDocument, addBasePrice, addConfiguration, addDepotReference, addMedia, addNote, addOwningGroup, addProductPhase, addPropertySet, addRating, addRelatedProduct, addToSegment, addToSegment, checkPermissions, clone_, exportXml, getAccessGrantedByParent, getAccessLevelBrowse, getAccessLevelDelete, getAccessLevelUpdate, getActiveOn, getAdditionalDescription, getAdditionalDescription, getAdditionalExternalLink, getAdditionalExternalLink, getAddress, getAddress, getAlternateProductNumber, getAssignedAccount, getAssignedAccount, getAttachedDocument, getAttachedDocument, getAudit, getAudit, getBasePrice, getBasePrice, getCategory, getClassification, getConfigType, getConfiguration, getConfiguration, getCreatedAt, getCreatedBy, getDefaultPositions, getDefaultPriceLevel, getDefaultQuantity, getDefaultUom, getDepotReference, getDepotReference, getDescription, getDetailedDescription, getDisabledReason, getExpiresOn, getExternalLink, getGrossWeightKilogram, getIdentity, getIndexEntry, getIndexEntry, getItemNumber, getMaxPositions, getMaxQuantity, getMedia, getMedia, getMinMaxQuantityHandling, getMinPositions, getMinQuantity, getModifiedAt, getModifiedBy, getName, getNetWeightKilogram, getNote, getNote, getOffsetQuantity, getOwner, getOwningGroup, getOwningUser, getPicture, getPictureContent, getPictureContentMimeType, getPictureContentName, getPriceUom, getProductDimension, getProductNumber, getProductPhase, getProductPhase, getProductState, getProductUsage, getPropertySet, getPropertySet, getPropertySetEntry, getPropertySetEntry, getRating, getRating, getRelatedProduct, getRelatedProduct, getSalesTaxType, getUserBoolean4, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserCode4, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDate4, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserDateTime4, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserNumber4, getUserString0, getUserString1, getUserString2, getUserString3, getUserString4, getView, getView, importItem, isAllowModification, isAllowRemoval, isDisabled, isStockItem, isUserBoolean0, isUserBoolean1, isUserBoolean2, isUserBoolean3, openmdxjdoGetObjectId, openmdxjdoGetObjectsByParent, openmdxjdoGetSlices, removeAllOwningGroup, removeOwningGroup, sendAlert, setAccessLevel, setAccessLevelBrowse, setAccessLevelDelete, setAccessLevelUpdate, setActiveOn, setAllowModification, setAllowRemoval, setAlternateProductNumber, setCategory, setConfigurationType, setDefaultPositions, setDefaultPriceLevel, setDefaultQuantity, setDefaultUom, setDescription, setDetailedDescription, setDisabled, setDisabledReason, setExpiresOn, setExternalLink, setGrossWeightKilogram, setItemNumber, setMaxPositions, setMaxQuantity, setMinMaxQuantityHandling, setMinPositions, setMinQuantity, setName, setNetWeightKilogram, setOffsetQuantity, setOwningUser, setOwningUser, setPicture, setProductDimension, setProductNumber, setProductState, setProductUsage, setSalesTaxType, setStockItem, 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, unsetConfigurationType, 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
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.Product
addProductPhase, addRelatedProduct, getGrossWeightKilogram, getNetWeightKilogram, getProductDimension, getProductPhase, getProductPhase, getRelatedProduct, getRelatedProduct, isStockItem, setConfigurationType, setGrossWeightKilogram, setNetWeightKilogram, setProductDimension, setStockItem
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.DescriptionContainer
addAdditionalDescription, getAdditionalDescription, getAdditionalDescription
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.Pictured
getPicture, getPictureContent, getPictureContentMimeType, getPictureContentName, setPicture
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.AbstractProduct
addAssignedAccount, addBasePrice, getActiveOn, getAlternateProductNumber, getAssignedAccount, getAssignedAccount, getBasePrice, getBasePrice, getClassification, getDefaultPriceLevel, getDefaultUom, getDescription, getDetailedDescription, getExpiresOn, getName, getPriceUom, getProductNumber, getProductState, getProductUsage, getSalesTaxType, setActiveOn, setAlternateProductNumber, setDefaultPriceLevel, setDefaultUom, setDescription, setDetailedDescription, setExpiresOn, setName, setProductNumber, setProductState, setProductUsage, setSalesTaxType
 
Methods inherited from interface org.opencrx.kernel.depot1.cci2.DepotReferenceHolder
addDepotReference, getDepotReference, getDepotReference
 
Methods inherited from interface org.opencrx.kernel.generic.cci2.CrxObject
addAdditionalExternalLink, addAttachedDocument, addMedia, addNote, addPropertySet, addRating, getAdditionalExternalLink, getAdditionalExternalLink, getAttachedDocument, getAttachedDocument, getCategory, getDisabledReason, getExternalLink, getMedia, getMedia, getNote, getNote, getPropertySet, getPropertySet, getPropertySetEntry, getPropertySetEntry, getRating, getRating, getUserBoolean4, getUserCode0, getUserCode1, getUserCode2, getUserCode3, getUserCode4, getUserDate0, getUserDate1, getUserDate2, getUserDate3, getUserDate4, getUserDateTime0, getUserDateTime1, getUserDateTime2, getUserDateTime3, getUserDateTime4, getUserNumber0, getUserNumber1, getUserNumber2, getUserNumber3, getUserNumber4, getUserString0, getUserString1, getUserString2, getUserString3, getUserString4, 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.cci2.AlertSender
sendAlert
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Auditee
getAudit, getAudit
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Cloneable
clone_
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Importer
importItem
 
Methods inherited from interface org.opencrx.kernel.base.cci2.Indexed
getIndexEntry, getIndexEntry, updateIndex
 
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.opencrx.kernel.base.cci2.XmlExporter
exportXml
 
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
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.AddressContainer
addAddress, getAddress, getAddress
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.ContractPositionConstrained
getDefaultPositions, getDefaultQuantity, getItemNumber, getMaxPositions, getMaxQuantity, getMinMaxQuantityHandling, getMinPositions, getMinQuantity, getOffsetQuantity, isAllowModification, isAllowRemoval, setAllowModification, setAllowRemoval, setDefaultPositions, setDefaultQuantity, setItemNumber, setMaxPositions, setMaxQuantity, setMinMaxQuantityHandling, setMinPositions, setMinQuantity, setOffsetQuantity
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.ProductConfigurationSet
addConfiguration, getConfigType, getConfiguration, getConfiguration, unsetConfigurationType
 

Field Detail

CLASS

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

Constructor Detail

Asset

public Asset()
Method Detail

getVersion

public final String getVersion()
Retrieves the possibly null value for the optional attribute version.

Specified by:
getVersion in interface Asset
Returns:
The possibly null value for attribute version.

setVersion

public void setVersion(String version)
Sets a new value for the attribute version.

Specified by:
setVersion in interface Asset
Parameters:
version - The possibly null new value for attribute version.

getSolutionPart

public <T extends SolutionPart> Collection<T> getSolutionPart()
Retrieves a set containing all the elements for the reference solutionPart.

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

getSolutionPart

public SolutionPart getSolutionPart(boolean idIsPersistent,
                                    String id)
Retrieves the value for the reference solutionPart for the specified qualifier attribute value.

Specified by:
getSolutionPart in interface Asset
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

addSolutionPart

public void addSolutionPart(boolean idIsPersistent,
                            String id,
                            SolutionPart solutionPart)
Adds the specified element to the set of the values for the reference solutionPart.

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

Specified by:
addSolutionPart in interface Asset
Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
solutionPart - The element to be appended.

getClassificationElement

public <T extends ClassificationElement> Collection<T> getClassificationElement()
Retrieves a set containing all the elements for the reference classificationElement.

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

getClassificationElement

public ClassificationElement getClassificationElement(boolean idIsPersistent,
                                                      String id)
Retrieves the value for the reference classificationElement for the specified qualifier attribute value.

Specified by:
getClassificationElement in interface Asset
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

addClassificationElement

public void addClassificationElement(boolean idIsPersistent,
                                     String id,
                                     ClassificationElement classificationElement)
Adds the specified element to the set of the values for the reference classificationElement.

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

Specified by:
addClassificationElement in interface Asset
Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
classificationElement - The element to be appended.

getDefiningProfile

public <T extends Profile> Collection<T> getDefiningProfile()
Retrieves a set containing all the elements for the reference definingProfile.

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

getDefiningProfile

public Profile getDefiningProfile(boolean idIsPersistent,
                                  String id)
Retrieves the value for the reference definingProfile for the specified qualifier attribute value.

Specified by:
getDefiningProfile in interface Asset
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

addDefiningProfile

public void addDefiningProfile(boolean idIsPersistent,
                               String id,
                               Profile definingProfile)
Adds the specified element to the set of the values for the reference definingProfile.

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

Specified by:
addDefiningProfile in interface Asset
Parameters:
idIsPersistent - true if id is persistent
id - The qualifier attribute value that qualifies the reference to get the element to be appended.
definingProfile - The element to be appended.

getProfile

public Profile getProfile()
Retrieves the value for the reference profile.

Specified by:
getProfile in interface Asset
Returns:
The – possibly null – value for this reference.

setProfile

public void setProfile(Profile profile)
Sets a new value for the reference profile.

Specified by:
setProfile in interface Asset
Parameters:
profile - The non-null new value for this reference.

openmdxjdoGetSize

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

openmdxjdoSetSize

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

newSlice

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

openmdxjdoGetClass

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

Overrides:
openmdxjdoGetClass in class Product
Returns:
the model class
See Also:
Asset.CLASS

newIdentity

public static Product.Identity newIdentity(org.openmdx.base.cci2.Segment.Identity segment,
                                           boolean idIsPersistent,
                                           String id)

openmdxjdoToIdentity

public static Product.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.