Class JSONStorageEntryUtil

java.lang.Object
com.liferay.json.storage.service.persistence.JSONStorageEntryUtil

public class JSONStorageEntryUtil extends Object
The persistence utility for the json storage entry service. This utility wraps com.liferay.json.storage.service.persistence.impl.JSONStorageEntryPersistenceImpl 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

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cacheResult(JSONStorageEntry jsonStorageEntry)
    Caches the json storage entry in the entity cache if it is enabled.
    static void
    cacheResult(List<JSONStorageEntry> jsonStorageEntries)
    Caches the json storage entries in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(JSONStorageEntry jsonStorageEntry)
     
    static int
    Returns the number of json storage entries.
    static int
    countByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong)
    Returns the number of json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
    static int
    countByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong)
    Returns the number of json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
    static int
    countByCN_CPK(long classNameId, long classPK)
    Returns the number of json storage entries where classNameId = ? and classPK = ?.
    static int
    countByCN_CPK_P_I_K(long classNameId, long classPK, long parentJSONStorageEntryId, int index, String key)
    Returns the number of json storage entries where classNameId = ? and classPK = ? and parentJSONStorageEntryId = ? and index = ? and key = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    create(long jsonStorageEntryId)
    Creates a new json storage entry with the primary key.
    fetchByC_CN_I_T_VL_First(long companyId, long classNameId, int index, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the first json storage entry in the ordered set where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
    fetchByC_CN_I_T_VL_Last(long companyId, long classNameId, int index, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the last json storage entry in the ordered set where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
    fetchByC_CN_K_T_VL_First(long companyId, long classNameId, String key, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the first json storage entry in the ordered set where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
    fetchByC_CN_K_T_VL_Last(long companyId, long classNameId, String key, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the last json storage entry in the ordered set where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
    fetchByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the first json storage entry in the ordered set where classNameId = ? and classPK = ?.
    fetchByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the last json storage entry in the ordered set where classNameId = ? and classPK = ?.
    fetchByCN_CPK_P_I_K(long classNameId, long classPK, long parentJSONStorageEntryId, int index, String key)
    Returns the json storage entry where classNameId = ? and classPK = ? and parentJSONStorageEntryId = ? and index = ? and key = ? or returns null if it could not be found.
    fetchByCN_CPK_P_I_K(long classNameId, long classPK, long parentJSONStorageEntryId, int index, String key, boolean useFinderCache)
    Returns the json storage entry where classNameId = ? and classPK = ? and parentJSONStorageEntryId = ? and index = ? and key = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long jsonStorageEntryId)
    Returns the json storage entry with the primary key or returns null if it could not be found.
     
    Returns all the json storage entries.
    findAll(int start, int end)
    Returns a range of all the json storage entries.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns an ordered range of all the json storage entries.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the json storage entries.
    findByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong)
    Returns all the json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
    findByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong, int start, int end)
    Returns a range of all the json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
    findByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns an ordered range of all the json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
    findByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
    findByC_CN_I_T_VL_First(long companyId, long classNameId, int index, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the first json storage entry in the ordered set where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
    findByC_CN_I_T_VL_Last(long companyId, long classNameId, int index, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the last json storage entry in the ordered set where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
    findByC_CN_I_T_VL_PrevAndNext(long jsonStorageEntryId, long companyId, long classNameId, int index, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the json storage entries before and after the current json storage entry in the ordered set where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
    findByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong)
    Returns all the json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
    findByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong, int start, int end)
    Returns a range of all the json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
    findByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns an ordered range of all the json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
    findByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
    findByC_CN_K_T_VL_First(long companyId, long classNameId, String key, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the first json storage entry in the ordered set where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
    findByC_CN_K_T_VL_Last(long companyId, long classNameId, String key, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the last json storage entry in the ordered set where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
    findByC_CN_K_T_VL_PrevAndNext(long jsonStorageEntryId, long companyId, long classNameId, String key, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the json storage entries before and after the current json storage entry in the ordered set where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
    findByCN_CPK(long classNameId, long classPK)
    Returns all the json storage entries where classNameId = ? and classPK = ?.
    findByCN_CPK(long classNameId, long classPK, int start, int end)
    Returns a range of all the json storage entries where classNameId = ? and classPK = ?.
    findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns an ordered range of all the json storage entries where classNameId = ? and classPK = ?.
    findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the json storage entries where classNameId = ? and classPK = ?.
    findByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the first json storage entry in the ordered set where classNameId = ? and classPK = ?.
    findByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the last json storage entry in the ordered set where classNameId = ? and classPK = ?.
    findByCN_CPK_P_I_K(long classNameId, long classPK, long parentJSONStorageEntryId, int index, String key)
    Returns the json storage entry where classNameId = ? and classPK = ? and parentJSONStorageEntryId = ? and index = ? and key = ? or throws a NoSuchJSONStorageEntryException if it could not be found.
    findByCN_CPK_PrevAndNext(long jsonStorageEntryId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
    Returns the json storage entries before and after the current json storage entry in the ordered set where classNameId = ? and classPK = ?.
    findByPrimaryKey(long jsonStorageEntryId)
    Returns the json storage entry with the primary key or throws a NoSuchJSONStorageEntryException if it could not be found.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
     
     
    remove(long jsonStorageEntryId)
    Removes the json storage entry with the primary key from the database.
    static void
    Removes all the json storage entries from the database.
    static void
    removeByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong)
    Removes all the json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ? from the database.
    static void
    removeByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong)
    Removes all the json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ? from the database.
    static void
    removeByCN_CPK(long classNameId, long classPK)
    Removes all the json storage entries where classNameId = ? and classPK = ? from the database.
    removeByCN_CPK_P_I_K(long classNameId, long classPK, long parentJSONStorageEntryId, int index, String key)
    Removes the json storage entry where classNameId = ? and classPK = ? and parentJSONStorageEntryId = ? and index = ? and key = ? from the database.
    static void
     
    update(JSONStorageEntry jsonStorageEntry)
     
    update(JSONStorageEntry jsonStorageEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    updateImpl(JSONStorageEntry jsonStorageEntry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JSONStorageEntryUtil

      public JSONStorageEntryUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(JSONStorageEntry jsonStorageEntry)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,JSONStorageEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<JSONStorageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<JSONStorageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<JSONStorageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static JSONStorageEntry update(JSONStorageEntry jsonStorageEntry)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static JSONStorageEntry update(JSONStorageEntry jsonStorageEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCN_CPK

      public static List<JSONStorageEntry> findByCN_CPK(long classNameId, long classPK)
      Returns all the json storage entries where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching json storage entries
    • findByCN_CPK

      public static List<JSONStorageEntry> findByCN_CPK(long classNameId, long classPK, int start, int end)
      Returns a range of all the json storage entries where classNameId = ? and classPK = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      Returns:
      the range of matching json storage entries
    • findByCN_CPK

      public static List<JSONStorageEntry> findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      Returns an ordered range of all the json storage entries where classNameId = ? and classPK = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching json storage entries
    • findByCN_CPK

      public static List<JSONStorageEntry> findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the json storage entries where classNameId = ? and classPK = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching json storage entries
    • findByCN_CPK_First

      public static JSONStorageEntry findByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator) throws NoSuchJSONStorageEntryException
      Returns the first json storage entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a matching json storage entry could not be found
      NoSuchJSONStorageEntryException
    • fetchByCN_CPK_First

      public static JSONStorageEntry fetchByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      Returns the first json storage entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching json storage entry, or null if a matching json storage entry could not be found
    • findByCN_CPK_Last

      public static JSONStorageEntry findByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator) throws NoSuchJSONStorageEntryException
      Returns the last json storage entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a matching json storage entry could not be found
      NoSuchJSONStorageEntryException
    • fetchByCN_CPK_Last

      public static JSONStorageEntry fetchByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      Returns the last json storage entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching json storage entry, or null if a matching json storage entry could not be found
    • findByCN_CPK_PrevAndNext

      public static JSONStorageEntry[] findByCN_CPK_PrevAndNext(long jsonStorageEntryId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator) throws NoSuchJSONStorageEntryException
      Returns the json storage entries before and after the current json storage entry in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      jsonStorageEntryId - the primary key of the current json storage entry
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a json storage entry with the primary key could not be found
      NoSuchJSONStorageEntryException
    • removeByCN_CPK

      public static void removeByCN_CPK(long classNameId, long classPK)
      Removes all the json storage entries where classNameId = ? and classPK = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
    • countByCN_CPK

      public static int countByCN_CPK(long classNameId, long classPK)
      Returns the number of json storage entries where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching json storage entries
    • findByC_CN_I_T_VL

      public static List<JSONStorageEntry> findByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong)
      Returns all the json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
      Returns:
      the matching json storage entries
    • findByC_CN_I_T_VL

      public static List<JSONStorageEntry> findByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong, int start, int end)
      Returns a range of all the json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      Returns:
      the range of matching json storage entries
    • findByC_CN_I_T_VL

      public static List<JSONStorageEntry> findByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      Returns an ordered range of all the json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching json storage entries
    • findByC_CN_I_T_VL

      public static List<JSONStorageEntry> findByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching json storage entries
    • findByC_CN_I_T_VL_First

      public static JSONStorageEntry findByC_CN_I_T_VL_First(long companyId, long classNameId, int index, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator) throws NoSuchJSONStorageEntryException
      Returns the first json storage entry in the ordered set where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a matching json storage entry could not be found
      NoSuchJSONStorageEntryException
    • fetchByC_CN_I_T_VL_First

      public static JSONStorageEntry fetchByC_CN_I_T_VL_First(long companyId, long classNameId, int index, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      Returns the first json storage entry in the ordered set where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching json storage entry, or null if a matching json storage entry could not be found
    • findByC_CN_I_T_VL_Last

      public static JSONStorageEntry findByC_CN_I_T_VL_Last(long companyId, long classNameId, int index, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator) throws NoSuchJSONStorageEntryException
      Returns the last json storage entry in the ordered set where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a matching json storage entry could not be found
      NoSuchJSONStorageEntryException
    • fetchByC_CN_I_T_VL_Last

      public static JSONStorageEntry fetchByC_CN_I_T_VL_Last(long companyId, long classNameId, int index, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      Returns the last json storage entry in the ordered set where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching json storage entry, or null if a matching json storage entry could not be found
    • findByC_CN_I_T_VL_PrevAndNext

      public static JSONStorageEntry[] findByC_CN_I_T_VL_PrevAndNext(long jsonStorageEntryId, long companyId, long classNameId, int index, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator) throws NoSuchJSONStorageEntryException
      Returns the json storage entries before and after the current json storage entry in the ordered set where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
      Parameters:
      jsonStorageEntryId - the primary key of the current json storage entry
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a json storage entry with the primary key could not be found
      NoSuchJSONStorageEntryException
    • removeByC_CN_I_T_VL

      public static void removeByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong)
      Removes all the json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ? from the database.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
    • countByC_CN_I_T_VL

      public static int countByC_CN_I_T_VL(long companyId, long classNameId, int index, int type, long valueLong)
      Returns the number of json storage entries where companyId = ? and classNameId = ? and index = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      index - the index
      type - the type
      valueLong - the value long
      Returns:
      the number of matching json storage entries
    • findByC_CN_K_T_VL

      public static List<JSONStorageEntry> findByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong)
      Returns all the json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
      Returns:
      the matching json storage entries
    • findByC_CN_K_T_VL

      public static List<JSONStorageEntry> findByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong, int start, int end)
      Returns a range of all the json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      Returns:
      the range of matching json storage entries
    • findByC_CN_K_T_VL

      public static List<JSONStorageEntry> findByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      Returns an ordered range of all the json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching json storage entries
    • findByC_CN_K_T_VL

      public static List<JSONStorageEntry> findByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching json storage entries
    • findByC_CN_K_T_VL_First

      public static JSONStorageEntry findByC_CN_K_T_VL_First(long companyId, long classNameId, String key, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator) throws NoSuchJSONStorageEntryException
      Returns the first json storage entry in the ordered set where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a matching json storage entry could not be found
      NoSuchJSONStorageEntryException
    • fetchByC_CN_K_T_VL_First

      public static JSONStorageEntry fetchByC_CN_K_T_VL_First(long companyId, long classNameId, String key, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      Returns the first json storage entry in the ordered set where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching json storage entry, or null if a matching json storage entry could not be found
    • findByC_CN_K_T_VL_Last

      public static JSONStorageEntry findByC_CN_K_T_VL_Last(long companyId, long classNameId, String key, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator) throws NoSuchJSONStorageEntryException
      Returns the last json storage entry in the ordered set where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a matching json storage entry could not be found
      NoSuchJSONStorageEntryException
    • fetchByC_CN_K_T_VL_Last

      public static JSONStorageEntry fetchByC_CN_K_T_VL_Last(long companyId, long classNameId, String key, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      Returns the last json storage entry in the ordered set where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching json storage entry, or null if a matching json storage entry could not be found
    • findByC_CN_K_T_VL_PrevAndNext

      public static JSONStorageEntry[] findByC_CN_K_T_VL_PrevAndNext(long jsonStorageEntryId, long companyId, long classNameId, String key, int type, long valueLong, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator) throws NoSuchJSONStorageEntryException
      Returns the json storage entries before and after the current json storage entry in the ordered set where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
      Parameters:
      jsonStorageEntryId - the primary key of the current json storage entry
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a json storage entry with the primary key could not be found
      NoSuchJSONStorageEntryException
    • removeByC_CN_K_T_VL

      public static void removeByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong)
      Removes all the json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ? from the database.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
    • countByC_CN_K_T_VL

      public static int countByC_CN_K_T_VL(long companyId, long classNameId, String key, int type, long valueLong)
      Returns the number of json storage entries where companyId = ? and classNameId = ? and key = ? and type = ? and valueLong = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      key - the key
      type - the type
      valueLong - the value long
      Returns:
      the number of matching json storage entries
    • findByCN_CPK_P_I_K

      public static JSONStorageEntry findByCN_CPK_P_I_K(long classNameId, long classPK, long parentJSONStorageEntryId, int index, String key) throws NoSuchJSONStorageEntryException
      Returns the json storage entry where classNameId = ? and classPK = ? and parentJSONStorageEntryId = ? and index = ? and key = ? or throws a NoSuchJSONStorageEntryException if it could not be found.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      parentJSONStorageEntryId - the parent json storage entry ID
      index - the index
      key - the key
      Returns:
      the matching json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a matching json storage entry could not be found
      NoSuchJSONStorageEntryException
    • fetchByCN_CPK_P_I_K

      public static JSONStorageEntry fetchByCN_CPK_P_I_K(long classNameId, long classPK, long parentJSONStorageEntryId, int index, String key)
      Returns the json storage entry where classNameId = ? and classPK = ? and parentJSONStorageEntryId = ? and index = ? and key = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      parentJSONStorageEntryId - the parent json storage entry ID
      index - the index
      key - the key
      Returns:
      the matching json storage entry, or null if a matching json storage entry could not be found
    • fetchByCN_CPK_P_I_K

      public static JSONStorageEntry fetchByCN_CPK_P_I_K(long classNameId, long classPK, long parentJSONStorageEntryId, int index, String key, boolean useFinderCache)
      Returns the json storage entry where classNameId = ? and classPK = ? and parentJSONStorageEntryId = ? and index = ? and key = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      parentJSONStorageEntryId - the parent json storage entry ID
      index - the index
      key - the key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching json storage entry, or null if a matching json storage entry could not be found
    • removeByCN_CPK_P_I_K

      public static JSONStorageEntry removeByCN_CPK_P_I_K(long classNameId, long classPK, long parentJSONStorageEntryId, int index, String key) throws NoSuchJSONStorageEntryException
      Removes the json storage entry where classNameId = ? and classPK = ? and parentJSONStorageEntryId = ? and index = ? and key = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      parentJSONStorageEntryId - the parent json storage entry ID
      index - the index
      key - the key
      Returns:
      the json storage entry that was removed
      Throws:
      NoSuchJSONStorageEntryException
    • countByCN_CPK_P_I_K

      public static int countByCN_CPK_P_I_K(long classNameId, long classPK, long parentJSONStorageEntryId, int index, String key)
      Returns the number of json storage entries where classNameId = ? and classPK = ? and parentJSONStorageEntryId = ? and index = ? and key = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      parentJSONStorageEntryId - the parent json storage entry ID
      index - the index
      key - the key
      Returns:
      the number of matching json storage entries
    • cacheResult

      public static void cacheResult(JSONStorageEntry jsonStorageEntry)
      Caches the json storage entry in the entity cache if it is enabled.
      Parameters:
      jsonStorageEntry - the json storage entry
    • cacheResult

      public static void cacheResult(List<JSONStorageEntry> jsonStorageEntries)
      Caches the json storage entries in the entity cache if it is enabled.
      Parameters:
      jsonStorageEntries - the json storage entries
    • create

      public static JSONStorageEntry create(long jsonStorageEntryId)
      Creates a new json storage entry with the primary key. Does not add the json storage entry to the database.
      Parameters:
      jsonStorageEntryId - the primary key for the new json storage entry
      Returns:
      the new json storage entry
    • remove

      public static JSONStorageEntry remove(long jsonStorageEntryId) throws NoSuchJSONStorageEntryException
      Removes the json storage entry with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      jsonStorageEntryId - the primary key of the json storage entry
      Returns:
      the json storage entry that was removed
      Throws:
      NoSuchJSONStorageEntryException - if a json storage entry with the primary key could not be found
      NoSuchJSONStorageEntryException
    • updateImpl

      public static JSONStorageEntry updateImpl(JSONStorageEntry jsonStorageEntry)
    • findByPrimaryKey

      public static JSONStorageEntry findByPrimaryKey(long jsonStorageEntryId) throws NoSuchJSONStorageEntryException
      Returns the json storage entry with the primary key or throws a NoSuchJSONStorageEntryException if it could not be found.
      Parameters:
      jsonStorageEntryId - the primary key of the json storage entry
      Returns:
      the json storage entry
      Throws:
      NoSuchJSONStorageEntryException - if a json storage entry with the primary key could not be found
      NoSuchJSONStorageEntryException
    • fetchByPrimaryKey

      public static JSONStorageEntry fetchByPrimaryKey(long jsonStorageEntryId)
      Returns the json storage entry with the primary key or returns null if it could not be found.
      Parameters:
      jsonStorageEntryId - the primary key of the json storage entry
      Returns:
      the json storage entry, or null if a json storage entry with the primary key could not be found
    • findAll

      public static List<JSONStorageEntry> findAll()
      Returns all the json storage entries.
      Returns:
      the json storage entries
    • findAll

      public static List<JSONStorageEntry> findAll(int start, int end)
      Returns a range of all the json storage entries.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      Returns:
      the range of json storage entries
    • findAll

      public static List<JSONStorageEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator)
      Returns an ordered range of all the json storage entries.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of json storage entries
    • findAll

      public static List<JSONStorageEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JSONStorageEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the json storage entries.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from JSONStorageEntryModelImpl.

      Parameters:
      start - the lower bound of the range of json storage entries
      end - the upper bound of the range of json storage entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of json storage entries
    • removeAll

      public static void removeAll()
      Removes all the json storage entries from the database.
    • countAll

      public static int countAll()
      Returns the number of json storage entries.
      Returns:
      the number of json storage entries
    • getPersistence

      public static JSONStorageEntryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(JSONStorageEntryPersistence persistence)