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

META-INF.custom-sql.default.xml Maven / Gradle / Ivy

There is a newer version: 6.0.86
Show newest version
<?xml version="1.0"?>

<custom-sql>
	<sql id="com.liferay.portal.workflow.kaleo.service.persistence.KaleoTaskInstanceTokenFinder.countByC_KTAI">
		<![CDATA[
			SELECT
				COUNT(DISTINCT KaleoTaskInstanceToken.kaleoTaskInstanceTokenId) AS COUNT_VALUE
			FROM
				KaleoTaskInstanceToken
			INNER JOIN
				KaleoTaskAssignmentInstance ON
					KaleoTaskAssignmentInstance.kaleoTaskInstanceTokenId = KaleoTaskInstanceToken.kaleoTaskInstanceTokenId
			LEFT JOIN
				ClassName_ ON
					ClassName_.value = KaleoTaskInstanceToken.className
			LEFT JOIN
				AssetEntry ON
					(AssetEntry.classNameId = ClassName_.classNameId) AND
					(AssetEntry.classPK = KaleoTaskInstanceToken.classPK)
			WHERE
				KaleoTaskInstanceToken.companyId = ?
		]]>
	</sql>
	<sql id="com.liferay.portal.workflow.kaleo.service.persistence.KaleoTaskInstanceTokenFinder.findByC_KTAI">
		<![CDATA[
			SELECT
				DISTINCT KaleoTaskInstanceToken.kaleoTaskInstanceTokenId
			FROM
				KaleoTaskInstanceToken
			INNER JOIN
				KaleoTaskAssignmentInstance ON
					KaleoTaskAssignmentInstance.kaleoTaskInstanceTokenId = KaleoTaskInstanceToken.kaleoTaskInstanceTokenId
			LEFT JOIN
				ClassName_ ON
					ClassName_.value = KaleoTaskInstanceToken.className
			LEFT JOIN
				AssetEntry ON
					(AssetEntry.classNameId = ClassName_.classNameId) AND
					(AssetEntry.classPK = KaleoTaskInstanceToken.classPK)
			WHERE
				KaleoTaskInstanceToken.companyId = ?
		]]>
	</sql>
</custom-sql>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy