Codota Logo
org.hibernate.engine.jdbc
Code IndexAdd Codota to your IDE (free)

How to use org.hibernate.engine.jdbc

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

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

private InputStream getStream() throws SQLException {
  return getUnderlyingStream().getInputStream();
}
origin: hibernate/hibernate-orm

  @Override
  public NClob createNClob(Reader reader, long length) {
    return NClobProxy.generateProxy( reader, 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

@Override
public Blob createBlob(byte[] bytes) {
  return BlobProxy.generateProxy( bytes );
}
origin: hibernate/hibernate-orm

@Override
public Clob wrap(Clob clob) {
  if ( NClob.class.isInstance( clob ) ) {
    return wrap( (NClob) clob );
  }
  else {
    return SerializableClobProxy.generateProxy( clob );
  }
}
origin: hibernate/hibernate-orm

/**
 * Create the basic contextual NCLOB reference.
 *
 * @return The created NCLOB reference.
 */
public NClob createNClob() {
  return lobCreationContext.execute( CREATE_NCLOB_CALLBACK );
}
origin: hibernate/hibernate-orm

/**
 * Generates a BlobImpl using byte data.
 *
 * @param bytes The data to be created as a Blob.
 *
 * @return The BlobProxy instance to represent this data.
 */
public static Blob generateProxy(byte[] bytes) {
  return new BlobProxy( bytes );
}
origin: hibernate/hibernate-orm

/**
 * Locate the column index corresponding to the given column name via the cache.
 *
 * @param columnName The column name to resolve into an index.
 * @return The column index corresponding to the given column name.
 * @throws SQLException if the ResultSet object does not contain columnName or a database access error occurs
 */
private Integer findColumn(String columnName) throws SQLException {
  return columnNameCache.getIndexForColumnName( columnName, rs );
}
origin: hibernate/hibernate-orm

  @Override
  public NClob wrap(NClob nclob) {
    return SerializableNClobProxy.generateProxy( nclob );
  }
}
origin: hibernate/hibernate-orm

  @Override
  public ResultSet wrap(ResultSet resultSet, ColumnNameCache columnNameCache) {
    return ResultSetWrapperProxy.generateProxy( resultSet, columnNameCache, serviceRegistry );
  }
}
origin: hibernate/hibernate-orm

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

  /**
   * Determines the appropriate class loader to which the generated proxy
   * should be scoped.
   *
   * @return The class loader appropriate for proxy construction.
   */
  public static ClassLoader getProxyClassLoader() {
    return SerializableClobProxy.getProxyClassLoader();
  }
}
origin: hibernate/hibernate-orm

@Override
public Clob createClob(Reader reader, long length) {
  // IMPL NOTE : it is inefficient to use JDBC LOB locator creation to create a LOB
  // backed by a given stream.  So just wrap the stream (which is what the NonContextualLobCreator does).
  return NonContextualLobCreator.INSTANCE.createClob( reader, length );
}
origin: hibernate/hibernate-orm

@Override
public NClob createNClob(Reader reader, long length) {
  // IMPL NOTE : it is inefficient to use JDBC LOB locator creation to create a LOB
  // backed by a given stream.  So just wrap the stream (which is what the NonContextualLobCreator does).
  return NonContextualLobCreator.INSTANCE.createNClob( reader, length );
}
origin: hibernate/hibernate-orm

@Override
public Blob createBlob(InputStream inputStream, long length) {
  // IMPL NOTE : it is inefficient to use JDBC LOB locator creation to create a LOB
  // backed by a given stream.  So just wrap the stream (which is what the NonContextualLobCreator does).
  return NonContextualLobCreator.INSTANCE.createBlob( inputStream, length );
}
origin: hibernate/hibernate-orm

/**
 * Constructor used to build {@link Blob} from a stream.
 *
 * @param stream The binary stream
 * @param length The length of the stream
 * @see #generateProxy(java.io.InputStream, long)
 */
private BlobProxy(InputStream stream, long length) {
  this.binaryStream = new StreamBackedBinaryStream( stream, length );
}
origin: hibernate/hibernate-orm

/**
 * Create the basic contextual BLOB reference.
 *
 * @return The created BLOB reference.
 */
public Blob createBlob() {
  return lobCreationContext.execute( CREATE_BLOB_CALLBACK );
}
origin: hibernate/hibernate-orm

/**
 * Generates a BlobImpl proxy using a given number of bytes from an InputStream.
 *
 * @param stream The input stream of bytes to be created as a Blob.
 * @param length The number of bytes from stream to be written to the Blob.
 *
 * @return The BlobProxy instance to represent this data.
 */
public static Blob generateProxy(InputStream stream, long length) {
  return new BlobProxy( stream, length );
}
origin: hibernate/hibernate-orm

/**
 * Create the basic contextual CLOB reference.
 *
 * @return The created CLOB reference.
 */
public Clob createClob() {
  return lobCreationContext.execute( CREATE_CLOB_CALLBACK );
}
org.hibernate.engine.jdbc

Most used classes

  • JdbcServices
    Contract for services around JDBC operations. These represent shared resources, aka not varied by se
  • JdbcEnvironment
    Initial look at this concept we keep talking about with merging information from java.sql.DatabaseMe
  • JdbcCoordinator
    Coordinates JDBC-related activities.
  • SqlExceptionHelper
    Helper for handling SQLExceptions in various manners.
  • SqlStatementLogger
    Centralize logging for SQL statements.
  • Formatter,
  • StatementPreparer,
  • ConnectionProviderInitiator,
  • ResultSetReturn,
  • LobCreator,
  • QualifiedObjectNameFormatter,
  • FormatStyle,
  • DatasourceConnectionProviderImpl,
  • IdentifierHelper,
  • DriverManagerConnectionProviderImpl,
  • StandardDialectResolver,
  • DatabaseMetaDataDialectResolutionInfoAdapter,
  • JdbcConnectionAccess,
  • DialectResolver
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now