protected Date getDateInternal(Object obj, Joins joins) throws SQLException { Object val = checkNull(getObjectInternal(obj, JavaTypes.DATE, null, joins)); if (val == null) return null; if (val instanceof Date) return (Date) val; return new Date(val.toString()); }
protected double getDoubleInternal(Object obj, Joins joins) throws SQLException { Number val = (Number) checkNull(getObjectInternal(obj, JavaTypes.DOUBLE, null, joins)); return (val == null) ? 0 : val.doubleValue(); }
protected Array getArrayInternal(Object obj, Joins joins) throws SQLException { return (Array) checkNull(getObjectInternal(obj, JavaSQLTypes.SQL_ARRAY, null, joins)); }
protected Date getDateInternal(Object obj, Joins joins) throws SQLException { Object val = checkNull(getObjectInternal(obj, JavaTypes.DATE, null, joins)); if (val == null) return null; if (val instanceof Date) return (Date) val; return new Date(val.toString()); }
protected Array getArrayInternal(Object obj, Joins joins) throws SQLException { return (Array) checkNull(getObjectInternal(obj, JavaSQLTypes.SQL_ARRAY, null, joins)); }
protected byte[] getBytesInternal(Object obj, Joins joins) throws SQLException { return (byte[]) checkNull(getObjectInternal(obj, JavaSQLTypes.BYTES, null, joins)); }
protected Calendar getCalendarInternal(Object obj, Joins joins) throws SQLException { Object val = checkNull(getObjectInternal(obj, JavaTypes.CALENDAR, null, joins)); if (val == null) return null; if (val instanceof Calendar) return (Calendar) val; Calendar cal = Calendar.getInstance(); cal.setTime(new Date(val.toString())); return cal; }
protected long getLongInternal(Object obj, Joins joins) throws SQLException { Number val = (Number) checkNull(getObjectInternal(obj, JavaTypes.LONG, null, joins)); return (val == null) ? 0 : val.longValue(); }
protected Object getSQLObjectInternal(Object obj, Map map, Joins joins) throws SQLException { return checkNull(getObjectInternal(obj, JavaSQLTypes.SQL_OBJECT, map, joins)); }
protected String getStringInternal(Object obj, Joins joins, boolean isClobString) throws SQLException { Object val = checkNull(getObjectInternal(obj, JavaTypes.STRING, null, joins)); return (val == null) ? null : val.toString(); }
protected Time getTimeInternal(Object obj, Calendar cal, Joins joins) throws SQLException { return (Time) checkNull(getObjectInternal(obj, JavaSQLTypes.TIME, cal, joins)); }
protected Reader getCharacterStreamInternal(Object obj, Joins joins) throws SQLException { Object val = checkNull(getObjectInternal(obj, JavaSQLTypes.CHAR_STREAM, null, joins)); if (val == null) return null; if (val instanceof Reader) return (Reader) val; return new StringReader(val.toString()); }
protected java.sql.Date getDateInternal(Object obj, Calendar cal, Joins joins) throws SQLException { return (java.sql.Date) checkNull(getObjectInternal(obj, JavaSQLTypes.SQL_DATE, cal, joins)); }
protected Object getSQLObjectInternal(Object obj, Map map, Joins joins) throws SQLException { return checkNull(getObjectInternal(obj, JavaSQLTypes.SQL_OBJECT, map, joins)); }
protected String getStringInternal(Object obj, Joins joins) throws SQLException { Object val = checkNull(getObjectInternal(obj, JavaTypes.STRING, null, joins)); return (val == null) ? null : val.toString(); }
protected Timestamp getTimestampInternal(Object obj, Calendar cal, Joins joins) throws SQLException { return (Timestamp) checkNull(getObjectInternal(obj, JavaSQLTypes.TIMESTAMP, cal, joins)); }
protected BigInteger getBigIntegerInternal(Object obj, Joins joins) throws SQLException { Object val = checkNull(getObjectInternal(obj, JavaTypes.BIGINTEGER, null, joins)); if (val == null) return null; if (val instanceof BigInteger) return (BigInteger) val; return new BigInteger(val.toString()); }
public Object getObject(Column col, Object arg, Joins joins) throws SQLException { return getObjectInternal(col, col.getJavaType(), arg, joins); }
protected Object getSQLObjectInternal(Object obj, Map map, Joins joins) throws SQLException { return checkNull(getObjectInternal(obj, JavaSQLTypes.SQL_OBJECT, map, joins)); }
public Object getObject(Column col, Object arg, Joins joins) throws SQLException { return getObjectInternal(translate(col, joins), col.getJavaType(), arg, joins); }