congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ClobProxy
Code IndexAdd Tabnine to your IDE (free)

How to use
ClobProxy
in
org.hibernate.engine.jdbc

Best Java code snippets using org.hibernate.engine.jdbc.ClobProxy (Showing top 20 results out of 315)

origin: hibernate/hibernate-orm

public Clob fromString(String string) {
  return ClobProxy.generateProxy( string );
}
origin: hibernate/hibernate-orm

/**
 * Generates a {@link Clob} proxy using a character reader of given length.
 *
 * @param reader The character reader
 * @param length The length of the character reader
 *
 * @return The generated proxy.
 */
public static Clob generateProxy(Reader reader, long length) {
  return (Clob) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new ClobProxy( reader, length ) );
}
origin: hibernate/hibernate-orm

return getLength();
return getUnderlyingStream(); // Reset stream if needed.
return getAsciiStream();
  return getCharacterStream();
    throw new SQLException( "Start position 1-based; must be 1 or more." );
  if ( start > getLength() ) {
    throw new SQLException( "Start position [" + start + "] cannot exceed overall CLOB length [" + getLength() + "]" );
  return DataHelper.subStream( getCharacterStream(), start-1, length );
  throw new SQLException( "Start position 1-based; must be 1 or more." );
if ( start > getLength() ) {
  throw new SQLException( "Start position [" + start + "] cannot exceed overall CLOB length [" + getLength() + "]" );
  throw new SQLException( "Length must be great-than-or-equal to zero." );
return getSubString( start-1, length );
origin: hibernate/hibernate-orm

/**
 * Generates a {@link java.sql.Clob} proxy using the string data.
 *
 * @param string The data to be wrapped as a {@link java.sql.Clob}.
 *
 * @return The generated proxy.
 */
public static NClob generateProxy(String string) {
  return (NClob) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new ClobProxy( string ) );
}
origin: hibernate/hibernate-orm

protected CharacterStream getUnderlyingStream() throws SQLException {
  resetIfNeeded();
  return characterStream;
}
origin: hibernate/hibernate-orm

protected InputStream getAsciiStream() throws SQLException {
  return new ReaderInputStream( getCharacterStream() );
}
origin: hibernate/hibernate-orm

protected Reader getCharacterStream() throws SQLException {
  return getUnderlyingStream().asReader();
}
origin: hibernate/hibernate-orm

/**
 * Generates a {@link java.sql.NClob} proxy using a character reader of given length.
 *
 * @param reader The character reader
 * @param length The length of the character reader
 *
 * @return The generated proxy.
 */
public static NClob generateProxy(Reader reader, long length) {
  return (NClob) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new ClobProxy( reader, length ) );
}
origin: org.hibernate.orm/hibernate-core

protected CharacterStream getUnderlyingStream() throws SQLException {
  resetIfNeeded();
  return characterStream;
}
origin: org.hibernate.orm/hibernate-core

protected InputStream getAsciiStream() throws SQLException {
  return new ReaderInputStream( getCharacterStream() );
}
origin: org.hibernate.orm/hibernate-core

protected Reader getCharacterStream() throws SQLException {
  return getUnderlyingStream().asReader();
}
origin: org.hibernate/com.springsource.org.hibernate.core

return Long.valueOf( getLength() );
return getAsciiStream();
  return getCharacterStream();
    throw new SQLException( "Start position 1-based; must be 1 or more." );
  if ( start > getLength() ) {
    throw new SQLException( "Start position [" + start + "] cannot exceed overall CLOB length [" + getLength() + "]" );
  return DataHelper.subStream( getCharacterStream(), start-1, length );
  throw new SQLException( "Start position 1-based; must be 1 or more." );
if ( start > getLength() ) {
  throw new SQLException( "Start position [" + start + "] cannot exceed overall CLOB length [" + getLength() + "]" );
  throw new SQLException( "Length must be great-than-or-equal to zero." );
return getSubString( start-1, length );
origin: hibernate/hibernate-orm

/**
 * Generates a {@link Clob} proxy using the string data.
 *
 * @param string The data to be wrapped as a {@link Clob}.
 *
 * @return The generated proxy.
 */
public static Clob generateProxy(String string) {
  return (Clob) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new ClobProxy( string ) );
}
origin: hibernate/hibernate-orm

@Override
public Clob createClob(String string) {
  return ClobProxy.generateProxy( string );
}
origin: org.hibernate.orm/hibernate-core

/**
 * Generates a {@link java.sql.Clob} proxy using the string data.
 *
 * @param string The data to be wrapped as a {@link java.sql.Clob}.
 *
 * @return The generated proxy.
 */
public static NClob generateProxy(String string) {
  return (NClob) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new ClobProxy( string ) );
}
origin: org.hibernate/com.springsource.org.hibernate.core

protected Reader getCharacterStream() throws SQLException {
  resetIfNeeded();
  return reader;
}
origin: org.hibernate.orm/hibernate-core

return getLength();
return getUnderlyingStream(); // Reset stream if needed.
return getAsciiStream();
  return getCharacterStream();
    throw new SQLException( "Start position 1-based; must be 1 or more." );
  if ( start > getLength() ) {
    throw new SQLException( "Start position [" + start + "] cannot exceed overall CLOB length [" + getLength() + "]" );
  return LobStreamDataHelper.subStream( getCharacterStream(), start-1, length );
  throw new SQLException( "Start position 1-based; must be 1 or more." );
if ( start > getLength() ) {
  throw new SQLException( "Start position [" + start + "] cannot exceed overall CLOB length [" + getLength() + "]" );
  throw new SQLException( "Length must be great-than-or-equal to zero." );
return getSubString( start-1, length );
origin: org.hibernate.orm/hibernate-core

/**
 * Generates a {@link Clob} proxy using the string data.
 *
 * @param string The data to be wrapped as a {@link Clob}.
 *
 * @return The generated proxy.
 */
public static Clob generateProxy(String string) {
  return (Clob) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new ClobProxy( string ) );
}
origin: hibernate/hibernate-orm

@Override
public Clob createClob(Reader reader, long length) {
  return ClobProxy.generateProxy( reader, length );
}
origin: org.hibernate.orm/hibernate-core

/**
 * Generates a {@link java.sql.NClob} proxy using a character reader of given length.
 *
 * @param reader The character reader
 * @param length The length of the character reader
 *
 * @return The generated proxy.
 */
public static NClob generateProxy(Reader reader, long length) {
  return (NClob) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new ClobProxy( reader, length ) );
}
org.hibernate.engine.jdbcClobProxy

Javadoc

Manages aspects of proxying Clob for non-contextual creation, including proxy creation and handling proxy invocations. We use proxies here solely to avoid JDBC version incompatibilities.

Most used methods

  • generateProxy
    Generates a Clob proxy using the string data.
  • <init>
    Constructor used to build Clob from string data.
  • getAsciiStream
  • getCharacterStream
  • getLength
  • getProxyClassLoader
    Determines the appropriate class loader to which the generated proxy should be scoped.
  • getSubString
  • resetIfNeeded
  • getUnderlyingStream

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collectors (java.util.stream)
  • JCheckBox (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now