All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backendless.transaction.UnitOfWorkSetRelationImpl Maven / Gradle / Ivy

The newest version!
package com.backendless.transaction;

import java.util.List;
import java.util.Map;

class UnitOfWorkSetRelationImpl implements UnitOfWorkSetRelation
{
  private final RelationOperation relationOperation;

  UnitOfWorkSetRelationImpl( RelationOperation relationOperation )
  {
    this.relationOperation = relationOperation;
  }

  @Override
  public OpResult setRelation( String parentTable, Map parentObject, String columnName,
                               String[] childrenObjectIds )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentTable, parentObject, columnName, childrenObjectIds );
  }

  @Override
  public  OpResult setRelation( String parentTable, Map parentObject, String columnName,
                                   E[] childrenInstance )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentTable, parentObject, columnName, childrenInstance );
  }

  @Override
  public OpResult setRelation( String parentTable, Map parentObject, String columnName,
                               List> childrenMaps )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentTable, parentObject, columnName, childrenMaps );
  }

  @Override
  public OpResult setRelation( String parentTable, Map parentObject,
                                 String columnName, OpResult children )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentTable,
                                           parentObject, columnName, children );
  }

  @Override
  public OpResult setRelation( String parentTable, Map parentObject,
                                 String columnName, String whereClauseForChildren )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentTable, parentObject,
                                           columnName, whereClauseForChildren );
  }

  @Override
  public OpResult setRelation( String parentTable, String parentObjectId, String columnName,
                               String[] childrenObjectIds )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentTable,
                                           parentObjectId, columnName, childrenObjectIds );
  }

  @Override
  public  OpResult setRelation( String parentTable, String parentObjectId, String columnName, E[] childrenInstances )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentTable,
                                           parentObjectId, columnName, childrenInstances );
  }

  @Override
  public OpResult setRelation( String parentTable, String parentObjectId, String columnName,
                               List> childrenMaps )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentTable,
                                           parentObjectId, columnName, childrenMaps );
  }

  @Override
  public OpResult setRelation( String parentTable, String parentObjectId, String columnName, OpResult children )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentTable,
                                           parentObjectId, columnName, children );
  }

  @Override
  public OpResult setRelation( String parentTable, String parentObjectId, String columnName, String whereClauseForChildren )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentTable, parentObjectId,
                                           columnName, whereClauseForChildren);
  }

  @Override
  public  OpResult setRelation( E parentObject, String columnName, String[] childrenObjectIds )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, childrenObjectIds );
  }

  @Override
  public  OpResult setRelation( E parentObject, String columnName, U[] childrenInstances )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, childrenInstances );
  }

  @Override
  public  OpResult setRelation( E parentObject, String columnName, List> childrenMaps )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, childrenMaps );
  }

  @Override
  public  OpResult setRelation( E parentObject, String columnName, OpResult children )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, children );
  }

  @Override
  public  OpResult setRelation( E parentObject, String columnName, String whereClauseForChildren )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, whereClauseForChildren );
  }

  @Override
  public OpResult setRelation( OpResult parentObject, String columnName, String[] childrenObjectIds )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, childrenObjectIds );
  }

  @Override
  public  OpResult setRelation( OpResult parentObject, String columnName, E[] childrenInstances )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, childrenInstances );
  }

  @Override
  public OpResult setRelation( OpResult parentObject, String columnName, List> childrenMaps )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, childrenMaps );
  }

  @Override
  public OpResult setRelation( OpResult parentObject, String columnName, OpResult children )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, children );
  }

  @Override
  public OpResult setRelation( OpResult parentObject, String columnName, String whereClauseForChildren )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, whereClauseForChildren );
  }

  @Override
  public OpResult setRelation( OpResultValueReference parentObject, String columnName, String[] childrenObjectIds )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, childrenObjectIds );
  }

  @Override
  public  OpResult setRelation( OpResultValueReference parentObject, String columnName, E[] childrenInstances )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, childrenInstances );
  }

  @Override
  public OpResult setRelation( OpResultValueReference parentObject, String columnName,
                               List> childrenMaps )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, childrenMaps );
  }

  @Override
  public OpResult setRelation( OpResultValueReference parentObject, String columnName, OpResult children )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, children );
  }

  @Override
  public OpResult setRelation( OpResultValueReference parentObject, String columnName, String whereClauseForChildren )
  {
    return relationOperation.addOperation( OperationType.SET_RELATION, parentObject, columnName, whereClauseForChildren );
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy