BEA Systems, Inc.

com.beasys.commerce.foundation.property
Class PropertyMetaDataImpl

java.lang.Object
  |
  +--com.beasys.commerce.foundation.BelongingImpl
        |
        +--com.beasys.commerce.foundation.property.PropertyMetaDataImpl

public class PropertyMetaDataImpl
extends BelongingImpl
implements PropertyMetaData, java.lang.Cloneable

there is a hidden field called propertyMetaDataId in the table that is generated by a sequencer

See Also:
PropertyMetaData, PropertyMetaDataHome, Serialized Form

Field Summary
 java.lang.String description
          The PK information of the Containment: By Value Multiplicity: 1:1
 boolean isExplicit
           Containment: By Value Multiplicity: 1:1
 boolean isMultiValued
           Containment: By Value Multiplicity: 1:1
 boolean isRestricted
           Containment: By Value Multiplicity: 1:1
 long propertyMetaDataId
           Containment: By Value Multiplicity: 1:1
 PropertyType propertyType
           Containment: By Value Multiplicity: 1:1
 long schemaId
           Containment: By Value Multiplicity: 1:1
 int type
           Containment: By Value Multiplicity: 1:1
 SmartCollectionReference values
           Containment: By Value Multiplicity: 0:N Interface: java.util.Collection
 
Fields inherited from class com.beasys.commerce.foundation.BelongingImpl
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber
 
Constructor Summary
PropertyMetaDataImpl()
           
 
Method Summary
 boolean addAllValues(java.util.Collection collection)
          Adds all of the elements in the specified collection to this collection (optional operation).
 boolean addValues(AbstractPropertyMetaData element)
          Ensures that this collection contains the specified element (optional operation).
 void clearValues()
          Removes all of the elements from this collection (optional operation).
 int compareTo(java.lang.Object o)
          Compare this belonging to another
 boolean containsAllValues(java.util.Collection collection)
          Returns true if this collection contains all of the elements in the specified collection.
 boolean containsValues(AbstractPropertyMetaData element)
          Returns true if this collection contains the specified element.
 boolean equalsValues(java.lang.Object object)
          Compares the specified object with this collection for equality.
 java.util.Collection getAllValues()
          Returns a deep copy of the entire collection
 java.lang.Object getDefaultValue()
           
 java.lang.String getDescription()
          Get the value of description
 boolean getIsExplicit()
          Get the value of isExplicit
 boolean getIsMultiValued()
          Get the value of isMultiValued
 boolean getIsRestricted()
          Get the value of isRestricted
 long getPropertyMetaDataId()
          Get the value of propertyMetaDataId
 PropertyType getPropertyType()
          Get the value of propertyType
 java.util.Collection getRestrictedValues()
           
 long getSchemaId()
          Get the value of schemaId
 int getType()
          Get the value of type
 SmartCollectionReference getValuesReference()
          Get the SmartCollectionReference for values
 int hashCodeValues()
          Returns the hash code value for this collection.
 java.lang.String interfaceName()
          interfaceName() returns the unqualified name of the interface from the UML model
 boolean isEmptyValues()
          Returns true if this collection contains no elements.
 java.util.Iterator iteratorValues()
          Returns an iterator over the elements in this collection.
 boolean removeAllValues(java.util.Collection collection)
          Removes all this collection's elements that are also contained in the specified collection (optional operation).
 boolean removeValues(AbstractPropertyMetaData element)
          Removes a single instance of the specified element from this collection, if it is present (optional operation).
 boolean retainAllValues(java.util.Collection collection)
          Retains only the elements in this collection that are contained in the specified collection (optional operation).
 void setAllValues(java.util.Collection collection)
          Sets the entire collection
 void setByValue(Belonging value)
          It is possible to call set-by-value with a superclass.
 void setDefaultValue(java.lang.Object defaultValue)
           
 void setDescription(java.lang.String description)
          Set the value of description
 void setIsExplicit(boolean isExplicit)
          Set the value of isExplicit
 void setIsMultiValued(boolean isMultiValued)
          Set the value of isMultiValued
 void setIsRestricted(boolean isRestricted)
          Set the value of isRestricted
 void setPropertyMetaDataId(long propertyMetaDataId)
          Set the value of propertyMetaDataId
 void setPropertyType(PropertyType propertyType)
          Set the value of propertyType
 void setRestrictedValues(java.util.Collection restrictedValues)
           
 void setSchemaId(long schemaId)
          Set the value of schemaId
 void setType(int type)
          Set the value of type
 void setValuesReference(SmartCollectionReference smartCollectionReference)
          Set the SmartCollectionReference for values
 int sizeValues()
          Returns the number of elements in this collection.
 boolean validate(java.lang.Object value)
           
 Belonging value()
          value() is a more typesafe implementation of clone()
 
