org.sourceforge.beanindex
Class Constants

java.lang.Object
  extended byorg.sourceforge.beanindex.Constants

public final class Constants
extends java.lang.Object

Constants used throughout the BeanIndex code

Author:
Sakthivel Muthusamy

Field Summary
static byte ARRAY
           
static java.lang.String BASE_DIR
          Base directory.
static java.lang.String BCKP_DIR
           
static byte BOOLEAN
           
static byte BOOLEAN_WRPR
           
static byte BYTE
           
static byte BYTE_WRPR
           
static byte CHAR
           
static byte CHAR_WRPR
           
static java.lang.String CONCAT_STR
           
static byte DATE
           
static java.lang.String DEPLOY_DIR
           
static java.lang.String DICT_DAT_FILE
           
static java.lang.String DICT_LCX_FILE
           
static java.lang.String DICT_SRX_FILE
           
static byte DOUBLE
           
static byte DOUBLE_WRPR
           
static byte FLOAT
           
static byte FLOAT_WRPR
           
static byte INT
           
static byte INT_WRPR
           
static java.lang.String INVX_DAT_EXTN
           
static java.lang.String INVX_LCX_EXTN
           
static java.lang.String LGL_AND
           
static java.lang.String LGL_LBRACKET
           
static java.lang.String LGL_NOT
           
static java.lang.String LGL_OR
           
static java.lang.String LGL_RBRACKET
           
static byte LONG
           
static byte LONG_WRPR
           
static byte OBJECT
           
static byte OBJECT_END
           
static java.lang.String OPEN_READ
           
static java.lang.String OPEN_READWRITE
           
static int PREC_AND
           
static int PREC_DATA
           
static int PREC_LBRKT
           
static int PREC_NOT
           
static int PREC_OR
           
static int PREC_RBRKT
           
static java.lang.String REPO_BNF_FILE
           
static java.lang.String REPO_DAT_FILE
           
static java.lang.String REPO_LCX_FILE
           
static byte SHORT
           
static byte SHORT_WRPR
           
static byte STRING
           
static java.lang.String SYS_DATA
           
static java.lang.String THREAD_DATA_READY
           
static java.lang.String THREAD_SYNC_REQD
           
static java.lang.String UNKOWN_ERR
           
static java.lang.String VM_SWAP_FILE
           
static java.lang.String WORK_DIR
           
 
Constructor Summary
Constants()
           
 
Method Summary
static int getArrayDimension(java.lang.Class clazz)
           
static int getArrayDimension(java.lang.reflect.Field field)
           
static int getArrayDimension(java.lang.Object array)
           
static byte getArrayType(java.lang.Class clazz)
           
static byte getArrayType(java.lang.reflect.Field field)
           
static byte getBeanIndexCustomFieldType(java.lang.Class clazz)
           
static byte getFieldType(java.lang.Class clazz)
           
static java.lang.Class getFieldTypeClass(byte fieldType)
           
static byte getPrimitiveFieldType(int fieldType)
           
static byte getPrimitiveFieldTypeStr(java.lang.String str)
           
static byte getPrimitiveWrapperFieldType(int fieldType)
           
static boolean isArrayFieldType(java.lang.Class clazz)
           
static boolean isArrayFieldType(java.lang.reflect.Field field)
           
static boolean isBeanIndexExternilizerUsable(java.lang.Class clazz)
           
static boolean isIndexable(java.lang.reflect.Field field)
           
static boolean isLogicalOP(java.lang.String phrase)
          This method checks if the phrase is one of the logical operator
static boolean isReserved(java.lang.String phrase)
          This method checks if the phrase is one of the reserved words .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_DIR

public static final java.lang.String BASE_DIR
Base directory.

See Also:
Constant Field Values

WORK_DIR

public static final java.lang.String WORK_DIR
See Also:
Constant Field Values

DEPLOY_DIR

public static final java.lang.String DEPLOY_DIR
See Also:
Constant Field Values

BCKP_DIR

public static final java.lang.String BCKP_DIR
See Also:
Constant Field Values

DICT_DAT_FILE

public static final java.lang.String DICT_DAT_FILE
See Also:
Constant Field Values

DICT_LCX_FILE

public static final java.lang.String DICT_LCX_FILE
See Also:
Constant Field Values

DICT_SRX_FILE

public static final java.lang.String DICT_SRX_FILE
See Also:
Constant Field Values

INVX_DAT_EXTN

public static final java.lang.String INVX_DAT_EXTN
See Also:
Constant Field Values

INVX_LCX_EXTN

public static final java.lang.String INVX_LCX_EXTN
See Also:
Constant Field Values

REPO_DAT_FILE

public static final java.lang.String REPO_DAT_FILE
See Also:
Constant Field Values

REPO_LCX_FILE

public static final java.lang.String REPO_LCX_FILE
See Also:
Constant Field Values

REPO_BNF_FILE

public static final java.lang.String REPO_BNF_FILE
See Also:
Constant Field Values

VM_SWAP_FILE

public static final java.lang.String VM_SWAP_FILE
See Also:
Constant Field Values

LGL_AND

public static final java.lang.String LGL_AND
See Also:
Constant Field Values

LGL_OR

public static final java.lang.String LGL_OR
See Also:
Constant Field Values

LGL_NOT

public static final java.lang.String LGL_NOT
See Also:
Constant Field Values

LGL_LBRACKET

public static final java.lang.String LGL_LBRACKET
See Also:
Constant Field Values

LGL_RBRACKET

