Tabnine Logo
Binder.bindValues
Code IndexAdd Tabnine to your IDE (free)

How to use
bindValues
method
in
org.hibernate.id.insert.Binder

Best Java code snippets using org.hibernate.id.insert.Binder.bindValues (Showing top 10 results out of 315)

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: hibernate/hibernate-orm

    .prepareStatement( insertSQL, PreparedStatement.NO_GENERATED_KEYS );
try {
  binder.bindValues( insert );
  session.getJdbcCoordinator().getResultSetReturn().executeUpdate( insert );
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
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

    .prepareStatement( insertSQL, PreparedStatement.NO_GENERATED_KEYS );
try {
  binder.bindValues( insert );
  insert.executeUpdate();
origin: org.hibernate/com.springsource.org.hibernate.core

    .prepareStatement( insertSQL, PreparedStatement.NO_GENERATED_KEYS );
try {
  binder.bindValues( insert );
  insert.executeUpdate();
origin: jboss.jboss-embeddable-ejb3/hibernate-all

binder.bindValues( insert );
insert.executeUpdate();
origin: org.hibernate.orm/hibernate-core

    .prepareStatement( insertSQL, PreparedStatement.NO_GENERATED_KEYS );
try {
  binder.bindValues( insert );
  session.getJdbcCoordinator().getResultSetReturn().executeUpdate( insert );
org.hibernate.id.insertBinderbindValues

Popular methods of Binder

  • getEntity

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Permission (java.security)
    Legacy security code; do not use.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook extensions
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