public class ExpandoValueLocalServiceUtil
extends Object
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.ExpandoValueLocalService
Constructor and Description |
---|
ExpandoValueLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static ExpandoValue |
addExpandoValue(ExpandoValue expandoValue)
Adds the expando value to the database.
|
static ExpandoValue |
addValue(long classNameId,
long tableId,
long columnId,
long classPK,
String data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
boolean data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
boolean[] data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Date data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Date[] data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
double data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
double[] data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
float data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
float[] data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
int data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
int[] data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
JSONObject data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
long data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
long[] data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Map<Locale,?> dataMap,
Locale defautlLocale) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Number data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Number[] data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Object data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
short data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
short[] data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
String data) |
static ExpandoValue |
addValue(long companyId,
String className,
String tableName,
String columnName,
long classPK,
String[] data) |
static void |
addValues(long classNameId,
long tableId,
List<ExpandoColumn> columns,
long classPK,
Map<String,String> data) |
static void |
addValues(long companyId,
long classNameId,
String tableName,
long classPK,
Map<String,Serializable> attributes) |
static void |
addValues(long companyId,
String className,
String tableName,
long classPK,
Map<String,Serializable> attributes) |
static ExpandoValue |
createExpandoValue(long valueId)
Creates a new expando value with the primary key.
|
static void |
deleteColumnValues(long columnId) |
static ExpandoValue |
deleteExpandoValue(ExpandoValue expandoValue)
Deletes the expando value from the database.
|
static ExpandoValue |
deleteExpandoValue(long valueId)
Deletes the expando value with the primary key from the database.
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static void |
deleteRowValues(long rowId) |
static void |
deleteTableValues(long tableId) |
static void |
deleteValue(ExpandoValue value) |
static void |
deleteValue(long valueId) |
static void |
deleteValue(long columnId,
long rowId) |
static void |
deleteValue(long companyId,
long classNameId,
String tableName,
String columnName,
long classPK) |
static void |
deleteValue(long companyId,
String className,
String tableName,
String columnName,
long classPK) |
static void |
deleteValues(long classNameId,
long classPK) |
static void |
deleteValues(String className,
long classPK) |
static DynamicQuery |
dynamicQuery() |
static <T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
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.
|
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.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
static ExpandoValue |
fetchExpandoValue(long valueId) |
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static List<ExpandoValue> |
getColumnValues(long columnId,
int start,
int end) |
static List<ExpandoValue> |
getColumnValues(long companyId,
long classNameId,
String tableName,
String columnName,
int start,
int end) |
static List<ExpandoValue> |
getColumnValues(long companyId,
long classNameId,
String tableName,
String columnName,
String data,
int start,
int end) |
static List<ExpandoValue> |
getColumnValues(long companyId,
String className,
String tableName,
String columnName,
int start,
int end) |
static List<ExpandoValue> |
getColumnValues(long companyId,
String className,
String tableName,
String columnName,
String data,
int start,
int end) |
static int |
getColumnValuesCount(long columnId) |
static int |
getColumnValuesCount(long companyId,
long classNameId,
String tableName,
String columnName) |
static int |
getColumnValuesCount(long companyId,
long classNameId,
String tableName,
String columnName,
String data) |
static int |
getColumnValuesCount(long companyId,
String className,
String tableName,
String columnName) |
static int |
getColumnValuesCount(long companyId,
String className,
String tableName,
String columnName,
String data) |
static Map<String,Serializable> |
getData(long companyId,
String className,
String tableName,
Collection<String> columnNames,
long classPK) |
static Serializable |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK) |
static boolean |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
boolean defaultData) |
static boolean[] |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
boolean[] defaultData) |
static Date |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Date defaultData) |
static Date[] |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Date[] defaultData) |
static double |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
double defaultData) |
static double[] |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
double[] defaultData) |
static float |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
float defaultData) |
static float[] |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
float[] defaultData) |
static int |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
int defaultData) |
static int[] |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
int[] defaultData) |
static JSONObject |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
JSONObject defaultData) |
static long |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
long defaultData) |
static long[] |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
long[] defaultData) |
static Map<?,?> |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Map<?,?> defaultData) |
static Number |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Number defaultData) |
static Number[] |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
Number[] defaultData) |
static short |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
short defaultData) |
static short[] |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
short[] defaultData) |
static String |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
String defaultData) |
static String[] |
getData(long companyId,
String className,
String tableName,
String columnName,
long classPK,
String[] defaultData) |
static List<ExpandoValue> |
getDefaultTableColumnValues(long companyId,
long classNameId,
String columnName,
int start,
int end) |
static List<ExpandoValue> |
getDefaultTableColumnValues(long companyId,
String className,
String columnName,
int start,
int end) |
static int |
getDefaultTableColumnValuesCount(long companyId,
long classNameId,
String columnName) |
static int |
getDefaultTableColumnValuesCount(long companyId,
String className,
String columnName) |
static ExpandoValue |
getExpandoValue(long valueId)
Returns the expando value with the primary key.
|
static List<ExpandoValue> |
getExpandoValues(int start,
int end)
Returns a range of all the expando values.
|
static int |
getExpandoValuesCount()
Returns the number of expando values.
|
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static List<ExpandoValue> |
getRowValues(long rowId) |
static List<ExpandoValue> |
getRowValues(long rowId,
int start,
int end) |
static List<ExpandoValue> |
getRowValues(long companyId,
long classNameId,
String tableName,
long classPK,
int start,
int end) |
static List<ExpandoValue> |
getRowValues(long companyId,
String className,
String tableName,
long classPK,
int start,
int end) |
static int |
getRowValuesCount(long rowId) |
static int |
getRowValuesCount(long companyId,
long classNameId,
String tableName,
long classPK) |
static int |
getRowValuesCount(long companyId,
String className,
String tableName,
long classPK) |
static ExpandoValueLocalService |
getService() |
static ExpandoValue |
getValue(long valueId) |
static ExpandoValue |
getValue(long columnId,
long rowId) |
static ExpandoValue |
getValue(long tableId,
long columnId,
long classPK) |
static ExpandoValue |
getValue(long companyId,
long classNameId,
String tableName,
String columnName,
long classPK) |
static ExpandoValue |
getValue(long companyId,
String className,
String tableName,
String columnName,
long classPK) |
static ExpandoValue |
updateExpandoValue(ExpandoValue expandoValue)
Updates the expando value in the database or adds it if it does not yet exist.
|
public static ExpandoValue addExpandoValue(ExpandoValue expandoValue)
expandoValue
- the expando valuepublic static ExpandoValue addValue(long classNameId, long tableId, long columnId, long classPK, String data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, boolean data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, boolean[] data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Date data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Date[] data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, double data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, double[] data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, float data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, float[] data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, int data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, int[] data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, JSONObject data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, long data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, long[] data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Map<Locale,?> dataMap, Locale defautlLocale) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Number data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Number[] data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, Object data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, short data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, short[] data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, String data) throws PortalException
PortalException
public static ExpandoValue addValue(long companyId, String className, String tableName, String columnName, long classPK, String[] data) throws PortalException
PortalException
public static void addValues(long classNameId, long tableId, List<ExpandoColumn> columns, long classPK, Map<String,String> data) throws PortalException
PortalException
public static void addValues(long companyId, long classNameId, String tableName, long classPK, Map<String,Serializable> attributes) throws PortalException
PortalException
public static void addValues(long companyId, String className, String tableName, long classPK, Map<String,Serializable> attributes) throws PortalException
PortalException
public static ExpandoValue createExpandoValue(long valueId)
valueId
- the primary key for the new expando valuepublic static void deleteColumnValues(long columnId)
public static ExpandoValue deleteExpandoValue(ExpandoValue expandoValue)
expandoValue
- the expando valuepublic static ExpandoValue deleteExpandoValue(long valueId) throws PortalException
valueId
- the primary key of the expando valuePortalException
- if a expando value with the primary key could not be foundpublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static void deleteRowValues(long rowId)
public static void deleteTableValues(long tableId)
public static void deleteValue(ExpandoValue value)
public static void deleteValue(long valueId) throws PortalException
PortalException
public static void deleteValue(long columnId, long rowId) throws PortalException
PortalException
public static void deleteValue(long companyId, long classNameId, String tableName, String columnName, long classPK) throws PortalException
PortalException
public static void deleteValue(long companyId, String className, String tableName, String columnName, long classPK) throws PortalException
PortalException
public static void deleteValues(long classNameId, long classPK)
public static void deleteValues(String className, long classPK)
public static DynamicQuery dynamicQuery()
public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> 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 and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portlet.expando.model.impl.ExpandoValueModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> 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 and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portlet.expando.model.impl.ExpandoValueModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static ExpandoValue fetchExpandoValue(long valueId)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static List<ExpandoValue> getColumnValues(long columnId, int start, int end)
public static List<ExpandoValue> getColumnValues(long companyId, long classNameId, String tableName, String columnName, int start, int end)
public static List<ExpandoValue> getColumnValues(long companyId, long classNameId, String tableName, String columnName, String data, int start, int end)
public static List<ExpandoValue> getColumnValues(long companyId, String className, String tableName, String columnName, int start, int end)
public static List<ExpandoValue> getColumnValues(long companyId, String className, String tableName, String columnName, String data, int start, int end)
public static int getColumnValuesCount(long columnId)
public static int getColumnValuesCount(long companyId, long classNameId, String tableName, String columnName)
public static int getColumnValuesCount(long companyId, long classNameId, String tableName, String columnName, String data)
public static int getColumnValuesCount(long companyId, String className, String tableName, String columnName)
public static int getColumnValuesCount(long companyId, String className, String tableName, String columnName, String data)
public static Map<String,Serializable> getData(long companyId, String className, String tableName, Collection<String> columnNames, long classPK) throws PortalException
PortalException
public static Serializable getData(long companyId, String className, String tableName, String columnName, long classPK) throws PortalException
PortalException
public static boolean getData(long companyId, String className, String tableName, String columnName, long classPK, boolean defaultData) throws PortalException
PortalException
public static boolean[] getData(long companyId, String className, String tableName, String columnName, long classPK, boolean[] defaultData) throws PortalException
PortalException
public static Date getData(long companyId, String className, String tableName, String columnName, long classPK, Date defaultData) throws PortalException
PortalException
public static Date[] getData(long companyId, String className, String tableName, String columnName, long classPK, Date[] defaultData) throws PortalException
PortalException
public static double getData(long companyId, String className, String tableName, String columnName, long classPK, double defaultData) throws PortalException
PortalException
public static double[] getData(long companyId, String className, String tableName, String columnName, long classPK, double[] defaultData) throws PortalException
PortalException
public static float getData(long companyId, String className, String tableName, String columnName, long classPK, float defaultData) throws PortalException
PortalException
public static float[] getData(long companyId, String className, String tableName, String columnName, long classPK, float[] defaultData) throws PortalException
PortalException
public static int getData(long companyId, String className, String tableName, String columnName, long classPK, int defaultData) throws PortalException
PortalException
public static int[] getData(long companyId, String className, String tableName, String columnName, long classPK, int[] defaultData) throws PortalException
PortalException
public static JSONObject getData(long companyId, String className, String tableName, String columnName, long classPK, JSONObject defaultData) throws PortalException
PortalException
public static long getData(long companyId, String className, String tableName, String columnName, long classPK, long defaultData) throws PortalException
PortalException
public static long[] getData(long companyId, String className, String tableName, String columnName, long classPK, long[] defaultData) throws PortalException
PortalException
public static Map<?,?> getData(long companyId, String className, String tableName, String columnName, long classPK, Map<?,?> defaultData) throws PortalException
PortalException
public static Number getData(long companyId, String className, String tableName, String columnName, long classPK, Number defaultData) throws PortalException
PortalException
public static Number[] getData(long companyId, String className, String tableName, String columnName, long classPK, Number[] defaultData) throws PortalException
PortalException
public static short getData(long companyId, String className, String tableName, String columnName, long classPK, short defaultData) throws PortalException
PortalException
public static short[] getData(long companyId, String className, String tableName, String columnName, long classPK, short[] defaultData) throws PortalException
PortalException
public static String getData(long companyId, String className, String tableName, String columnName, long classPK, String defaultData) throws PortalException
PortalException
public static String[] getData(long companyId, String className, String tableName, String columnName, long classPK, String[] defaultData) throws PortalException
PortalException
public static List<ExpandoValue> getDefaultTableColumnValues(long companyId, long classNameId, String columnName, int start, int end)
public static List<ExpandoValue> getDefaultTableColumnValues(long companyId, String className, String columnName, int start, int end)
public static int getDefaultTableColumnValuesCount(long companyId, long classNameId, String columnName)
public static int getDefaultTableColumnValuesCount(long companyId, String className, String columnName)
public static ExpandoValue getExpandoValue(long valueId) throws PortalException
valueId
- the primary key of the expando valuePortalException
- if a expando value with the primary key could not be foundpublic static List<ExpandoValue> getExpandoValues(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 and pagination is required (start
and end
are not com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.portlet.expando.model.impl.ExpandoValueModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of expando valuesend
- the upper bound of the range of expando values (not inclusive)public static int getExpandoValuesCount()
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static List<ExpandoValue> getRowValues(long rowId)
public static List<ExpandoValue> getRowValues(long rowId, int start, int end)
public static List<ExpandoValue> getRowValues(long companyId, long classNameId, String tableName, long classPK, int start, int end)
public static List<ExpandoValue> getRowValues(long companyId, String className, String tableName, long classPK, int start, int end)
public static int getRowValuesCount(long rowId)
public static int getRowValuesCount(long companyId, long classNameId, String tableName, long classPK)
public static int getRowValuesCount(long companyId, String className, String tableName, long classPK)
public static ExpandoValue getValue(long valueId) throws PortalException
PortalException
public static ExpandoValue getValue(long columnId, long rowId) throws PortalException
PortalException
public static ExpandoValue getValue(long tableId, long columnId, long classPK)
public static ExpandoValue getValue(long companyId, long classNameId, String tableName, String columnName, long classPK)
public static ExpandoValue getValue(long companyId, String className, String tableName, String columnName, long classPK)
public static ExpandoValue updateExpandoValue(ExpandoValue expandoValue)
expandoValue
- the expando valuepublic static ExpandoValueLocalService getService()