Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.service.persistence.impl
Class DDMStructureLayoutPersistenceImpl

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

@ProviderType
public class DDMStructureLayoutPersistenceImpl
extends BasePersistenceImpl<DDMStructureLayout>
implements DDMStructureLayoutPersistence

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

Caching information and settings can be found in portal.properties

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

Field Summary
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_STRUCTUREVERSIONID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_STRUCTUREVERSIONID
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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
DDMStructureLayoutPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the d d m structure layout persistence.
 void cacheResult(DDMStructureLayout ddmStructureLayout)
          Caches the d d m structure layout in the entity cache if it is enabled.
 void cacheResult(List<DDMStructureLayout> ddmStructureLayouts)
          Caches the d d m structure layouts in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(DDMStructureLayout ddmStructureLayout)
           
 void clearCache()
          Clears the cache for all d d m structure layouts.
 void clearCache(DDMStructureLayout ddmStructureLayout)
          Clears the cache for the d d m structure layout.
 void clearCache(List<DDMStructureLayout> ddmStructureLayouts)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(DDMStructureLayout ddmStructureLayout)
           
 int countAll()
          Returns the number of d d m structure layouts.
 int countByStructureVersionId(long structureVersionId)
          Returns the number of d d m structure layouts where structureVersionId = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of d d m structure layouts where uuid = ? and companyId = ?.
 int countByUUID_G(String uuid, long groupId)
          Returns the number of d d m structure layouts where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Returns the number of d d m structure layouts where uuid = ?.
 DDMStructureLayout create(long structureLayoutId)
          Creates a new d d m structure layout with the primary key.
 void destroy()
           
 DDMStructureLayout fetchByPrimaryKey(long structureLayoutId)
          Returns the d d m structure layout with the primary key or returns null if it could not be found.
 DDMStructureLayout fetchByPrimaryKey(Serializable primaryKey)
          Returns the d d m structure layout with the primary key or returns null if it could not be found.
 Map<Serializable,DDMStructureLayout> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 DDMStructureLayout fetchByStructureVersionId(long structureVersionId)
          Returns the d d m structure layout where structureVersionId = ? or returns null if it could not be found.
 DDMStructureLayout fetchByStructureVersionId(long structureVersionId, boolean retrieveFromCache)
          Returns the d d m structure layout where structureVersionId = ? or returns null if it could not be found, optionally using the finder cache.
 DDMStructureLayout fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns the first d d m structure layout in the ordered set where uuid = ? and companyId = ?.
 DDMStructureLayout fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns the last d d m structure layout in the ordered set where uuid = ? and companyId = ?.
 DDMStructureLayout fetchByUuid_First(String uuid, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns the first d d m structure layout in the ordered set where uuid = ?.
 DDMStructureLayout fetchByUUID_G(String uuid, long groupId)
          Returns the d d m structure layout where uuid = ? and groupId = ? or returns null if it could not be found.
 DDMStructureLayout fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the d d m structure layout where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
 DDMStructureLayout fetchByUuid_Last(String uuid, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns the last d d m structure layout in the ordered set where uuid = ?.
 List<DDMStructureLayout> findAll()
          Returns all the d d m structure layouts.
 List<DDMStructureLayout> findAll(int start, int end)
          Returns a range of all the d d m structure layouts.
 List<DDMStructureLayout> findAll(int start, int end, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns an ordered range of all the d d m structure layouts.
 DDMStructureLayout findByPrimaryKey(long structureLayoutId)
          Returns the d d m structure layout with the primary key or throws a NoSuchStructureLayoutException if it could not be found.
 DDMStructureLayout findByPrimaryKey(Serializable primaryKey)
          Returns the d d m structure layout with the primary key or throws a NoSuchModelException if it could not be found.
 DDMStructureLayout findByStructureVersionId(long structureVersionId)
          Returns the d d m structure layout where structureVersionId = ? or throws a NoSuchStructureLayoutException if it could not be found.
 DDMStructureLayout findByUuid_C_First(String uuid, long companyId, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns the first d d m structure layout in the ordered set where uuid = ? and companyId = ?.
 DDMStructureLayout findByUuid_C_Last(String uuid, long companyId, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns the last d d m structure layout in the ordered set where uuid = ? and companyId = ?.
 DDMStructureLayout[] findByUuid_C_PrevAndNext(long structureLayoutId, String uuid, long companyId, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns the d d m structure layouts before and after the current d d m structure layout in the ordered set where uuid = ? and companyId = ?.
 List<DDMStructureLayout> findByUuid_C(String uuid, long companyId)
          Returns all the d d m structure layouts where uuid = ? and companyId = ?.
 List<DDMStructureLayout> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the d d m structure layouts where uuid = ? and companyId = ?.
 List<DDMStructureLayout> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns an ordered range of all the d d m structure layouts where uuid = ? and companyId = ?.
 DDMStructureLayout findByUuid_First(String uuid, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns the first d d m structure layout in the ordered set where uuid = ?.
 DDMStructureLayout findByUUID_G(String uuid, long groupId)
          Returns the d d m structure layout where uuid = ? and groupId = ? or throws a NoSuchStructureLayoutException if it could not be found.
 DDMStructureLayout findByUuid_Last(String uuid, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns the last d d m structure layout in the ordered set where uuid = ?.
 DDMStructureLayout[] findByUuid_PrevAndNext(long structureLayoutId, String uuid, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns the d d m structure layouts before and after the current d d m structure layout in the ordered set where uuid = ?.
 List<DDMStructureLayout> findByUuid(String uuid)
          Returns all the d d m structure layouts where uuid = ?.
 List<DDMStructureLayout> findByUuid(String uuid, int start, int end)
          Returns a range of all the d d m structure layouts where uuid = ?.
 List<DDMStructureLayout> findByUuid(String uuid, int start, int end, OrderByComparator<DDMStructureLayout> orderByComparator)
          Returns an ordered range of all the d d m structure layouts where uuid = ?.
protected  Set<String> getBadColumnNames()
           
protected  DDMStructureLayout getByUuid_C_PrevAndNext(Session session, DDMStructureLayout ddmStructureLayout, String uuid, long companyId, OrderByComparator<DDMStructureLayout> orderByComparator, boolean previous)
           
protected  DDMStructureLayout getByUuid_PrevAndNext(Session session, DDMStructureLayout ddmStructureLayout, String uuid, OrderByComparator<DDMStructureLayout> orderByComparator, boolean previous)
           
 DDMStructureLayout remove(long structureLayoutId)
          Removes the d d m structure layout with the primary key from the database.
 DDMStructureLayout remove(Serializable primaryKey)
          Removes the d d m structure layout with the primary key from the database.
 void removeAll()
          Removes all the d d m structure layouts from the database.
 DDMStructureLayout removeByStructureVersionId(long structureVersionId)
          Removes the d d m structure layout where structureVersionId = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the d d m structure layouts where uuid = ? and companyId = ? from the database.
 DDMStructureLayout removeByUUID_G(String uuid, long groupId)
          Removes the d d m structure layout where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the d d m structure layouts where uuid = ? from the database.
protected  DDMStructureLayout removeImpl(DDMStructureLayout ddmStructureLayout)
          Removes the model instance from the database.
protected  DDMStructureLayout toUnwrappedModel(DDMStructureLayout ddmStructureLayout)
           
 DDMStructureLayout updateImpl(DDMStructureLayout ddmStructureLayout)
          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, 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

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_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

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_UUID_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_FETCH_BY_STRUCTUREVERSIONID

public static final FinderPath FINDER_PATH_FETCH_BY_STRUCTUREVERSIONID

FINDER_PATH_COUNT_BY_STRUCTUREVERSIONID

public static final FinderPath FINDER_PATH_COUNT_BY_STRUCTUREVERSIONID
Constructor Detail

DDMStructureLayoutPersistenceImpl

public DDMStructureLayoutPersistenceImpl()
Method Detail

findByUuid

public List<DDMStructureLayout> findByUuid(String uuid)
Returns all the d d m structure layouts where uuid = ?.

Specified by:
findByUuid in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
Returns:
the matching d d m structure layouts

findByUuid

public List<DDMStructureLayout> findByUuid(String uuid,
                                           int start,
                                           int end)
Returns a range of all the d d m structure layouts 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. 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 DDMStructureLayoutModelImpl. 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.

Specified by:
findByUuid in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of d d m structure layouts
end - the upper bound of the range of d d m structure layouts (not inclusive)
Returns:
the range of matching d d m structure layouts

findByUuid

public List<DDMStructureLayout> findByUuid(String uuid,
                                           int start,
                                           int end,
                                           OrderByComparator<DDMStructureLayout> orderByComparator)
Returns an ordered range of all the d d m structure layouts 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. 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 DDMStructureLayoutModelImpl. 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.

Specified by:
findByUuid in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of d d m structure layouts
end - the upper bound of the range of d d m structure layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structure layouts

findByUuid_First

public DDMStructureLayout findByUuid_First(String uuid,
                                           OrderByComparator<DDMStructureLayout> orderByComparator)
                                    throws NoSuchStructureLayoutException
Returns the first d d m structure layout in the ordered set where uuid = ?.

Specified by:
findByUuid_First in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure layout
Throws:
NoSuchStructureLayoutException - if a matching d d m structure layout could not be found

fetchByUuid_First

public DDMStructureLayout fetchByUuid_First(String uuid,
                                            OrderByComparator<DDMStructureLayout> orderByComparator)
Returns the first d d m structure layout in the ordered set where uuid = ?.

Specified by:
fetchByUuid_First in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure layout, or null if a matching d d m structure layout could not be found

findByUuid_Last

public DDMStructureLayout findByUuid_Last(String uuid,
                                          OrderByComparator<DDMStructureLayout> orderByComparator)
                                   throws NoSuchStructureLayoutException
Returns the last d d m structure layout in the ordered set where uuid = ?.

Specified by:
findByUuid_Last in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure layout
Throws:
NoSuchStructureLayoutException - if a matching d d m structure layout could not be found

fetchByUuid_Last

public DDMStructureLayout fetchByUuid_Last(String uuid,
                                           OrderByComparator<DDMStructureLayout> orderByComparator)
Returns the last d d m structure layout in the ordered set where uuid = ?.

Specified by:
fetchByUuid_Last in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure layout, or null if a matching d d m structure layout could not be found

findByUuid_PrevAndNext

public DDMStructureLayout[] findByUuid_PrevAndNext(long structureLayoutId,
                                                   String uuid,
                                                   OrderByComparator<DDMStructureLayout> orderByComparator)
                                            throws NoSuchStructureLayoutException
Returns the d d m structure layouts before and after the current d d m structure layout in the ordered set where uuid = ?.

Specified by:
findByUuid_PrevAndNext in interface DDMStructureLayoutPersistence
Parameters:
structureLayoutId - the primary key of the current d d m structure layout
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure layout
Throws:
NoSuchStructureLayoutException - if a d d m structure layout with the primary key could not be found

getByUuid_PrevAndNext

protected DDMStructureLayout getByUuid_PrevAndNext(Session session,
                                                   DDMStructureLayout ddmStructureLayout,
                                                   String uuid,
                                                   OrderByComparator<DDMStructureLayout> orderByComparator,
                                                   boolean previous)

removeByUuid

public void removeByUuid(String uuid)
Removes all the d d m structure layouts where uuid = ? from the database.

Specified by:
removeByUuid in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid

countByUuid

public int countByUuid(String uuid)
Returns the number of d d m structure layouts where uuid = ?.

Specified by:
countByUuid in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching d d m structure layouts

findByUUID_G

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

Specified by:
findByUUID_G in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching d d m structure layout
Throws:
NoSuchStructureLayoutException - if a matching d d m structure layout could not be found

fetchByUUID_G

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

Specified by:
fetchByUUID_G in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching d d m structure layout, or null if a matching d d m structure layout could not be found

fetchByUUID_G

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

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

removeByUUID_G

public DDMStructureLayout removeByUUID_G(String uuid,
                                         long groupId)
                                  throws NoSuchStructureLayoutException
Removes the d d m structure layout where uuid = ? and groupId = ? from the database.

Specified by:
removeByUUID_G in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the d d m structure layout that was removed
Throws:
NoSuchStructureLayoutException

countByUUID_G

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

Specified by:
countByUUID_G in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching d d m structure layouts

findByUuid_C

public List<DDMStructureLayout> findByUuid_C(String uuid,
                                             long companyId)
Returns all the d d m structure layouts where uuid = ? and companyId = ?.

Specified by:
findByUuid_C in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching d d m structure layouts

findByUuid_C

public List<DDMStructureLayout> findByUuid_C(String uuid,
                                             long companyId,
                                             int start,
                                             int end)
Returns a range of all the d d m structure layouts where uuid = ? and companyId = ?.

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 DDMStructureLayoutModelImpl. 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.

Specified by:
findByUuid_C in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of d d m structure layouts
end - the upper bound of the range of d d m structure layouts (not inclusive)
Returns:
the range of matching d d m structure layouts

findByUuid_C

public List<DDMStructureLayout> findByUuid_C(String uuid,
                                             long companyId,
                                             int start,
                                             int end,
                                             OrderByComparator<DDMStructureLayout> orderByComparator)
Returns an ordered range of all the d d m structure layouts where uuid = ? and companyId = ?.

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 DDMStructureLayoutModelImpl. 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.

Specified by:
findByUuid_C in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of d d m structure layouts
end - the upper bound of the range of d d m structure layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structure layouts

findByUuid_C_First

public DDMStructureLayout findByUuid_C_First(String uuid,
                                             long companyId,
                                             OrderByComparator<DDMStructureLayout> orderByComparator)
                                      throws NoSuchStructureLayoutException
Returns the first d d m structure layout in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_First in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure layout
Throws:
NoSuchStructureLayoutException - if a matching d d m structure layout could not be found

fetchByUuid_C_First

public DDMStructureLayout fetchByUuid_C_First(String uuid,
                                              long companyId,
                                              OrderByComparator<DDMStructureLayout> orderByComparator)
Returns the first d d m structure layout in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_First in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure layout, or null if a matching d d m structure layout could not be found

findByUuid_C_Last

public DDMStructureLayout findByUuid_C_Last(String uuid,
                                            long companyId,
                                            OrderByComparator<DDMStructureLayout> orderByComparator)
                                     throws NoSuchStructureLayoutException
Returns the last d d m structure layout in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_Last in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure layout
Throws:
NoSuchStructureLayoutException - if a matching d d m structure layout could not be found

fetchByUuid_C_Last

public DDMStructureLayout fetchByUuid_C_Last(String uuid,
                                             long companyId,
                                             OrderByComparator<DDMStructureLayout> orderByComparator)
Returns the last d d m structure layout in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_Last in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure layout, or null if a matching d d m structure layout could not be found

findByUuid_C_PrevAndNext

public DDMStructureLayout[] findByUuid_C_PrevAndNext(long structureLayoutId,
                                                     String uuid,
                                                     long companyId,
                                                     OrderByComparator<DDMStructureLayout> orderByComparator)
                                              throws NoSuchStructureLayoutException
Returns the d d m structure layouts before and after the current d d m structure layout in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_PrevAndNext in interface DDMStructureLayoutPersistence
Parameters:
structureLayoutId - the primary key of the current d d m structure layout
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure layout
Throws:
NoSuchStructureLayoutException - if a d d m structure layout with the primary key could not be found

getByUuid_C_PrevAndNext

protected DDMStructureLayout getByUuid_C_PrevAndNext(Session session,
                                                     DDMStructureLayout ddmStructureLayout,
                                                     String uuid,
                                                     long companyId,
                                                     OrderByComparator<DDMStructureLayout> orderByComparator,
                                                     boolean previous)

removeByUuid_C

public void removeByUuid_C(String uuid,
                           long companyId)
Removes all the d d m structure layouts where uuid = ? and companyId = ? from the database.

Specified by:
removeByUuid_C in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID

countByUuid_C

public int countByUuid_C(String uuid,
                         long companyId)
Returns the number of d d m structure layouts where uuid = ? and companyId = ?.

Specified by:
countByUuid_C in interface DDMStructureLayoutPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching d d m structure layouts

findByStructureVersionId

public DDMStructureLayout findByStructureVersionId(long structureVersionId)
                                            throws NoSuchStructureLayoutException
Returns the d d m structure layout where structureVersionId = ? or throws a NoSuchStructureLayoutException if it could not be found.

Specified by:
findByStructureVersionId in interface DDMStructureLayoutPersistence
Parameters:
structureVersionId - the structure version ID
Returns:
the matching d d m structure layout
Throws:
NoSuchStructureLayoutException - if a matching d d m structure layout could not be found

fetchByStructureVersionId

public DDMStructureLayout fetchByStructureVersionId(long structureVersionId)
Returns the d d m structure layout where structureVersionId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByStructureVersionId in interface DDMStructureLayoutPersistence
Parameters:
structureVersionId - the structure version ID
Returns:
the matching d d m structure layout, or null if a matching d d m structure layout could not be found

fetchByStructureVersionId

public DDMStructureLayout fetchByStructureVersionId(long structureVersionId,
                                                    boolean retrieveFromCache)
Returns the d d m structure layout where structureVersionId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByStructureVersionId in interface DDMStructureLayoutPersistence
Parameters:
structureVersionId - the structure version ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m structure layout, or null if a matching d d m structure layout could not be found

removeByStructureVersionId

public DDMStructureLayout removeByStructureVersionId(long structureVersionId)
                                              throws NoSuchStructureLayoutException
Removes the d d m structure layout where structureVersionId = ? from the database.

Specified by:
removeByStructureVersionId in interface DDMStructureLayoutPersistence
Parameters:
structureVersionId - the structure version ID
Returns:
the d d m structure layout that was removed
Throws:
NoSuchStructureLayoutException

countByStructureVersionId

public int countByStructureVersionId(long structureVersionId)
Returns the number of d d m structure layouts where structureVersionId = ?.

Specified by:
countByStructureVersionId in interface DDMStructureLayoutPersistence
Parameters:
structureVersionId - the structure version ID
Returns:
the number of matching d d m structure layouts

cacheResult

public void cacheResult(DDMStructureLayout ddmStructureLayout)
Caches the d d m structure layout in the entity cache if it is enabled.

Specified by:
cacheResult in interface DDMStructureLayoutPersistence
Parameters:
ddmStructureLayout - the d d m structure layout

cacheResult

public void cacheResult(List<DDMStructureLayout> ddmStructureLayouts)
Caches the d d m structure layouts in the entity cache if it is enabled.

Specified by:
cacheResult in interface DDMStructureLayoutPersistence
Parameters:
ddmStructureLayouts - the d d m structure layouts

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(DDMStructureLayout ddmStructureLayout)
Clears the cache for the d d m structure layout.

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(List<DDMStructureLayout> ddmStructureLayouts)
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<DDMStructureLayout>
Overrides:
clearCache in class BasePersistenceImpl<DDMStructureLayout>
Parameters:
ddmStructureLayouts - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(DDMStructureLayout ddmStructureLayout)

clearUniqueFindersCache

protected void clearUniqueFindersCache(DDMStructureLayout ddmStructureLayout)

create

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

Specified by:
create in interface DDMStructureLayoutPersistence
Parameters:
structureLayoutId - the primary key for the new d d m structure layout
Returns:
the new d d m structure layout

remove

public DDMStructureLayout remove(long structureLayoutId)
                          throws NoSuchStructureLayoutException
Removes the d d m structure layout with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface DDMStructureLayoutPersistence
Parameters:
structureLayoutId - the primary key of the d d m structure layout
Returns:
the d d m structure layout that was removed
Throws:
NoSuchStructureLayoutException - if a d d m structure layout with the primary key could not be found

remove

public DDMStructureLayout remove(Serializable primaryKey)
                          throws NoSuchStructureLayoutException
Removes the d d m structure layout with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<DDMStructureLayout>
Overrides:
remove in class BasePersistenceImpl<DDMStructureLayout>
Parameters:
primaryKey - the primary key of the d d m structure layout
Returns:
the d d m structure layout that was removed
Throws:
NoSuchStructureLayoutException - if a d d m structure layout with the primary key could not be found

removeImpl

protected DDMStructureLayout removeImpl(DDMStructureLayout ddmStructureLayout)
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<DDMStructureLayout>
Parameters:
ddmStructureLayout - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public DDMStructureLayout updateImpl(DDMStructureLayout ddmStructureLayout)
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 DDMStructureLayoutPersistence
Overrides:
updateImpl in class BasePersistenceImpl<DDMStructureLayout>
Parameters:
ddmStructureLayout - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected DDMStructureLayout toUnwrappedModel(DDMStructureLayout ddmStructureLayout)

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface BasePersistence<DDMStructureLayout>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DDMStructureLayout>
Parameters:
primaryKey - the primary key of the d d m structure layout
Returns:
the d d m structure layout
Throws:
NoSuchStructureLayoutException - if a d d m structure layout with the primary key could not be found

findByPrimaryKey

public DDMStructureLayout findByPrimaryKey(long structureLayoutId)
                                    throws NoSuchStructureLayoutException
Returns the d d m structure layout with the primary key or throws a NoSuchStructureLayoutException if it could not be found.

Specified by:
findByPrimaryKey in interface DDMStructureLayoutPersistence
Parameters:
structureLayoutId - the primary key of the d d m structure layout
Returns:
the d d m structure layout
Throws:
NoSuchStructureLayoutException - if a d d m structure layout with the primary key could not be found

fetchByPrimaryKey

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

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

fetchByPrimaryKey

public DDMStructureLayout fetchByPrimaryKey(long structureLayoutId)
Returns the d d m structure layout with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface DDMStructureLayoutPersistence
Parameters:
structureLayoutId - the primary key of the d d m structure layout
Returns:
the d d m structure layout, or null if a d d m structure layout with the primary key could not be found

fetchByPrimaryKeys

public Map<Serializable,DDMStructureLayout> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<DDMStructureLayout>
Specified by:
fetchByPrimaryKeys in interface DDMStructureLayoutPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<DDMStructureLayout>

findAll

public List<DDMStructureLayout> findAll()
Returns all the d d m structure layouts.

Specified by:
findAll in interface DDMStructureLayoutPersistence
Returns:
the d d m structure layouts

findAll

public List<DDMStructureLayout> findAll(int start,
                                        int end)
Returns a range of all the d d m structure layouts.

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 DDMStructureLayoutModelImpl. 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.

Specified by:
findAll in interface DDMStructureLayoutPersistence
Parameters:
start - the lower bound of the range of d d m structure layouts
end - the upper bound of the range of d d m structure layouts (not inclusive)
Returns:
the range of d d m structure layouts

findAll

public List<DDMStructureLayout> findAll(int start,
                                        int end,
                                        OrderByComparator<DDMStructureLayout> orderByComparator)
Returns an ordered range of all the d d m structure layouts.

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 DDMStructureLayoutModelImpl. 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.

Specified by:
findAll in interface DDMStructureLayoutPersistence
Parameters:
start - the lower bound of the range of d d m structure layouts
end - the upper bound of the range of d d m structure layouts (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d m structure layouts

removeAll

public void removeAll()
Removes all the d d m structure layouts from the database.

Specified by:
removeAll in interface DDMStructureLayoutPersistence

countAll

public int countAll()
Returns the number of d d m structure layouts.

Specified by:
countAll in interface DDMStructureLayoutPersistence
Returns:
the number of d d m structure layouts

getBadColumnNames

protected Set<String> getBadColumnNames()
Overrides:
getBadColumnNames in class BasePersistenceImpl<DDMStructureLayout>

afterPropertiesSet

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


destroy

public void destroy()

Liferay 7.0-ce-m6