예제 #1
0
        /// <summary>
        /// Resolve <see cref="PersistenceParameterName" /> to their database-specific parameter name.
        /// </summary>
        /// <param name="commandName">
        /// A <see cref="PersistenceCommandName" /> indicating which command the parameter
        /// name needs to be resolved for.
        /// </param>
        /// <param name="parameterName">
        /// A <see cref="PersistenceParameterName" /> indicating which parameter needs to be resolved.
        /// </param>
        public string ResolveParameterName(PersistenceCommandName commandName, PersistenceParameterName parameterName)
        {
            switch (parameterName)
            {
            case PersistenceParameterName.InstanceId:
                if (commandName == PersistenceCommandName.InsertCompletedScope)
                {
                    return("InstanceID");
                }
                else
                {
                    return("uidInstanceID");
                }

            case PersistenceParameterName.ScopeId:
                return("completedScopeID");

            case PersistenceParameterName.State:
                return("state");

            case PersistenceParameterName.Status:
                return("status");

            case PersistenceParameterName.Unlock:
                return("unlocked");

            case PersistenceParameterName.IsBlocked:
                return("blocked");

            case PersistenceParameterName.Info:
                return("info");

            case PersistenceParameterName.CurrentOwnerId:
                return("currentOwnerID");

            case PersistenceParameterName.OwnerId:
                return("ownerID");

            case PersistenceParameterName.OwnedUntil:
                return("ownedUntil");

            case PersistenceParameterName.NextTimer:
                return("nextTimer");

            case PersistenceParameterName.Result:
                return("result");

            case PersistenceParameterName.Now:
                return("now");

            case PersistenceParameterName.WorkflowIds:
                return("workflowIds");
            }

            throw new NotSupportedException(RM.Get_Error_CommandNameParameterNameNotSupported());
        }
예제 #2
0
        /// <summary>
        /// Resolve <see cref="PersistenceParameterName" /> to their database-specific parameter name.
        /// </summary>
        /// <param name="commandName">
        /// A <see cref="PersistenceCommandName" /> indicating which command the parameter
        /// name needs to be resolved for.
        /// </param>
        /// <param name="parameterName">
        /// A <see cref="PersistenceParameterName" /> indicating which parameter needs to be resolved.
        /// </param>
        public string ResolveParameterName(PersistenceCommandName commandName, PersistenceParameterName parameterName)
        {
            switch (parameterName)
            {
                case PersistenceParameterName.InstanceId :
                    if (commandName == PersistenceCommandName.InsertCompletedScope)
                        return "InstanceID";
                    else
                        return "uidInstanceID";

                case PersistenceParameterName.ScopeId :
                    return "completedScopeID";
                    
                case PersistenceParameterName.State :
                    return "state";

                case PersistenceParameterName.Status :
                    return "status";

                case PersistenceParameterName.Unlock :
                    return "unlocked";

                case PersistenceParameterName.IsBlocked :
                    return "blocked";

                case PersistenceParameterName.Info :
                    return "info";

                case PersistenceParameterName.CurrentOwnerId :
                    return "currentOwnerID";

                case PersistenceParameterName.OwnerId :
                    return "ownerID";

                case PersistenceParameterName.OwnedUntil :
                    return "ownedUntil";

                case PersistenceParameterName.NextTimer :
                    return "nextTimer";

                case PersistenceParameterName.Result :
                    return "result";

                case PersistenceParameterName.Now :
                    return "now";

                case PersistenceParameterName.WorkflowIds :
                    return "workflowIds";
            }

            throw new NotSupportedException(RM.Get_Error_CommandNameParameterNameNotSupported());
        }
예제 #3
0
        /// <summary>
        /// Resolve <see cref="PersistenceParameterName" /> to their database-specific parameter name.
        /// </summary>
        /// <param name="commandName">
        /// A <see cref="PersistenceCommandName" /> indicating which command the parameter
        /// name needs to be resolved for.
        /// </param>
        /// <param name="parameterName">
        /// A <see cref="PersistenceParameterName" /> indicating which parameter needs to be resolved.
        /// </param>
        /// <returns>
        /// </returns>
        public string ResolveParameterName(PersistenceCommandName commandName, PersistenceParameterName parameterName)
        {
            switch (parameterName)
            {
            case PersistenceParameterName.InstanceId:
                return("p_INSTANCE_ID");

            case PersistenceParameterName.ScopeId:
                return("p_COMPLETED_SCOPE_ID");

            case PersistenceParameterName.State:
                return("p_STATE");

            case PersistenceParameterName.Status:
                return("p_STATUS");

            case PersistenceParameterName.Unlock:
                return("p_UNLOCKED");

            case PersistenceParameterName.IsBlocked:
                return("p_BLOCKED");

            case PersistenceParameterName.Info:
                return("p_INFO");

            case PersistenceParameterName.CurrentOwnerId:
                return("p_CURRENT_OWNER_ID");

            case PersistenceParameterName.OwnerId:
                return("p_OWNER_ID");

            case PersistenceParameterName.OwnedUntil:
                return("p_OWNED_UNTIL");

            case PersistenceParameterName.NextTimer:
                return("p_NEXT_TIMER");

            case PersistenceParameterName.Result:
                return("p_RESULT");

            case PersistenceParameterName.Now:
                return("p_NOW");

            case PersistenceParameterName.WorkflowIds:
                return("p_WORKFLOW_IDS");
            }

            throw new NotSupportedException(RM.Get_Error_CommandNameParameterNameNotSupported());
        }
예제 #4
0
        /// <summary>
        /// Resolve <see cref="PersistenceParameterName" /> to their database-specific parameter name.
        /// </summary>
        /// <param name="commandName">
        /// A <see cref="PersistenceCommandName" /> indicating which command the parameter
        /// name needs to be resolved for.
        /// </param>
        /// <param name="parameterName">
        /// A <see cref="PersistenceParameterName" /> indicating which parameter needs to be resolved.
        /// </param>
        /// <returns>
        /// </returns>
        public string ResolveParameterName(PersistenceCommandName commandName, PersistenceParameterName parameterName)
        {
            switch (parameterName)
            {
                case PersistenceParameterName.InstanceId:
                    return "p_INSTANCE_ID";

                case PersistenceParameterName.ScopeId:
                    return "p_COMPLETED_SCOPE_ID";

                case PersistenceParameterName.State:
                    return "p_STATE";

                case PersistenceParameterName.Status:
                    return "p_STATUS";

                case PersistenceParameterName.Unlock:
                    return "p_UNLOCKED";

                case PersistenceParameterName.IsBlocked:
                    return "p_BLOCKED";

                case PersistenceParameterName.Info:
                    return "p_INFO";

                case PersistenceParameterName.CurrentOwnerId:
                    return "p_CURRENT_OWNER_ID";

                case PersistenceParameterName.OwnerId:
                    return "p_OWNER_ID";

                case PersistenceParameterName.OwnedUntil:
                    return "p_OWNED_UNTIL";

                case PersistenceParameterName.NextTimer:
                    return "p_NEXT_TIMER";

                case PersistenceParameterName.Result:
                    return "p_RESULT";

                case PersistenceParameterName.Now:
                    return "p_NOW";

                case PersistenceParameterName.WorkflowIds :
                    return "p_WORKFLOW_IDS";
            }

            throw new NotSupportedException(RM.Get_Error_CommandNameParameterNameNotSupported());
        }