public virtual IResourceEntity FindResourceByDeploymentIdAndResourceName(string deploymentId, string resourceName) { return((IResourceEntity)DbSqlSession.SelectOne <ResourceEntityImpl, IResourceEntity>("selectResourceByDeploymentIdAndResourceName", new { deploymentId, resourceName })); }
public virtual IProcessDefinitionEntity FindProcessDefinitionByDeploymentAndKeyAndTenantId(string deploymentId, string processDefinitionKey, string tenantId) { return(DbSqlSession.SelectOne <ProcessDefinitionEntityImpl, IProcessDefinitionEntity>("selectProcessDefinitionByDeploymentAndKeyAndTenantId", new { deploymentId, processDefinitionKey, tenantId })); }
/// <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)); }
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()); }
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()); }
public virtual long FindJobCountByQueryCriteria(ITimerJobQuery jobQuery) { return(DbSqlSession.SelectOne <TimerJobEntityImpl, long?>("selectTimerJobCountByQueryCriteria", jobQuery).GetValueOrDefault()); }
public virtual long FindHistoricVariableInstanceCountByNativeQuery(IDictionary <string, object> parameterMap) { return(DbSqlSession.SelectOne <HistoricVariableInstanceEntityImpl, long?>("selectHistoricVariableInstanceCountByNativeQuery", parameterMap).GetValueOrDefault()); }
public virtual IHistoricVariableInstanceEntity FindHistoricVariableInstanceByVariableInstanceId(string variableInstanceId) { return((IHistoricVariableInstanceEntity)DbSqlSession.SelectOne <HistoricVariableInstanceEntityImpl, IHistoricVariableInstanceEntity>("selectHistoricVariableInstanceByVariableInstanceId", new { variableInstanceId })); }
public virtual long FindHistoricVariableInstanceCountByQueryCriteria(IHistoricVariableInstanceQuery historicProcessVariableQuery) { return(DbSqlSession.SelectOne <HistoricVariableInstanceEntityImpl, long?>("selectHistoricVariableInstanceCountByQueryCriteria", historicProcessVariableQuery).GetValueOrDefault()); }
public virtual long FindProcessInstanceCountByQueryCriteria(IProcessInstanceQuery executionQuery) { return(DbSqlSession.SelectOne <ExecutionEntityImpl, long?>("selectProcessInstanceCountByQueryCriteria", executionQuery).GetValueOrDefault()); }
protected internal virtual long GetTableCount(string tableName) { log.LogDebug($"selecting table count for {tableName}"); return(DbSqlSession.SelectOne <TableDataManagerImpl, long?>("selectTableCount", tableName).GetValueOrDefault()); }
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()); }
public virtual long FindModelCountByQueryCriteria(IModelQuery query) { return(DbSqlSession.SelectOne <ModelEntityImpl, long?>("selectModelCountByQueryCriteria", query).GetValueOrDefault()); }