|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DDMStructureLink> com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistenceImpl
public class DDMStructureLinkPersistenceImpl
The persistence implementation for the d d m structure link service.
Caching information and settings can be found in portal.properties
DDMStructureLinkPersistence
,
DDMStructureLinkUtil
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(DDMStructureLink ddmStructureLink)
Caches the d d m structure link in the entity cache if it is enabled. |
void |
cacheResult(List<DDMStructureLink> ddmStructureLinks)
Caches the d d m structure links in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(DDMStructureLink ddmStructureLink)
|
void |
clearCache()
Clears the cache for all d d m structure links. |
void |
clearCache(DDMStructureLink ddmStructureLink)
Clears the cache for the d d m structure link. |
void |
clearCache(List<DDMStructureLink> ddmStructureLinks)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(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 = ?. |
DDMStructureLink |
create(long structureLinkId)
Creates a new d d m structure link with the primary key. |
void |
destroy()
|
DDMStructureLink |
fetchByClassNameId_First(long classNameId,
OrderByComparator orderByComparator)
Returns the first d d m structure link in the ordered set where classNameId = ?. |
DDMStructureLink |
fetchByClassNameId_Last(long classNameId,
OrderByComparator orderByComparator)
Returns the last d d m structure link in the ordered set where classNameId = ?. |
DDMStructureLink |
fetchByClassPK(long classPK)
Returns the d d m structure link where classPK = ? or returns null if it could not be found. |
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. |
DDMStructureLink |
fetchByPrimaryKey(long structureLinkId)
Returns the d d m structure link with the primary key or returns null if it could not be found. |
DDMStructureLink |
fetchByPrimaryKey(Serializable primaryKey)
Returns the d d m structure link with the primary key or returns null if it could not be found. |
DDMStructureLink |
fetchByStructureId_First(long structureId,
OrderByComparator orderByComparator)
Returns the first d d m structure link in the ordered set where structureId = ?. |
DDMStructureLink |
fetchByStructureId_Last(long structureId,
OrderByComparator orderByComparator)
Returns the last d d m structure link in the ordered set where structureId = ?. |
List<DDMStructureLink> |
findAll()
Returns all the d d m structure links. |
List<DDMStructureLink> |
findAll(int start,
int end)
Returns a range of all the d d m structure links. |
List<DDMStructureLink> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d d m structure links. |
DDMStructureLink |
findByClassNameId_First(long classNameId,
OrderByComparator orderByComparator)
Returns the first d d m structure link in the ordered set where classNameId = ?. |
DDMStructureLink |
findByClassNameId_Last(long classNameId,
OrderByComparator orderByComparator)
Returns the last d d m structure link in the ordered set where classNameId = ?. |
DDMStructureLink[] |
findByClassNameId_PrevAndNext(long structureLinkId,
long classNameId,
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 = ?. |
List<DDMStructureLink> |
findByClassNameId(long classNameId)
Returns all the d d m structure links where classNameId = ?. |
List<DDMStructureLink> |
findByClassNameId(long classNameId,
int start,
int end)
Returns a range of all the d d m structure links where classNameId = ?. |
List<DDMStructureLink> |
findByClassNameId(long classNameId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d d m structure links where classNameId = ?. |
DDMStructureLink |
findByClassPK(long classPK)
Returns the d d m structure link where classPK = ? or throws a NoSuchStructureLinkException if it could not be found. |
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. |
DDMStructureLink |
findByPrimaryKey(Serializable primaryKey)
Returns the d d m structure link with the primary key or throws a NoSuchModelException if it could not be found. |
DDMStructureLink |
findByStructureId_First(long structureId,
OrderByComparator orderByComparator)
Returns the first d d m structure link in the ordered set where structureId = ?. |
DDMStructureLink |
findByStructureId_Last(long structureId,
OrderByComparator orderByComparator)
Returns the last d d m structure link in the ordered set where structureId = ?. |
DDMStructureLink[] |
findByStructureId_PrevAndNext(long structureLinkId,
long structureId,
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 = ?. |
List<DDMStructureLink> |
findByStructureId(long structureId)
Returns all the d d m structure links where structureId = ?. |
List<DDMStructureLink> |
findByStructureId(long structureId,
int start,
int end)
Returns a range of all the d d m structure links where structureId = ?. |
List<DDMStructureLink> |
findByStructureId(long structureId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d d m structure links where structureId = ?. |
protected DDMStructureLink |
getByClassNameId_PrevAndNext(Session session,
DDMStructureLink ddmStructureLink,
long classNameId,
OrderByComparator orderByComparator,
boolean previous)
|
protected DDMStructureLink |
getByStructureId_PrevAndNext(Session session,
DDMStructureLink ddmStructureLink,
long structureId,
OrderByComparator orderByComparator,
boolean previous)
|
DDMStructureLink |
remove(long structureLinkId)
Removes the d d m structure link with the primary key from the database. |
DDMStructureLink |
remove(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. |
DDMStructureLink |
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 DDMStructureLink |
removeImpl(DDMStructureLink ddmStructureLink)
Removes the model instance from the database. |
protected DDMStructureLink |
toUnwrappedModel(DDMStructureLink ddmStructureLink)
|
DDMStructureLink |
updateImpl(DDMStructureLink ddmStructureLink)
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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID
public static final FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID
public static final FinderPath FINDER_PATH_FETCH_BY_CLASSPK
public static final FinderPath FINDER_PATH_COUNT_BY_CLASSPK
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_STRUCTUREID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID
public static final FinderPath FINDER_PATH_COUNT_BY_STRUCTUREID
Constructor Detail |
---|
public DDMStructureLinkPersistenceImpl()
Method Detail |
---|
public List<DDMStructureLink> findByClassNameId(long classNameId) throws SystemException
findByClassNameId
in interface DDMStructureLinkPersistence
classNameId
- the class name ID
SystemException
- if a system exception occurredpublic List<DDMStructureLink> findByClassNameId(long classNameId, int start, int end) throws SystemException
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByClassNameId
in interface DDMStructureLinkPersistence
classNameId
- the class name IDstart
- the lower bound of the range of d d m structure linksend
- the upper bound of the range of d d m structure links (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMStructureLink> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByClassNameId
in interface DDMStructureLinkPersistence
classNameId
- the class name IDstart
- the lower bound of the range of d d m structure linksend
- the upper bound of the range of d d m structure links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DDMStructureLink findByClassNameId_First(long classNameId, OrderByComparator orderByComparator) throws NoSuchStructureLinkException, SystemException
findByClassNameId_First
in interface DDMStructureLinkPersistence
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchStructureLinkException
- if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink fetchByClassNameId_First(long classNameId, OrderByComparator orderByComparator) throws SystemException
fetchByClassNameId_First
in interface DDMStructureLinkPersistence
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator) throws NoSuchStructureLinkException, SystemException
findByClassNameId_Last
in interface DDMStructureLinkPersistence
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchStructureLinkException
- if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink fetchByClassNameId_Last(long classNameId, OrderByComparator orderByComparator) throws SystemException
fetchByClassNameId_Last
in interface DDMStructureLinkPersistence
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink[] findByClassNameId_PrevAndNext(long structureLinkId, long classNameId, OrderByComparator orderByComparator) throws NoSuchStructureLinkException, SystemException
findByClassNameId_PrevAndNext
in interface DDMStructureLinkPersistence
structureLinkId
- the primary key of the current d d m structure linkclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchStructureLinkException
- if a d d m structure link with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMStructureLink getByClassNameId_PrevAndNext(Session session, DDMStructureLink ddmStructureLink, long classNameId, OrderByComparator orderByComparator, boolean previous)
public void removeByClassNameId(long classNameId) throws SystemException
removeByClassNameId
in interface DDMStructureLinkPersistence
classNameId
- the class name ID
SystemException
- if a system exception occurredpublic int countByClassNameId(long classNameId) throws SystemException
countByClassNameId
in interface DDMStructureLinkPersistence
classNameId
- the class name ID
SystemException
- if a system exception occurredpublic DDMStructureLink findByClassPK(long classPK) throws NoSuchStructureLinkException, SystemException
NoSuchStructureLinkException
if it could not be found.
findByClassPK
in interface DDMStructureLinkPersistence
classPK
- the class p k
NoSuchStructureLinkException
- if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink fetchByClassPK(long classPK) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByClassPK
in interface DDMStructureLinkPersistence
classPK
- the class p k
null
if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink fetchByClassPK(long classPK, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByClassPK
in interface DDMStructureLinkPersistence
classPK
- the class p kretrieveFromCache
- whether to use the finder cache
null
if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink removeByClassPK(long classPK) throws NoSuchStructureLinkException, SystemException
removeByClassPK
in interface DDMStructureLinkPersistence
classPK
- the class p k
SystemException
- if a system exception occurred
NoSuchStructureLinkException
public int countByClassPK(long classPK) throws SystemException
countByClassPK
in interface DDMStructureLinkPersistence
classPK
- the class p k
SystemException
- if a system exception occurredpublic List<DDMStructureLink> findByStructureId(long structureId) throws SystemException
findByStructureId
in interface DDMStructureLinkPersistence
structureId
- the structure ID
SystemException
- if a system exception occurredpublic List<DDMStructureLink> findByStructureId(long structureId, int start, int end) throws SystemException
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByStructureId
in interface DDMStructureLinkPersistence
structureId
- the structure IDstart
- the lower bound of the range of d d m structure linksend
- the upper bound of the range of d d m structure links (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMStructureLink> findByStructureId(long structureId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByStructureId
in interface DDMStructureLinkPersistence
structureId
- the structure IDstart
- the lower bound of the range of d d m structure linksend
- the upper bound of the range of d d m structure links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DDMStructureLink findByStructureId_First(long structureId, OrderByComparator orderByComparator) throws NoSuchStructureLinkException, SystemException
findByStructureId_First
in interface DDMStructureLinkPersistence
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchStructureLinkException
- if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink fetchByStructureId_First(long structureId, OrderByComparator orderByComparator) throws SystemException
fetchByStructureId_First
in interface DDMStructureLinkPersistence
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink findByStructureId_Last(long structureId, OrderByComparator orderByComparator) throws NoSuchStructureLinkException, SystemException
findByStructureId_Last
in interface DDMStructureLinkPersistence
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchStructureLinkException
- if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink fetchByStructureId_Last(long structureId, OrderByComparator orderByComparator) throws SystemException
fetchByStructureId_Last
in interface DDMStructureLinkPersistence
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m structure link could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink[] findByStructureId_PrevAndNext(long structureLinkId, long structureId, OrderByComparator orderByComparator) throws NoSuchStructureLinkException, SystemException
findByStructureId_PrevAndNext
in interface DDMStructureLinkPersistence
structureLinkId
- the primary key of the current d d m structure linkstructureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchStructureLinkException
- if a d d m structure link with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMStructureLink getByStructureId_PrevAndNext(Session session, DDMStructureLink ddmStructureLink, long structureId, OrderByComparator orderByComparator, boolean previous)
public void removeByStructureId(long structureId) throws SystemException
removeByStructureId
in interface DDMStructureLinkPersistence
structureId
- the structure ID
SystemException
- if a system exception occurredpublic int countByStructureId(long structureId) throws SystemException
countByStructureId
in interface DDMStructureLinkPersistence
structureId
- the structure ID
SystemException
- if a system exception occurredpublic void cacheResult(DDMStructureLink ddmStructureLink)
cacheResult
in interface DDMStructureLinkPersistence
ddmStructureLink
- the d d m structure linkpublic void cacheResult(List<DDMStructureLink> ddmStructureLinks)
cacheResult
in interface DDMStructureLinkPersistence
ddmStructureLinks
- the d d m structure linkspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DDMStructureLink>
clearCache
in class BasePersistenceImpl<DDMStructureLink>
public void clearCache(DDMStructureLink ddmStructureLink)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DDMStructureLink>
clearCache
in class BasePersistenceImpl<DDMStructureLink>
ddmStructureLink
- the instance of this model to clear the cache forpublic void clearCache(List<DDMStructureLink> ddmStructureLinks)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<DDMStructureLink>
clearCache
in class BasePersistenceImpl<DDMStructureLink>
ddmStructureLinks
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DDMStructureLink ddmStructureLink)
protected void clearUniqueFindersCache(DDMStructureLink ddmStructureLink)
public DDMStructureLink create(long structureLinkId)
create
in interface DDMStructureLinkPersistence
structureLinkId
- the primary key for the new d d m structure link
public DDMStructureLink remove(long structureLinkId) throws NoSuchStructureLinkException, SystemException
remove
in interface DDMStructureLinkPersistence
structureLinkId
- the primary key of the d d m structure link
NoSuchStructureLinkException
- if a d d m structure link with the primary key could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink remove(Serializable primaryKey) throws NoSuchStructureLinkException, SystemException
remove
in interface BasePersistence<DDMStructureLink>
remove
in class BasePersistenceImpl<DDMStructureLink>
primaryKey
- the primary key of the d d m structure link
NoSuchStructureLinkException
- if a d d m structure link with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMStructureLink removeImpl(DDMStructureLink ddmStructureLink) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<DDMStructureLink>
ddmStructureLink
- the model instance to remove
SystemException
- if a system exception occurredpublic DDMStructureLink updateImpl(DDMStructureLink ddmStructureLink) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface DDMStructureLinkPersistence
updateImpl
in class BasePersistenceImpl<DDMStructureLink>
ddmStructureLink
- the model instance to update
SystemException
- if a system exception occurredprotected DDMStructureLink toUnwrappedModel(DDMStructureLink ddmStructureLink)
public DDMStructureLink findByPrimaryKey(Serializable primaryKey) throws NoSuchStructureLinkException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<DDMStructureLink>
findByPrimaryKey
in class BasePersistenceImpl<DDMStructureLink>
primaryKey
- the primary key of the d d m structure link
NoSuchStructureLinkException
- if a d d m structure link with the primary key could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink findByPrimaryKey(long structureLinkId) throws NoSuchStructureLinkException, SystemException
NoSuchStructureLinkException
if it could not be found.
findByPrimaryKey
in interface DDMStructureLinkPersistence
structureLinkId
- the primary key of the d d m structure link
NoSuchStructureLinkException
- if a d d m structure link with the primary key could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<DDMStructureLink>
fetchByPrimaryKey
in class BasePersistenceImpl<DDMStructureLink>
primaryKey
- the primary key of the d d m structure link
null
if a d d m structure link with the primary key could not be found
SystemException
- if a system exception occurredpublic DDMStructureLink fetchByPrimaryKey(long structureLinkId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface DDMStructureLinkPersistence
structureLinkId
- the primary key of the d d m structure link
null
if a d d m structure link with the primary key could not be found
SystemException
- if a system exception occurredpublic List<DDMStructureLink> findAll() throws SystemException
findAll
in interface DDMStructureLinkPersistence
SystemException
- if a system exception occurredpublic List<DDMStructureLink> findAll(int start, int end) throws SystemException
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll
in interface DDMStructureLinkPersistence
start
- the lower bound of the range of d d m structure linksend
- the upper bound of the range of d d m structure links (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMStructureLink> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DDMStructureLinkModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll
in interface DDMStructureLinkPersistence
start
- the lower bound of the range of d d m structure linksend
- the upper bound of the range of d d m structure links (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface DDMStructureLinkPersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface DDMStructureLinkPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |