Examples of flushToCache()


Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToCache()

        entity = session.getPersistenceContext().getEntity( session.generateEntityKey( entityId, getElementPersister() ) );
      }

      associationPersister.hostingEntity( entity );

      associationPersister.flushToCache();
    }
  }

  private static enum Action {
    ADD, REMOVE
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToCache()

        if ( associationPersister.hostingEntityRequiresReadAfterUpdate() ) {
          Object owner = session.getPersistenceContext().getCollectionOwner( id, this );
          associationPersister.hostingEntity( owner );
        }

        associationPersister.flushToCache();
      }

      if ( log.isDebugEnabled() ) {
        log.debug( "done deleting collection" );
      }
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToCache()

    Tuple assocEntryTuple = associationPersister.createAndPutAssociationTuple( rowKey );
    for ( String column : tuple.getColumnNames() ) {
      assocEntryTuple.put( column, tuple.get( column ) );
    }

    associationPersister.flushToCache();
  }

  // Here the RowKey is made of the foreign key columns pointing to the associated entity
  // and the identifier columns of the owner's entity
  // We use the same order as the collection: id column names, foreign key column names
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToCache()

          .values( tupleKey )
          .build();
      //TODO what should we do if that's null?
      associationPersister.getAssociation().remove( matchingTuple );

      associationPersister.flushToCache();
    }
  }

  private Object getReferencedEntity(int propertyIndex) {
    GridType propertyType = gridPropertyTypes[propertyIndex];
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToCache()

      }
      i++;
    }

    // need to put the data back in the cache
    associationPersister.flushToCache();

    return count;
  }

  private void completeTuple(RowKeyAndTuple keyAndTuple, PersistentCollection collection, SessionImplementor session, Object entry) {
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToCache()

          if ( log.isDebugEnabled() ) {
            log.debug( "done deleting collection rows: " + count + " deleted" );
          }
        }

        associationPersister.flushToCache();
      }
      else {
        log.debug( "no rows to delete" );
      }
    }
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToCache()

          count++;
        }
        i++;
      }

      associationPersister.flushToCache();

      if ( log.isDebugEnabled() ) {
        log.debug( "done inserting rows: " + count + " inserted" );
      }
    }
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToCache()

            count++;
          }
          i++;
        }

        associationPersister.flushToCache();

        if ( log.isDebugEnabled() ) {
          log.debug( "done inserting collection: " + count + " rows inserted" );
        }
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToCache()

        entity = session.getPersistenceContext().getEntity( session.generateEntityKey( entityId, getElementPersister() ) );
      }

      associationPersister.hostingEntity( entity );

      associationPersister.flushToCache();
    }
  }

  private static enum Action {
    ADD, REMOVE
View Full Code Here

Examples of org.hibernate.ogm.util.impl.AssociationPersister.flushToCache()

        if ( associationPersister.hostingEntityRequiresReadAfterUpdate() ) {
          Object owner = session.getPersistenceContext().getCollectionOwner( id, this );
          associationPersister.hostingEntity( owner );
        }

        associationPersister.flushToCache();
      }

      if ( log.isDebugEnabled() ) {
        log.debug( "done deleting collection" );
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.