/** * Returns the table name. * * @param column the column index (1,2,...) * @return the table name * @throws SQLException if the result set is closed or invalid */ @Override public String getTableName(int column) throws SQLException { try { debugCodeCall("getTableName", column); checkColumnIndex(column); String table = result.getTableName(--column); return table == null ? "" : table; } catch (Exception e) { throw logAndConvert(e); } }
columnCount = result.getVisibleColumnCount(); for (int i = 0; i < columnCount; i++) { String t = result.getTableName(i); String s = result.getSchemaName(i); if (t == null || s == null) {
colName = StringUtils.toUpperEnglish(colName); mapColumn(map, colName, i); String tabName = result.getTableName(i); if (tabName != null) { colName = StringUtils.toUpperEnglish(tabName) + "." + colName; String col = columnLabel.substring(idx+1); for (int i = 0; i < columnCount; i++) { if (table.equalsIgnoreCase(result.getTableName(i)) && col.equalsIgnoreCase(result.getColumnName(i))) { return i + 1;
/** * Write a result column to the given output. * * @param out the object to where to write the data * @param result the result * @param i the column index */ public static void writeColumn(Transfer out, ResultInterface result, int i) throws IOException { out.writeString(result.getAlias(i)); out.writeString(result.getSchemaName(i)); out.writeString(result.getTableName(i)); out.writeString(result.getColumnName(i)); out.writeInt(result.getColumnType(i)); out.writeLong(result.getColumnPrecision(i)); out.writeInt(result.getColumnScale(i)); out.writeInt(result.getDisplaySize(i)); out.writeBoolean(result.isAutoIncrement(i)); out.writeInt(result.getNullable(i)); }
columnCount = result.getVisibleColumnCount(); for (int i = 0; i < columnCount; i++) { String t = result.getTableName(i); String s = result.getSchemaName(i); if (t == null || s == null) {
String c = result.getAlias(i).toUpperCase(); map.put(c, ObjectUtils.getInteger(i)); String tabName = result.getTableName(i); if (tabName != null) { String colName = result.getColumnName(i); String col = columnName.substring(idx+1); for (int i = 0; i < columnCount; i++) { if (table.equalsIgnoreCase(result.getTableName(i)) && col.equalsIgnoreCase(result.getColumnName(i))) { return i + 1;
/** * Returns the table name. * * @param column the column index (1,2,...) * @return the table name * @throws SQLException if the result set is closed or invalid */ @Override public String getTableName(int column) throws SQLException { try { debugCodeCall("getTableName", column); checkColumnIndex(column); String table = result.getTableName(--column); return table == null ? "" : table; } catch (Exception e) { throw logAndConvert(e); } }
/** * Returns the table name. * * @param column the column index (1,2,...) * @return the table name * @throws SQLException if the result set is closed or invalid */ public String getTableName(int column) throws SQLException { try { debugCodeCall("getTableName", column); checkColumnIndex(column); return result.getTableName(--column); } catch (Throwable e) { throw logAndConvert(e); } }
/** * Returns the table name. * * @param column the column index (1,2,...) * @return the table name * @throws SQLException if the result set is closed or invalid */ @Override public String getTableName(int column) throws SQLException { try { debugCodeCall("getTableName", column); checkColumnIndex(column); String table = result.getTableName(--column); return table == null ? "" : table; } catch (Exception e) { throw logAndConvert(e); } }
columnCount = result.getVisibleColumnCount(); for (int i = 0; i < columnCount; i++) { String t = result.getTableName(i); String s = result.getSchemaName(i); if (t == null || s == null) {
columnCount = result.getVisibleColumnCount(); for (int i = 0; i < columnCount; i++) { String t = result.getTableName(i); String s = result.getSchemaName(i); if (t == null || s == null) {
colName = StringUtils.toUpperEnglish(colName); mapColumn(map, colName, i); String tabName = result.getTableName(i); if (tabName != null) { colName = StringUtils.toUpperEnglish(tabName) + "." + colName; String col = columnLabel.substring(idx+1); for (int i = 0; i < columnCount; i++) { if (table.equalsIgnoreCase(result.getTableName(i)) && col.equalsIgnoreCase(result.getColumnName(i))) { return i + 1;
colName = StringUtils.toUpperEnglish(colName); mapColumn(map, colName, i); String tabName = result.getTableName(i); if (tabName != null) { colName = StringUtils.toUpperEnglish(tabName) + "." + colName; String col = columnLabel.substring(idx+1); for (int i = 0; i < columnCount; i++) { if (table.equalsIgnoreCase(result.getTableName(i)) && col.equalsIgnoreCase(result.getColumnName(i))) { return i + 1;
public static void writeColumn(Transfer out, ResultInterface result, int i) throws IOException { out.writeString(result.getAlias(i)); out.writeString(result.getSchemaName(i)); out.writeString(result.getTableName(i)); out.writeString(result.getColumnName(i)); out.writeInt(result.getColumnType(i)); out.writeLong(result.getColumnPrecision(i)); out.writeInt(result.getColumnScale(i)); out.writeInt(result.getDisplaySize(i)); out.writeBoolean(result.isAutoIncrement(i)); out.writeInt(result.getNullable(i)); } }
/** * Write a result column to the given output. * * @param out the object to where to write the data * @param result the result * @param i the column index */ public static void writeColumn(Transfer out, ResultInterface result, int i) throws IOException { out.writeString(result.getAlias(i)); out.writeString(result.getSchemaName(i)); out.writeString(result.getTableName(i)); out.writeString(result.getColumnName(i)); out.writeInt(result.getColumnType(i)); out.writeLong(result.getColumnPrecision(i)); out.writeInt(result.getColumnScale(i)); out.writeInt(result.getDisplaySize(i)); out.writeBoolean(result.isAutoIncrement(i)); out.writeInt(result.getNullable(i)); }
/** * Write a result column to the given output. * * @param out the object to where to write the data * @param result the result * @param i the column index */ public static void writeColumn(Transfer out, ResultInterface result, int i) throws IOException { out.writeString(result.getAlias(i)); out.writeString(result.getSchemaName(i)); out.writeString(result.getTableName(i)); out.writeString(result.getColumnName(i)); out.writeInt(result.getColumnType(i)); out.writeLong(result.getColumnPrecision(i)); out.writeInt(result.getColumnScale(i)); out.writeInt(result.getDisplaySize(i)); out.writeBoolean(result.isAutoIncrement(i)); out.writeInt(result.getNullable(i)); }