Liferay 6.1.10-ee-ga1

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DDMStructure>
      extended by com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<DDMStructure>, DDMStructurePersistence

public class DDMStructurePersistenceImpl
extends BasePersistenceImpl<DDMStructure>
implements DDMStructurePersistence

The persistence implementation for the d d m structure service.

Caching information and settings can be found in portal.properties

See Also:
DDMStructurePersistence, DDMStructureUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  DDMContentPersistence ddmContentPersistence
           
protected  DDMStorageLinkPersistence ddmStorageLinkPersistence
           
protected  DDMStructureLinkPersistence ddmStructureLinkPersistence
           
protected  DDMStructurePersistence ddmStructurePersistence
           
protected  DDMTemplatePersistence ddmTemplatePersistence
           
protected  DLFileEntryTypePersistence dlFileEntryTypePersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_COUNT_BY_G_N_D
           
static FinderPath FINDER_PATH_COUNT_BY_G_S
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_G_S
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N_D
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N_D
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
protected  ResourcePersistence resourcePersistence
           
protected  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
DDMStructurePersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the d d m structure persistence.
 void cacheResult(DDMStructure ddmStructure)
          Caches the d d m structure in the entity cache if it is enabled.
 void cacheResult(List<DDMStructure> ddmStructures)
          Caches the d d m structures in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all d d m structures.
 void clearCache(DDMStructure ddmStructure)
          Clears the cache for the d d m structure.
 void clearCache(List<DDMStructure> ddmStructures)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(DDMStructure ddmStructure)
           
 int countAll()
          Returns the number of d d m structures.
 int countByClassNameId(long classNameId)
          Returns the number of d d m structures where classNameId = ?.
 int countByG_N_D(long groupId, String name, String description)
          Returns the number of d d m structures where groupId = ? and name = ? and description = ?.
 int countByG_S(long groupId, String structureKey)
          Returns the number of d d m structures where groupId = ? and structureKey = ?.
 int countByGroupId(long groupId)
          Returns the number of d d m structures where groupId = ?.
 int countByUUID_G(String uuid, long groupId)
          Returns the number of d d m structures where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Returns the number of d d m structures where uuid = ?.
 DDMStructure create(long structureId)
          Creates a new d d m structure with the primary key.
 void destroy()
           
 DDMStructure fetchByG_S(long groupId, String structureKey)
          Returns the d d m structure where groupId = ? and structureKey = ? or returns null if it could not be found.
 DDMStructure fetchByG_S(long groupId, String structureKey, boolean retrieveFromCache)
          Returns the d d m structure where groupId = ? and structureKey = ? or returns null if it could not be found, optionally using the finder cache.
 DDMStructure fetchByPrimaryKey(long structureId)
          Returns the d d m structure with the primary key or returns null if it could not be found.
 DDMStructure fetchByPrimaryKey(Serializable primaryKey)
          Returns the d d m structure with the primary key or returns null if it could not be found.
 DDMStructure fetchByUUID_G(String uuid, long groupId)
          Returns the d d m structure where uuid = ? and groupId = ? or returns null if it could not be found.
 DDMStructure fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the d d m structure where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
 int filterCountByG_N_D(long groupId, String name, String description)
          Returns the number of d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?.
 int filterCountByGroupId(long groupId)
          Returns the number of d d m structures that the user has permission to view where groupId = ?.
 DDMStructure[] filterFindByG_N_D_PrevAndNext(long structureId, long groupId, String name, String description, OrderByComparator orderByComparator)
          Returns the d d m structures before and after the current d d m structure in the ordered set of d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?.
 List<DDMStructure> filterFindByG_N_D(long groupId, String name, String description)
          Returns all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?.
 List<DDMStructure> filterFindByG_N_D(long groupId, String name, String description, int start, int end)
          Returns a range of all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?.
 List<DDMStructure> filterFindByG_N_D(long groupId, String name, String description, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ? and name = ? and description = ?.
 DDMStructure[] filterFindByGroupId_PrevAndNext(long structureId, long groupId, OrderByComparator orderByComparator)
          Returns the d d m structures before and after the current d d m structure in the ordered set of d d m structures that the user has permission to view where groupId = ?.
 List<DDMStructure> filterFindByGroupId(long groupId)
          Returns all the d d m structures that the user has permission to view where groupId = ?.
 List<DDMStructure> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the d d m structures that the user has permission to view where groupId = ?.
 List<DDMStructure> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ?.
protected  DDMStructure filterGetByG_N_D_PrevAndNext(Session session, DDMStructure ddmStructure, long groupId, String name, String description, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMStructure filterGetByGroupId_PrevAndNext(Session session, DDMStructure ddmStructure, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 List<DDMStructure> findAll()
          Returns all the d d m structures.
 List<DDMStructure> findAll(int start, int end)
          Returns a range of all the d d m structures.
 List<DDMStructure> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m structures.
 DDMStructure findByClassNameId_First(long classNameId, OrderByComparator orderByComparator)
          Returns the first d d m structure in the ordered set where classNameId = ?.
 DDMStructure findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator)
          Returns the last d d m structure in the ordered set where classNameId = ?.
 DDMStructure[] findByClassNameId_PrevAndNext(long structureId, long classNameId, OrderByComparator orderByComparator)
          Returns the d d m structures before and after the current d d m structure in the ordered set where classNameId = ?.
 List<DDMStructure> findByClassNameId(long classNameId)
          Returns all the d d m structures where classNameId = ?.
 List<DDMStructure> findByClassNameId(long classNameId, int start, int end)
          Returns a range of all the d d m structures where classNameId = ?.
 List<DDMStructure> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m structures where classNameId = ?.
 DDMStructure findByG_N_D_First(long groupId, String name, String description, OrderByComparator orderByComparator)
          Returns the first d d m structure in the ordered set where groupId = ? and name = ? and description = ?.
 DDMStructure findByG_N_D_Last(long groupId, String name, String description, OrderByComparator orderByComparator)
          Returns the last d d m structure in the ordered set where groupId = ? and name = ? and description = ?.
 DDMStructure[] findByG_N_D_PrevAndNext(long structureId, long groupId, String name, String description, OrderByComparator orderByComparator)
          Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = ? and name = ? and description = ?.
 List<DDMStructure> findByG_N_D(long groupId, String name, String description)
          Returns all the d d m structures where groupId = ? and name = ? and description = ?.
 List<DDMStructure> findByG_N_D(long groupId, String name, String description, int start, int end)
          Returns a range of all the d d m structures where groupId = ? and name = ? and description = ?.
 List<DDMStructure> findByG_N_D(long groupId, String name, String description, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m structures where groupId = ? and name = ? and description = ?.
 DDMStructure findByG_S(long groupId, String structureKey)
          Returns the d d m structure where groupId = ? and structureKey = ? or throws a NoSuchStructureException if it could not be found.
 DDMStructure findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first d d m structure in the ordered set where groupId = ?.
 DDMStructure findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last d d m structure in the ordered set where groupId = ?.
 DDMStructure[] findByGroupId_PrevAndNext(long structureId, long groupId, OrderByComparator orderByComparator)
          Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = ?.
 List<DDMStructure> findByGroupId(long groupId)
          Returns all the d d m structures where groupId = ?.
 List<DDMStructure> findByGroupId(long groupId, int start, int end)
          Returns a range of all the d d m structures where groupId = ?.
 List<DDMStructure> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m structures where groupId = ?.
 DDMStructure findByPrimaryKey(long structureId)
          Returns the d d m structure with the primary key or throws a NoSuchStructureException if it could not be found.
 DDMStructure findByPrimaryKey(Serializable primaryKey)
          Returns the d d m structure with the primary key or throws a NoSuchModelException if it could not be found.
 DDMStructure findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first d d m structure in the ordered set where uuid = ?.
 DDMStructure findByUUID_G(String uuid, long groupId)
          Returns the d d m structure where uuid = ? and groupId = ? or throws a NoSuchStructureException if it could not be found.
 DDMStructure findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last d d m structure in the ordered set where uuid = ?.
 DDMStructure[] findByUuid_PrevAndNext(long structureId, String uuid, OrderByComparator orderByComparator)
          Returns the d d m structures before and after the current d d m structure in the ordered set where uuid = ?.
 List<DDMStructure> findByUuid(String uuid)
          Returns all the d d m structures where uuid = ?.
 List<DDMStructure> findByUuid(String uuid, int start, int end)
          Returns a range of all the d d m structures where uuid = ?.
 List<DDMStructure> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m structures where uuid = ?.
protected  DDMStructure getByClassNameId_PrevAndNext(Session session, DDMStructure ddmStructure, long classNameId, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMStructure getByG_N_D_PrevAndNext(Session session, DDMStructure ddmStructure, long groupId, String name, String description, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMStructure getByGroupId_PrevAndNext(Session session, DDMStructure ddmStructure, long groupId, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMStructure getByUuid_PrevAndNext(Session session, DDMStructure ddmStructure, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 DDMStructure remove(long structureId)
          Removes the d d m structure with the primary key from the database.
 DDMStructure remove(Serializable primaryKey)
          Removes the d d m structure with the primary key from the database.
 void removeAll()
          Removes all the d d m structures from the database.
 void removeByClassNameId(long classNameId)
          Removes all the d d m structures where classNameId = ? from the database.
 void removeByG_N_D(long groupId, String name, String description)
          Removes all the d d m structures where groupId = ? and name = ? and description = ? from the database.
 void removeByG_S(long groupId, String structureKey)
          Removes the d d m structure where groupId = ? and structureKey = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the d d m structures where groupId = ? from the database.
 void removeByUUID_G(String uuid, long groupId)
          Removes the d d m structure where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the d d m structures where uuid = ? from the database.
protected  DDMStructure removeImpl(DDMStructure ddmStructure)
          Removes the model instance from the database.
protected  DDMStructure toUnwrappedModel(DDMStructure ddmStructure)
           
 DDMStructure updateImpl(DDMStructure ddmStructure, 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, 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 String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G

public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G

FINDER_PATH_COUNT_BY_UUID_G

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSNAMEID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSNAMEID

FINDER_PATH_COUNT_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID

FINDER_PATH_FETCH_BY_G_S

public static final FinderPath FINDER_PATH_FETCH_BY_G_S

FINDER_PATH_COUNT_BY_G_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N_D

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_N_D

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N_D

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_N_D

FINDER_PATH_COUNT_BY_G_N_D

public static final FinderPath FINDER_PATH_COUNT_BY_G_N_D

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

ddmContentPersistence

@BeanReference(type=DDMContentPersistence.class)
protected DDMContentPersistence ddmContentPersistence

ddmStorageLinkPersistence

@BeanReference(type=DDMStorageLinkPersistence.class)
protected DDMStorageLinkPersistence ddmStorageLinkPersistence

ddmStructurePersistence

@BeanReference(type=DDMStructurePersistence.class)
protected DDMStructurePersistence ddmStructurePersistence

ddmStructureLinkPersistence

@BeanReference(type=DDMStructureLinkPersistence.class)
protected DDMStructureLinkPersistence ddmStructureLinkPersistence

ddmTemplatePersistence

@BeanReference(type=DDMTemplatePersistence.class)
protected DDMTemplatePersistence ddmTemplatePersistence

resourcePersistence

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

userPersistence

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

dlFileEntryTypePersistence

@BeanReference(type=DLFileEntryTypePersistence.class)
protected DLFileEntryTypePersistence dlFileEntryTypePersistence
Constructor Detail

DDMStructurePersistenceImpl

public DDMStructurePersistenceImpl()
Method Detail

cacheResult

public void cacheResult(DDMStructure ddmStructure)
Caches the d d m structure in the entity cache if it is enabled.

Specified by:
cacheResult in interface DDMStructurePersistence
Parameters:
ddmStructure - the d d m structure

cacheResult

public void cacheResult(List<DDMStructure> ddmStructures)
Caches the d d m structures in the entity cache if it is enabled.

Specified by:
cacheResult in interface DDMStructurePersistence
Parameters:
ddmStructures - the d d m structures

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(DDMStructure ddmStructure)
Clears the cache for the d d m structure.

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(List<DDMStructure> ddmStructures)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DDMStructure>
Overrides:
clearCache in class BasePersistenceImpl<DDMStructure>
Parameters:
ddmStructures - the List instances of this model to clear the cache for

clearUniqueFindersCache

protected void clearUniqueFindersCache(DDMStructure ddmStructure)

create

public DDMStructure create(long structureId)
Creates a new d d m structure with the primary key. Does not add the d d m structure to the database.

Specified by:
create in interface DDMStructurePersistence
Parameters:
structureId - the primary key for the new d d m structure
Returns:
the new d d m structure

remove

public DDMStructure remove(long structureId)
                    throws NoSuchStructureException,
                           SystemException
Removes the d d m structure with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface DDMStructurePersistence
Parameters:
structureId - the primary key of the d d m structure
Returns:
the d d m structure that was removed
Throws:
NoSuchStructureException - if a d d m structure with the primary key could not be found
SystemException - if a system exception occurred

remove

public DDMStructure remove(Serializable primaryKey)
                    throws NoSuchStructureException,
                           SystemException
Removes the d d m structure with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<DDMStructure>
Overrides:
remove in class BasePersistenceImpl<DDMStructure>
Parameters:
primaryKey - the primary key of the d d m structure
Returns:
the d d m structure that was removed
Throws:
NoSuchStructureException - if a d d m structure with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected DDMStructure removeImpl(DDMStructure ddmStructure)
                           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<DDMStructure>
Parameters:
ddmStructure - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public DDMStructure updateImpl(DDMStructure ddmStructure,
                               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 DDMStructurePersistence
Overrides:
updateImpl in class BasePersistenceImpl<DDMStructure>
Parameters:
ddmStructure - 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 DDMStructure toUnwrappedModel(DDMStructure ddmStructure)

findByPrimaryKey

public DDMStructure findByPrimaryKey(Serializable primaryKey)
                              throws NoSuchModelException,
                                     SystemException
Returns the d d m structure with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<DDMStructure>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DDMStructure>
Parameters:
primaryKey - the primary key of the d d m structure
Returns:
the d d m structure
Throws:
NoSuchModelException - if a d d m structure with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public DDMStructure findByPrimaryKey(long structureId)
                              throws NoSuchStructureException,
                                     SystemException
Returns the d d m structure with the primary key or throws a NoSuchStructureException if it could not be found.

Specified by:
findByPrimaryKey in interface DDMStructurePersistence
Parameters:
structureId - the primary key of the d d m structure
Returns:
the d d m structure
Throws:
NoSuchStructureException - if a d d m structure with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public DDMStructure fetchByPrimaryKey(Serializable primaryKey)
                               throws SystemException
Returns the d d m structure with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<DDMStructure>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<DDMStructure>
Parameters:
primaryKey - the primary key of the d d m structure
Returns:
the d d m structure, or null if a d d m structure with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public DDMStructure fetchByPrimaryKey(long structureId)
                               throws SystemException
Returns the d d m structure with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface DDMStructurePersistence
Parameters:
structureId - the primary key of the d d m structure
Returns:
the d d m structure, or null if a d d m structure with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUuid

public List<DDMStructure> findByUuid(String uuid)
                              throws SystemException
Returns all the d d m structures where uuid = ?.

Specified by:
findByUuid in interface DDMStructurePersistence
Parameters:
uuid - the uuid
Returns:
the matching d d m structures
Throws:
SystemException - if a system exception occurred

findByUuid

public List<DDMStructure> findByUuid(String uuid,
                                     int start,
                                     int end)
                              throws SystemException
Returns a range of all the d d m structures where uuid = ?.

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:
findByUuid in interface DDMStructurePersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
Returns:
the range of matching d d m structures
Throws:
SystemException - if a system exception occurred

findByUuid

public List<DDMStructure> findByUuid(String uuid,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the d d m structures where uuid = ?.

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:
findByUuid in interface DDMStructurePersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structures
Throws:
SystemException - if a system exception occurred

findByUuid_First

public DDMStructure findByUuid_First(String uuid,
                                     OrderByComparator orderByComparator)
                              throws NoSuchStructureException,
                                     SystemException
Returns the first d d m structure in the ordered set where uuid = ?.

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:
findByUuid_First in interface DDMStructurePersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure
Throws:
NoSuchStructureException - if a matching d d m structure could not be found
SystemException - if a system exception occurred

findByUuid_Last

public DDMStructure findByUuid_Last(String uuid,
                                    OrderByComparator orderByComparator)
                             throws NoSuchStructureException,
                                    SystemException
Returns the last d d m structure in the ordered set where uuid = ?.

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:
findByUuid_Last in interface DDMStructurePersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure
Throws:
NoSuchStructureException - if a matching d d m structure could not be found
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public DDMStructure[] findByUuid_PrevAndNext(long structureId,
                                             String uuid,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchStructureException,
                                             SystemException
Returns the d d m structures before and after the current d d m structure in the ordered set where uuid = ?.

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:
findByUuid_PrevAndNext in interface DDMStructurePersistence
Parameters:
structureId - the primary key of the current d d m structure
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure
Throws:
NoSuchStructureException - if a d d m structure with the primary key could not be found
SystemException - if a system exception occurred

getByUuid_PrevAndNext

protected DDMStructure getByUuid_PrevAndNext(Session session,
                                             DDMStructure ddmStructure,
                                             String uuid,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findByUUID_G

public DDMStructure findByUUID_G(String uuid,
                                 long groupId)
                          throws NoSuchStructureException,
                                 SystemException
Returns the d d m structure where uuid = ? and groupId = ? or throws a NoSuchStructureException if it could not be found.

Specified by:
findByUUID_G in interface DDMStructurePersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching d d m structure
Throws:
NoSuchStructureException - if a matching d d m structure could not be found
SystemException - if a system exception occurred

fetchByUUID_G

public DDMStructure fetchByUUID_G(String uuid,
                                  long groupId)
                           throws SystemException
Returns the d d m structure where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByUUID_G in interface DDMStructurePersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching d d m structure, or null if a matching d d m structure could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

public DDMStructure fetchByUUID_G(String uuid,
                                  long groupId,
                                  boolean retrieveFromCache)
                           throws SystemException
Returns the d d m structure where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByUUID_G in interface DDMStructurePersistence
Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m structure, or null if a matching d d m structure could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<DDMStructure> findByGroupId(long groupId)
                                 throws SystemException
Returns all the d d m structures where groupId = ?.

Specified by:
findByGroupId in interface DDMStructurePersistence
Parameters:
groupId - the group ID
Returns:
the matching d d m structures
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<DDMStructure> findByGroupId(long groupId,
                                        int start,
                                        int end)
                                 throws SystemException
Returns a range of all the d d m structures where groupId = ?.

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:
findByGroupId in interface DDMStructurePersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
Returns:
the range of matching d d m structures
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<DDMStructure> findByGroupId(long groupId,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the d d m structures where groupId = ?.

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:
findByGroupId in interface DDMStructurePersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structures
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public DDMStructure findByGroupId_First(long groupId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchStructureException,
                                        SystemException
Returns the first d d m structure in the ordered set where groupId = ?.

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:
findByGroupId_First in interface DDMStructurePersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure
Throws:
NoSuchStructureException - if a matching d d m structure could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public DDMStructure findByGroupId_Last(long groupId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchStructureException,
                                       SystemException
Returns the last d d m structure in the ordered set where groupId = ?.

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:
findByGroupId_Last in interface DDMStructurePersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure
Throws:
NoSuchStructureException - if a matching d d m structure could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public DDMStructure[] findByGroupId_PrevAndNext(long structureId,
                                                long groupId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchStructureException,
                                                SystemException
Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = ?.

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:
findByGroupId_PrevAndNext in interface DDMStructurePersistence
Parameters:
structureId - the primary key of the current d d m structure
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure
Throws:
NoSuchStructureException - if a d d m structure with the primary key could not be found
SystemException - if a system exception occurred

getByGroupId_PrevAndNext

protected DDMStructure getByGroupId_PrevAndNext(Session session,
                                                DDMStructure ddmStructure,
                                                long groupId,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

filterFindByGroupId

public List<DDMStructure> filterFindByGroupId(long groupId)
                                       throws SystemException
Returns all the d d m structures that the user has permission to view where groupId = ?.

Specified by:
filterFindByGroupId in interface DDMStructurePersistence
Parameters:
groupId - the group ID
Returns:
the matching d d m structures that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public List<DDMStructure> filterFindByGroupId(long groupId,
                                              int start,
                                              int end)
                                       throws SystemException
Returns a range of all the d d m structures that the user has permission to view where groupId = ?.

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:
filterFindByGroupId in interface DDMStructurePersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
Returns:
the range of matching d d m structures that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public List<DDMStructure> filterFindByGroupId(long groupId,
                                              int start,
                                              int end,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ?.

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:
filterFindByGroupId in interface DDMStructurePersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structures that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId_PrevAndNext

public DDMStructure[] filterFindByGroupId_PrevAndNext(long structureId,
                                                      long groupId,
                                                      OrderByComparator orderByComparator)
                                               throws NoSuchStructureException,
                                                      SystemException
Returns the d d m structures before and after the current d d m structure in the ordered set of d d m structures that the user has permission to view where groupId = ?.

Specified by:
filterFindByGroupId_PrevAndNext in interface DDMStructurePersistence
Parameters:
structureId - the primary key of the current d d m structure
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure
Throws:
NoSuchStructureException - if a d d m structure with the primary key could not be found
SystemException - if a system exception occurred

filterGetByGroupId_PrevAndNext

protected DDMStructure filterGetByGroupId_PrevAndNext(Session session,
                                                      DDMStructure ddmStructure,
                                                      long groupId,
                                                      OrderByComparator orderByComparator,
                                                      boolean previous)

findByClassNameId

public List<DDMStructure> findByClassNameId(long classNameId)
                                     throws SystemException
Returns all the d d m structures where classNameId = ?.

Specified by:
findByClassNameId in interface DDMStructurePersistence
Parameters:
classNameId - the class name ID
Returns:
the matching d d m structures
Throws:
SystemException - if a system exception occurred

findByClassNameId

public List<DDMStructure> findByClassNameId(long classNameId,
                                            int start,
                                            int end)
                                     throws SystemException
Returns a range of all the d d m structures 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 DDMStructurePersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
Returns:
the range of matching d d m structures
Throws:
SystemException - if a system exception occurred

findByClassNameId

public List<DDMStructure> findByClassNameId(long classNameId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the d d m structures 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 DDMStructurePersistence
Parameters:
classNameId - the class name ID
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structures
Throws:
SystemException - if a system exception occurred

findByClassNameId_First

public DDMStructure findByClassNameId_First(long classNameId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchStructureException,
                                            SystemException
Returns the first d d m structure 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 DDMStructurePersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure
Throws:
NoSuchStructureException - if a matching d d m structure could not be found
SystemException - if a system exception occurred

findByClassNameId_Last

public DDMStructure findByClassNameId_Last(long classNameId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchStructureException,
                                           SystemException
Returns the last d d m structure 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 DDMStructurePersistence
Parameters:
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure
Throws:
NoSuchStructureException - if a matching d d m structure could not be found
SystemException - if a system exception occurred

findByClassNameId_PrevAndNext

public DDMStructure[] findByClassNameId_PrevAndNext(long structureId,
                                                    long classNameId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchStructureException,
                                                    SystemException
Returns the d d m structures before and after the current d d m structure 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 DDMStructurePersistence
Parameters:
structureId - the primary key of the current d d m structure
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
Throws:
NoSuchStructureException - if a d d m structure with the primary key could not be found
SystemException - if a system exception occurred

getByClassNameId_PrevAndNext

protected DDMStructure getByClassNameId_PrevAndNext(Session session,
                                                    DDMStructure ddmStructure,
                                                    long classNameId,
                                                    OrderByComparator orderByComparator,
                                                    boolean previous)

findByG_S

public DDMStructure findByG_S(long groupId,
                              String structureKey)
                       throws NoSuchStructureException,
                              SystemException
Returns the d d m structure where groupId = ? and structureKey = ? or throws a NoSuchStructureException if it could not be found.

Specified by:
findByG_S in interface DDMStructurePersistence
Parameters:
groupId - the group ID
structureKey - the structure key
Returns:
the matching d d m structure
Throws:
NoSuchStructureException - if a matching d d m structure could not be found
SystemException - if a system exception occurred

fetchByG_S

public DDMStructure fetchByG_S(long groupId,
                               String structureKey)
                        throws SystemException
Returns the d d m structure where groupId = ? and structureKey = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_S in interface DDMStructurePersistence
Parameters:
groupId - the group ID
structureKey - the structure key
Returns:
the matching d d m structure, or null if a matching d d m structure could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_S

public DDMStructure fetchByG_S(long groupId,
                               String structureKey,
                               boolean retrieveFromCache)
                        throws SystemException
Returns the d d m structure where groupId = ? and structureKey = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_S in interface DDMStructurePersistence
Parameters:
groupId - the group ID
structureKey - the structure key
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m structure, or null if a matching d d m structure could not be found
Throws:
SystemException - if a system exception occurred

findByG_N_D

public List<DDMStructure> findByG_N_D(long groupId,
                                      String name,
                                      String description)
                               throws SystemException
Returns all the d d m structures where groupId = ? and name = ? and description = ?.

Specified by:
findByG_N_D in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
Returns:
the matching d d m structures
Throws:
SystemException - if a system exception occurred

findByG_N_D

public List<DDMStructure> findByG_N_D(long groupId,
                                      String name,
                                      String description,
                                      int start,
                                      int end)
                               throws SystemException
Returns a range of all the d d m structures where groupId = ? and name = ? and description = ?.

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:
findByG_N_D in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
Returns:
the range of matching d d m structures
Throws:
SystemException - if a system exception occurred

findByG_N_D

public List<DDMStructure> findByG_N_D(long groupId,
                                      String name,
                                      String description,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the d d m structures where groupId = ? and name = ? and description = ?.

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:
findByG_N_D in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structures
Throws:
SystemException - if a system exception occurred

findByG_N_D_First

public DDMStructure findByG_N_D_First(long groupId,
                                      String name,
                                      String description,
                                      OrderByComparator orderByComparator)
                               throws NoSuchStructureException,
                                      SystemException
Returns the first d d m structure in the ordered set where groupId = ? and name = ? and description = ?.

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:
findByG_N_D_First in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure
Throws:
NoSuchStructureException - if a matching d d m structure could not be found
SystemException - if a system exception occurred

findByG_N_D_Last

public DDMStructure findByG_N_D_Last(long groupId,
                                     String name,
                                     String description,
                                     OrderByComparator orderByComparator)
                              throws NoSuchStructureException,
                                     SystemException
Returns the last d d m structure in the ordered set where groupId = ? and name = ? and description = ?.

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:
findByG_N_D_Last in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure
Throws:
NoSuchStructureException - if a matching d d m structure could not be found
SystemException - if a system exception occurred

findByG_N_D_PrevAndNext

public DDMStructure[] findByG_N_D_PrevAndNext(long structureId,
                                              long groupId,
                                              String name,
                                              String description,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchStructureException,
                                              SystemException
Returns the d d m structures before and after the current d d m structure in the ordered set where groupId = ? and name = ? and description = ?.

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:
findByG_N_D_PrevAndNext in interface DDMStructurePersistence
Parameters:
structureId - the primary key of the current d d m structure
groupId - the group ID
name - the name
description - the description
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure
Throws:
NoSuchStructureException - if a d d m structure with the primary key could not be found
SystemException - if a system exception occurred

getByG_N_D_PrevAndNext

protected DDMStructure getByG_N_D_PrevAndNext(Session session,
                                              DDMStructure ddmStructure,
                                              long groupId,
                                              String name,
                                              String description,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

filterFindByG_N_D

public List<DDMStructure> filterFindByG_N_D(long groupId,
                                            String name,
                                            String description)
                                     throws SystemException
Returns all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?.

Specified by:
filterFindByG_N_D in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
Returns:
the matching d d m structures that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_N_D

public List<DDMStructure> filterFindByG_N_D(long groupId,
                                            String name,
                                            String description,
                                            int start,
                                            int end)
                                     throws SystemException
Returns a range of all the d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?.

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:
filterFindByG_N_D in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
Returns:
the range of matching d d m structures that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_N_D

public List<DDMStructure> filterFindByG_N_D(long groupId,
                                            String name,
                                            String description,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the d d m structures that the user has permissions to view where groupId = ? and name = ? and description = ?.

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:
filterFindByG_N_D in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structures that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_N_D_PrevAndNext

public DDMStructure[] filterFindByG_N_D_PrevAndNext(long structureId,
                                                    long groupId,
                                                    String name,
                                                    String description,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchStructureException,
                                                    SystemException
Returns the d d m structures before and after the current d d m structure in the ordered set of d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?.

Specified by:
filterFindByG_N_D_PrevAndNext in interface DDMStructurePersistence
Parameters:
structureId - the primary key of the current d d m structure
groupId - the group ID
name - the name
description - the description
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure
Throws:
NoSuchStructureException - if a d d m structure with the primary key could not be found
SystemException - if a system exception occurred

filterGetByG_N_D_PrevAndNext

protected DDMStructure filterGetByG_N_D_PrevAndNext(Session session,
                                                    DDMStructure ddmStructure,
                                                    long groupId,
                                                    String name,
                                                    String description,
                                                    OrderByComparator orderByComparator,
                                                    boolean previous)

findAll

public List<DDMStructure> findAll()
                           throws SystemException
Returns all the d d m structures.

Specified by:
findAll in interface DDMStructurePersistence
Returns:
the d d m structures
Throws:
SystemException - if a system exception occurred

findAll

public List<DDMStructure> findAll(int start,
                                  int end)
                           throws SystemException
Returns a range of all the d d m structures.

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 DDMStructurePersistence
Parameters:
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
Returns:
the range of d d m structures
Throws:
SystemException - if a system exception occurred

findAll

public List<DDMStructure> findAll(int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns an ordered range of all the d d m structures.

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 DDMStructurePersistence
Parameters:
start - the lower bound of the range of d d m structures
end - the upper bound of the range of d d m structures (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d m structures
Throws:
SystemException - if a system exception occurred

removeByUuid

public void removeByUuid(String uuid)
                  throws SystemException
Removes all the d d m structures where uuid = ? from the database.

Specified by:
removeByUuid in interface DDMStructurePersistence
Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

removeByUUID_G

public void removeByUUID_G(String uuid,
                           long groupId)
                    throws NoSuchStructureException,
                           SystemException
Removes the d d m structure where uuid = ? and groupId = ? from the database.

Specified by:
removeByUUID_G in interface DDMStructurePersistence
Parameters:
uuid - the uuid
groupId - the group ID
Throws:
SystemException - if a system exception occurred
NoSuchStructureException

removeByGroupId

public void removeByGroupId(long groupId)
                     throws SystemException
Removes all the d d m structures where groupId = ? from the database.

Specified by:
removeByGroupId in interface DDMStructurePersistence
Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

removeByClassNameId

public void removeByClassNameId(long classNameId)
                         throws SystemException
Removes all the d d m structures where classNameId = ? from the database.

Specified by:
removeByClassNameId in interface DDMStructurePersistence
Parameters:
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

removeByG_S

public void removeByG_S(long groupId,
                        String structureKey)
                 throws NoSuchStructureException,
                        SystemException
Removes the d d m structure where groupId = ? and structureKey = ? from the database.

Specified by:
removeByG_S in interface DDMStructurePersistence
Parameters:
groupId - the group ID
structureKey - the structure key
Throws:
SystemException - if a system exception occurred
NoSuchStructureException

removeByG_N_D

public void removeByG_N_D(long groupId,
                          String name,
                          String description)
                   throws SystemException
Removes all the d d m structures where groupId = ? and name = ? and description = ? from the database.

Specified by:
removeByG_N_D in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
Throws:
SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws SystemException
Removes all the d d m structures from the database.

Specified by:
removeAll in interface DDMStructurePersistence
Throws:
SystemException - if a system exception occurred

countByUuid

public int countByUuid(String uuid)
                throws SystemException
Returns the number of d d m structures where uuid = ?.

Specified by:
countByUuid in interface DDMStructurePersistence
Parameters:
uuid - the uuid
Returns:
the number of matching d d m structures
Throws:
SystemException - if a system exception occurred

countByUUID_G

public int countByUUID_G(String uuid,
                         long groupId)
                  throws SystemException
Returns the number of d d m structures where uuid = ? and groupId = ?.

Specified by:
countByUUID_G in interface DDMStructurePersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching d d m structures
Throws:
SystemException - if a system exception occurred

countByGroupId

public int countByGroupId(long groupId)
                   throws SystemException
Returns the number of d d m structures where groupId = ?.

Specified by:
countByGroupId in interface DDMStructurePersistence
Parameters:
groupId - the group ID
Returns:
the number of matching d d m structures
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public int filterCountByGroupId(long groupId)
                         throws SystemException
Returns the number of d d m structures that the user has permission to view where groupId = ?.

Specified by:
filterCountByGroupId in interface DDMStructurePersistence
Parameters:
groupId - the group ID
Returns:
the number of matching d d m structures that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByClassNameId

public int countByClassNameId(long classNameId)
                       throws SystemException
Returns the number of d d m structures where classNameId = ?.

Specified by:
countByClassNameId in interface DDMStructurePersistence
Parameters:
classNameId - the class name ID
Returns:
the number of matching d d m structures
Throws:
SystemException - if a system exception occurred

countByG_S

public int countByG_S(long groupId,
                      String structureKey)
               throws SystemException
Returns the number of d d m structures where groupId = ? and structureKey = ?.

Specified by:
countByG_S in interface DDMStructurePersistence
Parameters:
groupId - the group ID
structureKey - the structure key
Returns:
the number of matching d d m structures
Throws:
SystemException - if a system exception occurred

countByG_N_D

public int countByG_N_D(long groupId,
                        String name,
                        String description)
                 throws SystemException
Returns the number of d d m structures where groupId = ? and name = ? and description = ?.

Specified by:
countByG_N_D in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
Returns:
the number of matching d d m structures
Throws:
SystemException - if a system exception occurred

filterCountByG_N_D

public int filterCountByG_N_D(long groupId,
                              String name,
                              String description)
                       throws SystemException
Returns the number of d d m structures that the user has permission to view where groupId = ? and name = ? and description = ?.

Specified by:
filterCountByG_N_D in interface DDMStructurePersistence
Parameters:
groupId - the group ID
name - the name
description - the description
Returns:
the number of matching d d m structures that the user has permission to view
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Returns the number of d d m structures.

Specified by:
countAll in interface DDMStructurePersistence
Returns:
the number of d d m structures
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

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


destroy

public void destroy()

Liferay 6.1.10-ee-ga1