Package org.hibernate.ogm.datastore.couchdb.dialect.backend.json.impl

Examples of org.hibernate.ogm.datastore.couchdb.dialect.backend.json.impl.EntityDocument.removeAssociation()


  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key.getMetadata(), associationContext.getAssociationTypeContext() ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getMetadata().getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here


  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key, associationContext ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here

  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key, associationContext ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here

  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key, associationContext ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here

  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key, associationContext ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here

  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key, associationContext ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getMetadata().getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here

  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key, associationContext ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
View Full Code Here

  @Override
  public void removeAssociation(AssociationKey key, AssociationContext associationContext) {
    if ( isStoredInEntityStructure( key, associationContext ) ) {
      EntityDocument owningEntity = getDataStore().getEntity( Identifier.createEntityId( key.getEntityKey() ) );
      if ( owningEntity != null ) {
        owningEntity.removeAssociation( key.getCollectionRole() );
        getDataStore().saveDocument( owningEntity );
      }
    }
    else {
      removeDocumentIfPresent( Identifier.createAssociationId( key ) );
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.