Package org.cyclos.entities.system
Class CustomFieldPossibleValue<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>>
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.system.CustomFieldPossibleValue<CF,C,PV>
-
- All Implemented Interfaces:
Cloneable,Comparable<CustomFieldPossibleValue<CF,C,PV>>,HasNetwork,HasOrder,ProcessableForProxying,IEntity,IInternalNamedEntity,IUnqualifiedInternalNamedEntity,ICustomFieldPossibleValue<C>
- Direct Known Subclasses:
AdCustomFieldPossibleValue,ContactCustomFieldPossibleValue,ContactInfoFieldPossibleValue,CustomOperationFieldPossibleValue,CustomWizardFieldPossibleValue,DocumentCustomFieldPossibleValue,RecordCustomFieldPossibleValue,TransactionCustomFieldPossibleValue,UserCustomFieldPossibleValue,VoucherCustomFieldPossibleValue
@MappedSuperclass public abstract class CustomFieldPossibleValue<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>> extends BaseEntity implements ICustomFieldPossibleValue<C>, Comparable<CustomFieldPossibleValue<CF,C,PV>>, HasOrder, IUnqualifiedInternalNamedEntity
Holds a possible value for an enumerated custom field. Base class, which needs to be extended for each custom field nature.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description CustomFieldPossibleValue()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(CustomFieldPossibleValue<CF,C,PV> o)abstract CgetCategory()abstract CFgetField()StringgetInternalName()NetworkgetNetwork()Returns the network this entity belongs toIntegergetOrder()StringgetValue()booleanisDefaultOnSearch()booleanisDefaultValue()abstract voidsetCategory(C category)voidsetDefaultOnSearch(boolean defaultOnSearch)voidsetDefaultValue(boolean defaultValue)abstract voidsetField(CF field)voidsetInternalName(String internalName)voidsetOrder(Integer order)voidsetValue(String value)StringtoString()-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
compareTo
public int compareTo(CustomFieldPossibleValue<CF,C,PV> o)
- Specified by:
compareToin interfaceComparable<CF extends CustomField<CF,C,PV>>
-
getCategory
public abstract C getCategory()
- Specified by:
getCategoryin interfaceICustomFieldPossibleValue<CF extends CustomField<CF,C,PV>>
-
getField
public abstract CF getField()
-
getInternalName
public String getInternalName()
- Specified by:
getInternalNamein interfaceIInternalNamedEntity- Returns:
- the internal name.
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getValue
public String getValue()
- Specified by:
getValuein interfaceICustomFieldPossibleValue<CF extends CustomField<CF,C,PV>>
-
isDefaultOnSearch
public boolean isDefaultOnSearch()
-
isDefaultValue
public boolean isDefaultValue()
-
setCategory
public abstract void setCategory(C category)
-
setDefaultOnSearch
public void setDefaultOnSearch(boolean defaultOnSearch)
-
setDefaultValue
public void setDefaultValue(boolean defaultValue)
-
setField
public abstract void setField(CF field)
-
setInternalName
public void setInternalName(String internalName)
- Specified by:
setInternalNamein interfaceIInternalNamedEntity- Parameters:
internalName- the internal name to be set.
-
setValue
public void setValue(String value)
-
toString
public String toString()
- Overrides:
toStringin classSimpleEntity
-
-