Examples of flushToCache()


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

    Tuple assocEntryTuple = metadataProvider.createAndPutAssociationTuple( rowKey );
    for ( String column : tuple.getColumnNames() ) {
      assocEntryTuple.put(column, tuple.get(column) );
    }
    metadataProvider.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.PropertyMetadataProvider.flushToCache()

          .addColumns( buildRowKeyColumnNamesForStarToOne( persister, propertyColumnNames ) )
          .values( tupleKey )
          .build();
      //TODO what should we do if that's null?
      metadataProvider.getCollectionMetadata().remove( matchingTuple );
      metadataProvider.flushToCache();
    }
  }

  private boolean isEmptyOrAllColumnsNull(Object[] objects) {
    for ( Object object : objects ) {
View Full Code Here

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

      }
      i++;
    }

    //need to put the data back in the cache
    metadataProvider.flushToCache();
    return count;
  }

  private void completeTuple(RowKeyAndTuple keyAndTuple, PersistentCollection collection, SessionImplementor session, Object entry) {
    final Object element = collection.getElement( entry );
View Full Code Here

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

          if ( log.isDebugEnabled() ) {
            log.debug( "done deleting collection rows: " + count + " deleted" );
          }
        }
        metadataProvider.flushToCache();
      }
      else {
        log.debug( "no rows to delete" );
      }
    }
View Full Code Here

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

          collection.afterRowInsert( this, entry, i );
          count++;
        }
        i++;
      }
      metadataProvider.flushToCache();
      if ( log.isDebugEnabled() ) {
        log.debug( "done inserting rows: " + count + " inserted" );
      }
    }
  }
View Full Code Here

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

            collection.afterRowInsert( this, entry, i );
            count++;
          }
          i++;
        }
        metadataProvider.flushToCache();
        if ( log.isDebugEnabled() ) {
          log.debug( "done inserting collection: " + count + " rows inserted" );
        }

      }
View Full Code Here

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

        associationProvider.getCollectionMetadata().remove( rowKey );
      }
      else {
        throw new AssertionFailure( "Unknown action type: " + action );
      }
      associationProvider.flushToCache();
    }
  }

  private static enum Action {
    ADD,
View Full Code Here

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

              Action.REMOVE,
              assocEntryKey );
        }
      }
      metadataProvider.getCollectionMetadata().clear();
      metadataProvider.flushToCache();

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

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

      }
      i++;
    }

    //need to put the data back in the cache
    metadataProvider.flushToCache();
    return count;
  }

  private Map<String, Object> completeTuple(Map<String, Object> newTupleId, PersistentCollection collection, SessionImplementor session, Object entry) {
    Map<String,Object> tuple = new HashMap<String,Object>();
View Full Code Here

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

          if ( log.isDebugEnabled() ) {
            log.debug( "done deleting collection rows: " + count + " deleted" );
          }
        }
        metadataProvider.flushToCache();
      }
      else {
        if ( log.isDebugEnabled() ) {
          log.debug( "no rows to delete" );
        }
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.