protected Vector buildToNClobVec() { Vector vec = new Vector(); vec.addElement(String.class); vec.addElement(Character[].class); vec.addElement(char[].class); return vec; }
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; }
/** * 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; }
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; }
protected Vector buildToNStringCharVec() { Vector vec = new Vector(); vec.addElement(String.class); vec.addElement(Character.class); return vec; }