java.sql.Ref Java Examples
The following examples show how to use
java.sql.Ref.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DelegatingCallableStatement.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public Ref getRef(final String parameterName) throws SQLException { checkOpen(); try { return getDelegateCallableStatement().getRef(parameterName); } catch (final SQLException e) { handleException(e); return null; } }
Example #2
Source File: SQLOutputImplTests.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Test(enabled = true) public void test07() throws Exception { Ref ref = new StubRef(sqlType, hero); outImpl.writeRef(ref); SerialRef sr = (SerialRef) results.get(0); assertTrue(hero.equals(sr.getObject())); }
Example #3
Source File: CommonCachedRowSetTests.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
protected void createDataTypesRows(RowSet crs) throws SQLException { Integer aInteger = 100; String aChar = "Oswald Cobblepot"; Long aLong = Long.MAX_VALUE; Short aShort = Short.MAX_VALUE; Double aDouble = Double.MAX_VALUE; BigDecimal aBigDecimal = BigDecimal.ONE; Boolean aBoolean = false; Float aFloat = Float.MAX_VALUE; Byte aByte = Byte.MAX_VALUE; Date aDate = Date.valueOf(LocalDate.now()); Time aTime = Time.valueOf(LocalTime.now()); Timestamp aTimeStamp = Timestamp.valueOf(LocalDateTime.now()); Array aArray = new StubArray("INTEGER", new Object[1]); Ref aRef = new SerialRef(new StubRef("INTEGER", query)); byte[] bytes = new byte[10]; crs.moveToInsertRow(); crs.updateInt(1, aInteger); crs.updateString(2, aChar); crs.updateString(3, aChar); crs.updateLong(4, aLong); crs.updateBoolean(5, aBoolean); crs.updateShort(6, aShort); crs.updateDouble(7, aDouble); crs.updateBigDecimal(8, aBigDecimal); crs.updateFloat(9, aFloat); crs.updateByte(10, aByte); crs.updateDate(11, aDate); crs.updateTime(12, aTime); crs.updateTimestamp(13, aTimeStamp); crs.updateBytes(14, bytes); crs.updateArray(15, aArray); crs.updateRef(16, aRef); crs.updateDouble(17, aDouble); crs.insertRow(); crs.moveToCurrentRow(); }
Example #4
Source File: CommonCachedRowSetTests.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected void createDataTypesRows(RowSet crs) throws SQLException { Integer aInteger = 100; String aChar = "Oswald Cobblepot"; Long aLong = Long.MAX_VALUE; Short aShort = Short.MAX_VALUE; Double aDouble = Double.MAX_VALUE; BigDecimal aBigDecimal = BigDecimal.ONE; Boolean aBoolean = false; Float aFloat = Float.MAX_VALUE; Byte aByte = Byte.MAX_VALUE; Date aDate = Date.valueOf(LocalDate.now()); Time aTime = Time.valueOf(LocalTime.now()); Timestamp aTimeStamp = Timestamp.valueOf(LocalDateTime.now()); Array aArray = new StubArray("INTEGER", new Object[1]); Ref aRef = new SerialRef(new StubRef("INTEGER", query)); byte[] bytes = new byte[10]; crs.moveToInsertRow(); crs.updateInt(1, aInteger); crs.updateString(2, aChar); crs.updateString(3, aChar); crs.updateLong(4, aLong); crs.updateBoolean(5, aBoolean); crs.updateShort(6, aShort); crs.updateDouble(7, aDouble); crs.updateBigDecimal(8, aBigDecimal); crs.updateFloat(9, aFloat); crs.updateByte(10, aByte); crs.updateDate(11, aDate); crs.updateTime(12, aTime); crs.updateTimestamp(13, aTimeStamp); crs.updateBytes(14, bytes); crs.updateArray(15, aArray); crs.updateRef(16, aRef); crs.updateDouble(17, aDouble); crs.insertRow(); crs.moveToCurrentRow(); }
Example #5
Source File: SQLOutputImplTests.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Test(enabled = true) public void test07() throws Exception { Ref ref = new StubRef(sqlType, hero); outImpl.writeRef(ref); SerialRef sr = (SerialRef) results.get(0); assertTrue(hero.equals(sr.getObject())); }
Example #6
Source File: DelegatingResultSet.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public void updateRef(final String columnName, final Ref x) throws SQLException { try { resultSet.updateRef(columnName, x); } catch (final SQLException e) { handleException(e); } }
Example #7
Source File: DelegatingResultSet.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public Ref getRef(final String colName) throws SQLException { try { return resultSet.getRef(colName); } catch (final SQLException e) { handleException(e); return null; } }
Example #8
Source File: DelegatingResultSet.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public Ref getRef(final int i) throws SQLException { try { return resultSet.getRef(i); } catch (final SQLException e) { handleException(e); return null; } }
Example #9
Source File: SQLInputImplTests.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Test(enabled = true) public void test09() throws Exception { Ref ref = new StubRef(sqlType, hero); Object[] values = {ref}; SQLInputImpl sqli = new SQLInputImpl(values, map); Ref ref2 = sqli.readRef(); assertTrue(ref.getObject().equals(ref2.getObject())); assertTrue(ref.getBaseTypeName().equals(ref2.getBaseTypeName())); }
Example #10
Source File: DelegatingResultSet.java From Tomcat8-Source-Read with MIT License | 5 votes |
@Override public void updateRef(final int columnIndex, final Ref x) throws SQLException { try { resultSet.updateRef(columnIndex, x); } catch (final SQLException e) { handleException(e); } }
Example #11
Source File: PreparedStatementAdaptor.java From hibernate-reactive with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void setRef(int parameterIndex, Ref x) { put( parameterIndex, x ); }
Example #12
Source File: StubJdbcRowSetImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Override public void updateRef(String columnLabel, Ref x) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }
Example #13
Source File: FixedCachedRowSetImpl.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
@Override public Ref getRef(String colName) throws SQLException { return getRef(getColumnIdxByName(colName)); }
Example #14
Source File: StubWebRowSetImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Override public void updateRef(int columnIndex, Ref x) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }
Example #15
Source File: StubBaseRowSet.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override public Ref getRef(String columnLabel) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }
Example #16
Source File: StubBaseRowSet.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Override public void updateRef(String columnLabel, Ref x) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }
Example #17
Source File: StubJoinRowSetImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Override public Ref getRef(String columnLabel) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }
Example #18
Source File: FixedCachedRowSetImpl.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
@Override public void updateRef(String columnName, java.sql.Ref ref) throws SQLException { updateRef(getColumnIdxByName(columnName), ref); }
Example #19
Source File: ResultSetAdaptor.java From hibernate-reactive with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void updateRef(String columnLabel, Ref x) { throw new UnsupportedOperationException(); }
Example #20
Source File: StubJoinRowSetImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override public void updateRef(String columnLabel, Ref x) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }
Example #21
Source File: ResultSetAdaptor.java From hibernate-reactive with GNU Lesser General Public License v2.1 | 4 votes |
@Override public Ref getRef(String columnLabel) { throw new UnsupportedOperationException(); }
Example #22
Source File: StubJoinRowSetImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override public Ref getRef(String columnLabel) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }
Example #23
Source File: JavaBatchSchemaGeneratorTest.java From FHIR with Apache License 2.0 | 4 votes |
@Override public Ref getRef(String parameterName) throws SQLException { return null; }
Example #24
Source File: JavaBatchSchemaGeneratorTest.java From FHIR with Apache License 2.0 | 4 votes |
@Override public Ref getRef(int parameterIndex) throws SQLException { return null; }
Example #25
Source File: SchemaPrinter.java From FHIR with Apache License 2.0 | 4 votes |
@Override public Ref getRef(int columnIndex) throws SQLException { return null; }
Example #26
Source File: StubSyncResolver.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override public void updateRef(String columnLabel, Ref x) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }
Example #27
Source File: SchemaPrinter.java From FHIR with Apache License 2.0 | 4 votes |
@Override public Ref getRef(String parameterName) throws SQLException { return null; }
Example #28
Source File: StubFilteredRowSetImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
@Override public void updateRef(int columnIndex, Ref x) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }
Example #29
Source File: SchemaPrinter.java From FHIR with Apache License 2.0 | 4 votes |
@Override public Ref getRef(String columnLabel) throws SQLException { return null; }
Example #30
Source File: StubFilteredRowSetImpl.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Override public Ref getRef(String columnLabel) throws SQLException { throw new UnsupportedOperationException("Not supported yet."); }