@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface SegmentsEntryLocalService extends BaseLocalService, CTService<SegmentsEntry>, PersistedModelLocalService
SegmentsEntryLocalServiceUtil| Modifier and Type | Method and Description |
|---|---|
SegmentsEntry |
addSegmentsEntry(SegmentsEntry segmentsEntry)
Adds the segments entry to the database.
|
SegmentsEntry |
addSegmentsEntry(java.lang.String segmentsEntryKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
boolean active,
java.lang.String criteria,
java.lang.String type,
ServiceContext serviceContext) |
SegmentsEntry |
addSegmentsEntry(java.lang.String segmentsEntryKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
boolean active,
java.lang.String criteria,
java.lang.String source,
java.lang.String type,
ServiceContext serviceContext) |
void |
addSegmentsEntryClassPKs(long segmentsEntryId,
long[] classPKs,
ServiceContext serviceContext) |
PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
SegmentsEntry |
createSegmentsEntry(long segmentsEntryId)
Creates a new segments entry with the primary key.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
void |
deleteSegmentsEntries(long groupId) |
void |
deleteSegmentsEntries(java.lang.String source) |
SegmentsEntry |
deleteSegmentsEntry(long segmentsEntryId)
Deletes the segments entry with the primary key from the database.
|
SegmentsEntry |
deleteSegmentsEntry(SegmentsEntry segmentsEntry)
Deletes the segments entry from the database.
|
void |
deleteSegmentsEntryClassPKs(long segmentsEntryId,
long[] classPKs) |
<T> T |
dslQuery(DSLQuery dslQuery) |
DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
SegmentsEntry |
fetchSegmentsEntry(long segmentsEntryId) |
SegmentsEntry |
fetchSegmentsEntry(long groupId,
java.lang.String segmentsEntryKey,
boolean includeAncestorSegmentsEntries) |
SegmentsEntry |
fetchSegmentsEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the segments entry matching the UUID and group.
|
ActionableDynamicQuery |
getActionableDynamicQuery() |
CTPersistence<SegmentsEntry> |
getCTPersistence() |
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.Class<SegmentsEntry> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.util.List<SegmentsEntry> |
getSegmentsEntries(int start,
int end)
Returns a range of all the segments entries.
|
java.util.List<SegmentsEntry> |
getSegmentsEntries(long groupId,
boolean includeAncestorSegmentsEntries,
int start,
int end,
OrderByComparator<SegmentsEntry> orderByComparator) |
java.util.List<SegmentsEntry> |
getSegmentsEntries(long groupId,
boolean active,
java.lang.String type,
int start,
int end,
OrderByComparator<SegmentsEntry> orderByComparator) |
java.util.List<SegmentsEntry> |
getSegmentsEntries(long groupId,
boolean active,
java.lang.String source,
java.lang.String type,
int start,
int end,
OrderByComparator<SegmentsEntry> orderByComparator) |
java.util.List<SegmentsEntry> |
getSegmentsEntriesBySource(java.lang.String source,
int start,
int end,
OrderByComparator<SegmentsEntry> orderByComparator) |
java.util.List<SegmentsEntry> |
getSegmentsEntriesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the segments entries matching the UUID and company.
|
java.util.List<SegmentsEntry> |
getSegmentsEntriesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<SegmentsEntry> orderByComparator)
Returns a range of segments entries matching the UUID and company.
|
int |
getSegmentsEntriesCount()
Returns the number of segments entries.
|
int |
getSegmentsEntriesCount(long groupId,
boolean includeAncestorSegmentsEntries) |
SegmentsEntry |
getSegmentsEntry(long segmentsEntryId)
Returns the segments entry with the primary key.
|
SegmentsEntry |
getSegmentsEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the segments entry matching the UUID and group.
|
BaseModelSearchResult<SegmentsEntry> |
searchSegmentsEntries(long companyId,
long groupId,
java.lang.String keywords,
boolean includeAncestorSegmentsEntries,
int start,
int end,
Sort sort)
Deprecated.
As of Athanasius (7.3.x), replaced by
searchSegmentsEntries(long, long, String, boolean,
LinkedHashMap, int, int, Sort) |
BaseModelSearchResult<SegmentsEntry> |
searchSegmentsEntries(long companyId,
long groupId,
java.lang.String keywords,
boolean includeAncestorSegmentsEntries,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
Sort sort) |
BaseModelSearchResult<SegmentsEntry> |
searchSegmentsEntries(SearchContext searchContext) |
SegmentsEntry |
updateSegmentsEntry(long segmentsEntryId,
java.lang.String segmentsEntryKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
boolean active,
java.lang.String criteria,
ServiceContext serviceContext) |
SegmentsEntry |
updateSegmentsEntry(SegmentsEntry segmentsEntry)
Updates the segments entry in the database or adds it if it does not yet exist.
|
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(UnsafeFunction<CTPersistence<SegmentsEntry>,R,E> updateUnsafeFunction) |
getBasePersistence@Indexable(type=REINDEX) SegmentsEntry addSegmentsEntry(SegmentsEntry segmentsEntry)
Important: Inspect SegmentsEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
segmentsEntry - the segments entrySegmentsEntry addSegmentsEntry(java.lang.String segmentsEntryKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, boolean active, java.lang.String criteria, java.lang.String type, ServiceContext serviceContext) throws PortalException
PortalException@Indexable(type=REINDEX) SegmentsEntry addSegmentsEntry(java.lang.String segmentsEntryKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, boolean active, java.lang.String criteria, java.lang.String source, java.lang.String type, ServiceContext serviceContext) throws PortalException
PortalExceptionvoid addSegmentsEntryClassPKs(long segmentsEntryId,
long[] classPKs,
ServiceContext serviceContext)
throws PortalException
PortalExceptionPersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
createPersistedModel in interface PersistedModelLocalServicePortalException@Transactional(enabled=false) SegmentsEntry createSegmentsEntry(long segmentsEntryId)
segmentsEntryId - the primary key for the new segments entryPersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface PersistedModelLocalServicePortalExceptionvoid deleteSegmentsEntries(long groupId)
throws PortalException
PortalExceptionvoid deleteSegmentsEntries(java.lang.String source)
throws PortalException
PortalException@Indexable(type=DELETE) SegmentsEntry deleteSegmentsEntry(long segmentsEntryId) throws PortalException
Important: Inspect SegmentsEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
segmentsEntryId - the primary key of the segments entryPortalException - if a segments entry with the primary key could not be found@Indexable(type=DELETE) @SystemEvent(type=1) SegmentsEntry deleteSegmentsEntry(SegmentsEntry segmentsEntry) throws PortalException
Important: Inspect SegmentsEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
segmentsEntry - the segments entryPortalExceptionvoid deleteSegmentsEntryClassPKs(long segmentsEntryId,
long[] classPKs)
throws PortalException
PortalException@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(DSLQuery dslQuery)
@Transactional(propagation=SUPPORTS, readOnly=true) DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsEntryModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsEntryModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) SegmentsEntry fetchSegmentsEntry(long segmentsEntryId)
@Transactional(propagation=SUPPORTS, readOnly=true) SegmentsEntry fetchSegmentsEntry(long groupId, java.lang.String segmentsEntryKey, boolean includeAncestorSegmentsEntries)
@Transactional(propagation=SUPPORTS, readOnly=true) SegmentsEntry fetchSegmentsEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid - the segments entry's UUIDgroupId - the primary key of the groupnull if a matching segments entry could not be found@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface PersistedModelLocalServicePortalException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SegmentsEntry> getSegmentsEntries(int start, int end)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.segments.model.impl.SegmentsEntryModelImpl.
start - the lower bound of the range of segments entriesend - the upper bound of the range of segments entries (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SegmentsEntry> getSegmentsEntries(long groupId, boolean includeAncestorSegmentsEntries, int start, int end, OrderByComparator<SegmentsEntry> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SegmentsEntry> getSegmentsEntries(long groupId, boolean active, java.lang.String type, int start, int end, OrderByComparator<SegmentsEntry> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SegmentsEntry> getSegmentsEntries(long groupId, boolean active, java.lang.String source, java.lang.String type, int start, int end, OrderByComparator<SegmentsEntry> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SegmentsEntry> getSegmentsEntriesBySource(java.lang.String source, int start, int end, OrderByComparator<SegmentsEntry> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SegmentsEntry> getSegmentsEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid - the UUID of the segments entriescompanyId - the primary key of the company@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<SegmentsEntry> getSegmentsEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<SegmentsEntry> orderByComparator)
uuid - the UUID of the segments entriescompanyId - the primary key of the companystart - the lower bound of the range of segments entriesend - the upper bound of the range of segments entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)@Transactional(propagation=SUPPORTS, readOnly=true) int getSegmentsEntriesCount()
@Transactional(propagation=SUPPORTS, readOnly=true) int getSegmentsEntriesCount(long groupId, boolean includeAncestorSegmentsEntries)
@Transactional(propagation=SUPPORTS, readOnly=true) SegmentsEntry getSegmentsEntry(long segmentsEntryId) throws PortalException
segmentsEntryId - the primary key of the segments entryPortalException - if a segments entry with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) SegmentsEntry getSegmentsEntryByUuidAndGroupId(java.lang.String uuid, long groupId) throws PortalException
uuid - the segments entry's UUIDgroupId - the primary key of the groupPortalException - if a matching segments entry could not be found@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) BaseModelSearchResult<SegmentsEntry> searchSegmentsEntries(long companyId, long groupId, java.lang.String keywords, boolean includeAncestorSegmentsEntries, int start, int end, Sort sort) throws PortalException
searchSegmentsEntries(long, long, String, boolean,
LinkedHashMap, int, int, Sort)PortalException@Transactional(propagation=SUPPORTS, readOnly=true) BaseModelSearchResult<SegmentsEntry> searchSegmentsEntries(long companyId, long groupId, java.lang.String keywords, boolean includeAncestorSegmentsEntries, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, Sort sort) throws PortalException
PortalException@Transactional(propagation=SUPPORTS, readOnly=true) BaseModelSearchResult<SegmentsEntry> searchSegmentsEntries(SearchContext searchContext) throws PortalException
PortalException@Indexable(type=REINDEX) SegmentsEntry updateSegmentsEntry(long segmentsEntryId, java.lang.String segmentsEntryKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, boolean active, java.lang.String criteria, ServiceContext serviceContext) throws PortalException
PortalException@Indexable(type=REINDEX) SegmentsEntry updateSegmentsEntry(SegmentsEntry segmentsEntry)
Important: Inspect SegmentsEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
segmentsEntry - the segments entry@Transactional(enabled=false) CTPersistence<SegmentsEntry> getCTPersistence()
getCTPersistence in interface CTService<SegmentsEntry>@Transactional(enabled=false) java.lang.Class<SegmentsEntry> getModelClass()
getModelClass in interface CTService<SegmentsEntry>@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(UnsafeFunction<CTPersistence<SegmentsEntry>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction in interface CTService<SegmentsEntry>E extends java.lang.Throwable