Package org.hibernate.lob

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


   * 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

   *
   * @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

   
      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

   * 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

   *
   * @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

   * 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

   *
   * @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

Related Classes of org.hibernate.lob.ClobImpl

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.