custom-sql.journal.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-impl Show documentation
Show all versions of portal-impl Show documentation
Contains implementation for the portal services.
<?xml version="1.0"?> <custom-sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.countByG_F"> <![CDATA[ SELECT COUNT(DISTINCT JournalArticle.articleId) AS COUNT_VALUE FROM JournalArticle LEFT JOIN JournalArticle tempJournalArticle ON [$STATUS_JOIN$] AND (JournalArticle.groupId = tempJournalArticle.groupId) AND (JournalArticle.articleId = tempJournalArticle.articleId) AND (JournalArticle.version < tempJournalArticle.version) WHERE (JournalArticle.groupId = ?) AND [$STATUS$] AND [$FOLDER_ID$] AND (tempJournalArticle.id_ IS NULL) ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.countByG_C_S"> <![CDATA[ SELECT COUNT(DISTINCT JournalArticle.articleId) AS COUNT_VALUE FROM JournalArticle WHERE (groupId = ?) AND (classNameId = ?) AND (structureId = ?) AND ([$STATUS$]) ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.countByG_U_F_C"> <![CDATA[ SELECT COUNT(DISTINCT JournalArticle.articleId) AS COUNT_VALUE FROM JournalArticle LEFT JOIN JournalArticle tempJournalArticle ON [$STATUS_JOIN$] AND (JournalArticle.groupId = tempJournalArticle.groupId) AND (JournalArticle.articleId = tempJournalArticle.articleId) AND (JournalArticle.version < tempJournalArticle.version) WHERE (JournalArticle.groupId = ?) AND (JournalArticle.classNameId = ?) AND (JournalArticle.userId = ?) AND ([$FOLDER_ID$]) AND [$STATUS$] AND (tempJournalArticle.id_ IS NULL) ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.countByC_G_F_C_A_V_T_D_C_T_S_T_D_R"> <![CDATA[ SELECT COUNT(DISTINCT JournalArticle.articleId) AS COUNT_VALUE FROM JournalArticle LEFT JOIN JournalArticle tempJournalArticle ON [$STATUS_JOIN$] AND (JournalArticle.groupId = tempJournalArticle.groupId) AND (JournalArticle.articleId = tempJournalArticle.articleId) AND (JournalArticle.version < tempJournalArticle.version) WHERE (JournalArticle.companyId = ?) AND (JournalArticle.groupId = ?) AND ([$FOLDER_ID$]) AND (JournalArticle.classNameId = ?) AND ([$STATUS$]) AND ([$TYPE_STRUCTURE_TEMPLATE$]) AND (tempJournalArticle.id_ IS NULL) AND ( (JournalArticle.articleId LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.version = ?) [$AND_OR_CONNECTOR$] (lower(JournalArticle.title) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.description LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.content LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.displayDate >= ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.displayDate <= ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.reviewDate <= ? [$AND_OR_NULL_CHECK$]) ) ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.findByExpirationDate"> <![CDATA[ SELECT {JournalArticle.*} FROM JournalArticle WHERE (classNameId = ?) AND ([$STATUS$]) AND (expirationDate <= ?) ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.findByReviewDate"> <![CDATA[ SELECT {JournalArticle.*} FROM JournalArticle WHERE (classNameId = ?) AND (reviewDate >= ?) AND (reviewDate <= ?) ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.findByR_D"> <![CDATA[ SELECT {JournalArticle.*} FROM JournalArticle WHERE (resourcePrimKey = ?) AND (displayDate <= ?) AND (status = 0) AND (indexable = [$TRUE$]) ORDER BY version DESC ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.findByG_F"> <![CDATA[ SELECT JournalArticle.* FROM JournalArticle LEFT JOIN JournalArticle tempJournalArticle ON [$STATUS_JOIN$] AND (JournalArticle.groupId = tempJournalArticle.groupId) AND (JournalArticle.articleId = tempJournalArticle.articleId) AND (JournalArticle.version < tempJournalArticle.version) WHERE (JournalArticle.groupId = ?) AND ([$STATUS$]) AND [$FOLDER_ID$] AND (tempJournalArticle.id_ IS NULL) ORDER BY JournalArticle.id_ ASC ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.findByG_C_S"> <![CDATA[ SELECT JournalArticle.* FROM JournalArticle LEFT JOIN JournalArticle tempJournalArticle ON [$STATUS_JOIN$] AND (JournalArticle.groupId = tempJournalArticle.groupId) AND (JournalArticle.articleId = tempJournalArticle.articleId) AND (JournalArticle.version < tempJournalArticle.version) WHERE (JournalArticle.groupId = ?) AND (JournalArticle.classNameId = ?) AND (JournalArticle.structureId = ?) AND ([$STATUS$]) AND (tempJournalArticle.id_ IS NULL) ORDER BY JournalArticle.id_ ASC ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.findByG_U_F_C"> <![CDATA[ SELECT JournalArticle.* FROM JournalArticle LEFT JOIN JournalArticle tempJournalArticle ON [$STATUS_JOIN$] AND (JournalArticle.groupId = tempJournalArticle.groupId) AND (JournalArticle.articleId = tempJournalArticle.articleId) AND (JournalArticle.version < tempJournalArticle.version) WHERE (JournalArticle.groupId = ?) AND (JournalArticle.classNameId = ?) AND (JournalArticle.userId = ?) AND ([$FOLDER_ID$]) AND ([$STATUS$]) AND (tempJournalArticle.id_ IS NULL) ORDER BY JournalArticle.id_ ASC ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalArticleFinder.findByC_G_F_C_A_V_T_D_C_T_S_T_D_R"> <![CDATA[ SELECT JournalArticle.* FROM JournalArticle LEFT JOIN JournalArticle tempJournalArticle ON [$STATUS_JOIN$] AND (JournalArticle.groupId = tempJournalArticle.groupId) AND (JournalArticle.articleId = tempJournalArticle.articleId) AND (JournalArticle.version < tempJournalArticle.version) WHERE (JournalArticle.companyId = ?) AND (JournalArticle.groupId = ?) AND ([$FOLDER_ID$]) AND (JournalArticle.classNameId = ?) AND ([$STATUS$]) AND ([$TYPE_STRUCTURE_TEMPLATE$]) AND (tempJournalArticle.id_ IS NULL) AND ( (JournalArticle.articleId LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.version = ?) [$AND_OR_CONNECTOR$] (lower(JournalArticle.title) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.description LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.content LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.displayDate >= ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.displayDate <= ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (JournalArticle.reviewDate <= ? [$AND_OR_NULL_CHECK$]) ) ORDER BY JournalArticle.id_ ASC ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalFeedFinder.countByC_G_F_N_D"> <![CDATA[ SELECT COUNT(*) AS COUNT_VALUE FROM JournalFeed WHERE (companyId = ?) AND (groupId = ?) AND ( (feedId LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (lower(name) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (lower(description) LIKE ? [$AND_OR_NULL_CHECK$]) ) ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalFeedFinder.findByC_G_F_N_D"> <![CDATA[ SELECT {JournalFeed.*} FROM JournalFeed WHERE (companyId = ?) AND (groupId = ?) AND ( (feedId LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (lower(name) LIKE ? [$AND_OR_NULL_CHECK$]) [$AND_OR_CONNECTOR$] (lower(description) LIKE ? [$AND_OR_NULL_CHECK$]) ) ORDER BY feedId ASC ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalFolderFinder.countA_ByG_F"> <![CDATA[ SELECT COUNT(DISTINCT JournalArticle.articleId) AS COUNT_VALUE FROM JournalArticle WHERE (JournalArticle.groupId = ?) AND (JournalArticle.classNameId = 0) AND ([$STATUS$]) [$ARTICLE_FOLDER_ID$] ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalFolderFinder.countF_ByG_F"> <![CDATA[ SELECT COUNT(*) AS COUNT_VALUE FROM JournalFolder WHERE (JournalFolder.groupId = ?) AND ([$STATUS$]) [$FOLDER_PARENT_FOLDER_ID$] ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalFolderFinder.findA_ByG_F"> <![CDATA[ SELECT DISTINCT JournalArticle.folderId AS modelFolderId, JournalArticle.articleId as articleId, JournalArticle.version AS version, 0 AS modelFolder, JournalArticle.displayDate as displayDate, JournalArticle.modifiedDate as modifiedDate FROM ( SELECT MAX(JournalArticle.id_) AS id_ FROM JournalArticle WHERE (JournalArticle.groupId = ?) AND (JournalArticle.classNameId = 0) AND ([$STATUS$]) [$ARTICLE_FOLDER_ID$] GROUP BY JournalArticle.folderId, JournalArticle.articleId ) TEMP_TABLE INNER JOIN JournalArticle ON (TEMP_TABLE.id_ = JournalArticle.id_) ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalFolderFinder.findByF_ByNoAssets"> <![CDATA[ SELECT {JournalFolder.*} FROM JournalFolder LEFT JOIN AssetEntry ON (AssetEntry.classPK = JournalFolder.folderId) WHERE (AssetEntry.classPK IS NULL) ]]> </sql> <sql id="com.liferay.portlet.journal.service.persistence.JournalFolderFinder.findF_ByG_F"> <![CDATA[ SELECT DISTINCT folderId AS modelFolderId, '' AS articleId, 0 AS version, 1 AS modelFolder, JournalFolder.createDate as displayDate, JournalFolder.modifiedDate as modifiedDate FROM JournalFolder WHERE (JournalFolder.groupId = ?) AND ([$STATUS$]) [$FOLDER_PARENT_FOLDER_ID$] ]]> </sql> </custom-sql>