Package com.cmobilecom.af.entity.attr
Class EntityAttrOptionBase
- java.lang.Object
-
- com.cmobilecom.af.entity.PersistenceEntityBase
-
- com.cmobilecom.af.entity.attr.EntityAttrOptionBase
-
- All Implemented Interfaces:
EntityAttrOption
,ChildEntity
,PersistenceEntity
,java.io.Serializable
,java.lang.Cloneable
@MappedSuperclass public class EntityAttrOptionBase extends PersistenceEntityBase implements EntityAttrOption
EntityAttrOptionBase: EntitAttrOption implementation base class. In subclasses, add O/R mapping for properties: attribute, name and value.- Since:
- 5.4
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityAttr
attribute
protected java.lang.String
name
protected java.lang.String
value
-
Fields inherited from class com.cmobilecom.af.entity.PersistenceEntityBase
id, instance, sequenceNo
-
Fields inherited from interface com.cmobilecom.af.entity.attr.EntityAttrOption
PROPERTY_ATTRIBUTE, PROPERTY_NAME, PROPERTY_VALUE
-
Fields inherited from interface com.cmobilecom.af.entity.PersistenceEntity
ID_SEPARATOR, PROPERTY_ID, PROPERTY_INSTANCE, PROPERTY_SELECTED, PROPERTY_SEQUENCE_NO, PROPERTY_VERSION
-
-
Constructor Summary
Constructors Constructor Description EntityAttrOptionBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityAttr
getAttribute()
Get the attribute with which this option is associated.java.lang.String
getName()
Get option display name for the option value.java.lang.Integer
getSequenceNo()
Ordering items within parent entityjava.lang.String
getValue()
Get option value.void
setAttribute(EntityAttr attribute)
Set the attribute with which this option is associated.void
setName(java.lang.String name)
Set option display name for the option value.void
setValue(java.lang.String value)
Set option value.java.lang.String
toString()
-
Methods inherited from class com.cmobilecom.af.entity.PersistenceEntityBase
clone, equals, getId, getInstance, getVersion, hashCode, isChanged, isPartiallyInitialized, isPersisted, isSelected, isStatistics, setChanged, setId, setInstance, setPartiallyInitialized, setPersisted, setSelected, setSequenceNo, setStatistics, setVersion
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.cmobilecom.af.entity.PersistenceEntity
clone, getId, getInstance, getVersion, isChanged, isPartiallyInitialized, isPersisted, isSelected, isStatistics, setChanged, setId, setInstance, setPartiallyInitialized, setPersisted, setSelected, setSequenceNo, setStatistics, setVersion
-
-
-
-
Field Detail
-
attribute
protected EntityAttr attribute
-
name
protected java.lang.String name
-
value
protected java.lang.String value
-
-
Method Detail
-
getSequenceNo
public java.lang.Integer getSequenceNo()
Ordering items within parent entity- Specified by:
getSequenceNo
in interfacePersistenceEntity
- Overrides:
getSequenceNo
in classPersistenceEntityBase
- Returns:
- sequence number that can be null if not used
-
getAttribute
public EntityAttr getAttribute()
Description copied from interface:EntityAttrOption
Get the attribute with which this option is associated.- Specified by:
getAttribute
in interfaceEntityAttrOption
- Returns:
- EntityAttr instance
-
setAttribute
public void setAttribute(EntityAttr attribute)
Description copied from interface:EntityAttrOption
Set the attribute with which this option is associated.- Specified by:
setAttribute
in interfaceEntityAttrOption
- Parameters:
attribute
- EntityAttr instance
-
getName
public java.lang.String getName()
Description copied from interface:EntityAttrOption
Get option display name for the option value.- Specified by:
getName
in interfaceEntityAttrOption
- Returns:
- display name on device.
-
setName
public void setName(java.lang.String name)
Description copied from interface:EntityAttrOption
Set option display name for the option value.- Specified by:
setName
in interfaceEntityAttrOption
- Parameters:
name
- display name on device.
-
getValue
public java.lang.String getValue()
Description copied from interface:EntityAttrOption
Get option value.- Specified by:
getValue
in interfaceEntityAttrOption
- Returns:
- value
-
setValue
public void setValue(java.lang.String value)
Description copied from interface:EntityAttrOption
Set option value.- Specified by:
setValue
in interfaceEntityAttrOption
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-