| java.lang.Object org.jaffa.persistence.engines.jdbcengine.variants.Variant
Variant | public class Variant (Code) | | This class manages all the access to the properties of the various database variants.
Each database variant will have its own property file in this package. For eg. a variant 'xxx' will have a 'xxx.properties' file in this package.
If the file does not exist, or if a particular property does not exist in the variant, then the 'default.properties' will be used.
Each property will have a static name associated with it.
author: GautamJ version: 1.0 |
PROP_DEFAULT_PACKING_CODE_FOR_BOOLEAN | final public static String PROP_DEFAULT_PACKING_CODE_FOR_BOOLEAN(Code) | | Static : This is used to get the default packing code for boolean fields in a DBMS. Can be one of BOOLEAN_BIT, BOOLEAN_TF, BOOLEAN_YN, BOOLEAN_10
|
PROP_LOCK_CONSTRUCT_IN_FROM_SELECT_STATEMENT | final public static String PROP_LOCK_CONSTRUCT_IN_FROM_SELECT_STATEMENT(Code) | | Static : The LOCK construct in the fROM portion if a SELECT statement
|
PROP_LOCK_CONSTRUCT_IN_SELECT_STATEMENT | final public static String PROP_LOCK_CONSTRUCT_IN_SELECT_STATEMENT(Code) | | Static : The LOCK construct in a SELECT statement
|
PROP_USE_TO_DATE_SQL_FUNCTION | final public static String PROP_USE_TO_DATE_SQL_FUNCTION(Code) | | Static : This indicates if the to_date SQL function is used when querying Date fields
|
getProperty | public static String getProperty(String variant, String key) throws MissingResourceException(Code) | | Returns the value of a property, for a given variant. The default resource will be used, in case the variant resource is not found or if the variant does not have the given property.
Parameters: variant - the name of the variant. If a null value is passed, then the default will be used. Parameters: key - the name of the property. throws: MissingResourceException - if the property is not found in both the variant and the default resource files. the value of a property. |
|
|