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

<custom-sql>
	<sql id="com.liferay.fragment.service.persistence.FragmentEntryLinkFinder.countByG_F">
		<![CDATA[
			SELECT
				COUNT(DISTINCT CONCAT(CAST_TEXT(FragmentEntryLink.classNameId), '-', CAST_TEXT(FragmentEntryLink.classPK))) AS COUNT_VALUE
			FROM
				FragmentEntryLink
			WHERE
				(FragmentEntryLink.groupId = ?) AND
				(FragmentEntryLink.fragmentEntryId = ?)
		]]>
	</sql>
	<sql id="com.liferay.fragment.service.persistence.FragmentEntryLinkFinder.countByG_F_C">
		<![CDATA[
			SELECT
				COUNT(DISTINCT FragmentEntryLink.classPK) AS COUNT_VALUE
			FROM
				FragmentEntryLink
			INNER JOIN
				Layout ON
					(FragmentEntryLink.groupId = Layout.groupId) AND
					(FragmentEntryLink.classPK = Layout.plid)
			WHERE
				(FragmentEntryLink.groupId = ?) AND
				(FragmentEntryLink.fragmentEntryId = ?) AND
				(FragmentEntryLink.classNameId = ?)
		]]>
	</sql>
	<sql id="com.liferay.fragment.service.persistence.FragmentEntryLinkFinder.countByG_F_C_L">
		<![CDATA[
			SELECT
				COUNT(DISTINCT FragmentEntryLink.classPK) AS COUNT_VALUE
			FROM
				FragmentEntryLink
			INNER JOIN
				LayoutPageTemplateEntry ON
					(FragmentEntryLink.groupId = LayoutPageTemplateEntry.groupId) AND
					(FragmentEntryLink.classPK = LayoutPageTemplateEntry.layoutPageTemplateEntryId)
			WHERE
				(FragmentEntryLink.groupId = ?) AND
				(FragmentEntryLink.fragmentEntryId = ?) AND
				(FragmentEntryLink.classNameId = ?) AND
				(LayoutPageTemplateEntry.type_ = ?)
		]]>
	</sql>
	<sql id="com.liferay.fragment.service.persistence.FragmentEntryLinkFinder.findByG_F">
		<![CDATA[
			SELECT
				FragmentEntryLink.*
			FROM
				FragmentEntryLink
			WHERE
				(FragmentEntryLink.groupId = ?) AND
				(FragmentEntryLink.fragmentEntryId = ?) AND
				(
					FragmentEntryLink.createDate =
						(
							SELECT
								MAX(tempFragmentEntryLink.createDate)
							FROM
								FragmentEntryLink tempFragmentEntryLink
							WHERE
								(tempFragmentEntryLink.groupId = FragmentEntryLink.groupId) AND
								(tempFragmentEntryLink.classPK = FragmentEntryLink.classPK) AND
								(tempFragmentEntryLink.fragmentEntryId = FragmentEntryLink.fragmentEntryId)
						)
				)
		]]>
	</sql>
	<sql id="com.liferay.fragment.service.persistence.FragmentEntryLinkFinder.findByG_F_C">
		<![CDATA[
			SELECT
				FragmentEntryLink.*
			FROM
				Layout
			INNER JOIN
				FragmentEntryLink ON
					(FragmentEntryLink.groupId = Layout.groupId) AND
					(FragmentEntryLink.classPK = Layout.plid)
			WHERE
				(FragmentEntryLink.groupId = ?) AND
				(FragmentEntryLink.fragmentEntryId = ?) AND
				(FragmentEntryLink.classNameId = ?) AND
				(
					FragmentEntryLink.createDate =
						(
							SELECT
								MAX(tempFragmentEntryLink.createDate)
							FROM
								FragmentEntryLink tempFragmentEntryLink
							WHERE
								(tempFragmentEntryLink.groupId = FragmentEntryLink.groupId) AND
								(tempFragmentEntryLink.classPK = FragmentEntryLink.classPK) AND
								(tempFragmentEntryLink.fragmentEntryId = FragmentEntryLink.fragmentEntryId)
						)
				)
		]]>
	</sql>
	<sql id="com.liferay.fragment.service.persistence.FragmentEntryLinkFinder.findByG_F_C_L">
		<![CDATA[
			SELECT
				FragmentEntryLink.*
			FROM
				LayoutPageTemplateEntry
			INNER JOIN
				FragmentEntryLink ON
					(FragmentEntryLink.groupId = LayoutPageTemplateEntry.groupId) AND
					(FragmentEntryLink.classPK = LayoutPageTemplateEntry.layoutPageTemplateEntryId)
			WHERE
				(FragmentEntryLink.groupId = ?) AND
				(FragmentEntryLink.fragmentEntryId = ?) AND
				(FragmentEntryLink.classNameId = ?) AND
				(LayoutPageTemplateEntry.type_ = ?) AND
				(
					FragmentEntryLink.createDate =
						(
							SELECT
								MAX(tempFragmentEntryLink.createDate)
							FROM
								FragmentEntryLink tempFragmentEntryLink
							WHERE
								(tempFragmentEntryLink.groupId = FragmentEntryLink.groupId) AND
								(tempFragmentEntryLink.classPK = FragmentEntryLink.classPK) AND
								(tempFragmentEntryLink.fragmentEntryId = FragmentEntryLink.fragmentEntryId)
						)
				)
		]]>
	</sql>
</custom-sql>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy