Liferay 6.0.5

com.liferay.portal.service.persistence
Class LayoutPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<Layout>
      extended by com.liferay.portal.service.persistence.LayoutPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<Layout>, LayoutPersistence

public class LayoutPersistenceImpl
extends BasePersistenceImpl<Layout>
implements LayoutPersistence

The persistence implementation for the layout service.

Never modify or reference this class directly. Always use LayoutUtil to access the layout persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Field Summary
protected  AccountPersistence accountPersistence
           
protected  AddressPersistence addressPersistence
           
protected  BrowserTrackerPersistence browserTrackerPersistence
           
protected  ClassNamePersistence classNamePersistence
           
protected  ClusterGroupPersistence clusterGroupPersistence
           
protected  CompanyPersistence companyPersistence
           
protected  ContactPersistence contactPersistence
           
protected  CountryPersistence countryPersistence
           
protected  DLFolderPersistence dlFolderPersistence
           
protected  EmailAddressPersistence emailAddressPersistence
           
protected  ExpandoValuePersistence expandoValuePersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_DLFOLDERID
           
static FinderPath FINDER_PATH_COUNT_BY_G_P
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_F
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_L
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_P
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_T
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_ICONIMAGEID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_DLFOLDERID
           
static FinderPath FINDER_PATH_FETCH_BY_G_P_F
           
static FinderPath FINDER_PATH_FETCH_BY_G_P_L
           
static FinderPath FINDER_PATH_FETCH_BY_ICONIMAGEID
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_FIND_BY_G_P
           
static FinderPath FINDER_PATH_FIND_BY_G_P_P
           
static FinderPath FINDER_PATH_FIND_BY_G_P_T
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_FIND_BY_UUID
           
protected  GroupPersistence groupPersistence
           
protected  ImagePersistence imagePersistence
           
protected  JournalContentSearchPersistence journalContentSearchPersistence
           
protected  LayoutPersistence layoutPersistence
           
protected  LayoutPrototypePersistence layoutPrototypePersistence
           
protected  LayoutSetPersistence layoutSetPersistence
           
protected  LayoutSetPrototypePersistence layoutSetPrototypePersistence
           
protected  ListTypePersistence listTypePersistence
           
protected  LockPersistence lockPersistence
           
protected  MBMessagePersistence mbMessagePersistence
           
protected  MembershipRequestPersistence membershipRequestPersistence
           
protected  OrganizationPersistence organizationPersistence
           
protected  OrgGroupPermissionPersistence orgGroupPermissionPersistence
           
protected  OrgGroupRolePersistence orgGroupRolePersistence
           
protected  OrgLaborPersistence orgLaborPersistence
           
protected  PasswordPolicyPersistence passwordPolicyPersistence
           
protected  PasswordPolicyRelPersistence passwordPolicyRelPersistence
           
protected  PasswordTrackerPersistence passwordTrackerPersistence
           
protected  PermissionPersistence permissionPersistence
           
protected  PhonePersistence phonePersistence
           
protected  PluginSettingPersistence pluginSettingPersistence
           
protected  PortletItemPersistence portletItemPersistence
           
protected  PortletPersistence portletPersistence
           
protected  PortletPreferencesPersistence portletPreferencesPersistence
           
protected  RatingsStatsPersistence ratingsStatsPersistence
           
protected  RegionPersistence regionPersistence
           
protected  ReleasePersistence releasePersistence
           
protected  ResourceActionPersistence resourceActionPersistence
           
protected  ResourceCodePersistence resourceCodePersistence
           
protected  ResourcePermissionPersistence resourcePermissionPersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  RolePersistence rolePersistence
           
protected  ServiceComponentPersistence serviceComponentPersistence
           
protected  ShardPersistence shardPersistence
           
protected  SubscriptionPersistence subscriptionPersistence
           
protected  TasksProposalPersistence tasksProposalPersistence
           
protected  TeamPersistence teamPersistence
           
protected  TicketPersistence ticketPersistence
           
protected  UserGroupGroupRolePersistence userGroupGroupRolePersistence
           
protected  UserGroupPersistence userGroupPersistence
           
protected  UserGroupRolePersistence userGroupRolePersistence
           
protected  UserIdMapperPersistence userIdMapperPersistence
           
protected  UserPersistence userPersistence
           
protected  UserTrackerPathPersistence userTrackerPathPersistence
           
protected  UserTrackerPersistence userTrackerPersistence
           
protected  WebDAVPropsPersistence webDAVPropsPersistence
           
protected  WebsitePersistence websitePersistence
           
protected  WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence
           
