Package org.hibernate.ogm.util.impl

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> buildFullTuple(Serializable key, PersistentCollection collection, SessionImplementor session, int i, Object entry) {
    Map<String,Object> tupleKey = new HashMap<String,Object>();
View Full Code Here


          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

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

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

      }
View Full Code Here

          //we unfortunately cannot mass change the update of the associated entity
          updateAssociatedEntityTableIfNeeded( session, tuple, Action.REMOVE );
        }
      }
      metadataProvider.getCollectionMetadata().clear();
      metadataProvider.flushToCache();

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

              persister.getPropertyColumnNames( propertyIndex ),
              includeColumns[propertyIndex],
              session
          );
    propertyValues.add( tuple );
    metadataProvider.flushToCache();
  }

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

      final Map<String, Object> 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

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.