public static final java.lang.String LGL_RBRACKET
See Also:
Constant Field Values

PREC_DATA

public static final int PREC_DATA
See Also:
Constant Field Values

PREC_OR

public static final int PREC_OR
See Also:
Constant Field Values

PREC_AND

public static final int PREC_AND
See Also:
Constant Field Values

PREC_NOT

public static final int PREC_NOT
See Also:
Constant Field Values

PREC_LBRKT

public static final int PREC_LBRKT
See Also:
Constant Field Values

PREC_RBRKT

public static final int PREC_RBRKT
See Also:
Constant Field Values

CONCAT_STR

public static final java.lang.String CONCAT_STR
See Also:
Constant Field Values

OPEN_READ

public static final java.lang.String OPEN_READ
See Also:
Constant Field Values

OPEN_READWRITE

public static final java.lang.String OPEN_READWRITE
See Also:
Constant Field Values

SYS_DATA

public static final java.lang.String SYS_DATA
See Also:
Constant Field Values

UNKOWN_ERR

public static final java.lang.String UNKOWN_ERR
See Also:
Constant Field Values

THREAD_SYNC_REQD

public static final java.lang.String THREAD_SYNC_REQD
See Also:
Constant Field Values

THREAD_DATA_READY

public static final java.lang.String THREAD_DATA_READY
See Also:
Constant Field Values

BYTE

public static final byte BYTE
See Also:
Constant Field Values

SHORT

public static final byte SHORT
See Also:
Constant Field Values

CHAR

public static final byte CHAR
See Also:
Constant Field Values

INT

public static final byte INT
See Also:
Constant Field Values

LONG

public static final byte LONG
See Also:
Constant Field Values

FLOAT

public static final byte FLOAT
See Also:
Constant Field Values

DOUBLE

public static final byte DOUBLE
See Also:
Constant Field Values

BOOLEAN

public static final byte BOOLEAN
See Also:
Constant Field Values

ARRAY

public static final byte ARRAY
See Also:
Constant Field Values

OBJECT

public static final byte OBJECT
See Also:
Constant Field Values

OBJECT_END

public static final byte OBJECT_END
See Also:
Constant Field Values

STRING

public static final byte STRING
See Also:
Constant Field Values

DATE

public static final byte DATE
See Also:
Constant Field Values

BYTE_WRPR

public static final byte BYTE_WRPR
See Also:
Constant Field Values

SHORT_WRPR

public static final byte SHORT_WRPR
See Also:
Constant Field Values

CHAR_WRPR

public static final byte CHAR_WRPR
See Also:
Constant Field Values

INT_WRPR

public static final byte INT_WRPR
See Also:
Constant Field Values

LONG_WRPR

public static final byte LONG_WRPR
See Also:
Constant Field Values

FLOAT_WRPR

public static final byte FLOAT_WRPR
See Also:
Constant Field Values

DOUBLE_WRPR

public static final byte DOUBLE_WRPR
See Also:
Constant Field Values

BOOLEAN_WRPR

public static final byte BOOLEAN_WRPR
See Also:
Constant Field Values
Constructor Detail

Constants

public Constants()
Method Detail

isReserved

public static boolean isReserved(java.lang.String phrase)
This method checks if the phrase is one of the reserved words . Like AND OR NOT

Parameters:
phrase -
Returns:
boolean

isLogicalOP

public static boolean isLogicalOP(java.lang.String phrase)
This method checks if the phrase is one of the logical operator

Parameters:
phrase -
Returns:
boolean

isIndexable

public static boolean isIndexable(java.lang.reflect.Field field)
Parameters:
field -
Returns:
boolean

isArrayFieldType

public static boolean isArrayFieldType(java.lang.reflect.Field field)
Parameters:
field -
Returns:
boolean

isArrayFieldType

public static boolean isArrayFieldType(java.lang.Class clazz)
Parameters:
clazz -
Returns:
boolean

getArrayType

public static byte getArrayType(java.lang.reflect.Field field)
Parameters:
field -
Returns:
byte

getArrayType

public static byte getArrayType(java.lang.Class clazz)
Parameters:
clazz -
Returns:
byte

getFieldType

public static byte getFieldType(java.lang.Class clazz)
Parameters:
clazz -
Returns:
byte

getFieldTypeClass

public static java.lang.Class getFieldTypeClass(byte fieldType)
Parameters:
fieldType -
Returns:
Class

getBeanIndexCustomFieldType

public static byte getBeanIndexCustomFieldType(java.lang.Class clazz)
Parameters:
clazz -
Returns:
byte

getPrimitiveFieldTypeStr

public static byte getPrimitiveFieldTypeStr(java.lang.String str)
Parameters:
str -
Returns:
byte

getPrimitiveFieldType

public static byte getPrimitiveFieldType(int fieldType)
Parameters:
fieldType -
Returns:
byte

getPrimitiveWrapperFieldType

public static byte getPrimitiveWrapperFieldType(int fieldType)
Parameters:
fieldType -
Returns:
byte

getArrayDimension

public static int getArrayDimension(java.lang.reflect.Field field)
Parameters:
field -
Returns:
int

getArrayDimension

public static int getArrayDimension(java.lang.Class clazz)
Parameters:
clazz -
Returns:
int

getArrayDimension

public static int getArrayDimension(java.lang.Object array)
Parameters:
array -
Returns:
int

isBeanIndexExternilizerUsable

public static boolean isBeanIndexExternilizerUsable(java.lang.Class clazz)
Parameters:
clazz -
Returns:
boolean