Liferay 6.0.3

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetTag>
      extended by com.liferay.portlet.asset.service.persistence.AssetTagPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<AssetTag>, AssetTagPersistence

public class AssetTagPersistenceImpl
extends BasePersistenceImpl<AssetTag>
implements AssetTagPersistence

See Also:
AssetTagPersistence, AssetTagUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Nested Class Summary
protected  class AssetTagPersistenceImpl.AddAssetEntry
           
protected  class AssetTagPersistenceImpl.ClearAssetEntries
           
protected  class AssetTagPersistenceImpl.ContainsAssetEntry
           
protected  class AssetTagPersistenceImpl.RemoveAssetEntry
           
 
Field Summary
protected  AssetTagPersistenceImpl.AddAssetEntry addAssetEntry
           
protected  AssetCategoryPersistence assetCategoryPersistence
           
protected  AssetCategoryPropertyPersistence assetCategoryPropertyPersistence
           
protected  AssetEntryPersistence assetEntryPersistence
           
protected  AssetLinkPersistence assetLinkPersistence
           
protected  AssetTagPersistence assetTagPersistence
           
protected  AssetTagPropertyPersistence assetTagPropertyPersistence
           
protected  AssetTagStatsPersistence assetTagStatsPersistence
           
protected  AssetVocabularyPersistence assetVocabularyPersistence
           
protected  AssetTagPersistenceImpl.ClearAssetEntries clearAssetEntries
           
protected  AssetTagPersistenceImpl.ContainsAssetEntry containsAssetEntry
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_CONTAINS_ASSETENTRY
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_GET_ASSETENTRIES
           
static FinderPath FINDER_PATH_GET_ASSETENTRIES_SIZE
           
protected  AssetTagPersistenceImpl.RemoveAssetEntry removeAssetEntry
           
protected  ResourcePersistence resourcePersistence
           
protected  UserPersistence userPersistence
           
 
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, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
AssetTagPersistenceImpl()
           
 
Method Summary
 void addAssetEntries(long pk, List<AssetEntry> assetEntries)
           
 void addAssetEntries(long pk, long[] assetEntryPKs)
           
 void addAssetEntry(long pk, AssetEntry assetEntry)
           
 void addAssetEntry(long pk, long assetEntryPK)
           
 void afterPropertiesSet()
           
 void cacheResult(AssetTag assetTag)
           
 void cacheResult(List<AssetTag> assetTags)
           
 void clearAssetEntries(long pk)
           
 void clearCache()
          Clears the cache for all instances of this model.
 void clearCache(AssetTag assetTag)
          Clears the cache for one instance of this model.
 boolean containsAssetEntries(long pk)
           
 boolean containsAssetEntry(long pk, long assetEntryPK)
           
 int countAll()
           
 int countByGroupId(long groupId)
           
 AssetTag create(long tagId)
           
 AssetTag fetchByPrimaryKey(long tagId)
           
 AssetTag fetchByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or return null if it could not be found.
 int filterCountByGroupId(long groupId)
           
 List<AssetTag> filterFindByGroupId(long groupId)
           
 List<AssetTag> filterFindByGroupId(long groupId, int start, int end)
           
 List<AssetTag> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
           
 List<AssetTag> findAll()
           
 List<AssetTag> findAll(int start, int end)
           
 List<AssetTag> findAll(int start, int end, OrderByComparator orderByComparator)
           
 AssetTag findByGroupId_First(long groupId, OrderByComparator orderByComparator)
           
 AssetTag findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
           
 AssetTag[] findByGroupId_PrevAndNext(long tagId, long groupId, OrderByComparator orderByComparator)
           
 List<AssetTag> findByGroupId(long groupId)
           
 List<AssetTag> findByGroupId(long groupId, int start, int end)
           
 List<AssetTag> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
           
 AssetTag findByPrimaryKey(long tagId)
           
 AssetTag findByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or throw an exception if it could not be found.
 List<AssetEntry> getAssetEntries(long pk)
           
 List<AssetEntry> getAssetEntries(long pk, int start, int end)
           
 List<AssetEntry> getAssetEntries(long pk, int start, int end, OrderByComparator orderByComparator)
           
 int getAssetEntriesSize(long pk)
           
