com.liferay.portlet.dynamicdatamapping.service.persistence
Class DDMStructureLinkPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
      extended by com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>, com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence

public class DDMStructureLinkPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
implements com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence

The persistence implementation for the d d m structure link service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
DDMStructureLinkPersistence, DDMStructureLinkUtil
Generated:

Field Summary
protected  com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence ddmContentPersistence
           
protected  com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence ddmStorageLinkPersistence
           
protected  com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence ddmStructureLinkPersistence
           
protected  com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence ddmStructurePersistence
           
protected  com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence ddmTemplatePersistence
           
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_CLASSPK
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_STRUCTUREID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_CLASSPK
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_STRUCTUREID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, 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
DDMStructureLinkPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the d d m structure link persistence.
 void cacheResult(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
          Caches the d d m structure link in the entity cache if it is enabled.
 void cacheResult(java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> ddmStructureLinks)
          Caches the d d m structure links in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all d d m structure links.
 void clearCache(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
          Clears the cache for the d d m structure link.
 void clearCache(java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> ddmStructureLinks)
           
protected  void clearUniqueFindersCache(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
           
 int countAll()
          Returns the number of d d m structure links.
 int countByClassNameId(long classNameId)
          Returns the number of d d m structure links where classNameId = ?.
 int countByClassPK(long classPK)
          Returns the number of d d m structure links where classPK = ?.
 int countByStructureId(long structureId)
          Returns the number of d d m structure links where structureId = ?.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink create(long structureLinkId)
          Creates a new d d m structure link with the primary key.
 void destroy()
           
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK(long classPK)
          Returns the d d m structure link where classPK = ? or returns null if it could not be found.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK(long classPK, boolean retrieveFromCache)
          Returns the d d m structure link where classPK = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByPrimaryKey(long structureLinkId)
          Returns the d d m structure link with the primary key or returns null if it could not be found.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the d d m structure link with the primary key or returns null if it could not be found.
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll()
          Returns all the d d m structure links.
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll(int start, int end)
          Returns a range of all the d d m structure links.
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m structure links.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_First(long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first d d m structure link in the ordered set where classNameId = ?.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_Last(long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last d d m structure link in the ordered set where classNameId = ?.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByClassNameId_PrevAndNext(long structureLinkId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ?.
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(long classNameId)
          Returns all the d d m structure links where classNameId = ?.
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(long classNameId, int start, int end)
          Returns a range of all the d d m structure links where classNameId = ?.
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m structure links where classNameId = ?.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassPK(long classPK)
          Returns the d d m structure link where classPK = ? or throws a NoSuchStructureLinkException if it could not be found.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByPrimaryKey(long structureLinkId)
          Returns the d d m structure link with the primary key or throws a NoSuchStructureLinkException if it could not be found.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the d d m structure link with the primary key or throws a NoSuchModelException if it could not be found.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first d d m structure link in the ordered set where structureId = ?.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_Last(long structureId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last d d m structure link in the ordered set where structureId = ?.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByStructureId_PrevAndNext(long structureLinkId, long structureId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = ?.
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(long structureId)
          Returns all the d d m structure links where structureId = ?.
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(long structureId, int start, int end)
          Returns a range of all the d d m structure links where structureId = ?.
 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(long structureId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m structure links where structureId = ?.
protected  com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink getByClassNameId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink getByStructureId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink, long structureId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink remove(long structureLinkId)
          Removes the d d m structure link with the primary key from the database.
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink remove(java.io.Serializable primaryKey)
          Removes the d d m structure link with the primary key from the database.
 void removeAll()
          Removes all the d d m structure links from the database.
 void removeByClassNameId(long classNameId)
          Removes all the d d m structure links where classNameId = ? from the database.
 void removeByClassPK(long classPK)
          Removes the d d m structure link where classPK = ? from the database.
 void removeByStructureId(long structureId)
          Removes all the d d m structure links where structureId = ? from the database.
protected  com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink removeImpl(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
           
protected  com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink toUnwrappedModel(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
           
 com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateImpl(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, 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
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID

FINDER_PATH_COUNT_BY_CLASSNAMEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID

FINDER_PATH_FETCH_BY_CLASSPK

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_CLASSPK

FINDER_PATH_COUNT_BY_CLASSPK

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_CLASSPK

FINDER_PATH_WITH_PAGINATION_FIND_BY_STRUCTUREID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_STRUCTUREID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID

FINDER_PATH_COUNT_BY_STRUCTUREID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_STRUCTUREID

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

ddmContentPersistence

@BeanReference(type=com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence.class)
protected com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence ddmContentPersistence

ddmStorageLinkPersistence

@BeanReference(type=com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence.class)
protected com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence ddmStorageLinkPersistence

ddmStructurePersistence

@BeanReference(type=com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence.class)
protected com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence ddmStructurePersistence

ddmStructureLinkPersistence

@BeanReference(type=com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence.class)
protected com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence ddmStructureLinkPersistence

ddmTemplatePersistence

@BeanReference(type=com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence.class)
protected com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence ddmTemplatePersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence
Constructor Detail

DDMStructureLinkPersistenceImpl

public DDMStructureLinkPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
Caches the d d m structure link in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
ddmStructureLink - the d d m structure link

cacheResult

public void cacheResult(java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> ddmStructureLinks)
Caches the d d m structure links in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
ddmStructureLinks - the d d m structure links

clearCache

public void clearCache()
Clears the cache for all d d m structure links.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>

clearCache

public void clearCache(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
Clears the cache for the d d m structure link.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>

clearCache

public void clearCache(java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> ddmStructureLinks)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)

create

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink create(long structureLinkId)
Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database.

Specified by:
create in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureLinkId - the primary key for the new d d m structure link
Returns:
the new d d m structure link

remove

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink remove(long structureLinkId)
                                                                     throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Removes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureLinkId - the primary key of the d d m structure link
Returns:
the d d m structure link that was removed
Throws:
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException - if a d d m structure link with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink remove(java.io.Serializable primaryKey)
                                                                     throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Removes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Parameters:
primaryKey - the primary key of the d d m structure link
Returns:
the d d m structure link that was removed
Throws:
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException - if a d d m structure link with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink removeImpl(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateImpl(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink,
                                                                                boolean merge)
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink toUnwrappedModel(com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)

findByPrimaryKey

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByPrimaryKey(java.io.Serializable primaryKey)
                                                                               throws com.liferay.portal.NoSuchModelException,
                                                                                      com.liferay.portal.kernel.exception.SystemException
Returns the d d m structure link with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Parameters:
primaryKey - the primary key of the d d m structure link
Returns:
the d d m structure link
Throws:
com.liferay.portal.NoSuchModelException - if a d d m structure link with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByPrimaryKey(long structureLinkId)
                                                                               throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                                                                                      com.liferay.portal.kernel.exception.SystemException
Returns the d d m structure link with the primary key or throws a NoSuchStructureLinkException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureLinkId - the primary key of the d d m structure link
Returns:
the d d m structure link
Throws:
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException - if a d d m structure link with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns the d d m structure link with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink>
Parameters:
primaryKey - the primary key of the d d m structure link
Returns:
the d d m structure link, or null if a d d m structure link with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByPrimaryKey(long structureLinkId)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns the d d m structure link with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureLinkId - the primary key of the d d m structure link
Returns:
the d d m structure link, or null if a d d m structure link with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(long classNameId)
                                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns all the d d m structure links where classNameId = ?.

Specified by:
findByClassNameId in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classNameId - the class name ID
Returns:
the matching d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(long classNameId,
                                                                                                       int start,
                                                                                                       int end)
                                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the d d m structure links where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
Returns:
the range of matching d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(long classNameId,
                                                                                                       int start,
                                                                                                       int end,
                                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the d d m structure links where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId_First

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_First(long classNameId,
                                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                      throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                                                                                             com.liferay.portal.kernel.exception.SystemException
Returns the first d d m structure link in the ordered set where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId_First in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure link
Throws:
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException - if a matching d d m structure link could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId_Last

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_Last(long classNameId,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                     throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the last d d m structure link in the ordered set where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId_Last in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure link
Throws:
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException - if a matching d d m structure link could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByClassNameId_PrevAndNext

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByClassNameId_PrevAndNext(long structureLinkId,
                                                                                                     long classNameId,
                                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                              throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                                                                                                     com.liferay.portal.kernel.exception.SystemException
Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByClassNameId_PrevAndNext in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureLinkId - the primary key of the current d d m structure link
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure link
Throws:
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException - if a d d m structure link with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByClassNameId_PrevAndNext

protected com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink getByClassNameId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                                     com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink,
                                                                                                     long classNameId,
                                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                                     boolean previous)

findByClassPK

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassPK(long classPK)
                                                                            throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                                                                                   com.liferay.portal.kernel.exception.SystemException
Returns the d d m structure link where classPK = ? or throws a NoSuchStructureLinkException if it could not be found.

Specified by:
findByClassPK in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classPK - the class p k
Returns:
the matching d d m structure link
Throws:
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException - if a matching d d m structure link could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByClassPK

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK(long classPK)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns the d d m structure link where classPK = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByClassPK in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classPK - the class p k
Returns:
the matching d d m structure link, or null if a matching d d m structure link could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByClassPK

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK(long classPK,
                                                                                    boolean retrieveFromCache)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns the d d m structure link where classPK = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByClassPK in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classPK - the class p k
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m structure link, or null if a matching d d m structure link could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByStructureId

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(long structureId)
                                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns all the d d m structure links where structureId = ?.

Specified by:
findByStructureId in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureId - the structure ID
Returns:
the matching d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByStructureId

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(long structureId,
                                                                                                       int start,
                                                                                                       int end)
                                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the d d m structure links where structureId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByStructureId in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureId - the structure ID
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
Returns:
the range of matching d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByStructureId

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(long structureId,
                                                                                                       int start,
                                                                                                       int end,
                                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the d d m structure links where structureId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByStructureId in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureId - the structure ID
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByStructureId_First

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_First(long structureId,
                                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                      throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                                                                                             com.liferay.portal.kernel.exception.SystemException
Returns the first d d m structure link in the ordered set where structureId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByStructureId_First in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure link
Throws:
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException - if a matching d d m structure link could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByStructureId_Last

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_Last(long structureId,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                     throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the last d d m structure link in the ordered set where structureId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByStructureId_Last in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure link
Throws:
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException - if a matching d d m structure link could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByStructureId_PrevAndNext

public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByStructureId_PrevAndNext(long structureLinkId,
                                                                                                     long structureId,
                                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                              throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                                                                                                     com.liferay.portal.kernel.exception.SystemException
Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByStructureId_PrevAndNext in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureLinkId - the primary key of the current d d m structure link
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure link
Throws:
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException - if a d d m structure link with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByStructureId_PrevAndNext

protected com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink getByStructureId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                                     com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink,
                                                                                                     long structureId,
                                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                                     boolean previous)

findAll

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll()
                                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns all the d d m structure links.

Specified by:
findAll in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Returns:
the d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll(int start,
                                                                                             int end)
                                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the d d m structure links.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
Returns:
the range of d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll(int start,
                                                                                             int end,
                                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the d d m structure links.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
start - the lower bound of the range of d d m structure links
end - the upper bound of the range of d d m structure links (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByClassNameId

public void removeByClassNameId(long classNameId)
                         throws com.liferay.portal.kernel.exception.SystemException
Removes all the d d m structure links where classNameId = ? from the database.

Specified by:
removeByClassNameId in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classNameId - the class name ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByClassPK

public void removeByClassPK(long classPK)
                     throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException,
                            com.liferay.portal.kernel.exception.SystemException
Removes the d d m structure link where classPK = ? from the database.

Specified by:
removeByClassPK in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classPK - the class p k
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException

removeByStructureId

public void removeByStructureId(long structureId)
                         throws com.liferay.portal.kernel.exception.SystemException
Removes all the d d m structure links where structureId = ? from the database.

Specified by:
removeByStructureId in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureId - the structure ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the d d m structure links from the database.

Specified by:
removeAll in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByClassNameId

public int countByClassNameId(long classNameId)
                       throws com.liferay.portal.kernel.exception.SystemException
Returns the number of d d m structure links where classNameId = ?.

Specified by:
countByClassNameId in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classNameId - the class name ID
Returns:
the number of matching d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByClassPK

public int countByClassPK(long classPK)
                   throws com.liferay.portal.kernel.exception.SystemException
Returns the number of d d m structure links where classPK = ?.

Specified by:
countByClassPK in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
classPK - the class p k
Returns:
the number of matching d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByStructureId

public int countByStructureId(long structureId)
                       throws com.liferay.portal.kernel.exception.SystemException
Returns the number of d d m structure links where structureId = ?.

Specified by:
countByStructureId in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Parameters:
structureId - the structure ID
Returns:
the number of matching d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of d d m structure links.

Specified by:
countAll in interface com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence
Returns:
the number of d d m structure links
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the d d m structure link persistence.


destroy

public void destroy()