protected  WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
LayoutPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the layout persistence.
 void cacheResult(Layout layout)
          Caches the layout in the entity cache if it is enabled.
 void cacheResult(List<Layout> layouts)
          Caches the layouts in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all layouts.
 void clearCache(Layout layout)
          Clears the cache for the layout.
 int countAll()
          Counts all the layouts.
 int countByCompanyId(long companyId)
          Counts all the layouts where companyId = ?.
 int countByDLFolderId(long dlFolderId)
          Counts all the layouts where dlFolderId = ?.
 int countByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Counts all the layouts where groupId = ? and privateLayout = ? and friendlyURL = ?.
 int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Counts all the layouts where groupId = ? and privateLayout = ? and layoutId = ?.
 int countByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Counts all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 int countByG_P_T(long groupId, boolean privateLayout, String type)
          Counts all the layouts where groupId = ? and privateLayout = ? and type = ?.
 int countByG_P(long groupId, boolean privateLayout)
          Counts all the layouts where groupId = ? and privateLayout = ?.
 int countByGroupId(long groupId)
          Counts all the layouts where groupId = ?.
 int countByIconImageId(long iconImageId)
          Counts all the layouts where iconImageId = ?.
 int countByUUID_G(String uuid, long groupId)
          Counts all the layouts where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Counts all the layouts where uuid = ?.
 Layout create(long plid)
          Creates a new layout with the primary key.
 Layout fetchByDLFolderId(long dlFolderId)
          Finds the layout where dlFolderId = ? or returns null if it could not be found.
 Layout fetchByDLFolderId(long dlFolderId, boolean retrieveFromCache)
          Finds the layout where dlFolderId = ? or returns null if it could not be found, optionally using the finder cache.
 Layout fetchByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found.
 Layout fetchByG_P_F(long groupId, boolean privateLayout, String friendlyURL, boolean retrieveFromCache)
          Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found, optionally using the finder cache.
 Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found.
 Layout fetchByG_P_L(long groupId, boolean privateLayout, long layoutId, boolean retrieveFromCache)
          Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found, optionally using the finder cache.
 Layout fetchByIconImageId(long iconImageId)
          Finds the layout where iconImageId = ? or returns null if it could not be found.
 Layout fetchByIconImageId(long iconImageId, boolean retrieveFromCache)
          Finds the layout where iconImageId = ? or returns null if it could not be found, optionally using the finder cache.
 Layout fetchByPrimaryKey(long plid)
          Finds the layout with the primary key or returns null if it could not be found.
 Layout fetchByPrimaryKey(Serializable primaryKey)
          Finds the layout with the primary key or returns null if it could not be found.
 Layout fetchByUUID_G(String uuid, long groupId)
          Finds the layout where uuid = ? and groupId = ? or returns null if it could not be found.
 Layout fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Finds the layout where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
 List<Layout> findAll()
          Finds all the layouts.
 List<Layout> findAll(int start, int end)
          Finds a range of all the layouts.
 List<Layout> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts.
 Layout findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where companyId = ?.
 Layout findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where companyId = ?.
 Layout[] findByCompanyId_PrevAndNext(long plid, long companyId, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where companyId = ?.
 List<Layout> findByCompanyId(long companyId)
          Finds all the layouts where companyId = ?.
 List<Layout> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the layouts where companyId = ?.
 List<Layout> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where companyId = ?.
 Layout findByDLFolderId(long dlFolderId)
          Finds the layout where dlFolderId = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByG_P_First(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where groupId = ? and privateLayout = ?.
 Layout findByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByG_P_Last(long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where groupId = ? and privateLayout = ?.
 Layout findByG_P_P_First(long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 Layout findByG_P_P_Last(long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 Layout[] findByG_P_P_PrevAndNext(long plid, long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Finds all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int start, int end)
          Finds a range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 List<Layout> findByG_P_P(long groupId, boolean privateLayout, long parentLayoutId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.
 Layout[] findByG_P_PrevAndNext(long plid, long groupId, boolean privateLayout, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ?.
 Layout findByG_P_T_First(long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
 Layout findByG_P_T_Last(long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
 Layout[] findByG_P_T_PrevAndNext(long plid, long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.
 List<Layout> findByG_P_T(long groupId, boolean privateLayout, String type)
          Finds all the layouts where groupId = ? and privateLayout = ? and type = ?.
 List<Layout> findByG_P_T(long groupId, boolean privateLayout, String type, int start, int end)
          Finds a range of all the layouts where groupId = ? and privateLayout = ? and type = ?.
 List<Layout> findByG_P_T(long groupId, boolean privateLayout, String type, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where groupId = ? and privateLayout = ? and type = ?.
 List<Layout> findByG_P(long groupId, boolean privateLayout)
          Finds all the layouts where groupId = ? and privateLayout = ?.
 List<Layout> findByG_P(long groupId, boolean privateLayout, int start, int end)
          Finds a range of all the layouts where groupId = ? and privateLayout = ?.
 List<Layout> findByG_P(long groupId, boolean privateLayout, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where groupId = ? and privateLayout = ?.
 Layout findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where groupId = ?.
 Layout findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where groupId = ?.
 Layout[] findByGroupId_PrevAndNext(long plid, long groupId, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where groupId = ?.
 List<Layout> findByGroupId(long groupId)
          Finds all the layouts where groupId = ?.
 List<Layout> findByGroupId(long groupId, int start, int end)
          Finds a range of all the layouts where groupId = ?.
 List<Layout> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where groupId = ?.
 Layout findByIconImageId(long iconImageId)
          Finds the layout where iconImageId = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByPrimaryKey(long plid)
          Finds the layout with the primary key or throws a NoSuchLayoutException if it could not be found.
 Layout findByPrimaryKey(Serializable primaryKey)
          Finds the layout with the primary key or throws a NoSuchModelException if it could not be found.
 Layout findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Finds the first layout in the ordered set where uuid = ?.
 Layout findByUUID_G(String uuid, long groupId)
          Finds the layout where uuid = ? and groupId = ? or throws a NoSuchLayoutException if it could not be found.
 Layout findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Finds the last layout in the ordered set where uuid = ?.
 Layout[] findByUuid_PrevAndNext(long plid, String uuid, OrderByComparator orderByComparator)
          Finds the layouts before and after the current layout in the ordered set where uuid = ?.
 List<Layout> findByUuid(String uuid)
          Finds all the layouts where uuid = ?.
 List<Layout> findByUuid(String uuid, int start, int end)
          Finds a range of all the layouts where uuid = ?.
 List<Layout> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the layouts where uuid = ?.
protected  Layout getByCompanyId_PrevAndNext(Session session, Layout layout, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByG_P_P_PrevAndNext(Session session, Layout layout, long groupId, boolean privateLayout, long parentLayoutId, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByG_P_PrevAndNext(Session session, Layout layout, long groupId, boolean privateLayout, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByG_P_T_PrevAndNext(Session session, Layout layout, long groupId, boolean privateLayout, String type, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByGroupId_PrevAndNext(Session session, Layout layout, long groupId, OrderByComparator orderByComparator, boolean previous)
           
protected  Layout getByUuid_PrevAndNext(Session session, Layout layout, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 Layout remove(long plid)
          Removes the layout with the primary key from the database.
 Layout remove(Serializable primaryKey)
          Removes the layout with the primary key from the database.
 void removeAll()
          Removes all the layouts from the database.
 void removeByCompanyId(long companyId)
          Removes all the layouts where companyId = ? from the database.
 void removeByDLFolderId(long dlFolderId)
          Removes the layout where dlFolderId = ? from the database.
 void removeByG_P_F(long groupId, boolean privateLayout, String friendlyURL)
          Removes the layout where groupId = ? and privateLayout = ? and friendlyURL = ? from the database.
 void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
          Removes the layout where groupId = ? and privateLayout = ? and layoutId = ? from the database.
 void removeByG_P_P(long groupId, boolean privateLayout, long parentLayoutId)
          Removes all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ? from the database.
 void removeByG_P_T(long groupId, boolean privateLayout, String type)
          Removes all the layouts where groupId = ? and privateLayout = ? and type = ? from the database.
 void removeByG_P(long groupId, boolean privateLayout)
          Removes all the layouts where groupId = ? and privateLayout = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the layouts where groupId = ? from the database.
 void removeByIconImageId(long iconImageId)
          Removes the layout where iconImageId = ? from the database.
 void removeByUUID_G(String uuid, long groupId)
          Removes the layout where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the layouts where uuid = ? from the database.
protected  Layout removeImpl(Layout layout)
          Removes the model instance from the database.
protected  Layout toUnwrappedModel(Layout layout)
           
 Layout updateImpl(Layout layout, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_UUID

public static final FinderPath FINDER_PATH_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_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_FETCH_BY_DLFOLDERID

public static final FinderPath FINDER_PATH_FETCH_BY_DLFOLDERID

FINDER_PATH_COUNT_BY_DLFOLDERID

public static final FinderPath FINDER_PATH_COUNT_BY_DLFOLDERID

FINDER_PATH_FETCH_BY_ICONIMAGEID

public static final FinderPath FINDER_PATH_FETCH_BY_ICONIMAGEID

FINDER_PATH_COUNT_BY_ICONIMAGEID

public static final FinderPath FINDER_PATH_COUNT_BY_ICONIMAGEID

FINDER_PATH_FIND_BY_G_P

public static final FinderPath FINDER_PATH_FIND_BY_G_P

FINDER_PATH_COUNT_BY_G_P

public static final FinderPath FINDER_PATH_COUNT_BY_G_P

FINDER_PATH_FETCH_BY_G_P_L

public static final FinderPath FINDER_PATH_FETCH_BY_G_P_L

FINDER_PATH_COUNT_BY_G_P_L

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_L

FINDER_PATH_FIND_BY_G_P_P

public static final FinderPath FINDER_PATH_FIND_BY_G_P_P

FINDER_PATH_COUNT_BY_G_P_P

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_P

FINDER_PATH_FETCH_BY_G_P_F

public static final FinderPath FINDER_PATH_FETCH_BY_G_P_F

FINDER_PATH_COUNT_BY_G_P_F

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_F

FINDER_PATH_FIND_BY_G_P_T

public static final FinderPath FINDER_PATH_FIND_BY_G_P_T

FINDER_PATH_COUNT_BY_G_P_T

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_T

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

accountPersistence

@BeanReference(type=AccountPersistence.class)
protected AccountPersistence accountPersistence

addressPersistence

@BeanReference(type=AddressPersistence.class)
protected AddressPersistence addressPersistence

browserTrackerPersistence

@BeanReference(type=BrowserTrackerPersistence.class)
protected BrowserTrackerPersistence browserTrackerPersistence

classNamePersistence

@BeanReference(type=ClassNamePersistence.class)
protected ClassNamePersistence classNamePersistence

clusterGroupPersistence

@BeanReference(type=ClusterGroupPersistence.class)
protected ClusterGroupPersistence clusterGroupPersistence

companyPersistence

@BeanReference(type=CompanyPersistence.class)
protected CompanyPersistence companyPersistence

contactPersistence

@BeanReference(type=ContactPersistence.class)
protected ContactPersistence contactPersistence

countryPersistence

@BeanReference(type=CountryPersistence.class)
protected CountryPersistence countryPersistence

emailAddressPersistence

@BeanReference(type=EmailAddressPersistence.class)
protected EmailAddressPersistence emailAddressPersistence

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

imagePersistence

@BeanReference(type=ImagePersistence.class)
protected ImagePersistence imagePersistence

layoutPersistence

@BeanReference(type=LayoutPersistence.class)
protected LayoutPersistence layoutPersistence

layoutPrototypePersistence

@BeanReference(type=LayoutPrototypePersistence.class)
protected LayoutPrototypePersistence layoutPrototypePersistence

layoutSetPersistence

@BeanReference(type=LayoutSetPersistence.class)
protected LayoutSetPersistence layoutSetPersistence

layoutSetPrototypePersistence

@BeanReference(type=LayoutSetPrototypePersistence.class)
protected LayoutSetPrototypePersistence layoutSetPrototypePersistence

listTypePersistence

@BeanReference(type=ListTypePersistence.class)
protected ListTypePersistence listTypePersistence

lockPersistence

@BeanReference(type=LockPersistence.class)
protected LockPersistence lockPersistence

membershipRequestPersistence

@BeanReference(type=MembershipRequestPersistence.class)
protected MembershipRequestPersistence membershipRequestPersistence

organizationPersistence

@BeanReference(type=OrganizationPersistence.class)
protected OrganizationPersistence organizationPersistence

orgGroupPermissionPersistence

@BeanReference(type=OrgGroupPermissionPersistence.class)
protected OrgGroupPermissionPersistence orgGroupPermissionPersistence

orgGroupRolePersistence

@BeanReference(type=OrgGroupRolePersistence.class)
protected OrgGroupRolePersistence orgGroupRolePersistence

orgLaborPersistence

@BeanReference(type=OrgLaborPersistence.class)
protected OrgLaborPersistence orgLaborPersistence

passwordPolicyPersistence

@BeanReference(type=PasswordPolicyPersistence.class)
protected PasswordPolicyPersistence passwordPolicyPersistence

passwordPolicyRelPersistence

@BeanReference(type=PasswordPolicyRelPersistence.class)
protected PasswordPolicyRelPersistence passwordPolicyRelPersistence

passwordTrackerPersistence

@BeanReference(type=PasswordTrackerPersistence.class)
protected PasswordTrackerPersistence passwordTrackerPersistence

permissionPersistence

@BeanReference(type=PermissionPersistence.class)
protected PermissionPersistence permissionPersistence

phonePersistence

@BeanReference(type=PhonePersistence.class)
protected PhonePersistence phonePersistence

pluginSettingPersistence

@BeanReference(type=PluginSettingPersistence.class)
protected PluginSettingPersistence pluginSettingPersistence

portletPersistence

@BeanReference(type=PortletPersistence.class)
protected PortletPersistence portletPersistence

portletItemPersistence

@BeanReference(type=PortletItemPersistence.class)
protected PortletItemPersistence portletItemPersistence

portletPreferencesPersistence

@BeanReference(type=PortletPreferencesPersistence.class)
protected PortletPreferencesPersistence portletPreferencesPersistence

regionPersistence

@BeanReference(type=RegionPersistence.class)
protected RegionPersistence regionPersistence

releasePersistence

@BeanReference(type=ReleasePersistence.class)
protected ReleasePersistence releasePersistence

resourcePersistence

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

resourceActionPersistence

@BeanReference(type=ResourceActionPersistence.class)
protected ResourceActionPersistence resourceActionPersistence

resourceCodePersistence

@BeanReference(type=ResourceCodePersistence.class)
protected ResourceCodePersistence resourceCodePersistence

resourcePermissionPersistence

@BeanReference(type=ResourcePermissionPersistence.class)
protected ResourcePermissionPersistence resourcePermissionPersistence

rolePersistence

@BeanReference(type=RolePersistence.class)
protected RolePersistence rolePersistence

serviceComponentPersistence

@BeanReference(type=ServiceComponentPersistence.class)
protected ServiceComponentPersistence serviceComponentPersistence

shardPersistence

@BeanReference(type=ShardPersistence.class)
protected ShardPersistence shardPersistence

subscriptionPersistence

@BeanReference(type=SubscriptionPersistence.class)
protected SubscriptionPersistence subscriptionPersistence

ticketPersistence

@BeanReference(type=TicketPersistence.class)
protected TicketPersistence ticketPersistence

teamPersistence

@BeanReference(type=TeamPersistence.class)
protected TeamPersistence teamPersistence

userPersistence

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

userGroupPersistence

@BeanReference(type=UserGroupPersistence.class)
protected UserGroupPersistence userGroupPersistence

userGroupGroupRolePersistence

@BeanReference(type=UserGroupGroupRolePersistence.class)
protected UserGroupGroupRolePersistence userGroupGroupRolePersistence

userGroupRolePersistence

@BeanReference(type=UserGroupRolePersistence.class)
protected UserGroupRolePersistence userGroupRolePersistence

userIdMapperPersistence

@BeanReference(type=UserIdMapperPersistence.class)
protected UserIdMapperPersistence userIdMapperPersistence

userTrackerPersistence

@BeanReference(type=UserTrackerPersistence.class)
protected UserTrackerPersistence userTrackerPersistence

userTrackerPathPersistence

@BeanReference(type=UserTrackerPathPersistence.class)
protected UserTrackerPathPersistence userTrackerPathPersistence

webDAVPropsPersistence

@BeanReference(type=WebDAVPropsPersistence.class)
protected WebDAVPropsPersistence webDAVPropsPersistence

websitePersistence

@BeanReference(type=WebsitePersistence.class)
protected WebsitePersistence websitePersistence

workflowDefinitionLinkPersistence

@BeanReference(type=WorkflowDefinitionLinkPersistence.class)
protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence

workflowInstanceLinkPersistence

@BeanReference(type=WorkflowInstanceLinkPersistence.class)
protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence

dlFolderPersistence

@BeanReference(type=DLFolderPersistence.class)
protected DLFolderPersistence dlFolderPersistence

expandoValuePersistence

@BeanReference(type=ExpandoValuePersistence.class)
protected ExpandoValuePersistence expandoValuePersistence

journalContentSearchPersistence

@BeanReference(type=JournalContentSearchPersistence.class)
protected JournalContentSearchPersistence journalContentSearchPersistence

mbMessagePersistence

@BeanReference(type=MBMessagePersistence.class)
protected MBMessagePersistence mbMessagePersistence

ratingsStatsPersistence

@BeanReference(type=RatingsStatsPersistence.class)
protected RatingsStatsPersistence ratingsStatsPersistence

tasksProposalPersistence

@BeanReference(type=TasksProposalPersistence.class)
protected TasksProposalPersistence tasksProposalPersistence
Constructor Detail

LayoutPersistenceImpl

public LayoutPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(Layout layout)
Caches the layout in the entity cache if it is enabled.

Specified by:
cacheResult in interface LayoutPersistence
Parameters:
layout - the layout to cache

cacheResult

public void cacheResult(List<Layout> layouts)
Caches the layouts in the entity cache if it is enabled.

Specified by:
cacheResult in interface LayoutPersistence
Parameters:
layouts - the layouts to cache

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(Layout layout)
Clears the cache for the layout.

The EntityCache and FinderCache are both cleared by this method.

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

create

public Layout create(long plid)
Creates a new layout with the primary key. Does not add the layout to the database.

Specified by:
create in interface LayoutPersistence
Parameters:
plid - the primary key for the new layout
Returns:
the new layout

remove

public Layout remove(Serializable primaryKey)
              throws NoSuchModelException,
                     SystemException
Removes the layout with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<Layout>
Overrides:
remove in class BasePersistenceImpl<Layout>
Parameters:
primaryKey - the primary key of the layout to remove
Returns:
the layout that was removed
Throws:
NoSuchModelException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

remove

public Layout remove(long plid)
              throws NoSuchLayoutException,
                     SystemException
Removes the layout with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface LayoutPersistence
Parameters:
plid - the primary key of the layout to remove
Returns:
the layout that was removed
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

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

updateImpl

public Layout updateImpl(Layout layout,
                         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 LayoutPersistence
Overrides:
updateImpl in class BasePersistenceImpl<Layout>
Parameters:
layout - 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 Layout toUnwrappedModel(Layout layout)

findByPrimaryKey

public Layout findByPrimaryKey(Serializable primaryKey)
                        throws NoSuchModelException,
                               SystemException
Finds the layout with the primary key or throws a NoSuchModelException if it could not be found.

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

findByPrimaryKey

public Layout findByPrimaryKey(long plid)
                        throws NoSuchLayoutException,
                               SystemException
Finds the layout with the primary key or throws a NoSuchLayoutException if it could not be found.

Specified by:
findByPrimaryKey in interface LayoutPersistence
Parameters:
plid - the primary key of the layout to find
Returns:
the layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public Layout fetchByPrimaryKey(Serializable primaryKey)
                         throws SystemException
Finds the layout with the primary key or returns null if it could not be found.

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

fetchByPrimaryKey

public Layout fetchByPrimaryKey(long plid)
                         throws SystemException
Finds the layout with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface LayoutPersistence
Parameters:
plid - the primary key of the layout to find
Returns:
the layout, or null if a layout with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUuid

public List<Layout> findByUuid(String uuid)
                        throws SystemException
Finds all the layouts where uuid = ?.

Specified by:
findByUuid in interface LayoutPersistence
Parameters:
uuid - the uuid to search with
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByUuid

public List<Layout> findByUuid(String uuid,
                               int start,
                               int end)
                        throws SystemException
Finds a range of all the 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.

Specified by:
findByUuid in interface LayoutPersistence
Parameters:
uuid - the uuid to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByUuid

public List<Layout> findByUuid(String uuid,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                        throws SystemException
Finds an ordered range of all the 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.

Specified by:
findByUuid in interface LayoutPersistence
Parameters:
uuid - the uuid to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByUuid_First

public Layout findByUuid_First(String uuid,
                               OrderByComparator orderByComparator)
                        throws NoSuchLayoutException,
                               SystemException
Finds the first layout 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 LayoutPersistence
Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByUuid_Last

public Layout findByUuid_Last(String uuid,
                              OrderByComparator orderByComparator)
                       throws NoSuchLayoutException,
                              SystemException
Finds the last layout 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 LayoutPersistence
Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public Layout[] findByUuid_PrevAndNext(long plid,
                                       String uuid,
                                       OrderByComparator orderByComparator)
                                throws NoSuchLayoutException,
                                       SystemException
Finds the layouts before and after the current layout 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 LayoutPersistence
Parameters:
plid - the primary key of the current layout
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

getByUuid_PrevAndNext

protected Layout getByUuid_PrevAndNext(Session session,
                                       Layout layout,
                                       String uuid,
                                       OrderByComparator orderByComparator,
                                       boolean previous)

findByUUID_G

public Layout findByUUID_G(String uuid,
                           long groupId)
                    throws NoSuchLayoutException,
                           SystemException
Finds the layout where uuid = ? and groupId = ? or throws a NoSuchLayoutException if it could not be found.

Specified by:
findByUUID_G in interface LayoutPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByUUID_G

public Layout fetchByUUID_G(String uuid,
                            long groupId)
                     throws SystemException
Finds the layout where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByUUID_G in interface LayoutPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

public Layout fetchByUUID_G(String uuid,
                            long groupId,
                            boolean retrieveFromCache)
                     throws SystemException
Finds the 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 LayoutPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<Layout> findByGroupId(long groupId)
                           throws SystemException
Finds all the layouts where groupId = ?.

Specified by:
findByGroupId in interface LayoutPersistence
Parameters:
groupId - the group id to search with
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<Layout> findByGroupId(long groupId,
                                  int start,
                                  int end)
                           throws SystemException
Finds a range of all the layouts 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 LayoutPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<Layout> findByGroupId(long groupId,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Finds an ordered range of all the layouts 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 LayoutPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public Layout findByGroupId_First(long groupId,
                                  OrderByComparator orderByComparator)
                           throws NoSuchLayoutException,
                                  SystemException
Finds the first layout 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 LayoutPersistence
Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public Layout findByGroupId_Last(long groupId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchLayoutException,
                                 SystemException
Finds the last layout 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 LayoutPersistence
Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public Layout[] findByGroupId_PrevAndNext(long plid,
                                          long groupId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchLayoutException,
                                          SystemException
Finds the layouts before and after the current layout 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 LayoutPersistence
Parameters:
plid - the primary key of the current layout
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

getByGroupId_PrevAndNext

protected Layout getByGroupId_PrevAndNext(Session session,
                                          Layout layout,
                                          long groupId,
                                          OrderByComparator orderByComparator,
                                          boolean previous)

findByCompanyId

public List<Layout> findByCompanyId(long companyId)
                             throws SystemException
Finds all the layouts where companyId = ?.

Specified by:
findByCompanyId in interface LayoutPersistence
Parameters:
companyId - the company id to search with
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<Layout> findByCompanyId(long companyId,
                                    int start,
                                    int end)
                             throws SystemException
Finds a range of all the layouts where 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.

Specified by:
findByCompanyId in interface LayoutPersistence
Parameters:
companyId - the company id to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<Layout> findByCompanyId(long companyId,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Finds an ordered range of all the layouts where 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.

Specified by:
findByCompanyId in interface LayoutPersistence
Parameters:
companyId - the company id to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public Layout findByCompanyId_First(long companyId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchLayoutException,
                                    SystemException
Finds the first layout in the ordered set where 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.

Specified by:
findByCompanyId_First in interface LayoutPersistence
Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

public Layout findByCompanyId_Last(long companyId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchLayoutException,
                                   SystemException
Finds the last layout in the ordered set where 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.

Specified by:
findByCompanyId_Last in interface LayoutPersistence
Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public Layout[] findByCompanyId_PrevAndNext(long plid,
                                            long companyId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchLayoutException,
                                            SystemException
Finds the layouts before and after the current layout in the ordered set where 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.

Specified by:
findByCompanyId_PrevAndNext in interface LayoutPersistence
Parameters:
plid - the primary key of the current layout
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected Layout getByCompanyId_PrevAndNext(Session session,
                                            Layout layout,
                                            long companyId,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

findByDLFolderId

public Layout findByDLFolderId(long dlFolderId)
                        throws NoSuchLayoutException,
                               SystemException
Finds the layout where dlFolderId = ? or throws a NoSuchLayoutException if it could not be found.

Specified by:
findByDLFolderId in interface LayoutPersistence
Parameters:
dlFolderId - the dl folder id to search with
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByDLFolderId

public Layout fetchByDLFolderId(long dlFolderId)
                         throws SystemException
Finds the layout where dlFolderId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByDLFolderId in interface LayoutPersistence
Parameters:
dlFolderId - the dl folder id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByDLFolderId

public Layout fetchByDLFolderId(long dlFolderId,
                                boolean retrieveFromCache)
                         throws SystemException
Finds the layout where dlFolderId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByDLFolderId in interface LayoutPersistence
Parameters:
dlFolderId - the dl folder id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByIconImageId

public Layout findByIconImageId(long iconImageId)
                         throws NoSuchLayoutException,
                                SystemException
Finds the layout where iconImageId = ? or throws a NoSuchLayoutException if it could not be found.

Specified by:
findByIconImageId in interface LayoutPersistence
Parameters:
iconImageId - the icon image id to search with
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByIconImageId

public Layout fetchByIconImageId(long iconImageId)
                          throws SystemException
Finds the layout where iconImageId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByIconImageId in interface LayoutPersistence
Parameters:
iconImageId - the icon image id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByIconImageId

public Layout fetchByIconImageId(long iconImageId,
                                 boolean retrieveFromCache)
                          throws SystemException
Finds the layout where iconImageId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByIconImageId in interface LayoutPersistence
Parameters:
iconImageId - the icon image id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P

public List<Layout> findByG_P(long groupId,
                              boolean privateLayout)
                       throws SystemException
Finds all the layouts where groupId = ? and privateLayout = ?.

Specified by:
findByG_P in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P

public List<Layout> findByG_P(long groupId,
                              boolean privateLayout,
                              int start,
                              int end)
                       throws SystemException
Finds a range of all the layouts where groupId = ? and privateLayout = ?.

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_P in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P

public List<Layout> findByG_P(long groupId,
                              boolean privateLayout,
                              int start,
                              int end,
                              OrderByComparator orderByComparator)
                       throws SystemException
Finds an ordered range of all the layouts where groupId = ? and privateLayout = ?.

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_P in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_First

public Layout findByG_P_First(long groupId,
                              boolean privateLayout,
                              OrderByComparator orderByComparator)
                       throws NoSuchLayoutException,
                              SystemException
Finds the first layout in the ordered set where groupId = ? and privateLayout = ?.

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_P_First in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_Last

public Layout findByG_P_Last(long groupId,
                             boolean privateLayout,
                             OrderByComparator orderByComparator)
                      throws NoSuchLayoutException,
                             SystemException
Finds the last layout in the ordered set where groupId = ? and privateLayout = ?.

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_P_Last in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_PrevAndNext

public Layout[] findByG_P_PrevAndNext(long plid,
                                      long groupId,
                                      boolean privateLayout,
                                      OrderByComparator orderByComparator)
                               throws NoSuchLayoutException,
                                      SystemException
Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ?.

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_P_PrevAndNext in interface LayoutPersistence
Parameters:
plid - the primary key of the current layout
groupId - the group id to search with
privateLayout - the private layout to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

getByG_P_PrevAndNext

protected Layout getByG_P_PrevAndNext(Session session,
                                      Layout layout,
                                      long groupId,
                                      boolean privateLayout,
                                      OrderByComparator orderByComparator,
                                      boolean previous)

findByG_P_L

public Layout findByG_P_L(long groupId,
                          boolean privateLayout,
                          long layoutId)
                   throws NoSuchLayoutException,
                          SystemException
Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or throws a NoSuchLayoutException if it could not be found.

Specified by:
findByG_P_L in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
layoutId - the layout id to search with
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_L

public Layout fetchByG_P_L(long groupId,
                           boolean privateLayout,
                           long layoutId)
                    throws SystemException
Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_P_L in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
layoutId - the layout id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_P_L

public Layout fetchByG_P_L(long groupId,
                           boolean privateLayout,
                           long layoutId,
                           boolean retrieveFromCache)
                    throws SystemException
Finds the layout where groupId = ? and privateLayout = ? and layoutId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_P_L in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
layoutId - the layout id to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_P

public List<Layout> findByG_P_P(long groupId,
                                boolean privateLayout,
                                long parentLayoutId)
                         throws SystemException
Finds all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Specified by:
findByG_P_P in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_P

public List<Layout> findByG_P_P(long groupId,
                                boolean privateLayout,
                                long parentLayoutId,
                                int start,
                                int end)
                         throws SystemException
Finds a range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.

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_P_P in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_P

public List<Layout> findByG_P_P(long groupId,
                                boolean privateLayout,
                                long parentLayoutId,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Finds an ordered range of all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.

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_P_P in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_P_First

public Layout findByG_P_P_First(long groupId,
                                boolean privateLayout,
                                long parentLayoutId,
                                OrderByComparator orderByComparator)
                         throws NoSuchLayoutException,
                                SystemException
Finds the first layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.

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_P_P_First in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_P_Last

public Layout findByG_P_P_Last(long groupId,
                               boolean privateLayout,
                               long parentLayoutId,
                               OrderByComparator orderByComparator)
                        throws NoSuchLayoutException,
                               SystemException
Finds the last layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.

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_P_P_Last in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_P_PrevAndNext

public Layout[] findByG_P_P_PrevAndNext(long plid,
                                        long groupId,
                                        boolean privateLayout,
                                        long parentLayoutId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchLayoutException,
                                        SystemException
Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and parentLayoutId = ?.

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_P_P_PrevAndNext in interface LayoutPersistence
Parameters:
plid - the primary key of the current layout
groupId - the group id to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

getByG_P_P_PrevAndNext

protected Layout getByG_P_P_PrevAndNext(Session session,
                                        Layout layout,
                                        long groupId,
                                        boolean privateLayout,
                                        long parentLayoutId,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

findByG_P_F

public Layout findByG_P_F(long groupId,
                          boolean privateLayout,
                          String friendlyURL)
                   throws NoSuchLayoutException,
                          SystemException
Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or throws a NoSuchLayoutException if it could not be found.

Specified by:
findByG_P_F in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
friendlyURL - the friendly u r l to search with
Returns:
the matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

fetchByG_P_F

public Layout fetchByG_P_F(long groupId,
                           boolean privateLayout,
                           String friendlyURL)
                    throws SystemException
Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_P_F in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
friendlyURL - the friendly u r l to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_P_F

public Layout fetchByG_P_F(long groupId,
                           boolean privateLayout,
                           String friendlyURL,
                           boolean retrieveFromCache)
                    throws SystemException
Finds the layout where groupId = ? and privateLayout = ? and friendlyURL = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_P_F in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
friendlyURL - the friendly u r l to search with
Returns:
the matching layout, or null if a matching layout could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_T

public List<Layout> findByG_P_T(long groupId,
                                boolean privateLayout,
                                String type)
                         throws SystemException
Finds all the layouts where groupId = ? and privateLayout = ? and type = ?.

Specified by:
findByG_P_T in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
type - the type to search with
Returns:
the matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_T

public List<Layout> findByG_P_T(long groupId,
                                boolean privateLayout,
                                String type,
                                int start,
                                int end)
                         throws SystemException
Finds a range of all the layouts where groupId = ? and privateLayout = ? and type = ?.

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_P_T in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
type - the type to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_T

public List<Layout> findByG_P_T(long groupId,
                                boolean privateLayout,
                                String type,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Finds an ordered range of all the layouts where groupId = ? and privateLayout = ? and type = ?.

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_P_T in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
type - the type to search with
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching layouts
Throws:
SystemException - if a system exception occurred

findByG_P_T_First

public Layout findByG_P_T_First(long groupId,
                                boolean privateLayout,
                                String type,
                                OrderByComparator orderByComparator)
                         throws NoSuchLayoutException,
                                SystemException
Finds the first layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.

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_P_T_First in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_T_Last

public Layout findByG_P_T_Last(long groupId,
                               boolean privateLayout,
                               String type,
                               OrderByComparator orderByComparator)
                        throws NoSuchLayoutException,
                               SystemException
Finds the last layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.

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_P_T_Last in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching layout
Throws:
NoSuchLayoutException - if a matching layout could not be found
SystemException - if a system exception occurred

findByG_P_T_PrevAndNext

public Layout[] findByG_P_T_PrevAndNext(long plid,
                                        long groupId,
                                        boolean privateLayout,
                                        String type,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchLayoutException,
                                        SystemException
Finds the layouts before and after the current layout in the ordered set where groupId = ? and privateLayout = ? and type = ?.

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_P_T_PrevAndNext in interface LayoutPersistence
Parameters:
plid - the primary key of the current layout
groupId - the group id to search with
privateLayout - the private layout to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next layout
Throws:
NoSuchLayoutException - if a layout with the primary key could not be found
SystemException - if a system exception occurred

getByG_P_T_PrevAndNext

protected Layout getByG_P_T_PrevAndNext(Session session,
                                        Layout layout,
                                        long groupId,
                                        boolean privateLayout,
                                        String type,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

findAll

public List<Layout> findAll()
                     throws SystemException
Finds all the layouts.

Specified by:
findAll in interface LayoutPersistence
Returns:
the layouts
Throws:
SystemException - if a system exception occurred

findAll

public List<Layout> findAll(int start,
                            int end)
                     throws SystemException
Finds a range of all the 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.

Specified by:
findAll in interface LayoutPersistence
Parameters:
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
Returns:
the range of layouts
Throws:
SystemException - if a system exception occurred

findAll

public List<Layout> findAll(int start,
                            int end,
                            OrderByComparator orderByComparator)
                     throws SystemException
Finds an ordered range of all the 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.

Specified by:
findAll in interface LayoutPersistence
Parameters:
start - the lower bound of the range of layouts to return
end - the upper bound of the range of layouts to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of layouts
Throws:
SystemException - if a system exception occurred

removeByUuid

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

Specified by:
removeByUuid in interface LayoutPersistence
Parameters:
uuid - the uuid to search with
Throws:
SystemException - if a system exception occurred

removeByUUID_G

public void removeByUUID_G(String uuid,
                           long groupId)
                    throws NoSuchLayoutException,
                           SystemException
Removes the layout where uuid = ? and groupId = ? from the database.

Specified by:
removeByUUID_G in interface LayoutPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByGroupId

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

Specified by:
removeByGroupId in interface LayoutPersistence
Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the layouts where companyId = ? from the database.

Specified by:
removeByCompanyId in interface LayoutPersistence
Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByDLFolderId

public void removeByDLFolderId(long dlFolderId)
                        throws NoSuchLayoutException,
                               SystemException
Removes the layout where dlFolderId = ? from the database.

Specified by:
removeByDLFolderId in interface LayoutPersistence
Parameters:
dlFolderId - the dl folder id to search with
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByIconImageId

public void removeByIconImageId(long iconImageId)
                         throws NoSuchLayoutException,
                                SystemException
Removes the layout where iconImageId = ? from the database.

Specified by:
removeByIconImageId in interface LayoutPersistence
Parameters:
iconImageId - the icon image id to search with
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByG_P

public void removeByG_P(long groupId,
                        boolean privateLayout)
                 throws SystemException
Removes all the layouts where groupId = ? and privateLayout = ? from the database.

Specified by:
removeByG_P in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
Throws:
SystemException - if a system exception occurred

removeByG_P_L

public void removeByG_P_L(long groupId,
                          boolean privateLayout,
                          long layoutId)
                   throws NoSuchLayoutException,
                          SystemException
Removes the layout where groupId = ? and privateLayout = ? and layoutId = ? from the database.

Specified by:
removeByG_P_L in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
layoutId - the layout id to search with
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByG_P_P

public void removeByG_P_P(long groupId,
                          boolean privateLayout,
                          long parentLayoutId)
                   throws SystemException
Removes all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ? from the database.

Specified by:
removeByG_P_P in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
Throws:
SystemException - if a system exception occurred

removeByG_P_F

public void removeByG_P_F(long groupId,
                          boolean privateLayout,
                          String friendlyURL)
                   throws NoSuchLayoutException,
                          SystemException
Removes the layout where groupId = ? and privateLayout = ? and friendlyURL = ? from the database.

Specified by:
removeByG_P_F in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
friendlyURL - the friendly u r l to search with
Throws:
SystemException - if a system exception occurred
NoSuchLayoutException

removeByG_P_T

public void removeByG_P_T(long groupId,
                          boolean privateLayout,
                          String type)
                   throws SystemException
Removes all the layouts where groupId = ? and privateLayout = ? and type = ? from the database.

Specified by:
removeByG_P_T in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws SystemException
Removes all the layouts from the database.

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

countByUuid

public int countByUuid(String uuid)
                throws SystemException
Counts all the layouts where uuid = ?.

Specified by:
countByUuid in interface LayoutPersistence
Parameters:
uuid - the uuid to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByUUID_G

public int countByUUID_G(String uuid,
                         long groupId)
                  throws SystemException
Counts all the layouts where uuid = ? and groupId = ?.

Specified by:
countByUUID_G in interface LayoutPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByGroupId

public int countByGroupId(long groupId)
                   throws SystemException
Counts all the layouts where groupId = ?.

Specified by:
countByGroupId in interface LayoutPersistence
Parameters:
groupId - the group id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws SystemException
Counts all the layouts where companyId = ?.

Specified by:
countByCompanyId in interface LayoutPersistence
Parameters:
companyId - the company id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByDLFolderId

public int countByDLFolderId(long dlFolderId)
                      throws SystemException
Counts all the layouts where dlFolderId = ?.

Specified by:
countByDLFolderId in interface LayoutPersistence
Parameters:
dlFolderId - the dl folder id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByIconImageId

public int countByIconImageId(long iconImageId)
                       throws SystemException
Counts all the layouts where iconImageId = ?.

Specified by:
countByIconImageId in interface LayoutPersistence
Parameters:
iconImageId - the icon image id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByG_P

public int countByG_P(long groupId,
                      boolean privateLayout)
               throws SystemException
Counts all the layouts where groupId = ? and privateLayout = ?.

Specified by:
countByG_P in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByG_P_L

public int countByG_P_L(long groupId,
                        boolean privateLayout,
                        long layoutId)
                 throws SystemException
Counts all the layouts where groupId = ? and privateLayout = ? and layoutId = ?.

Specified by:
countByG_P_L in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
layoutId - the layout id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByG_P_P

public int countByG_P_P(long groupId,
                        boolean privateLayout,
                        long parentLayoutId)
                 throws SystemException
Counts all the layouts where groupId = ? and privateLayout = ? and parentLayoutId = ?.

Specified by:
countByG_P_P in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
parentLayoutId - the parent layout id to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByG_P_F

public int countByG_P_F(long groupId,
                        boolean privateLayout,
                        String friendlyURL)
                 throws SystemException
Counts all the layouts where groupId = ? and privateLayout = ? and friendlyURL = ?.

Specified by:
countByG_P_F in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
friendlyURL - the friendly u r l to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countByG_P_T

public int countByG_P_T(long groupId,
                        boolean privateLayout,
                        String type)
                 throws SystemException
Counts all the layouts where groupId = ? and privateLayout = ? and type = ?.

Specified by:
countByG_P_T in interface LayoutPersistence
Parameters:
groupId - the group id to search with
privateLayout - the private layout to search with
type - the type to search with
Returns:
the number of matching layouts
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Counts all the layouts.

Specified by:
countAll in interface LayoutPersistence
Returns:
the number of layouts
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the layout persistence.


Liferay 6.0.5