Ejemplo n.º 1
0
 protected Vector buildToNClobVec() {
   Vector vec = new Vector();
   vec.addElement(String.class);
   vec.addElement(Character[].class);
   vec.addElement(char[].class);
   return vec;
 }
Ejemplo n.º 2
0
 protected Vector buildFromStringCharVec(Class javaClass) {
   Vector vec = getConversionManager().getDataTypesConvertedFrom(javaClass);
   vec.addElement(NCHAR);
   vec.addElement(NSTRING);
   if (javaClass == String.class) {
     vec.addElement(NCLOB);
   }
   return vec;
 }
Ejemplo n.º 3
0
 /**
  * INTERNAL: Return the list of Classes that can be converted to from the passed in javaClass.
  * oracle.sql.TIMESTAMP and NCHAR types are added in some lists.
  *
  * @param javaClass - the class that is converted from
  * @return - a vector of classes
  */
 public Vector getDataTypesConvertedFrom(Class javaClass) {
   if (dataTypesConvertedFromAClass == null) {
     dataTypesConvertedFromAClass = new Hashtable(5);
   }
   Vector dataTypes = (Vector) dataTypesConvertedFromAClass.get(javaClass);
   if (dataTypes != null) {
     return dataTypes;
   }
   dataTypes = super.getDataTypesConvertedFrom(javaClass);
   if ((javaClass == String.class) || (javaClass == Character.class)) {
     dataTypes.addElement(NCHAR);
     dataTypes.addElement(NSTRING);
     if (javaClass == String.class) {
       dataTypes.addElement(NCLOB);
     }
   }
   if ((javaClass == char[].class) || (javaClass == Character[].class)) {
     dataTypes.addElement(NCLOB);
   }
   dataTypesConvertedFromAClass.put(javaClass, dataTypes);
   return dataTypes;
 }
Ejemplo n.º 4
0
 protected Vector buildToTIMESTAMPVec() {
   Vector vec = new Vector();
   vec.addElement(java.util.Date.class);
   vec.addElement(Timestamp.class);
   vec.addElement(Calendar.class);
   vec.addElement(String.class);
   vec.addElement(Long.class);
   vec.addElement(Date.class);
   vec.addElement(Time.class);
   return vec;
 }
Ejemplo n.º 5
0
 protected Vector buildToNStringCharVec() {
   Vector vec = new Vector();
   vec.addElement(String.class);
   vec.addElement(Character.class);
   return vec;
 }