public class ExpandoTableLocalServiceUtil
extends Object
com.liferay.portlet.expando.service.impl.ExpandoTableLocalServiceImpl
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.ExpandoTableLocalService
Constructor and Description |
---|
ExpandoTableLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static ExpandoTable |
addDefaultTable(long companyId,
long classNameId)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
static ExpandoTable |
addDefaultTable(long companyId,
String className) |
static ExpandoTable |
addExpandoTable(ExpandoTable expandoTable)
Adds the expando table to the database.
|
static ExpandoTable |
addTable(long companyId,
long classNameId,
String name) |
static ExpandoTable |
addTable(long companyId,
String className,
String name) |
static ExpandoTable |
createExpandoTable(long tableId)
Creates a new expando table with the primary key.
|
static ExpandoTable |
deleteExpandoTable(ExpandoTable expandoTable)
Deletes the expando table from the database.
|
static ExpandoTable |
deleteExpandoTable(long tableId)
Deletes the expando table with the primary key from the database.
|
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static void |
deleteTable(ExpandoTable table) |
static void |
deleteTable(long tableId) |
static void |
deleteTable(long companyId,
long classNameId,
String name) |
static void |
deleteTable(long companyId,
String className,
String name) |
static void |
deleteTables(long companyId,
long classNameId) |
static void |
deleteTables(long companyId,
String className) |
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 ExpandoTable |
fetchDefaultTable(long companyId,
long classNameId) |
static ExpandoTable |
fetchDefaultTable(long companyId,
String className) |
static ExpandoTable |
fetchExpandoTable(long tableId) |
static ExpandoTable |
fetchTable(long companyId,
long classNameId,
String name) |
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static ExpandoTable |
getDefaultTable(long companyId,
long classNameId) |
static ExpandoTable |
getDefaultTable(long companyId,
String className) |
static ExpandoTable |
getExpandoTable(long tableId)
Returns the expando table with the primary key.
|
static List<ExpandoTable> |
getExpandoTables(int start,
int end)
Returns a range of all the expando tables.
|
static int |
getExpandoTablesCount()
Returns the number of expando tables.
|
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
static ExpandoTableLocalService |
getService() |
static ExpandoTable |
getTable(long tableId) |
static ExpandoTable |
getTable(long companyId,
long classNameId,
String name) |
static ExpandoTable |
getTable(long companyId,
String className,
String name) |
static List<ExpandoTable> |
getTables(long companyId,
long classNameId) |
static List<ExpandoTable> |
getTables(long companyId,
String className) |
static ExpandoTable |
updateExpandoTable(ExpandoTable expandoTable)
Updates the expando table in the database or adds it if it does not yet exist.
|
static ExpandoTable |
updateTable(long tableId,
String name) |
public static ExpandoTable addDefaultTable(long companyId, long classNameId) throws PortalException
ExpandoTableLocalServiceUtil
to access the expando table local service. Add custom service methods to com.liferay.portlet.expando.service.impl.ExpandoTableLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.PortalException
public static ExpandoTable addDefaultTable(long companyId, String className) throws PortalException
PortalException
public static ExpandoTable addExpandoTable(ExpandoTable expandoTable)
expandoTable
- the expando tablepublic static ExpandoTable addTable(long companyId, long classNameId, String name) throws PortalException
PortalException
public static ExpandoTable addTable(long companyId, String className, String name) throws PortalException
PortalException
public static ExpandoTable createExpandoTable(long tableId)
tableId
- the primary key for the new expando tablepublic static ExpandoTable deleteExpandoTable(ExpandoTable expandoTable)
expandoTable
- the expando tablepublic static ExpandoTable deleteExpandoTable(long tableId) throws PortalException
tableId
- the primary key of the expando tablePortalException
- if a expando table with the primary key could not be foundpublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalException
public static void deleteTable(ExpandoTable table)
public static void deleteTable(long tableId) throws PortalException
PortalException
public static void deleteTable(long companyId, long classNameId, String name) throws PortalException
PortalException
public static void deleteTable(long companyId, String className, String name) throws PortalException
PortalException
public static void deleteTables(long companyId, long classNameId)
public static void deleteTables(long companyId, String className)
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, then the query will include the default ORDER BY logic from com.liferay.portlet.expando.model.impl.ExpandoTableModelImpl
.
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, then the query will include the default ORDER BY logic from com.liferay.portlet.expando.model.impl.ExpandoTableModelImpl
.
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 ExpandoTable fetchDefaultTable(long companyId, long classNameId)
public static ExpandoTable fetchDefaultTable(long companyId, String className)
public static ExpandoTable fetchExpandoTable(long tableId)
public static ExpandoTable fetchTable(long companyId, long classNameId, String name)
public static ActionableDynamicQuery getActionableDynamicQuery()
public static ExpandoTable getDefaultTable(long companyId, long classNameId) throws PortalException
PortalException
public static ExpandoTable getDefaultTable(long companyId, String className) throws PortalException
PortalException
public static ExpandoTable getExpandoTable(long tableId) throws PortalException
tableId
- the primary key of the expando tablePortalException
- if a expando table with the primary key could not be foundpublic static List<ExpandoTable> getExpandoTables(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.portlet.expando.model.impl.ExpandoTableModelImpl
.
start
- the lower bound of the range of expando tablesend
- the upper bound of the range of expando tables (not inclusive)public static int getExpandoTablesCount()
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
PortalException
public static ExpandoTable getTable(long tableId) throws PortalException
PortalException
public static ExpandoTable getTable(long companyId, long classNameId, String name) throws PortalException
PortalException
public static ExpandoTable getTable(long companyId, String className, String name) throws PortalException
PortalException
public static List<ExpandoTable> getTables(long companyId, long classNameId)
public static List<ExpandoTable> getTables(long companyId, String className)
public static ExpandoTable updateExpandoTable(ExpandoTable expandoTable)
expandoTable
- the expando tablepublic static ExpandoTable updateTable(long tableId, String name) throws PortalException
PortalException
public static ExpandoTableLocalService getService()