示例#1
0
 public virtual IResourceEntity FindResourceByDeploymentIdAndResourceName(string deploymentId, string resourceName)
 {
     return((IResourceEntity)DbSqlSession.SelectOne <ResourceEntityImpl, IResourceEntity>("selectResourceByDeploymentIdAndResourceName", new
     {
         deploymentId,
         resourceName
     }));
 }
示例#2
0
 public virtual IProcessDefinitionEntity FindProcessDefinitionByDeploymentAndKeyAndTenantId(string deploymentId, string processDefinitionKey, string tenantId)
 {
     return(DbSqlSession.SelectOne <ProcessDefinitionEntityImpl, IProcessDefinitionEntity>("selectProcessDefinitionByDeploymentAndKeyAndTenantId", new
     {
         deploymentId,
         processDefinitionKey,
         tenantId
     }));
 }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="taskId"></param>
        /// <param name="variableName"></param>
        /// <returns></returns>
        public virtual IVariableInstanceEntity FindVariableInstanceByTaskAndName(string taskId, string variableName)
        {
            IDictionary <string, string> @params = new Dictionary <string, string>(2)
            {
                ["taskId"] = taskId,
                ["name"]   = variableName
            };

            return(DbSqlSession.SelectOne <VariableInstanceEntityImpl, IVariableInstanceEntity>("selectVariableInstanceByTaskAndName", @params));
        }
示例#4
0
        public virtual IProcessDefinitionEntity FindLatestProcessDefinitionByKeyAndTenantId(string processDefinitionKey, string tenantId)
        {
            IDictionary <string, object> @params = new Dictionary <string, object>(2)
            {
                ["processDefinitionKey"] = processDefinitionKey,
                ["tenantId"]             = tenantId
            };

            return(DbSqlSession.SelectOne <ProcessDefinitionEntityImpl, IProcessDefinitionEntity>("selectLatestProcessDefinitionByKeyAndTenantId", @params));
        }
        public virtual IMessageEventSubscriptionEntity FindMessageStartEventSubscriptionByName(string messageName, string tenantId)
        {
            IDictionary <string, string> @params = new Dictionary <string, string>
            {
                ["eventName"] = messageName,
                ["tenantId"]  = tenantId
            };

            IMessageEventSubscriptionEntity entity = DbSqlSession.SelectOne <MessageEventSubscriptionEntityImpl, IMessageEventSubscriptionEntity>("selectMessageStartEventSubscriptionByName", @params);

            return(entity);
        }
 public virtual long FindHistoricDetailCountByQueryCriteria(IHistoricDetailQuery historicVariableUpdateQuery)
 {
     return(DbSqlSession.SelectOne <HistoricDetailEntityImpl, long?>("selectHistoricDetailCountByQueryCriteria", historicVariableUpdateQuery).GetValueOrDefault());
 }
示例#7
0
 public virtual long FindProcessDefinitionCountByQueryCriteria(IProcessDefinitionQuery processDefinitionQuery)
 {
     return(DbSqlSession.SelectOne <ProcessDefinitionEntityImpl, long?>("selectProcessDefinitionCountByQueryCriteria", processDefinitionQuery).GetValueOrDefault());
 }
 public virtual IProcessDefinitionInfoEntity FindProcessDefinitionInfoByProcessDefinitionId(string processDefinitionId)
 {
     return(DbSqlSession.SelectOne <ProcessDefinitionInfoEntityImpl, IProcessDefinitionInfoEntity>("selectProcessDefinitionInfoByProcessDefinitionId", new { processDefinitionId }));
 }
 public virtual long FindTaskCountByQueryCriteria(ITaskQuery taskQuery)
 {
     return(DbSqlSession.SelectOne <TaskEntityImpl, long?>("selectTaskCountByQueryCriteria", taskQuery).GetValueOrDefault());
 }
 public virtual long FindDeploymentCountByQueryCriteria(IDeploymentQuery deploymentQuery)
 {
     return(DbSqlSession.SelectOne <DeploymentEntityImpl, long?>("selectDeploymentCountByQueryCriteria", deploymentQuery).GetValueOrDefault());
 }
        public virtual long FindEventSubscriptionCountByQueryCriteria(IEventSubscriptionQuery eventSubscriptionQueryImpl)
        {
            const string query = "selectEventSubscriptionCountByQueryCriteria";

            return(DbSqlSession.SelectOne <EventSubscriptionEntityImpl, long?>(query, eventSubscriptionQueryImpl).GetValueOrDefault());
        }
示例#12
0
 public virtual long FindJobCountByQueryCriteria(ITimerJobQuery jobQuery)
 {
     return(DbSqlSession.SelectOne <TimerJobEntityImpl, long?>("selectTimerJobCountByQueryCriteria", jobQuery).GetValueOrDefault());
 }
示例#13
0
 public virtual long FindHistoricVariableInstanceCountByNativeQuery(IDictionary <string, object> parameterMap)
 {
     return(DbSqlSession.SelectOne <HistoricVariableInstanceEntityImpl, long?>("selectHistoricVariableInstanceCountByNativeQuery", parameterMap).GetValueOrDefault());
 }
示例#14
0
 public virtual IHistoricVariableInstanceEntity FindHistoricVariableInstanceByVariableInstanceId(string variableInstanceId)
 {
     return((IHistoricVariableInstanceEntity)DbSqlSession.SelectOne <HistoricVariableInstanceEntityImpl, IHistoricVariableInstanceEntity>("selectHistoricVariableInstanceByVariableInstanceId", new { variableInstanceId }));
 }
示例#15
0
 public virtual long FindHistoricVariableInstanceCountByQueryCriteria(IHistoricVariableInstanceQuery historicProcessVariableQuery)
 {
     return(DbSqlSession.SelectOne <HistoricVariableInstanceEntityImpl, long?>("selectHistoricVariableInstanceCountByQueryCriteria", historicProcessVariableQuery).GetValueOrDefault());
 }
示例#16
0
 public virtual long FindProcessInstanceCountByQueryCriteria(IProcessInstanceQuery executionQuery)
 {
     return(DbSqlSession.SelectOne <ExecutionEntityImpl, long?>("selectProcessInstanceCountByQueryCriteria", executionQuery).GetValueOrDefault());
 }
示例#17
0
 protected internal virtual long GetTableCount(string tableName)
 {
     log.LogDebug($"selecting table count for {tableName}");
     return(DbSqlSession.SelectOne <TableDataManagerImpl, long?>("selectTableCount", tableName).GetValueOrDefault());
 }
示例#18
0
 public virtual IProcessDefinitionEntity FindLatestProcessDefinitionByKey(string processDefinitionKey)
 {
     return(DbSqlSession.SelectOne <ProcessDefinitionEntityImpl, IProcessDefinitionEntity>("selectLatestProcessDefinitionByKey", new { processDefinitionKey }));
 }
 public virtual long FindTaskCountByNativeQuery(IDictionary <string, object> parameterMap)
 {
     return(DbSqlSession.SelectOne <TaskEntityImpl, long?>("selectTaskCountByNativeQuery", parameterMap).GetValueOrDefault());
 }
示例#20
0
 public virtual long FindModelCountByQueryCriteria(IModelQuery query)
 {
     return(DbSqlSession.SelectOne <ModelEntityImpl, long?>("selectModelCountByQueryCriteria", query).GetValueOrDefault());
 }