Examples of flushToCache()


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()

          //we unfortunately cannot mass change the update of the associated entity
          updateInverseSideOfAssociationNavigation( session, tupleEntry.getValue(), Action.REMOVE, tupleEntry.getKey() );
        }
      }
      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()

              session
          );
    Object[] columnValues = LogicalPhysicalConverterHelper.getColumnValuesFromResultset(tuple, identifierColumnNames);
    final RowKey rowKey = new RowKey( persister.getTableName(), identifierColumnNames, columnValues );
    propertyValues.put( rowKey, tuple );
    metadataProvider.flushToCache();
  }

  private void doRemovePropertyMetadata(Cache<AssociationKey, Map<RowKey,Map<String,Object>>> associationCache,
                      int tableIndex,
                      int propertyIndex,
View Full Code Here

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

      final RowKey matchingTuple = metadataProvider.findMatchingTuple( idTuple );
      //TODO what should we do if that's null?
      if (matchingTuple != 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
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.