Class symantec.itools.db.beans.util.DataTypeHelper
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class symantec.itools.db.beans.util.DataTypeHelper
Object
   |
   +----symantec.itools.db.beans.util.DataTypeHelper
  -  public class DataTypeHelper
  
-  extends Object
  
Helper class for datatypes
  -  Version:
  
 -  1.0
  
 -  Author:
  
 -  Puru Balakrishnan
 
  
  -  
	getArrayOfConstantDataTypeDesc()
   -   return array of descriptions for datatypes used for constants
 
  
 -  
	getDataType(String)
   -   method to get int value from String
 
  
 -  
	getDataTypeDescription(int)
   -   method to convert int value to string
 
  
 -  
	getJavaObjectForType(String, int)
   -   Method to return appropriate object value for a particular datatype
 
  
 -  
	getObjCodeGenForDataType(int)
   -   method to get code generation string for a particular datatype
 
  
 -  
	getSQLConstant(int)
   -   method to get sql constants for a particular int value
 
  
 -  
	getStringToIntHash()
   -   Method to return Hashtable used for String to Integer conversion
 
  
 -  
	isDataTypeDescriptionValid(String)
   -   method to determine if a datatype description is valid
 
  
 -  
	isDataTypeValidForConstant(int)
   -   method to return true if the data type is valid for constant
 
 
  
getArrayOfConstantDataTypeDesc
public static java.lang.String[] getArrayOfConstantDataTypeDesc()
  -  return array of descriptions for datatypes used for constants
  
 
 
    -  Returns:
    
 -  String[]
  
 
 
 
getDataType
public static int getDataType(String name)
  -  method to get int value from String
  
 
 
    -  Parameters:
    
 -  name - String to be converted
    
 -  Returns:
    
 -  converted type
  
 
 
 
getDataTypeDescription
public static java.lang.String getDataTypeDescription(int type)
  -  method to convert int value to string
  
 
 
    -  Parameters:
    
 -  type - value to convert
    
 -  Returns:
    
 -  converted description
  
 
 
 
getJavaObjectForType
public static java.lang.Object getJavaObjectForType(String value,
                                                    int type)
  -  Method to return appropriate object value for a particular datatype
  
 
 
    -  Parameters:
    
 -  value - String value to be converted as Java Object
    
-  type - representing the datatype
    
  -  Returns:
    
 -  java Object for the specified value and type
  
 
 
 
getObjCodeGenForDataType
public static java.lang.String getObjCodeGenForDataType(int type)
  -  method to get code generation string for a particular datatype
  
 
 
    -  Parameters:
    
 -  type - requested value
    
 -  Returns:
    
 -  code generation String for the specified datatype
  
 
 
 
getSQLConstant
public static java.lang.String getSQLConstant(int type)
  -  method to get sql constants for a particular int value
  
 
 
    -  Parameters:
    
 -  type - requested value
    
 -  Returns:
    
 -  sql String constant for the specified constant
  
 
 
 
getStringToIntHash
public static java.util.Hashtable getStringToIntHash()
  -  Method to return Hashtable used for String to Integer conversion
  
 
 
    -  Returns:
    
 -  Hashtable containing strings
  
 
 
 
isDataTypeDescriptionValid
public static boolean isDataTypeDescriptionValid(String text)
  -  method to determine if a datatype description is valid
  
 
 
    -  Parameters:
    
 -  text - String to be tested
    
 -  Returns:
    
 -  true if datatype description is valid
  
 
 
 
isDataTypeValidForConstant
public static boolean isDataTypeValidForConstant(int type)
  -  method to return true if the data type is valid for constant
  
 
 
    -  Parameters:
    
 -  type - indicating data type
    
 -  Returns:
    
 -  true or false
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index