本文整理了Java中java.sql.ResultSet.getRef
方法的一些代码示例,展示了ResultSet.getRef
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResultSet.getRef
方法的具体详情如下:
包路径:java.sql.ResultSet
类名称:ResultSet
方法名:getRef
[英]Gets the value of a column specified by column index as a Java java.sql.Ref.
[中]获取列索引指定为Java的列的值。sql。裁判。
代码示例来源:origin: oblac/jodd
/**
* {@inheritDoc}
*/
@Override
public Ref get(final ResultSet rs, final int index, final int dbSqlType) throws SQLException {
return rs.getRef(index);
}
代码示例来源:origin: querydsl/querydsl
@Override
public Ref getRef(int columnIndex) throws SQLException {
return rs.getRef(columnIndex);
}
代码示例来源:origin: querydsl/querydsl
@Override
public Ref getRef(String columnLabel) throws SQLException {
return rs.getRef(columnLabel);
}
代码示例来源:origin: alibaba/druid
@Override
public Ref getRef(int columnIndex) throws SQLException {
try {
return rs.getRef(columnIndex);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: alibaba/druid
@Override
public Ref getRef(String columnLabel) throws SQLException {
try {
return rs.getRef(columnLabel);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: apache/ignite
@Override public void run() throws Exception {
rs.getRef("id");
}
});
代码示例来源:origin: apache/ignite
@Override public void run() throws Exception {
rs.getRef(1);
}
});
代码示例来源:origin: speedment/speedment
public static Ref getRef(final ResultSet resultSet, final String columnName) throws SQLException {
return getNullableFrom(resultSet, rs -> rs.getRef(columnName));
}
代码示例来源:origin: speedment/speedment
public static Ref getRef(final ResultSet resultSet, final int ordinalPosition) throws SQLException {
return getNullableFrom(resultSet, rs -> rs.getRef(ordinalPosition));
}
代码示例来源:origin: alibaba/druid
@Override
public Ref resultSet_getRef(ResultSetProxy resultSet, int columnIndex) throws SQLException {
if (this.pos < filterSize) {
return nextFilter().resultSet_getRef(this, resultSet, columnIndex);
}
return resultSet.getResultSetRaw().getRef(columnIndex);
}
代码示例来源:origin: alibaba/druid
@Override
public Ref resultSet_getRef(ResultSetProxy resultSet, String columnLabel) throws SQLException {
if (this.pos < filterSize) {
return nextFilter().resultSet_getRef(this, resultSet, columnLabel);
}
return resultSet.getResultSetRaw().getRef(columnLabel);
}
代码示例来源:origin: codingapi/tx-lcn
@Override
public Ref getRef(String columnLabel) throws SQLException {
SQLException e = null;
try {
Ref value = delegate.getRef(columnLabel);
eventListener.onAfterResultSetGet(resultSetInformation, columnLabel, value, null);
return value;
} catch (SQLException sqle) {
e = sqle;
eventListener.onAfterResultSetGet(resultSetInformation, columnLabel, null, e);
throw e;
}
}
代码示例来源:origin: codingapi/tx-lcn
@Override
public Ref getRef(int columnIndex) throws SQLException {
SQLException e = null;
try {
Ref value = delegate.getRef(columnIndex);
eventListener.onAfterResultSetGet(resultSetInformation, columnIndex, value, null);
return value;
} catch (SQLException sqle) {
e = sqle;
eventListener.onAfterResultSetGet(resultSetInformation, columnIndex, null, e);
throw e;
}
}
代码示例来源:origin: com.alibaba/druid
@Override
public Ref getRef(int columnIndex) throws SQLException {
try {
return rs.getRef(columnIndex);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: com.alibaba/druid
@Override
public Ref getRef(String columnLabel) throws SQLException {
try {
return rs.getRef(columnLabel);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: p6spy/p6spy
@Override
public Ref getRef(int columnIndex) throws SQLException {
SQLException e = null;
try {
Ref value = delegate.getRef(columnIndex);
eventListener.onAfterResultSetGet(resultSetInformation, columnIndex, value, null);
return value;
} catch (SQLException sqle) {
e = sqle;
eventListener.onAfterResultSetGet(resultSetInformation, columnIndex, null, e);
throw e;
}
}
代码示例来源:origin: Meituan-Dianping/Zebra
public Ref getRef(String columnName) throws SQLException {
if (inMemory) {
wasNull = memoryData.get(rowNum - 1).get(columnName).isWasNull();
return (Ref) memoryData.get(rowNum - 1).get(columnName).getValue();
} else {
return resultSets.get(resultSetIndex).getRef(columnName);
}
}
代码示例来源:origin: Meituan-Dianping/Zebra
public Ref getRef(int columnIndex) throws SQLException {
if (inMemory) {
wasNull = memoryData.get(rowNum - 1).get(columnIndex).isWasNull();
if (wasNull) {
return null;
} else {
return (Ref) memoryData.get(rowNum - 1).get(columnIndex).getValue();
}
} else {
return resultSets.get(resultSetIndex).getRef(columnIndex);
}
}
代码示例来源:origin: com.alibaba/druid
@Override
public Ref resultSet_getRef(ResultSetProxy resultSet, int columnIndex) throws SQLException {
if (this.pos < filterSize) {
return nextFilter().resultSet_getRef(this, resultSet, columnIndex);
}
return resultSet.getResultSetRaw().getRef(columnIndex);
}
代码示例来源:origin: com.alibaba/druid
@Override
public Ref resultSet_getRef(ResultSetProxy resultSet, String columnLabel) throws SQLException {
if (this.pos < filterSize) {
return nextFilter().resultSet_getRef(this, resultSet, columnLabel);
}
return resultSet.getResultSetRaw().getRef(columnLabel);
}
内容来源于网络,如有侵权,请联系作者删除!