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

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

The newest version!
<?xml version="1.0"?>

<custom-sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMDataProviderInstanceFinder.countByC_G_N_D">
		<![CDATA[
			SELECT
				COUNT(DISTINCT DDMDataProviderInstance.dataProviderInstanceId) AS COUNT_VALUE
			FROM
				DDMDataProviderInstance
			WHERE
				(DDMDataProviderInstance.companyId = ?) AND
				[$GROUP_ID$]
				(
					(LOWER(DDMDataProviderInstance.name) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(DDMDataProviderInstance.description LIKE ? [$AND_OR_NULL_CHECK$])
				)
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMDataProviderInstanceFinder.findByC_G_N_D">
		<![CDATA[
			SELECT
				{DDMDataProviderInstance.*}
			FROM
				(
					SELECT
						DISTINCT DDMDataProviderInstance.dataProviderInstanceId
					FROM
						DDMDataProviderInstance
					WHERE
						(DDMDataProviderInstance.companyId = ?) AND
						[$GROUP_ID$]
						(
							(LOWER(DDMDataProviderInstance.name) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
							(DDMDataProviderInstance.description LIKE ? [$AND_OR_NULL_CHECK$])
						)
				)
				TEMP_TABLE
			INNER JOIN
				DDMDataProviderInstance ON
					TEMP_TABLE.dataProviderInstanceId = DDMDataProviderInstance.dataProviderInstanceId
			ORDER BY
				DDMDataProviderInstance.dataProviderInstanceId DESC
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMFormInstanceFinder.countByC_G_N_D">
		<![CDATA[
			SELECT
				COUNT(DISTINCT DDMFormInstance.formInstanceId) AS COUNT_VALUE
			FROM
				DDMFormInstance
			WHERE
				(DDMFormInstance.groupId = ?) AND
				(DDMFormInstance.companyId = ?) AND
				(
					(LOWER(DDMFormInstance.name) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(DDMFormInstance.description LIKE ? [$AND_OR_NULL_CHECK$])
				)
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMFormInstanceFinder.countByC_G_N_D_S">
		<![CDATA[
			SELECT
				COUNT(DISTINCT DDMFormInstance.formInstanceId) AS COUNT_VALUE
			FROM
				DDMFormInstance, DDMFormInstanceVersion
			WHERE
				(DDMFormInstance.formInstanceId = DDMFormInstanceVersion.formInstanceId) AND
				(DDMFormInstance.groupId = ?) AND
				(DDMFormInstance.companyId = ?) AND
				(
					(LOWER(DDMFormInstance.name) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(DDMFormInstance.description LIKE ? [$AND_OR_NULL_CHECK$])
				) AND
				(DDMFormInstanceVersion.status = ?)
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMFormInstanceFinder.findByC_G_N_D">
		<![CDATA[
			SELECT
				{DDMFormInstance.*}
			FROM
				(
					SELECT
						DISTINCT DDMFormInstance.formInstanceId
					FROM
						DDMFormInstance
					WHERE
						(DDMFormInstance.groupId = ?) AND
						(DDMFormInstance.companyId = ?) AND
						(
							(LOWER(DDMFormInstance.name) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
							(DDMFormInstance.description LIKE ? [$AND_OR_NULL_CHECK$])
						)
				)
				TEMP_TABLE
					INNER JOIN
						DDMFormInstance ON
							TEMP_TABLE.formInstanceId = DDMFormInstance.formInstanceId
			ORDER BY
				DDMFormInstance.formInstanceId DESC
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMFormInstanceFinder.findByC_G_N_D_S">
		<![CDATA[
			SELECT
				{DDMFormInstance.*}
			FROM
				(
					SELECT
						DISTINCT DDMFormInstance.formInstanceId
					FROM
						DDMFormInstance, DDMFormInstanceVersion
					WHERE
						(DDMFormInstance.formInstanceId = DDMFormInstanceVersion.formInstanceId) AND
						(DDMFormInstance.groupId = ?) AND
						(DDMFormInstance.companyId = ?) AND
						(
							(LOWER(DDMFormInstance.name) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
							(DDMFormInstance.description LIKE ? [$AND_OR_NULL_CHECK$])
						) AND
						(DDMFormInstanceVersion.status = ?)
				)
				TEMP_TABLE
					INNER JOIN
						DDMFormInstance ON
							TEMP_TABLE.formInstanceId = DDMFormInstance.formInstanceId
			ORDER BY
				DDMFormInstance.formInstanceId DESC
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMFormInstanceRecordFinder.countByF_S">
		<![CDATA[
			SELECT
				COUNT(DISTINCT DDMFormInstanceRecord.formInstanceRecordId) AS COUNT_VALUE
			FROM
				DDMFormInstanceRecord
			INNER JOIN
				DDMFormInstanceRecordVersion ON
					DDMFormInstanceRecordVersion.formInstanceRecordId = DDMFormInstanceRecord.formInstanceRecordId
			WHERE
				(DDMFormInstanceRecordVersion.status = ?) AND
				(DDMFormInstanceRecord.formInstanceId = ?)
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMFormInstanceRecordFinder.findByF_S">
		<![CDATA[
			SELECT
				DISTINCT {DDMFormInstanceRecord.*}
			FROM
				DDMFormInstanceRecord
			INNER JOIN
				DDMFormInstanceRecordVersion ON
					DDMFormInstanceRecordVersion.formInstanceRecordId = DDMFormInstanceRecord.formInstanceRecordId
			WHERE
				(DDMFormInstanceRecordVersion.status = ?) AND
				(DDMFormInstanceRecord.formInstanceId = ?)
			ORDER BY
				DDMFormInstanceRecord.formInstanceRecordId DESC
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMStructureLinkFinder.countByC_C_N_D">
		<![CDATA[
			SELECT
				COUNT(DDMStructureLink.structureLinkId) AS COUNT_VALUE
			FROM
				DDMStructureLink
			INNER JOIN
				DDMStructure ON
					DDMStructureLink.structureId = DDMStructure.structureId
			WHERE
				(DDMStructureLink.classNameId = ?) AND
				(DDMStructureLink.classPK = ?) AND
				(
					(LOWER(CAST_TEXT(DDMStructure.name)) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(DDMStructure.description LIKE ? [$AND_OR_NULL_CHECK$])
				)
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMStructureLinkFinder.findByC_C_N_D">
		<![CDATA[
			SELECT
				{DDMStructureLink.*}
			FROM
				DDMStructureLink
			INNER JOIN
				DDMStructure ON
					DDMStructureLink.structureId = DDMStructure.structureId
			WHERE
				(DDMStructureLink.classNameId = ?) AND
				(DDMStructureLink.classPK = ?) AND
				(
					(LOWER(CAST_TEXT(DDMStructure.name)) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(DDMStructure.description LIKE ? [$AND_OR_NULL_CHECK$])
				)
			ORDER BY
				DDMStructureLink.structureLinkId DESC
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMTemplateFinder.countByG_C_SC_S">
		<![CDATA[
			SELECT
				COUNT(DDMTemplate.templateId) AS COUNT_VALUE
			FROM
				DDMTemplate
			WHERE
				[$GROUP_ID$]
				(DDMTemplate.classNameId = ?) AND
				(
					(DDMTemplate.classPK = 0) OR
					(
						DDMTemplate.classPK IN
							(
								SELECT
									DDMStructure.structureId
								FROM
									DDMStructure
								WHERE
									DDMStructure.classNameId = ?
							)
					)
				)
				[$STATUS$]
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMTemplateFinder.countByC_G_C_C_R_N_D_T_M_L_S">
		<![CDATA[
			SELECT
				COUNT(DISTINCT DDMTemplate.templateId) AS COUNT_VALUE
			FROM
				DDMTemplate
			WHERE
				(DDMTemplate.companyId = ?) AND
				[$GROUP_ID$]
				[$CLASSNAME_ID$]
				[$CLASS_PK$]
				(DDMTemplate.resourceClassNameId = ?) AND
				(
					(LOWER(CAST_TEXT(DDMTemplate.name)) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(DDMTemplate.description LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(DDMTemplate.type_ LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(DDMTemplate.mode_ LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
					(DDMTemplate.language LIKE ? [$AND_OR_NULL_CHECK$])
				)
				[$STATUS$]
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMTemplateFinder.findByG_C_SC_S">
		<![CDATA[
			SELECT
				{DDMTemplate.*}
			FROM
				DDMTemplate
			WHERE
				[$GROUP_ID$]
				(classNameId = ?) AND
				(
					(classPK = 0) OR
					(
						classPK IN
							(
								SELECT
									DDMStructure.structureId
								FROM
									DDMStructure
								WHERE
									DDMStructure.classNameId = ?
							)
					)
				)
				[$STATUS$]
			ORDER BY
				DDMTemplate.templateId DESC
		]]>
	</sql>
	<sql id="com.liferay.dynamic.data.mapping.service.persistence.DDMTemplateFinder.findByC_G_C_C_R_N_D_T_M_L_S">
		<![CDATA[
			SELECT
				{DDMTemplate.*}
			FROM
				(
					SELECT
						DISTINCT DDMTemplate.templateId
					FROM
						DDMTemplate
					WHERE
						(DDMTemplate.companyId = ?) AND
						[$GROUP_ID$]
						[$CLASSNAME_ID$]
						[$CLASS_PK$]
						(DDMTemplate.resourceClassNameId = ?) AND
						(
							(LOWER(CAST_TEXT(DDMTemplate.name)) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
							(DDMTemplate.description LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
							(DDMTemplate.type_ LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
							(DDMTemplate.mode_ LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$]
							(DDMTemplate.language LIKE ? [$AND_OR_NULL_CHECK$])
						)
						[$STATUS$]
				)
				TEMP_TABLE
			INNER JOIN
				DDMTemplate ON
					TEMP_TABLE.templateId = DDMTemplate.templateId
			ORDER BY
				DDMTemplate.templateId DESC
		]]>
	</sql>
</custom-sql>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy