@SuppressWarnings({ "unchecked" }) private void addDependenciesByTransientEntity(AbstractEntityInsertAction insert, NonNullableTransientDependencies dependencies) { for ( Object transientEntity : dependencies.getNonNullableTransientEntities() ) { Set<AbstractEntityInsertAction> dependentActions = dependentActionsByTransientEntity.get( transientEntity ); if ( dependentActions == null ) { dependentActions = new IdentitySet(); dependentActionsByTransientEntity.put( transientEntity, dependentActions ); } dependentActions.add( insert ); } }
public boolean addAll(Collection c) { Iterator it = c.iterator(); boolean changed = false; while ( it.hasNext() ) { if ( this.add( it.next() ) ) { changed = true; } } return changed; }
public boolean removeAll(Collection c) { Iterator it = c.iterator(); boolean changed = false; while ( it.hasNext() ) { if ( this.remove( it.next() ) ) { changed = true; } } return changed; }
final IdentitySet distinction; if ( needsLimit ) { distinction = new IdentitySet( guessedResultSize ); : queryParameters.getRowSelection().getMaxRows(); for ( final Object result : tmp ) { if ( !distinction.add( result ) ) { continue;
: queryParameters.getRowSelection().getMaxRows(); List tmp = new ArrayList(); IdentitySet distinction = new IdentitySet(); for ( final Object result : results ) { if ( !distinction.add( result ) ) { continue;
IdentitySet distinction = new IdentitySet(); int includedCount = -1; translator_loop: for ( int i = 0; i < translators.length; i++ ) { for ( int x = 0; x < size; x++ ) { final Object result = tmp.get( x ); if ( ! distinction.add( result ) ) { continue;
/** * Handle the given delete event. * * @param event The delete event to be handled. * * @throws HibernateException */ public void onDelete(DeleteEvent event) throws HibernateException { onDelete( event, new IdentitySet() ); }
public boolean addAll(Collection c) { Iterator it = c.iterator(); boolean changed = false; while ( it.hasNext() ) { if ( this.add( it.next() ) ) { changed = true; } } return changed; }
public boolean removeAll(Collection c) { Iterator it = c.iterator(); boolean changed = false; while ( it.hasNext() ) { if ( this.remove( it.next() ) ) { changed = true; } } return changed; }
int size = results.size(); List tmp = new ArrayList(); IdentitySet distinction = new IdentitySet(); for ( int i = 0; i < size; i++ ) { final Object result = results.get( i ); if ( !distinction.add( result ) ) { continue;
detachedEntitiesForManaged = new IdentitySet(); managedToMergeEntitiesXref.put( managedEntity, detachedEntitiesForManaged ); incrementEntityNameCount( entityName );
public boolean addAll(Collection c) { Iterator it = c.iterator(); boolean changed = false; while ( it.hasNext() ) { if ( this.add( it.next() ) ) { changed = true; } } return changed; }
public boolean removeAll(Collection c) { Iterator it = c.iterator(); boolean changed = false; while ( it.hasNext() ) { if ( this.remove( it.next() ) ) { changed = true; } } return changed; }
int size = results.size(); List tmp = new ArrayList(); IdentitySet distinction = new IdentitySet(); for ( int i = 0; i < size; i++ ) { final Object result = results.get( i ); if ( !distinction.add( result ) ) { continue;
final java.util.Set currentSaving = new IdentitySet(); for ( Object current : currentElements ) { if ( current != null && ForeignKeys.isNotTransient( entityName, current, null, session ) ) {
public boolean addAll(Collection c) { Iterator it = c.iterator(); boolean changed = false; while ( it.hasNext() ) { if ( this.add( it.next() ) ) { changed = true; } } return changed; }
public boolean removeAll(Collection c) { Iterator it = c.iterator(); boolean changed = false; while ( it.hasNext() ) { if ( this.remove( it.next() ) ) { changed = true; } } return changed; }
IdentitySet distinction = new IdentitySet(); int includedCount = -1; translator_loop: for ( int i = 0; i < translators.length; i++ ) { for ( int x = 0; x < size; x++ ) { final Object result = tmp.get( x ); if ( ! distinction.add( result ) ) { continue;
final Set<AbstractEntityInsertAction> resolvedActions = new IdentitySet( ); if ( traceEnabled ) { LOG.tracev(
@SuppressWarnings({ "unchecked" }) private void addDependenciesByTransientEntity(AbstractEntityInsertAction insert, NonNullableTransientDependencies dependencies) { for ( Object transientEntity : dependencies.getNonNullableTransientEntities() ) { Set<AbstractEntityInsertAction> dependentActions = dependentActionsByTransientEntity.get( transientEntity ); if ( dependentActions == null ) { dependentActions = new IdentitySet(); dependentActionsByTransientEntity.put( transientEntity, dependentActions ); } dependentActions.add( insert ); } }