com.liferay.portlet.asset.service.persistence
Class AssetEntryFinderImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetEntry>
      extended by com.liferay.portlet.asset.service.persistence.AssetEntryFinderImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.asset.model.AssetEntry>, com.liferay.portlet.asset.service.persistence.AssetEntryFinder

public class AssetEntryFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.asset.model.AssetEntry>
implements com.liferay.portlet.asset.service.persistence.AssetEntryFinder

View Source

Author:
Brian Wing Shun Chan, Jorge Ferrer

Field Summary
static java.lang.String FIND_BY_AND_CATEGORY_IDS
           
static java.lang.String FIND_BY_AND_CATEGORY_IDS_TREE
           
static java.lang.String FIND_BY_AND_TAG_IDS
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT
 
Constructor Summary
AssetEntryFinderImpl()
           
 
Method Summary
protected  void buildAllCategoriesSQL(java.lang.String sqlId, long[] categoryIds, com.liferay.portal.kernel.util.StringBundler sb)
           
protected  void buildAllTagsSQL(long[] tagIds, com.liferay.portal.kernel.util.StringBundler sb)
           
protected  com.liferay.portal.kernel.dao.orm.SQLQuery buildAssetQuerySQL(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery, boolean count, com.liferay.portal.kernel.dao.orm.Session session)
           
protected  void buildNotAnyCategoriesSQL(java.lang.String sqlId, long[] categoryIds, com.liferay.portal.kernel.util.StringBundler sb)
           
protected  void buildNotAnyTagsSQL(long[] tagIds, com.liferay.portal.kernel.util.StringBundler sb)
           
 int countEntries(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
           
 java.util.List<com.liferay.portlet.asset.model.AssetEntry> findEntries(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
           
protected  java.lang.String getCategoryIds(long[] categoryIds, java.lang.String operator)
           
protected  java.lang.String getClassNameIds(long[] classNameIds)
           
protected  java.lang.String getDates(java.lang.String sql, java.util.Date publishDate, java.util.Date expirationDate)
           
protected  java.lang.String getGroupIds(long[] groupIds)
           
protected  java.lang.String getNotCategoryIds(java.lang.String sqlId, long[] notCategoryIds)
           
protected  java.lang.String getNotTagIds(long[] notTagIds)
           
protected  java.lang.String getTagIds(long[] tagIds, java.lang.String operator)
           
protected  void setDates(com.liferay.portal.kernel.dao.orm.QueryPos qPos, java.util.Date publishDate, java.util.Date expirationDate)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, clearCache, closeSession, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, remove, setDataSource, setSessionFactory, unregisterListener, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIND_BY_AND_CATEGORY_IDS

public static java.lang.String FIND_BY_AND_CATEGORY_IDS

FIND_BY_AND_CATEGORY_IDS_TREE

public static java.lang.String FIND_BY_AND_CATEGORY_IDS_TREE

FIND_BY_AND_TAG_IDS

public static java.lang.String FIND_BY_AND_TAG_IDS
Constructor Detail

AssetEntryFinderImpl

public AssetEntryFinderImpl()
Method Detail

countEntries

public int countEntries(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
                 throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countEntries in interface com.liferay.portlet.asset.service.persistence.AssetEntryFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findEntries

public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findEntries(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
                                                                       throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findEntries in interface com.liferay.portlet.asset.service.persistence.AssetEntryFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

buildAllCategoriesSQL

protected void buildAllCategoriesSQL(java.lang.String sqlId,
                                     long[] categoryIds,
                                     com.liferay.portal.kernel.util.StringBundler sb)

buildAllTagsSQL

protected void buildAllTagsSQL(long[] tagIds,
                               com.liferay.portal.kernel.util.StringBundler sb)

buildAssetQuerySQL

protected com.liferay.portal.kernel.dao.orm.SQLQuery buildAssetQuerySQL(com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery,
                                                                        boolean count,
                                                                        com.liferay.portal.kernel.dao.orm.Session session)

buildNotAnyCategoriesSQL

protected void buildNotAnyCategoriesSQL(java.lang.String sqlId,
                                        long[] categoryIds,
                                        com.liferay.portal.kernel.util.StringBundler sb)

buildNotAnyTagsSQL

protected void buildNotAnyTagsSQL(long[] tagIds,
                                  com.liferay.portal.kernel.util.StringBundler sb)

getCategoryIds

protected java.lang.String getCategoryIds(long[] categoryIds,
                                          java.lang.String operator)

getClassNameIds

protected java.lang.String getClassNameIds(long[] classNameIds)

getDates

protected java.lang.String getDates(java.lang.String sql,
                                    java.util.Date publishDate,
                                    java.util.Date expirationDate)

getGroupIds

protected java.lang.String getGroupIds(long[] groupIds)

getNotCategoryIds

protected java.lang.String getNotCategoryIds(java.lang.String sqlId,
                                             long[] notCategoryIds)

getNotTagIds

protected java.lang.String getNotTagIds(long[] notTagIds)

getTagIds

protected java.lang.String getTagIds(long[] tagIds,
                                     java.lang.String operator)

setDates

protected void setDates(com.liferay.portal.kernel.dao.orm.QueryPos qPos,
                        java.util.Date publishDate,
                        java.util.Date expirationDate)