Codota Logo
AbstractReturningDelegate.executeAndExtract
Code IndexAdd Codota to your IDE (free)

How to use
executeAndExtract
method
in
org.hibernate.id.insert.AbstractReturningDelegate

Best Java code snippets using org.hibernate.id.insert.AbstractReturningDelegate.executeAndExtract (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

@Override
public final Serializable performInsert(
    String insertSQL,
    SharedSessionContractImplementor session,
    Binder binder) {
  try {
    // prepare and execute the insert
    PreparedStatement insert = prepare( insertSQL, session );
    try {
      binder.bindValues( insert );
      return executeAndExtract( insert, session );
    }
    finally {
      releaseStatement( insert, session );
    }
  }
  catch (SQLException sqle) {
    throw session.getJdbcServices().getSqlExceptionHelper().convert(
        sqle,
        "could not insert: " + MessageHelper.infoString( persister ),
        insertSQL
    );
  }
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public final Serializable performInsert(String insertSQL, SessionImplementor session, Binder binder) {
  try {
    // prepare and execute the insert
    PreparedStatement insert = prepare( insertSQL, session );
    try {
      binder.bindValues( insert );
      return executeAndExtract( insert );
    }
    finally {
      releaseStatement( insert, session );
    }
  }
  catch ( SQLException sqle ) {
    throw JDBCExceptionHelper.convert(
        session.getFactory().getSQLExceptionConverter(),
        sqle,
        "could not insert: " + MessageHelper.infoString( persister ),
        insertSQL
      );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public final Serializable performInsert(
    String insertSQL,
    SessionImplementor session,
    Binder binder) {
  try {
    // prepare and execute the insert
    PreparedStatement insert = prepare( insertSQL, session );
    try {
      binder.bindValues( insert );
      return executeAndExtract( insert );
    }
    finally {
      releaseStatement( insert, session );
    }
  }
  catch ( SQLException sqle ) {
    throw session.getFactory().getSQLExceptionHelper().convert(
        sqle,
        "could not insert: " + MessageHelper.infoString( persister ),
        insertSQL
      );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public final Serializable performInsert(
    String insertSQL,
    SessionImplementor session,
    Binder binder) {
  try {
    // prepare and execute the insert
    PreparedStatement insert = prepare( insertSQL, session );
    try {
      binder.bindValues( insert );
      return executeAndExtract( insert );
    }
    finally {
      releaseStatement( insert, session );
    }
  }
  catch ( SQLException sqle ) {
    throw session.getFactory().getSQLExceptionHelper().convert(
        sqle,
        "could not insert: " + MessageHelper.infoString( persister ),
        insertSQL
      );
  }
}
origin: org.hibernate.orm/hibernate-core

@Override
public final Serializable performInsert(
    String insertSQL,
    SharedSessionContractImplementor session,
    Binder binder) {
  try {
    // prepare and execute the insert
    PreparedStatement insert = prepare( insertSQL, session );
    try {
      binder.bindValues( insert );
      return executeAndExtract( insert, session );
    }
    finally {
      releaseStatement( insert, session );
    }
  }
  catch (SQLException sqle) {
    throw session.getJdbcServices().getSqlExceptionHelper().convert(
        sqle,
        "could not insert: " + MessageHelper.infoString( persister ),
        insertSQL
    );
  }
}
org.hibernate.id.insertAbstractReturningDelegateexecuteAndExtract

Popular methods of AbstractReturningDelegate

  • prepare
  • releaseStatement

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
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