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

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

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

<custom-sql>
	<sql id="com.liferay.sync.service.persistence.SyncDLObjectFinder.findByModifiedTime">
		<![CDATA[
			SELECT
				{SyncDLObject.*}
			FROM
				SyncDLObject
			WHERE
				(SyncDLObject.modifiedTime > ?) AND
				(SyncDLObject.repositoryId = ?) AND
				(SyncDLObject.event != 'delete') AND
				(SyncDLObject.event != 'trash') AND
				(SyncDLObject.treePath LIKE ?) AND
				(SyncDLObject.type_ = ?)
			ORDER BY
				modifiedTime ASC
		]]>
	</sql>
	<sql id="com.liferay.sync.service.persistence.SyncDLObjectFinder.findByTypePKs">
		<![CDATA[
			SELECT
				DISTINCT primKey
			FROM
				ResourcePermission
			WHERE
				(companyId = ?) AND
				(
					(name = CAST_TEXT('com.liferay.document.library.kernel.model.DLFileEntry')) OR
					(name = CAST_TEXT('com.liferay.document.library.kernel.model.DLFolder'))
				) AND
				(scope = ?) AND
				[$TYPE_PKS$] AND
				(MOD(actionIds, 2) = 1) AND
				[$ROLE_IDS_OR_OWNER_ID$]
		]]>
	</sql>
</custom-sql>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy