Relation rel = (Relation) db2prop.get (columnName.toUpperCase()); if (rel == null) throw new SQLException ("Error retrieving relational schema for "+this);  if (columns == null) getColumns(); switch (rel.getColumnType()) {
DbColumn col = getColumn (columnName); switch (col.getType()) {
    public boolean needsQuotes (String columnName) throws SQLException {	if (table == null && parentMapping != null)	    return parentMapping.needsQuotes (columnName);	try {	    Relation rel = (Relation) db2prop.get (columnName.toUpperCase());	    if (rel == null)	        throw new SQLException ("Error retrieving relational schema for "+this);	    // make sure columns are initialized and up to date	    if (columns == null)	        getColumns();	    switch (rel.getColumnType()) {	        case Types.CHAR:	        case Types.VARCHAR:	        case Types.LONGVARCHAR:	        case Types.BINARY:	        case Types.VARBINARY:	        case Types.LONGVARBINARY:	        case Types.DATE:	        case Types.TIME:	        case Types.TIMESTAMP:	            return true;	        default:	            return false;	    }	} catch (Exception x) {	    throw new SQLException (x.getMessage ());	}    }