Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.flex.runtime.util.common
Class ValueSetDefImpl

java.lang.Object
  extended by oracle.apps.fnd.applcore.flex.runtime.util.common.ValueSetDefImpl
All Implemented Interfaces:
ValueSetDef
Direct Known Subclasses:
CustomValueSetDefImpl

public class ValueSetDefImpl
extends java.lang.Object
implements ValueSetDef

A default implementation of ValueSetDef.


Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.apps.fnd.applcore.flex.runtime.util.common.ValueSetDef
ValueSetDef.ValueSetType
 
Field Summary
 
Fields inherited from interface oracle.apps.fnd.applcore.flex.runtime.util.common.ValueSetDef
TRANSIENT_VALUE_SET_ID
 
Constructor Summary
ValueSetDefImpl(java.lang.String code, ValueSetDef.ValueSetType type, ValueType vt)
          Constructs a transient value-set definition.
 
Method Summary
 ValueSetUsage createUsage(boolean isNullAllowed)
          Creates a value-set usage of this value-set definition.
 java.lang.String getCode()
          Gets the code of the value set.
 java.lang.String getDataSecurityViewCriteriaName()
          Gets the name of the view criteria used for data security.
 long getID()
          Gets the ID of the value set.
 java.lang.Long getReferenceValueSetID()
          Gets the ID of the value-set referenced by this value-set.
 ValueSetDef.ValueSetType getType()
          Gets the type of the value set.
 ValueType getValueType()
          Gets the type of the values in this value set.
 boolean isDiscriminator()
          Whether this value set holds the discriminator values.
 boolean isJavaTypeSupported(java.lang.Class type)
          Checks whether values of a Java type are supported by this value set.
 boolean isSubset()
          Returns true if this value set is a subset value set.
 boolean isTransient()
          Whether this value-set definition is transient.
protected  void setDataSecurityViewCriteriaName(java.lang.String name)
          Sets the name of view criteria used for data security.
protected  void setDiscriminator(boolean b)
          Sets the flag to indicate that this value set is for a discriminator.
protected  void setReferenceValueSetID(long id)
          Sets the value-set ID of the reference segment.
protected  void setSubset(boolean b)
          Sets whether this value set is a subset value set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueSetDefImpl

public ValueSetDefImpl(java.lang.String code,
                       ValueSetDef.ValueSetType type,
                       ValueType vt)
Constructs a transient value-set definition.

Parameters:
code - the value-set code
type - the value-set type
vt - the value type
Method Detail

getID

public final long getID()
Gets the ID of the value set. If the ID is TRANSIENT_VALUE_SET_ID, this value set is a transient value set. All transient value sets share the same ID.

Specified by:
getID in interface ValueSetDef
Returns:
the ID of the value set

getCode

public final java.lang.String getCode()
Gets the code of the value set.

Specified by:
getCode in interface ValueSetDef
Returns:
the code of the value set

getType

public final ValueSetDef.ValueSetType getType()
Gets the type of the value set.

Specified by:
getType in interface ValueSetDef
Returns:
the type of the value set

getValueType

public final ValueType getValueType()
Gets the type of the values in this value set.

Specified by:
getValueType in interface ValueSetDef
Returns:
the type of the values

isTransient

public final boolean isTransient()
Whether this value-set definition is transient.

Specified by:
isTransient in interface ValueSetDef
Returns:
true if this value-set definition is transient

isDiscriminator

public final boolean isDiscriminator()
Whether this value set holds the discriminator values.

Specified by:
isDiscriminator in interface ValueSetDef
Returns:
true if this value set holds the discriminator values

setDiscriminator

protected void setDiscriminator(boolean b)
Sets the flag to indicate that this value set is for a discriminator.

Parameters:
b - true if this value set is for a discriminator

getReferenceValueSetID

public java.lang.Long getReferenceValueSetID()
Gets the ID of the value-set referenced by this value-set.

Specified by:
getReferenceValueSetID in interface ValueSetDef
Returns:
the reference value-set ID; null if this value-set does not reference any other value set

setReferenceValueSetID

protected void setReferenceValueSetID(long id)
Sets the value-set ID of the reference segment.

Parameters:
id - the value-set ID of the reference segment

isJavaTypeSupported

public boolean isJavaTypeSupported(java.lang.Class type)
Checks whether values of a Java type are supported by this value set.

Specified by:
isJavaTypeSupported in interface ValueSetDef
Parameters:
type - the Java type
Returns:
true if values of the given Java type are supported by this value set

createUsage

public ValueSetUsage createUsage(boolean isNullAllowed)
Creates a value-set usage of this value-set definition.

Specified by:
createUsage in interface ValueSetDef
Parameters:
isNullAllowed - true if null value is allowed
Returns:
a value-set usage

getDataSecurityViewCriteriaName

public java.lang.String getDataSecurityViewCriteriaName()
Gets the name of the view criteria used for data security.

Specified by:
getDataSecurityViewCriteriaName in interface ValueSetDef
Returns:
the name of the view criteria used for data security; null if this value set is not secured

setDataSecurityViewCriteriaName

protected void setDataSecurityViewCriteriaName(java.lang.String name)
Sets the name of view criteria used for data security.

Parameters:
name - the name of the view criteria

isSubset

public boolean isSubset()
Returns true if this value set is a subset value set.

Specified by:
isSubset in interface ValueSetDef
Returns:
trueif this value set is a subset value set

setSubset

protected void setSubset(boolean b)
Sets whether this value set is a subset value set.

Parameters:
b - true if this value set is a subset value set

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.