Methods inherited from class com.beasys.commerce.foundation.BelongingImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clone, equals, get__classIdentifier, get__containingBelonging, get__containingEntity, get__containingEntityReference, get__mapKey, get__sequenceNumber, set__containingBelonging, set__containingEntity, set__containingEntityReference, set__mapKey
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

public java.lang.String description
The PK information of the

propertyMetaDataId

public long propertyMetaDataId

values

public SmartCollectionReference values

isExplicit

public boolean isExplicit

isMultiValued

public boolean isMultiValued

isRestricted

public boolean isRestricted

propertyType

public PropertyType propertyType

schemaId

public long schemaId

type

public int type
Constructor Detail

PropertyMetaDataImpl

public PropertyMetaDataImpl()
Method Detail

getDescription

public java.lang.String getDescription()
Get the value of description
Specified by:
getDescription in interface PropertyMetaData
Returns:
description.

setDescription

public void setDescription(java.lang.String description)
Set the value of description
Specified by:
setDescription in interface PropertyMetaData
Parameters:
description - description to be added

getPropertyMetaDataId

public long getPropertyMetaDataId()
Get the value of propertyMetaDataId
Specified by:
getPropertyMetaDataId in interface PropertyMetaData
Returns:
propertyMetaDataId.

setPropertyMetaDataId

public void setPropertyMetaDataId(long propertyMetaDataId)
Set the value of propertyMetaDataId
Specified by:
setPropertyMetaDataId in interface PropertyMetaData
Parameters:
propertyMetaDataId - propertyMetaDataId to be added

getValuesReference

public SmartCollectionReference getValuesReference()
Get the SmartCollectionReference for values

setValuesReference

public void setValuesReference(SmartCollectionReference smartCollectionReference)
Set the SmartCollectionReference for values

getAllValues

public java.util.Collection getAllValues()
Returns a deep copy of the entire collection
Specified by:
getAllValues in interface PropertyMetaData

setAllValues

public void setAllValues(java.util.Collection collection)
Sets the entire collection
Specified by:
setAllValues in interface PropertyMetaData

addValues

public boolean addValues(AbstractPropertyMetaData element)
Ensures that this collection contains the specified element (optional operation).
Specified by:
addValues in interface PropertyMetaData

addAllValues

public boolean addAllValues(java.util.Collection collection)
Adds all of the elements in the specified collection to this collection (optional operation).
Specified by:
addAllValues in interface PropertyMetaData

clearValues

public void clearValues()
Removes all of the elements from this collection (optional operation).
Specified by:
clearValues in interface PropertyMetaData

containsValues

public boolean containsValues(AbstractPropertyMetaData element)
Returns true if this collection contains the specified element.
Specified by:
containsValues in interface PropertyMetaData

containsAllValues

public boolean containsAllValues(java.util.Collection collection)
Returns true if this collection contains all of the elements in the specified collection.
Specified by:
containsAllValues in interface PropertyMetaData

equalsValues

public boolean equalsValues(java.lang.Object object)
Compares the specified object with this collection for equality.
Specified by:
equalsValues in interface PropertyMetaData

hashCodeValues

public int hashCodeValues()
Returns the hash code value for this collection.
Specified by:
hashCodeValues in interface PropertyMetaData

isEmptyValues

public boolean isEmptyValues()
Returns true if this collection contains no elements.
Specified by:
isEmptyValues in interface PropertyMetaData

iteratorValues

public java.util.Iterator iteratorValues()
Returns an iterator over the elements in this collection.
Specified by:
iteratorValues in interface PropertyMetaData

removeValues

