Search in sources :

Example 6 with RowId

use of java.sql.RowId in project jaybird by FirebirdSQL.

the class TestFBRowIdField method setRowIdNonNull.

@Test
@Override
public void setRowIdNonNull() throws SQLException {
    final byte[] bytes = getRandomBytes();
    final RowId rowId = new FBRowId(bytes);
    setValueExpectations(bytes);
    field.setRowId(rowId);
}
Also used : RowId(java.sql.RowId) FBRowId(org.firebirdsql.jdbc.FBRowId) FBRowId(org.firebirdsql.jdbc.FBRowId) Test(org.junit.Test)

Example 7 with RowId

use of java.sql.RowId in project jaybird by FirebirdSQL.

the class TestFBRowIdField method getObject_RowId_null.

@Test
public void getObject_RowId_null() throws SQLException {
    toReturnNullExpectations();
    RowId rowId = field.getObject(RowId.class);
    assertNull(rowId);
}
Also used : RowId(java.sql.RowId) FBRowId(org.firebirdsql.jdbc.FBRowId) Test(org.junit.Test)

Example 8 with RowId

use of java.sql.RowId in project jaybird by FirebirdSQL.

the class TestFBBinaryField method getObject_RowId_null.

@Test
public void getObject_RowId_null() throws SQLException {
    toReturnNullExpectations();
    RowId rowId = field.getObject(RowId.class);
    assertNull(rowId);
}
Also used : RowId(java.sql.RowId) FBRowId(org.firebirdsql.jdbc.FBRowId) Test(org.junit.Test)

Example 9 with RowId

use of java.sql.RowId in project jaybird by FirebirdSQL.

the class TestFBBinaryField method setObject_RowId.

@Test
@Override
public void setObject_RowId() throws SQLException {
    final byte[] bytes = getRandomBytes();
    final RowId rowId = new FBRowId(bytes);
    setValueExpectations(bytes);
    field.setObject(rowId);
}
Also used : RowId(java.sql.RowId) FBRowId(org.firebirdsql.jdbc.FBRowId) FBRowId(org.firebirdsql.jdbc.FBRowId) Test(org.junit.Test)

Example 10 with RowId

use of java.sql.RowId in project jaybird by FirebirdSQL.

the class TestFBBinaryField method getObject_RowId.

@Test
@Override
public void getObject_RowId() throws SQLException {
    final byte[] bytes = getRandomBytes();
    toReturnValueExpectations(bytes);
    RowId rowId = field.getObject(RowId.class);
    assertArrayEquals(bytes, rowId.getBytes());
}
Also used : RowId(java.sql.RowId) FBRowId(org.firebirdsql.jdbc.FBRowId) Test(org.junit.Test)

Aggregations

RowId (java.sql.RowId)16 Test (org.junit.Test)12 FBRowId (org.firebirdsql.jdbc.FBRowId)10 FilterChainImpl (com.alibaba.druid.filter.FilterChainImpl)2 InputStream (java.io.InputStream)2 Reader (java.io.Reader)2 BigDecimal (java.math.BigDecimal)2 URL (java.net.URL)2 Array (java.sql.Array)2 Blob (java.sql.Blob)2 Clob (java.sql.Clob)2 Date (java.sql.Date)2 NClob (java.sql.NClob)2 Ref (java.sql.Ref)2 ResultSet (java.sql.ResultSet)2 SQLXML (java.sql.SQLXML)2 Time (java.sql.Time)2 Timestamp (java.sql.Timestamp)2 Calendar (java.util.Calendar)2 CallableStatement (java.sql.CallableStatement)1