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: 5.0.70
Show newest version
<?xml version="1.0"?>

<custom-sql>
	<sql id="com.liferay.dynamic.data.lists.service.persistence.DDLRecordFinder.countByR_S">
		<![CDATA[
			SELECT
				COUNT(DISTINCT DDLRecord.recordId) AS COUNT_VALUE
			FROM
				DDLRecord
			INNER JOIN
				DDLRecordVersion ON
					DDLRecordVersion.recordId = DDLRecord.recordId
			WHERE
				(DDLRecordVersion.status = ?) AND
				(DDLRecord.recordSetId = ?)
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.lists.service.persistence.DDLRecordFinder.countByC_S_S">
		<![CDATA[
			SELECT
				COUNT(DISTINCT DDLRecord.recordId) AS COUNT_VALUE
			FROM
				DDLRecord
			INNER JOIN
				DDLRecordVersion ON
					DDLRecordVersion.recordId = DDLRecord.recordId
			INNER JOIN
				DDLRecordSet ON
					DDLRecordSet.recordSetId = DDLRecord.recordSetId
			WHERE
				(DDLRecordVersion.status = ?) AND
				(DDLRecordSet.scope = ?) AND
				(DDLRecord.companyId = ?)
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.lists.service.persistence.DDLRecordFinder.findByR_S">
		<![CDATA[
			SELECT
				DISTINCT {DDLRecord.*}
			FROM
				DDLRecord
			INNER JOIN
				DDLRecordVersion ON
					DDLRecordVersion.recordId = DDLRecord.recordId
			WHERE
				(DDLRecordVersion.status = ?) AND
				(DDLRecord.recordSetId = ?)
			ORDER BY
				DDLRecord.recordId DESC
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.lists.service.persistence.DDLRecordFinder.findByC_S_S">
		<![CDATA[
			SELECT
				DISTINCT {DDLRecord.*}
			FROM
				DDLRecord
			INNER JOIN
				DDLRecordVersion ON
					DDLRecordVersion.recordId = DDLRecord.recordId
			INNER JOIN
				DDLRecordSet ON
					DDLRecordSet.recordSetId = DDLRecord.recordSetId
			WHERE
				(DDLRecordVersion.status = ?) AND
				(DDLRecordSet.scope = ?) AND
				(DDLRecord.companyId = ?)
			ORDER BY
				DDLRecord.recordId DESC
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.lists.service.persistence.DDLRecordSetFinder.countByG_D">
		<![CDATA[
			SELECT
				COUNT(DISTINCT DDLRecordSet.recordSetId) AS COUNT_VALUE
			FROM
				DDLRecordSet
			WHERE
				(DDLRecordSet.groupId = ?) AND
				(DDLRecordSet.DDMStructureId = ?)
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.lists.service.persistence.DDLRecordSetFinder.countByC_G_N_D_S">
		<![CDATA[
			SELECT
				COUNT(DISTINCT DDLRecordSet.recordSetId) AS COUNT_VALUE
			FROM
				DDLRecordSet
			WHERE
				(DDLRecordSet.companyId = ?) AND
				(DDLRecordSet.groupId = ?) AND
				(DDLRecordSet.scope = ?) AND
				(
					(LOWER(DDLRecordSet.name) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(DDLRecordSet.description LIKE ? [$AND_OR_NULL_CHECK$])
				)
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.lists.service.persistence.DDLRecordSetFinder.findByC_G_N_D_S">
		<![CDATA[
			SELECT
				{DDLRecordSet.*}
			FROM
				(
					SELECT
						DISTINCT DDLRecordSet.recordSetId
					FROM
						DDLRecordSet
					WHERE
						(DDLRecordSet.companyId = ?) AND
						(DDLRecordSet.groupId = ?) AND
						(DDLRecordSet.scope = ?) AND
						(
							(LOWER(DDLRecordSet.name) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
							(LOWER(DDLRecordSet.description) LIKE ? [$AND_OR_NULL_CHECK$])
						)
				)
				TEMP_TABLE
					INNER JOIN
						DDLRecordSet ON
							TEMP_TABLE.recordSetId = DDLRecordSet.recordSetId
			ORDER BY
				DDLRecordSet.recordSetId DESC
		]]>
	</sql>
</custom-sql>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy