Codota Logo
SessionImpl.delete
Code IndexAdd Codota to your IDE (free)

How to use
delete
method
in
org.hibernate.impl.SessionImpl

Best Java code snippets using org.hibernate.impl.SessionImpl.delete (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate

public int delete(String query, Object value, Type type) throws HibernateException {
  return delete( query, new Object[]{value}, new Type[]{type} );
}
origin: hibernate/hibernate

public int delete(String query) throws HibernateException {
  return delete( query, ArrayHelper.EMPTY_OBJECT_ARRAY, ArrayHelper.EMPTY_TYPE_ARRAY );
}
origin: jboss.jboss-embeddable-ejb3/hibernate-all

public int delete(String query, Object[] values, Type[] types) throws HibernateException {
  errorIfClosed();
  checkTransactionSynchStatus();
  if ( query == null ) {
    throw new IllegalArgumentException("attempt to perform delete-by-query with null query");
  }
  if ( log.isTraceEnabled() ) {
    log.trace( "delete: " + query );
    if ( values.length != 0 ) {
      log.trace( "parameters: " + StringHelper.toString( values ) );
    }
  }
  List list = find( query, values, types );
  int deletionCount = list.size();
  for ( int i = 0; i < deletionCount; i++ ) {
    delete( list.get( i ) );
  }
  return deletionCount;
}
origin: hibernate/hibernate

public int delete(String query, Object[] values, Type[] types) throws HibernateException {
  if ( query == null ) {
    throw new IllegalArgumentException("attempt to perform delete-by-query with null query");
  }
  if ( log.isTraceEnabled() ) {
    log.trace( "delete: " + query );
    if ( values.length != 0 ) {
      log.trace( "parameters: " + StringHelper.toString( values ) );
    }
  }
  List list = find( query, values, types );
  int deletionCount = list.size();
  for ( int i = 0; i < deletionCount; i++ ) {
    delete( list.get( i ) );
  }
  return deletionCount;
}
org.hibernate.implSessionImpldelete

Javadoc

Delete a persistent object

Popular methods of SessionImpl

  • getFactory
  • <init>
    Constructor used in building "child sessions".
  • afterOperation
    Check if there is a Hibernate or JTA transaction in progress and, if there is not, flush if necessar
  • autoFlushIfRequired
    detect in-memory changes, determine if the changes are to tables named in the query and, if so, comp
  • cleanup
    clear all the internal collections, just to help the garbage collector, does not clear anything that
  • clear
  • close
  • find
    Retrieve a list of persistent objects using a hibernate query
  • flush
  • get
  • getConnectionReleaseMode
  • getEnabledFilters
  • getConnectionReleaseMode,
  • getEnabledFilters,
  • getFlushMode,
  • getOuterJoinLoadable,
  • getProxyIdentifier,
  • guessEntityName,
  • isAutoCloseSessionEnabled,
  • iterate,
  • list

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JCheckBox (javax.swing)
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