Package javax.sql.rowset.serial

Examples of javax.sql.rowset.serial.SerialRef


            throw new SQLException();
        }
        if (params == null) {
            throw new SQLException();
        }
        params.put(Integer.valueOf(parameterIndex - 1), new SerialRef(ref));
    }
View Full Code Here


public class SerialRefFactory implements SerialLocatorFactory<Ref>
{
  @Override
  public Ref createSerial(Ref ref) throws SQLException
  {
    return new SerialRef(ref);
  }
View Full Code Here

            if (type.equals(Clob.class) && !(value instanceof SerialClob)) {
                return new SerialClob((Clob) value);
            }

            if (type.equals(Ref.class) && !(value instanceof SerialRef)) {
                return new SerialRef((Ref) value);
            }

            return value;
        }
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        ref = new MockRef();
        sr = new SerialRef(ref);

        MockAbnormalRef maf = new MockAbnormalRef();
        sr2 = new SerialRef(maf);
    }
View Full Code Here

    /**
     * @tests javax.sql.rowset.serial.SerialRef#SerialRef(Ref ref)
     */
    public void testConstructorRef() throws SerialException, SQLException {
        try {
            new SerialRef(null);
            fail("should throw SQLException");
        } catch (SQLException e) {
            // expected
        }

        try {
            ref.setBaseTypeName(null);
            new SerialRef(ref);
            fail("should throw SQLException");
        } catch (SQLException e) {
            // expected
        }
    }
View Full Code Here

            throw new SQLException();
        }
        if (params == null) {
            throw new SQLException();
        }
        params.put(Integer.valueOf(parameterIndex - 1), new SerialRef(ref));
    }
View Full Code Here

            if (type.equals(Clob.class) && !(value instanceof SerialClob)) {
                return new SerialClob((Clob) value);
            }

            if (type.equals(Ref.class) && !(value instanceof SerialRef)) {
                return new SerialRef((Ref) value);
            }

            return value;
        }
View Full Code Here

            throw new SQLException();
        }
        if (params == null) {
            throw new SQLException();
        }
        params.put(Integer.valueOf(parameterIndex - 1), new SerialRef(ref));
    }
View Full Code Here

            if (type.equals(Clob.class) && !(value instanceof SerialClob)) {
                return new SerialClob((Clob) value);
            }

            if (type.equals(Ref.class) && !(value instanceof SerialRef)) {
                return new SerialRef((Ref) value);
            }

            return value;
        }
View Full Code Here

            throw new SQLException();
        }
        if (params == null) {
            throw new SQLException();
        }
        params.put(Integer.valueOf(parameterIndex - 1), new SerialRef(ref));
    }
View Full Code Here

TOP

Related Classes of javax.sql.rowset.serial.SerialRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.