public class DefaultForeingKey extends java.lang.Object implements Persistent, ForeingKey, EditableForeingKey, Cloneable
ForeingKey.ContextForeingKeyMAX_AVAILABLE_VALUES| Constructor and Description |
|---|
DefaultForeingKey() |
| Modifier and Type | Method and Description |
|---|---|
void |
clean() |
ForeingKey |
clone()
Creates a copy of the object.
|
ForeingKey.ContextForeingKey |
createContext() |
DynObjectValueItem[] |
getAvailableValues(ForeingKey.ContextForeingKey context) |
java.lang.Object |
getCode(ForeingKey.ContextForeingKey context,
Feature feature) |
java.lang.String |
getCodeName() |
boolean |
getEnsureReferentialIntegrity() |
Feature |
getFeature(ForeingKey.ContextForeingKey context,
java.lang.Object codeValue) |
java.util.List<Feature> |
getFeatures(ForeingKey.ContextForeingKey context) |
FeatureStore |
getFeatureStore(ForeingKey.ContextForeingKey context) |
FeatureType |
getFeatureType(ForeingKey.ContextForeingKey context) |
java.lang.String |
getFieldName() |
java.lang.String |
getLabel(ForeingKey.ContextForeingKey context,
Feature feature) |
java.lang.String |
getLabel(ForeingKey.ContextForeingKey context,
java.lang.Object codeValue) |
Expression |
getLabelExpression(ForeingKey.ContextForeingKey context) |
java.lang.String |
getLabelFormula() |
java.lang.String |
getLabelForValue(java.lang.Object value) |
FeatureQuery |
getQuery(ForeingKey.ContextForeingKey context,
java.lang.Object codeValue) |
StoresRepository |
getStoresRepository(ForeingKey.ContextForeingKey context) |
StoresRepository |
getStoresRepository(java.lang.String tableName) |
java.lang.String |
getTableName() |
boolean |
hasAvailableValues() |
boolean |
isClosedList()
Indicates whether the foreign key reference to a closed list of values.
|
boolean |
isEmpty() |
boolean |
isForeingKey() |
boolean |
isInAvailableValues(java.lang.Object valueToCheck) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistenceDefinition() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setClosedList(boolean selectable)
Indicates whether the foreign key reference to a closed list of values.
|
void |
setCodeName(java.lang.String codeName) |
void |
setDescriptor(FeatureAttributeDescriptor descriptor) |
void |
setEnsureReferentialIntegrity(boolean ensureReferentialIntegrity)
If the data store supports it, it ensures that referential integrity is respected.
|
void |
setForeingKey(boolean foreingKey) |
void |
setLabelFormula(java.lang.String labelFormula) |
void |
setTableName(java.lang.String tableName) |
void |
unbind() |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneQuietly, cloneQuietlypublic void setDescriptor(FeatureAttributeDescriptor descriptor)
public java.lang.String getFieldName()
public void unbind()
unbind in interface EditableForeingKeypublic boolean isClosedList()
ForeingKeyisClosedList in interface ForeingKeypublic void setClosedList(boolean selectable)
EditableForeingKeysetClosedList in interface EditableForeingKeypublic boolean isForeingKey()
isForeingKey in interface ForeingKeypublic void setForeingKey(boolean foreingKey)
setForeingKey in interface EditableForeingKeypublic java.lang.String getLabelFormula()
getLabelFormula in interface ForeingKeypublic void setLabelFormula(java.lang.String labelFormula)
setLabelFormula in interface EditableForeingKeypublic java.lang.String getCodeName()
getCodeName in interface ForeingKeypublic void setCodeName(java.lang.String codeName)
setCodeName in interface EditableForeingKeypublic java.lang.String getTableName()
getTableName in interface ForeingKeypublic void setTableName(java.lang.String tableName)
setTableName in interface EditableForeingKeypublic boolean isEmpty()
isEmpty in interface ForeingKeypublic void clean()
clean in interface EditableForeingKeypublic ForeingKey.ContextForeingKey createContext()
createContext in interface ForeingKeypublic StoresRepository getStoresRepository(ForeingKey.ContextForeingKey context)
getStoresRepository in interface ForeingKeypublic FeatureStore getFeatureStore(ForeingKey.ContextForeingKey context)
getFeatureStore in interface ForeingKeypublic FeatureType getFeatureType(ForeingKey.ContextForeingKey context)
getFeatureType in interface ForeingKeypublic java.util.List<Feature> getFeatures(ForeingKey.ContextForeingKey context)
getFeatures in interface ForeingKeypublic java.lang.Object getCode(ForeingKey.ContextForeingKey context, Feature feature)
getCode in interface ForeingKeypublic FeatureQuery getQuery(ForeingKey.ContextForeingKey context, java.lang.Object codeValue)
getQuery in interface ForeingKeypublic Feature getFeature(ForeingKey.ContextForeingKey context, java.lang.Object codeValue)
getFeature in interface ForeingKeypublic java.lang.String getLabel(ForeingKey.ContextForeingKey context, java.lang.Object codeValue)
getLabel in interface ForeingKeypublic Expression getLabelExpression(ForeingKey.ContextForeingKey context)
getLabelExpression in interface ForeingKeypublic java.lang.String getLabel(ForeingKey.ContextForeingKey context, Feature feature)
getLabel in interface ForeingKeypublic DynObjectValueItem[] getAvailableValues(ForeingKey.ContextForeingKey context)
getAvailableValues in interface ForeingKeypublic java.lang.String getLabelForValue(java.lang.Object value)
getLabelForValue in interface ForeingKeypublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic static void registerPersistenceDefinition()
public ForeingKey clone() throws java.lang.CloneNotSupportedException
Cloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.public boolean getEnsureReferentialIntegrity()
getEnsureReferentialIntegrity in interface ForeingKeypublic void setEnsureReferentialIntegrity(boolean ensureReferentialIntegrity)
ForeingKeysetEnsureReferentialIntegrity in interface ForeingKeypublic boolean isInAvailableValues(java.lang.Object valueToCheck)
isInAvailableValues in interface ForeingKeypublic boolean hasAvailableValues()
hasAvailableValues in interface ForeingKeypublic StoresRepository getStoresRepository(java.lang.String tableName)