protected  AssetTag getByGroupId_PrevAndNext(Session session, AssetTag assetTag, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 AssetTag remove(long tagId)
           
 AssetTag remove(Serializable primaryKey)
          Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.
 void removeAll()
           
 void removeAssetEntries(long pk, List<AssetEntry> assetEntries)
           
 void removeAssetEntries(long pk, long[] assetEntryPKs)
           
 void removeAssetEntry(long pk, AssetEntry assetEntry)
           
 void removeAssetEntry(long pk, long assetEntryPK)
           
 void removeByGroupId(long groupId)
           
protected  AssetTag removeImpl(AssetTag assetTag)
          Removes the model instance from the database.
 void setAssetEntries(long pk, List<AssetEntry> assetEntries)
           
 void setAssetEntries(long pk, long[] assetEntryPKs)
           
protected  AssetTag toUnwrappedModel(AssetTag assetTag)
           
 AssetTag updateImpl(AssetTag assetTag, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_ASSETENTRIES

public static final FinderPath FINDER_PATH_GET_ASSETENTRIES

FINDER_PATH_GET_ASSETENTRIES_SIZE

public static final FinderPath FINDER_PATH_GET_ASSETENTRIES_SIZE

FINDER_PATH_CONTAINS_ASSETENTRY

public static final FinderPath FINDER_PATH_CONTAINS_ASSETENTRY

assetCategoryPersistence

@BeanReference(type=AssetCategoryPersistence.class)
protected AssetCategoryPersistence assetCategoryPersistence

assetCategoryPropertyPersistence

@BeanReference(type=AssetCategoryPropertyPersistence.class)
protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence

assetLinkPersistence

@BeanReference(type=AssetLinkPersistence.class)
protected AssetLinkPersistence assetLinkPersistence

assetTagPersistence

@BeanReference(type=AssetTagPersistence.class)
protected AssetTagPersistence assetTagPersistence

assetTagPropertyPersistence

@BeanReference(type=AssetTagPropertyPersistence.class)
protected AssetTagPropertyPersistence assetTagPropertyPersistence

assetTagStatsPersistence

@BeanReference(type=AssetTagStatsPersistence.class)
protected AssetTagStatsPersistence assetTagStatsPersistence

assetVocabularyPersistence

@BeanReference(type=AssetVocabularyPersistence.class)
protected AssetVocabularyPersistence assetVocabularyPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

containsAssetEntry

protected AssetTagPersistenceImpl.ContainsAssetEntry containsAssetEntry

addAssetEntry

protected AssetTagPersistenceImpl.AddAssetEntry addAssetEntry

clearAssetEntries

protected AssetTagPersistenceImpl.ClearAssetEntries clearAssetEntries

removeAssetEntry

protected AssetTagPersistenceImpl.RemoveAssetEntry removeAssetEntry
Constructor Detail

AssetTagPersistenceImpl

public AssetTagPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(AssetTag assetTag)
Specified by:
cacheResult in interface AssetTagPersistence

cacheResult

public void cacheResult(List<AssetTag> assetTags)
Specified by:
cacheResult in interface AssetTagPersistence

clearCache

public void clearCache()
Description copied from interface: BasePersistence
Clears the cache for all instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Caching information and settings can be found in portal.properties

Specified by:
clearCache in interface BasePersistence<AssetTag>
Overrides:
clearCache in class BasePersistenceImpl<AssetTag>

clearCache

public void clearCache(AssetTag assetTag)
Description copied from interface: BasePersistence
Clears the cache for one instance of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetTag>
Overrides:
clearCache in class BasePersistenceImpl<AssetTag>
Parameters:
assetTag - the instance of this model to clear the cache for

create

public AssetTag create(long tagId)
Specified by:
create in interface AssetTagPersistence

remove

public AssetTag remove(Serializable primaryKey)
                throws NoSuchModelException,
                       SystemException
Description copied from interface: BasePersistence
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<AssetTag>
Overrides:
remove in class BasePersistenceImpl<AssetTag>
Parameters:
primaryKey - the primary key of the model instance to remove
Returns:
the model instance that was removed
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if a system exception occurred

remove

public AssetTag remove(long tagId)
                throws NoSuchTagException,
                       SystemException
Specified by:
remove in interface AssetTagPersistence
Throws:
NoSuchTagException
SystemException

removeImpl

protected AssetTag removeImpl(AssetTag assetTag)
                       throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<AssetTag>
Parameters:
assetTag - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public AssetTag updateImpl(AssetTag assetTag,
                           boolean merge)
                    throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface AssetTagPersistence
Overrides:
updateImpl in class BasePersistenceImpl<AssetTag>
Parameters:
assetTag - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected AssetTag toUnwrappedModel(AssetTag assetTag)

findByPrimaryKey

public AssetTag findByPrimaryKey(Serializable primaryKey)
                          throws NoSuchModelException,
                                 SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or throw an exception if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<AssetTag>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<AssetTag>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if the primary key is null, or if a system exception occurred

findByPrimaryKey

public AssetTag findByPrimaryKey(long tagId)
                          throws NoSuchTagException,
                                 SystemException
Specified by:
findByPrimaryKey in interface AssetTagPersistence
Throws:
NoSuchTagException
SystemException

fetchByPrimaryKey

public AssetTag fetchByPrimaryKey(Serializable primaryKey)
                           throws SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or return null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<AssetTag>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<AssetTag>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance, or null if an instance of this model with the primary key does not exist
Throws:
SystemException - if the primary key is null, or if a system exception occurred

fetchByPrimaryKey

public AssetTag fetchByPrimaryKey(long tagId)
                           throws SystemException
Specified by:
fetchByPrimaryKey in interface AssetTagPersistence
Throws:
SystemException

findByGroupId

public List<AssetTag> findByGroupId(long groupId)
                             throws SystemException
Specified by:
findByGroupId in interface AssetTagPersistence
Throws:
SystemException

findByGroupId

public List<AssetTag> findByGroupId(long groupId,
                                    int start,
                                    int end)
                             throws SystemException
Specified by:
findByGroupId in interface AssetTagPersistence
Throws:
SystemException

findByGroupId

public List<AssetTag> findByGroupId(long groupId,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Specified by:
findByGroupId in interface AssetTagPersistence
Throws:
SystemException

findByGroupId_First

public AssetTag findByGroupId_First(long groupId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchTagException,
                                    SystemException
Specified by:
findByGroupId_First in interface AssetTagPersistence
Throws:
NoSuchTagException
SystemException

findByGroupId_Last

public AssetTag findByGroupId_Last(long groupId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchTagException,
                                   SystemException
Specified by:
findByGroupId_Last in interface AssetTagPersistence
Throws:
NoSuchTagException
SystemException

findByGroupId_PrevAndNext

public AssetTag[] findByGroupId_PrevAndNext(long tagId,
                                            long groupId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchTagException,
                                            SystemException
Specified by:
findByGroupId_PrevAndNext in interface AssetTagPersistence
Throws:
NoSuchTagException
SystemException

getByGroupId_PrevAndNext

protected AssetTag getByGroupId_PrevAndNext(Session session,
                                            AssetTag assetTag,
                                            long groupId,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

filterFindByGroupId

public List<AssetTag> filterFindByGroupId(long groupId)
                                   throws SystemException
Specified by:
filterFindByGroupId in interface AssetTagPersistence
Throws:
SystemException

filterFindByGroupId

public List<AssetTag> filterFindByGroupId(long groupId,
                                          int start,
                                          int end)
                                   throws SystemException
Specified by:
filterFindByGroupId in interface AssetTagPersistence
Throws:
SystemException

filterFindByGroupId

public List<AssetTag> filterFindByGroupId(long groupId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Specified by:
filterFindByGroupId in interface AssetTagPersistence
Throws:
SystemException

findAll

public List<AssetTag> findAll()
                       throws SystemException
Specified by:
findAll in interface AssetTagPersistence
Throws:
SystemException

findAll

public List<AssetTag> findAll(int start,
                              int end)
                       throws SystemException
Specified by:
findAll in interface AssetTagPersistence
Throws:
SystemException

findAll

public List<AssetTag> findAll(int start,
                              int end,
                              OrderByComparator orderByComparator)
                       throws SystemException
Specified by:
findAll in interface AssetTagPersistence
Throws:
SystemException

removeByGroupId

public void removeByGroupId(long groupId)
                     throws SystemException
Specified by:
removeByGroupId in interface AssetTagPersistence
Throws:
SystemException

removeAll

public void removeAll()
               throws SystemException
Specified by:
removeAll in interface AssetTagPersistence
Throws:
SystemException

countByGroupId

public int countByGroupId(long groupId)
                   throws SystemException
Specified by:
countByGroupId in interface AssetTagPersistence
Throws:
SystemException

filterCountByGroupId

public int filterCountByGroupId(long groupId)
                         throws SystemException
Specified by:
filterCountByGroupId in interface AssetTagPersistence
Throws:
SystemException

countAll

public int countAll()
             throws SystemException
Specified by:
countAll in interface AssetTagPersistence
Throws:
SystemException

getAssetEntries

public List<AssetEntry> getAssetEntries(long pk)
                                 throws SystemException
Specified by:
getAssetEntries in interface AssetTagPersistence
Throws:
SystemException

getAssetEntries

public List<AssetEntry> getAssetEntries(long pk,
                                        int start,
                                        int end)
                                 throws SystemException
Specified by:
getAssetEntries in interface AssetTagPersistence
Throws:
SystemException

getAssetEntries

public List<AssetEntry> getAssetEntries(long pk,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Specified by:
getAssetEntries in interface AssetTagPersistence
Throws:
SystemException

getAssetEntriesSize

public int getAssetEntriesSize(long pk)
                        throws SystemException
Specified by:
getAssetEntriesSize in interface AssetTagPersistence
Throws:
SystemException

containsAssetEntry

public boolean containsAssetEntry(long pk,
                                  long assetEntryPK)
                           throws SystemException
Specified by:
containsAssetEntry in interface AssetTagPersistence
Throws:
SystemException

containsAssetEntries

public boolean containsAssetEntries(long pk)
                             throws SystemException
Specified by:
containsAssetEntries in interface AssetTagPersistence
Throws:
SystemException

addAssetEntry

public void addAssetEntry(long pk,
                          long assetEntryPK)
                   throws SystemException
Specified by:
addAssetEntry in interface AssetTagPersistence
Throws:
SystemException

addAssetEntry

public void addAssetEntry(long pk,
                          AssetEntry assetEntry)
                   throws SystemException
Specified by:
addAssetEntry in interface AssetTagPersistence
Throws:
SystemException

addAssetEntries

public void addAssetEntries(long pk,
                            long[] assetEntryPKs)
                     throws SystemException
Specified by:
addAssetEntries in interface AssetTagPersistence
Throws:
SystemException

addAssetEntries

public void addAssetEntries(long pk,
                            List<AssetEntry> assetEntries)
                     throws SystemException
Specified by:
addAssetEntries in interface AssetTagPersistence
Throws:
SystemException

clearAssetEntries

public void clearAssetEntries(long pk)
                       throws SystemException
Specified by:
clearAssetEntries in interface AssetTagPersistence
Throws:
SystemException

removeAssetEntry

public void removeAssetEntry(long pk,
                             long assetEntryPK)
                      throws SystemException
Specified by:
removeAssetEntry in interface AssetTagPersistence
Throws:
SystemException

removeAssetEntry

public void removeAssetEntry(long pk,
                             AssetEntry assetEntry)
                      throws SystemException
Specified by:
removeAssetEntry in interface AssetTagPersistence
Throws:
SystemException

removeAssetEntries

public void removeAssetEntries(long pk,
                               long[] assetEntryPKs)
                        throws SystemException
Specified by:
removeAssetEntries in interface AssetTagPersistence
Throws:
SystemException

removeAssetEntries

public void removeAssetEntries(long pk,
                               List<AssetEntry> assetEntries)
                        throws SystemException
Specified by:
removeAssetEntries in interface AssetTagPersistence
Throws:
SystemException

setAssetEntries

public void setAssetEntries(long pk,
                            long[] assetEntryPKs)
                     throws SystemException
Specified by:
setAssetEntries in interface AssetTagPersistence
Throws:
SystemException

setAssetEntries

public void setAssetEntries(long pk,
                            List<AssetEntry> assetEntries)
                     throws SystemException
Specified by:
setAssetEntries in interface AssetTagPersistence
Throws:
SystemException

afterPropertiesSet

public void afterPropertiesSet()

Liferay 6.0.3