public boolean removeValues(AbstractPropertyMetaData element)
Removes a single instance of the specified element from this collection, if it is present (optional operation).
Specified by:
removeValues in interface PropertyMetaData

removeAllValues

public boolean removeAllValues(java.util.Collection collection)
Removes all this collection's elements that are also contained in the specified collection (optional operation).
Specified by:
removeAllValues in interface PropertyMetaData

retainAllValues

public boolean retainAllValues(java.util.Collection collection)
Retains only the elements in this collection that are contained in the specified collection (optional operation).
Specified by:
retainAllValues in interface PropertyMetaData

sizeValues

public int sizeValues()
Returns the number of elements in this collection.
Specified by:
sizeValues in interface PropertyMetaData

getIsExplicit

public boolean getIsExplicit()
Get the value of isExplicit
Specified by:
getIsExplicit in interface PropertyMetaData
Returns:
isExplicit.

setIsExplicit

public void setIsExplicit(boolean isExplicit)
Set the value of isExplicit
Specified by:
setIsExplicit in interface PropertyMetaData
Parameters:
isExplicit - isExplicit to be added

getIsMultiValued

public boolean getIsMultiValued()
Get the value of isMultiValued
Specified by:
getIsMultiValued in interface PropertyMetaData
Returns:
isMultiValued.

setIsMultiValued

public void setIsMultiValued(boolean isMultiValued)
Set the value of isMultiValued
Specified by:
setIsMultiValued in interface PropertyMetaData
Parameters:
isMultiValued - isMultiValued to be added

getIsRestricted

public boolean getIsRestricted()
Get the value of isRestricted
Specified by:
getIsRestricted in interface PropertyMetaData
Returns:
isRestricted.

setIsRestricted

public void setIsRestricted(boolean isRestricted)
Set the value of isRestricted
Specified by:
setIsRestricted in interface PropertyMetaData
Parameters:
isRestricted - isRestricted to be added

getPropertyType

public PropertyType getPropertyType()
Get the value of propertyType
Specified by:
getPropertyType in interface PropertyMetaData
Returns:
propertyType.

setPropertyType

public void setPropertyType(PropertyType propertyType)
Set the value of propertyType
Specified by:
setPropertyType in interface PropertyMetaData
Parameters:
propertyType - propertyType to be added

getSchemaId

public long getSchemaId()
Get the value of schemaId
Specified by:
getSchemaId in interface PropertyMetaData
Returns:
schemaId.

setSchemaId

public void setSchemaId(long schemaId)
Set the value of schemaId
Specified by:
setSchemaId in interface PropertyMetaData
Parameters:
schemaId - schemaId to be added

getType

public int getType()
Get the value of type
Specified by:
getType in interface PropertyMetaData
Returns:
type.

setType

public void setType(int type)
Set the value of type
Specified by:
setType in interface PropertyMetaData
Parameters:
type - type to be added

value

public Belonging value()
value() is a more typesafe implementation of clone()
Returns:
a clone of this instance

interfaceName

public java.lang.String interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model
Returns:
the unqualified name of the belonging interface from the UML model

setByValue

public void setByValue(Belonging value)
It is possible to call set-by-value with a superclass. If that is the case, only the fields in the superclass will be set in this instance. The remaining fields get the default values.

It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.

Overrides:
setByValue in class BelongingImpl

compareTo

public int compareTo(java.lang.Object o)
Compare this belonging to another
Overrides:
compareTo in class BelongingImpl
Parameters:
o - target object for comparision
Returns:
0 objects are equal

validate

public boolean validate(java.lang.Object value)
Specified by:
validate in interface PropertyMetaData

getDefaultValue

public java.lang.Object getDefaultValue()
Specified by:
getDefaultValue in interface PropertyMetaData

getRestrictedValues

public java.util.Collection getRestrictedValues()
Specified by:
getRestrictedValues in interface PropertyMetaData

setDefaultValue

public void setDefaultValue(java.lang.Object defaultValue)
Specified by:
setDefaultValue in interface PropertyMetaData

setRestrictedValues

public void setRestrictedValues(java.util.Collection restrictedValues)
Specified by:
setRestrictedValues in interface PropertyMetaData

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved