planetj.database.possiblevalues
Class PossibleValueManager

java.lang.Object
  |
  +--planetj.database.possiblevalues.PossibleValueManager
All Implemented Interfaces:
IPossibleValue

public class PossibleValueManager
extends Object
implements IPossibleValue

This class can be used to get possible values and configuration properties for a given owner.

Author:
PlanetJ Corporation

Field Summary
static String SQL_KEY
           
static int TYPE_POSSIBLE_VALUE
           
 
Fields inherited from interface planetj.database.possiblevalues.IPossibleValue
DISPLAY_ORDER, DISPLAY_VALUE, DISPLAY_VALUE_SQL_TYPE, FIELD_NAME, KEY, LIBRARY_NAME, OWNER_ID, POSSIBLE_VALUES_TABLE_NAME, SYSTEM_ALIAS, TABLE_NAME, TYPE, TYPE_CONFIG_PROPERTY, VALUE
 
Constructor Summary
PossibleValueManager()
           
 
Method Summary
static RowCollection getConfigProperties(String metaDataSystemAlias, String key, String[] orderByColumnNames, int ownerId)
          This will return a RowCollection fo PossibleValues with the givin key @ pKey
static Row getConfigProperty(String metaDataSystemAlias, String key, String[] orderByColumnNames, int ownerId)
          This will return a RowCollection of configuration properties.
static RowCollection getPossibleValues(String metaDataSystemAlias, String key, String[] orderByColumnNames)
          This will return a RowCollection fo PossibleValues with the givin key @ pKey
static RowCollection getPossibleValues(String metaDataSystemAlias, String key, String[] orderByColumnNames, int ownerId)
          This will return a RowCollection fo PossibleValues with the givin key @ pKey
static boolean isPVFileUsed()
           
static void setPVFileUsed(boolean pPVFileUsed)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_POSSIBLE_VALUE

public static final int TYPE_POSSIBLE_VALUE
See Also:
Constant Field Values

SQL_KEY

public static final String SQL_KEY
See Also:
Constant Field Values
Constructor Detail

PossibleValueManager

public PossibleValueManager()
Method Detail

getConfigProperties

public static RowCollection getConfigProperties(String metaDataSystemAlias,
                                                String key,
                                                String[] orderByColumnNames,
                                                int ownerId)
                                         throws CMException
This will return a RowCollection fo PossibleValues with the givin key @ pKey

Parameters:
metaDataSystemAlias - system alias where metadata is located
key - key of possible values to retrieve
orderByColumnNames - names of columns to order by
ownerId - id of owner to which possible values belong
Returns:
RowCollection of possible values
CMException

getConfigProperty

public static Row getConfigProperty(String metaDataSystemAlias,
                                    String key,
                                    String[] orderByColumnNames,
                                    int ownerId)
                             throws CMException
This will return a RowCollection of configuration properties.

Parameters:
metaDataSystemAlias - system alias where metadata is located
key - key of possible values to retrieve
orderByColumnNames - names of columns to order by
ownerId - id of owner to which possible values belong
Returns:
RowCollection of possible values
CMException

getPossibleValues

public static RowCollection getPossibleValues(String metaDataSystemAlias,
                                              String key,
                                              String[] orderByColumnNames)
                                       throws CMException
This will return a RowCollection fo PossibleValues with the givin key @ pKey

Parameters:
metaDataSystemAlias - system alias where metadata is located
key - key of possible values to retrieve
orderByColumnNames - names of columns to order by
Returns:
RowCollection of possible values
CMException

getPossibleValues

public static RowCollection getPossibleValues(String metaDataSystemAlias,
                                              String key,
                                              String[] orderByColumnNames,
                                              int ownerId)
                                       throws CMException
This will return a RowCollection fo PossibleValues with the givin key @ pKey

Parameters:
metaDataSystemAlias - system alias where metadata is located
key - key of possible values to retrieve
orderByColumnNames - names of columns to order by
ownerId - id of owner to which possible values belong
Returns:
RowCollection of possible values
CMException

isPVFileUsed

public static boolean isPVFileUsed()

setPVFileUsed

public static void setPVFileUsed(boolean pPVFileUsed)