コード例 #1
0
        public UnitOfWork()
        {
            Dictionary <String, Type> clazzes = new Dictionary <String, Type>();

            opResultIdStrings = new List <String>();
            OpResultIdGenerator opResultIdGenerator = new OpResultIdGenerator(opResultIdStrings);

            unitOfWorkCreate = new UnitOfWorkCreateImpl(operations, opResultIdGenerator, clazzes);
            unitOfWorkDelete = new UnitOfWorkDeleteImpl(operations, opResultIdGenerator);
            unitOfWorkUpdate = new UnitOfWorkUpdateImpl(operations, opResultIdGenerator, clazzes);
            unitOfWorkFind   = new UnitOfWorkFindImpl(operations, opResultIdGenerator);
            RelationOperationImpl relationOperation = new RelationOperationImpl(operations, opResultIdGenerator);

            unitOfWorkAddRelation    = new UnitOfWorkAddRelationImpl(relationOperation);
            unitOfWorkSetRelation    = new UnitOfWorkSetRelationImpl(relationOperation);
            unitOfWorkDeleteRelation = new UnitOfWorkDeleteRelationImpl(relationOperation);
            unitOfWorkExecutor       = new UnitOfWorkExecutorImpl(this, clazzes);
        }
コード例 #2
0
 internal UnitOfWorkUpdateImpl(LinkedList <Operation> operations, OpResultIdGenerator opResultIdGenerator, Dictionary <String, Type> clazzes)
 {
     this.operations          = operations;
     this.opResultIdGenerator = opResultIdGenerator;
     this.clazzes             = clazzes;
 }
コード例 #3
0
 internal UnitOfWorkFindImpl(LinkedList <Operation> operations, OpResultIdGenerator opResultIdGenerator)
 {
     this.operations          = operations;
     this.opResultIdGenerator = opResultIdGenerator;
 }
コード例 #4
0
 public RelationOperationImpl(LinkedList <Operation> operations, OpResultIdGenerator opResultIdGenerator)
 {
     this.operations          = operations;
     this.opResultIdGenerator = opResultIdGenerator;
 }