Class ExpandoValueLocalServiceUtil

Object
com.liferay.expando.kernel.service.ExpandoValueLocalServiceUtil

public class ExpandoValueLocalServiceUtil extends Object
Provides the local service utility for ExpandoValue. This utility wraps com.liferay.portlet.expando.service.impl.ExpandoValueLocalServiceImpl and is an access point for service operations in application layer code running on the local server. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • ExpandoValueLocalServiceUtil

      public ExpandoValueLocalServiceUtil()
  • Method Details

    • addExpandoValue

      public static ExpandoValue addExpandoValue(ExpandoValue expandoValue)
      Adds the expando value to the database. Also notifies the appropriate model listeners.

      Important: Inspect ExpandoValueLocalServiceImpl 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.

      Parameters:
      expandoValue - the expando value
      Returns:
      the expando value that was added
    • addValue

      public static ExpandoValue addValue(long classNameId, long tableId, long columnId, long classPK, String data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, boolean data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, boolean[] data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Date data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Date[] data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, double data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, double[] data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, float data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, float[] data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, int data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, int[] data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, JSONObject dataJSONObject) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, long data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, long[] data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Map<Locale,?> dataMap, Locale defaultLocale) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Number data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Number[] data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Object data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, short data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, short[] data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, String data) throws PortalException
      Throws:
      PortalException
    • addValue

      public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, String[] data) throws PortalException
      Throws:
      PortalException
    • addValues

      public static void addValues(long classNameId, long tableId, List<ExpandoColumn> columns, long classPK, Map<String,String> data) throws PortalException
      Throws:
      PortalException
    • addValues

      public static void addValues(long companyId, long classNameId, String tableName, long classPK, Map<String,Serializable> attributes) throws PortalException
      Throws:
      PortalException
    • addValues

      public static void addValues(long companyId, String className, String tableName, long classPK, Map<String,Serializable> attributes) throws PortalException
      Throws:
      PortalException
    • createExpandoValue

      public static ExpandoValue createExpandoValue(long valueId)
      Creates a new expando value with the primary key. Does not add the expando value to the database.
      Parameters:
      valueId - the primary key for the new expando value
      Returns:
      the new expando value
    • createPersistedModel

      public static PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
      Throws:
      PortalException
    • deleteColumnValues

      public static void deleteColumnValues(long columnId)
    • deleteExpandoValue

      public static ExpandoValue deleteExpandoValue(ExpandoValue expandoValue)
      Deletes the expando value from the database. Also notifies the appropriate model listeners.

      Important: Inspect ExpandoValueLocalServiceImpl 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.

      Parameters:
      expandoValue - the expando value
      Returns:
      the expando value that was removed
    • deleteExpandoValue

      public static ExpandoValue deleteExpandoValue(long valueId) throws PortalException
      Deletes the expando value with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect ExpandoValueLocalServiceImpl 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.

      Parameters:
      valueId - the primary key of the expando value
      Returns:
      the expando value that was removed
      Throws:
      PortalException - if a expando value with the primary key could not be found
    • deletePersistedModel

      public static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
      Throws:
      PortalException
    • deleteRowValues

      public static void deleteRowValues(long rowId)
    • deleteTableValues

      public static void deleteTableValues(long tableId)
    • deleteValue

      public static void deleteValue(ExpandoValue value)
    • deleteValue

      public static void deleteValue(long valueId) throws PortalException
      Throws:
      PortalException
    • deleteValue

      public static void deleteValue(long columnId, long rowId) throws PortalException
      Throws:
      PortalException
    • deleteValue

      public static void deleteValue(long companyId, long classNameId, String tableName, String columnName, long classPK) throws PortalException
      Throws:
      PortalException
    • deleteValue

      public static void deleteValue(long companyId, String className, String tableName, String columnName, long classPK) throws PortalException
      Throws:
      PortalException
    • deleteValues

      public static void deleteValues(long classNameId, long classPK)
    • deleteValues

      public static void deleteValues(String className, long classPK)
    • dslQuery

      public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
    • dslQueryCount

      public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
    • dynamicQuery

      public static DynamicQuery dynamicQuery()
    • dynamicQuery

      public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
      Performs a dynamic query on the database and returns a range of the matching rows.

      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.portlet.expando.model.impl.ExpandoValueModelImpl.

      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public static <T> 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.

      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.portlet.expando.model.impl.ExpandoValueModelImpl.

      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public static long dynamicQueryCount(DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchExpandoValue

      public static ExpandoValue fetchExpandoValue(long valueId)
    • getActionableDynamicQuery

      public static ActionableDynamicQuery getActionableDynamicQuery()
    • getColumnValues

      public static List<ExpandoValue> getColumnValues(long columnId, int start, int end)
    • getColumnValues

      public static List<ExpandoValue> getColumnValues(long companyId, long classNameId, String tableName, String columnName, int start, int end)
    • getColumnValues

      public static List<ExpandoValue> getColumnValues(long companyId, long classNameId, String tableName, String columnName, String data, int start, int end)
    • getColumnValues

      public static List<ExpandoValue> getColumnValues(long companyId, String className, String tableName, String columnName, int start, int end)
    • getColumnValues

      public static List<ExpandoValue> getColumnValues(long companyId, String className, String tableName, String columnName, String data, int start, int end)
    • getColumnValuesCount

      public static int getColumnValuesCount(long columnId)
    • getColumnValuesCount

      public static int getColumnValuesCount(long companyId, long classNameId, String tableName, String columnName)
    • getColumnValuesCount

      public static int getColumnValuesCount(long companyId, long classNameId, String tableName, String columnName, String data)
    • getColumnValuesCount

      public static int getColumnValuesCount(long companyId, String className, String tableName, String columnName)
    • getColumnValuesCount

      public static int getColumnValuesCount(long companyId, String className, String tableName, String columnName, String data)
    • getData

      public static Map<String,Serializable> getData(long companyId, String className, String tableName, Collection<String> columnNames, long classPK) throws PortalException
      Throws:
      PortalException
    • getData

      public static Serializable getData(long companyId, String className, String tableName, String columnName, long classPK) throws PortalException
      Throws:
      PortalException
    • getData

      public static boolean getData(long companyId, String className, String tableName, String columnName, long classPK, boolean defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static boolean[] getData(long companyId, String className, String tableName, String columnName, long classPK, boolean[] defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static Date getData(long companyId, String className, String tableName, String columnName, long classPK, Date defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static Date[] getData(long companyId, String className, String tableName, String columnName, long classPK, Date[] defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static double getData(long companyId, String className, String tableName, String columnName, long classPK, double defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static double[] getData(long companyId, String className, String tableName, String columnName, long classPK, double[] defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static float getData(long companyId, String className, String tableName, String columnName, long classPK, float defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static float[] getData(long companyId, String className, String tableName, String columnName, long classPK, float[] defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static int getData(long companyId, String className, String tableName, String columnName, long classPK, int defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static int[] getData(long companyId, String className, String tableName, String columnName, long classPK, int[] defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static JSONObject getData(long companyId, String className, String tableName, String columnName, long classPK, JSONObject defaultDataJSONObject) throws PortalException
      Throws:
      PortalException
    • getData

      public static long getData(long companyId, String className, String tableName, String columnName, long classPK, long defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static long[] getData(long companyId, String className, String tableName, String columnName, long classPK, long[] defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static Map<?,?> getData(long companyId, String className, String tableName, String columnName, long classPK, Map<?,?> defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static Number getData(long companyId, String className, String tableName, String columnName, long classPK, Number defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static Number[] getData(long companyId, String className, String tableName, String columnName, long classPK, Number[] defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static short getData(long companyId, String className, String tableName, String columnName, long classPK, short defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static short[] getData(long companyId, String className, String tableName, String columnName, long classPK, short[] defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static String getData(long companyId, String className, String tableName, String columnName, long classPK, String defaultData) throws PortalException
      Throws:
      PortalException
    • getData

      public static String[] getData(long companyId, String className, String tableName, String columnName, long classPK, String[] defaultData) throws PortalException
      Throws:
      PortalException
    • getDefaultTableColumnValues

      public static List<ExpandoValue> getDefaultTableColumnValues(long companyId, long classNameId, String columnName, int start, int end)
    • getDefaultTableColumnValues

      public static List<ExpandoValue> getDefaultTableColumnValues(long companyId, String className, String columnName, int start, int end)
    • getDefaultTableColumnValuesCount

      public static int getDefaultTableColumnValuesCount(long companyId, long classNameId, String columnName)
    • getDefaultTableColumnValuesCount

      public static int getDefaultTableColumnValuesCount(long companyId, String className, String columnName)
    • getExpandoValue

      public static ExpandoValue getExpandoValue(long valueId) throws PortalException
      Returns the expando value with the primary key.
      Parameters:
      valueId - the primary key of the expando value
      Returns:
      the expando value
      Throws:
      PortalException - if a expando value with the primary key could not be found
    • getExpandoValues

      public static List<ExpandoValue> getExpandoValues(int start, int end)
      Returns a range of all the expando values.

      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.portlet.expando.model.impl.ExpandoValueModelImpl.

      Parameters:
      start - the lower bound of the range of expando values
      end - the upper bound of the range of expando values (not inclusive)
      Returns:
      the range of expando values
    • getExpandoValuesCount

      public static int getExpandoValuesCount()
      Returns the number of expando values.
      Returns:
      the number of expando values
    • getIndexableActionableDynamicQuery

      public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getPersistedModel

      public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
      Throws:
      PortalException
    • getRowValues

      public static List<ExpandoValue> getRowValues(long rowId)
    • getRowValues

      public static List<ExpandoValue> getRowValues(long rowId, int start, int end)
    • getRowValues

      public static List<ExpandoValue> getRowValues(long companyId, long classNameId, String tableName, long classPK, int start, int end)
    • getRowValues

      public static List<ExpandoValue> getRowValues(long companyId, String className, String tableName, long classPK, int start, int end)
    • getRowValuesCount

      public static int getRowValuesCount(long rowId)
    • getRowValuesCount

      public static int getRowValuesCount(long companyId, long classNameId, String tableName, long classPK)
    • getRowValuesCount

      public static int getRowValuesCount(long companyId, String className, String tableName, long classPK)
    • getValue

      public static ExpandoValue getValue(long valueId) throws PortalException
      Throws:
      PortalException
    • getValue

      public static ExpandoValue getValue(long columnId, long rowId) throws PortalException
      Throws:
      PortalException
    • getValue

      public static ExpandoValue getValue(long tableId, long columnId, long classPK)
    • getValue

      public static ExpandoValue getValue(long companyId, long classNameId, String tableName, String columnName, long classPK)
    • getValue

      public static ExpandoValue getValue(long companyId, String className, String tableName, String columnName, long classPK)
    • updateExpandoValue

      public static ExpandoValue updateExpandoValue(ExpandoValue expandoValue)
      Updates the expando value in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect ExpandoValueLocalServiceImpl 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.

      Parameters:
      expandoValue - the expando value
      Returns:
      the expando value that was updated
    • getService

      public static ExpandoValueLocalService getService()
    • setService

      public static void setService(ExpandoValueLocalService service)