Class WebDAVPropsUtil
com.liferay.portal.service.persistence.impl.WebDAVPropsPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(WebDAVProps webDAVProps) Caches the web dav props in the entity cache if it is enabled.static void
cacheResult
(List<WebDAVProps> webDAVPropses) Caches the web dav propses in the entity cache if it is enabled.static void
static void
clearCache
(WebDAVProps webDAVProps) static int
countAll()
Returns the number of web dav propses.static int
countByC_C
(long classNameId, long classPK) Returns the number of web dav propses where classNameId = ? and classPK = ?.static long
countWithDynamicQuery
(DynamicQuery dynamicQuery) static WebDAVProps
create
(long webDavPropsId) Creates a new web dav props with the primary key.static WebDAVProps
fetchByC_C
(long classNameId, long classPK) Returns the web dav props where classNameId = ? and classPK = ? or returnsnull
if it could not be found.static WebDAVProps
fetchByC_C
(long classNameId, long classPK, boolean useFinderCache) Returns the web dav props where classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.static WebDAVProps
fetchByPrimaryKey
(long webDavPropsId) Returns the web dav props with the primary key or returnsnull
if it could not be found.static Map<Serializable,
WebDAVProps> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<WebDAVProps>
findAll()
Returns all the web dav propses.static List<WebDAVProps>
findAll
(int start, int end) Returns a range of all the web dav propses.static List<WebDAVProps>
findAll
(int start, int end, OrderByComparator<WebDAVProps> orderByComparator) Returns an ordered range of all the web dav propses.static List<WebDAVProps>
findAll
(int start, int end, OrderByComparator<WebDAVProps> orderByComparator, boolean useFinderCache) Returns an ordered range of all the web dav propses.static WebDAVProps
findByC_C
(long classNameId, long classPK) Returns the web dav props where classNameId = ? and classPK = ? or throws aNoSuchWebDAVPropsException
if it could not be found.static WebDAVProps
findByPrimaryKey
(long webDavPropsId) Returns the web dav props with the primary key or throws aNoSuchWebDAVPropsException
if it could not be found.static List<WebDAVProps>
findWithDynamicQuery
(DynamicQuery dynamicQuery) static List<WebDAVProps>
findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end) static List<WebDAVProps>
findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<WebDAVProps> orderByComparator) static WebDAVPropsPersistence
static WebDAVProps
remove
(long webDavPropsId) Removes the web dav props with the primary key from the database.static void
Removes all the web dav propses from the database.static WebDAVProps
removeByC_C
(long classNameId, long classPK) Removes the web dav props where classNameId = ? and classPK = ? from the database.static void
setPersistence
(WebDAVPropsPersistence persistence) static WebDAVProps
update
(WebDAVProps webDAVProps) static WebDAVProps
update
(WebDAVProps webDAVProps, ServiceContext serviceContext) static WebDAVProps
updateImpl
(WebDAVProps webDAVProps)
-
Constructor Details
-
WebDAVPropsUtil
public WebDAVPropsUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<WebDAVProps> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<WebDAVProps> orderByComparator) -
update
-
update
-
findByC_C
public static WebDAVProps findByC_C(long classNameId, long classPK) throws NoSuchWebDAVPropsException Returns the web dav props where classNameId = ? and classPK = ? or throws aNoSuchWebDAVPropsException
if it could not be found.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching web dav props
- Throws:
NoSuchWebDAVPropsException
- if a matching web dav props could not be foundNoSuchWebDAVPropsException
-
fetchByC_C
Returns the web dav props where classNameId = ? and classPK = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching web dav props, or
null
if a matching web dav props could not be found
-
fetchByC_C
Returns the web dav props where classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cache- Returns:
- the matching web dav props, or
null
if a matching web dav props could not be found
-
removeByC_C
public static WebDAVProps removeByC_C(long classNameId, long classPK) throws NoSuchWebDAVPropsException Removes the web dav props where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the web dav props that was removed
- Throws:
NoSuchWebDAVPropsException
-
countByC_C
public static int countByC_C(long classNameId, long classPK) Returns the number of web dav propses where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching web dav propses
-
cacheResult
Caches the web dav props in the entity cache if it is enabled.- Parameters:
webDAVProps
- the web dav props
-
cacheResult
Caches the web dav propses in the entity cache if it is enabled.- Parameters:
webDAVPropses
- the web dav propses
-
create
Creates a new web dav props with the primary key. Does not add the web dav props to the database.- Parameters:
webDavPropsId
- the primary key for the new web dav props- Returns:
- the new web dav props
-
remove
Removes the web dav props with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
webDavPropsId
- the primary key of the web dav props- Returns:
- the web dav props that was removed
- Throws:
NoSuchWebDAVPropsException
- if a web dav props with the primary key could not be foundNoSuchWebDAVPropsException
-
updateImpl
-
findByPrimaryKey
Returns the web dav props with the primary key or throws aNoSuchWebDAVPropsException
if it could not be found.- Parameters:
webDavPropsId
- the primary key of the web dav props- Returns:
- the web dav props
- Throws:
NoSuchWebDAVPropsException
- if a web dav props with the primary key could not be foundNoSuchWebDAVPropsException
-
fetchByPrimaryKey
Returns the web dav props with the primary key or returnsnull
if it could not be found.- Parameters:
webDavPropsId
- the primary key of the web dav props- Returns:
- the web dav props, or
null
if a web dav props with the primary key could not be found
-
findAll
Returns all the web dav propses.- Returns:
- the web dav propses
-
findAll
Returns a range of all the web dav propses.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromWebDAVPropsModelImpl
.- Parameters:
start
- the lower bound of the range of web dav propsesend
- the upper bound of the range of web dav propses (not inclusive)- Returns:
- the range of web dav propses
-
findAll
public static List<WebDAVProps> findAll(int start, int end, OrderByComparator<WebDAVProps> orderByComparator) Returns an ordered range of all the web dav propses.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromWebDAVPropsModelImpl
.- Parameters:
start
- the lower bound of the range of web dav propsesend
- the upper bound of the range of web dav propses (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of web dav propses
-
findAll
public static List<WebDAVProps> findAll(int start, int end, OrderByComparator<WebDAVProps> orderByComparator, boolean useFinderCache) Returns an ordered range of all the web dav propses.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromWebDAVPropsModelImpl
.- Parameters:
start
- the lower bound of the range of web dav propsesend
- the upper bound of the range of web dav propses (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of web dav propses
-
removeAll
public static void removeAll()Removes all the web dav propses from the database. -
countAll
public static int countAll()Returns the number of web dav propses.- Returns:
- the number of web dav propses
-
getPersistence
-
setPersistence
-