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

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

The newest version!
package com.backendless.transaction;

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

class UnitOfWorkAddRelationImpl implements UnitOfWorkAddRelation
{
  private final RelationOperation relationOperation;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy