Examples of ClobImpl


Examples of org.datanucleus.store.rdbms.datatype.ClobImpl

                {
                    ((PreparedStatement) ps).setNull(param, getTypeInfo().getDataType());
                }
                else
                {
                    ((PreparedStatement) ps).setClob(param, new ClobImpl((String)value));
                }
            }
            catch (SQLException e)
            {
                throw new NucleusDataStoreException(LOCALISER_RDBMS.msg("055001","Object", "" + value, column, e.getMessage()), e);
View Full Code Here

Examples of org.exolab.castor.jdo.engine.ClobImpl

    /**
     * {@inheritDoc}
     */
    public Object convert(final Object object) {
        char[] chars = (char[]) object;
        return new ClobImpl(new CharArrayReader(chars), chars.length);
    }
View Full Code Here

Examples of org.exolab.castor.jdo.engine.ClobImpl

    /**
     * {@inheritDoc}
     */
    public Object convert(final Object object) {
        String str = (String) object;
        return new ClobImpl(new StringReader(str), str.length());
    }
View Full Code Here

Examples of org.exolab.castor.jdo.engine.ClobImpl

        if (enumeration.hasMoreElements()) {
            types = (TypeLOB) enumeration.nextElement();
            types.setBlob(BLOB_VALUE);
            types.setClob(CLOB_VALUE);
            //types.setBlob2(new ByteArrayInputStream(BLOB_VALUE));
            types.setClob2(new ClobImpl(new StringReader(CLOB_VALUE),
                                        CLOB_VALUE.length()));
        }
        _db.commit();

        _db.begin();
View Full Code Here

Examples of org.hibernate.lob.ClobImpl

   
      final boolean useReader = session.getFactory().getDialect().useInputStreamToInsertBlob() &&
        (value instanceof ClobImpl);
     
      if ( useReader ) {
        ClobImpl clob = (ClobImpl) value;
        st.setCharacterStream( index, clob.getCharacterStream(), (int) clob.length() );
      }
      else {
        st.setClob(index, (Clob) value);
      }
     
View Full Code Here

Examples of org.hibernate.lob.ClobImpl

   * Create a new <tt>Clob</tt>. The returned object will be initially immutable.
   *
   * @param string a <tt>String</tt>
   */
  public static Clob createClob(String string) {
    return new SerializableClob( new ClobImpl( string ) );
  }
View Full Code Here

Examples of org.hibernate.lob.ClobImpl

   *
   * @param reader a character stream
   * @param length the number of characters in the stream
   */
  public static Clob createClob(Reader reader, int length) {
    return new SerializableClob( new ClobImpl( reader, length ) );
  }
View Full Code Here

Examples of org.hibernate.lob.ClobImpl

   
      final boolean useReader = session.getFactory().getDialect().useInputStreamToInsertBlob() &&
        (value instanceof ClobImpl);
     
      if ( useReader ) {
        ClobImpl clob = (ClobImpl) value;
        st.setCharacterStream( index, clob.getCharacterStream(), (int) clob.length() );
      }
      else {
        st.setClob(index, (Clob) value);
      }
     
View Full Code Here

Examples of org.hibernate.lob.ClobImpl

   * Create a new <tt>Clob</tt>. The returned object will be initially immutable.
   *
   * @param string a <tt>String</tt>
   */
  public static Clob createClob(String string) {
    return new SerializableClob( new ClobImpl( string ) );
  }
View Full Code Here

Examples of org.hibernate.lob.ClobImpl

   *
   * @param reader a character stream
   * @param length the number of characters in the stream
   */
  public static Clob createClob(Reader reader, int length) {
    return new SerializableClob( new ClobImpl( reader, length ) );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.