com.liferay.expando.kernel.service.persistence.ExpandoColumnPersistence Maven / Gradle / Ivy
Show all versions of com.liferay.portal.kernel Show documentation
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.expando.kernel.service.persistence;
import aQute.bnd.annotation.ProviderType;
import com.liferay.expando.kernel.exception.NoSuchColumnException;
import com.liferay.expando.kernel.model.ExpandoColumn;
import com.liferay.portal.kernel.service.persistence.BasePersistence;
/**
* The persistence interface for the expando column service.
*
*
* Caching information and settings can be found in portal.properties
*
*
* @author Brian Wing Shun Chan
* @see com.liferay.portlet.expando.service.persistence.impl.ExpandoColumnPersistenceImpl
* @see ExpandoColumnUtil
* @generated
*/
@ProviderType
public interface ExpandoColumnPersistence extends BasePersistence {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link ExpandoColumnUtil} to access the expando column persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Returns all the expando columns where tableId = ?.
*
* @param tableId the table ID
* @return the matching expando columns
*/
public java.util.List findByTableId(long tableId);
/**
* Returns a range of all the expando columns where tableId = ?.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param tableId the table ID
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @return the range of matching expando columns
*/
public java.util.List findByTableId(long tableId, int start,
int end);
/**
* Returns an ordered range of all the expando columns where tableId = ?.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param tableId the table ID
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching expando columns
*/
public java.util.List findByTableId(long tableId, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns an ordered range of all the expando columns where tableId = ?.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param tableId the table ID
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching expando columns
*/
public java.util.List findByTableId(long tableId, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean retrieveFromCache);
/**
* Returns the first expando column in the ordered set where tableId = ?.
*
* @param tableId the table ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching expando column
* @throws NoSuchColumnException if a matching expando column could not be found
*/
public ExpandoColumn findByTableId_First(long tableId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws NoSuchColumnException;
/**
* Returns the first expando column in the ordered set where tableId = ?.
*
* @param tableId the table ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching expando column, or null
if a matching expando column could not be found
*/
public ExpandoColumn fetchByTableId_First(long tableId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns the last expando column in the ordered set where tableId = ?.
*
* @param tableId the table ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching expando column
* @throws NoSuchColumnException if a matching expando column could not be found
*/
public ExpandoColumn findByTableId_Last(long tableId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws NoSuchColumnException;
/**
* Returns the last expando column in the ordered set where tableId = ?.
*
* @param tableId the table ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching expando column, or null
if a matching expando column could not be found
*/
public ExpandoColumn fetchByTableId_Last(long tableId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns the expando columns before and after the current expando column in the ordered set where tableId = ?.
*
* @param columnId the primary key of the current expando column
* @param tableId the table ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next expando column
* @throws NoSuchColumnException if a expando column with the primary key could not be found
*/
public ExpandoColumn[] findByTableId_PrevAndNext(long columnId,
long tableId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws NoSuchColumnException;
/**
* Returns all the expando columns that the user has permission to view where tableId = ?.
*
* @param tableId the table ID
* @return the matching expando columns that the user has permission to view
*/
public java.util.List filterFindByTableId(long tableId);
/**
* Returns a range of all the expando columns that the user has permission to view where tableId = ?.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param tableId the table ID
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @return the range of matching expando columns that the user has permission to view
*/
public java.util.List filterFindByTableId(long tableId,
int start, int end);
/**
* Returns an ordered range of all the expando columns that the user has permissions to view where tableId = ?.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param tableId the table ID
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching expando columns that the user has permission to view
*/
public java.util.List filterFindByTableId(long tableId,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns the expando columns before and after the current expando column in the ordered set of expando columns that the user has permission to view where tableId = ?.
*
* @param columnId the primary key of the current expando column
* @param tableId the table ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next expando column
* @throws NoSuchColumnException if a expando column with the primary key could not be found
*/
public ExpandoColumn[] filterFindByTableId_PrevAndNext(long columnId,
long tableId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws NoSuchColumnException;
/**
* Removes all the expando columns where tableId = ? from the database.
*
* @param tableId the table ID
*/
public void removeByTableId(long tableId);
/**
* Returns the number of expando columns where tableId = ?.
*
* @param tableId the table ID
* @return the number of matching expando columns
*/
public int countByTableId(long tableId);
/**
* Returns the number of expando columns that the user has permission to view where tableId = ?.
*
* @param tableId the table ID
* @return the number of matching expando columns that the user has permission to view
*/
public int filterCountByTableId(long tableId);
/**
* Returns all the expando columns where tableId = ? and name = any ?.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param tableId the table ID
* @param names the names
* @return the matching expando columns
*/
public java.util.List findByT_N(long tableId,
java.lang.String[] names);
/**
* Returns a range of all the expando columns where tableId = ? and name = any ?.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param tableId the table ID
* @param names the names
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @return the range of matching expando columns
*/
public java.util.List findByT_N(long tableId,
java.lang.String[] names, int start, int end);
/**
* Returns an ordered range of all the expando columns where tableId = ? and name = any ?.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param tableId the table ID
* @param names the names
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching expando columns
*/
public java.util.List findByT_N(long tableId,
java.lang.String[] names, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns an ordered range of all the expando columns where tableId = ? and name = ?, optionally using the finder cache.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param tableId the table ID
* @param name the name
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching expando columns
*/
public java.util.List findByT_N(long tableId,
java.lang.String[] names, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean retrieveFromCache);
/**
* Returns the expando column where tableId = ? and name = ? or throws a {@link NoSuchColumnException} if it could not be found.
*
* @param tableId the table ID
* @param name the name
* @return the matching expando column
* @throws NoSuchColumnException if a matching expando column could not be found
*/
public ExpandoColumn findByT_N(long tableId, java.lang.String name)
throws NoSuchColumnException;
/**
* Returns the expando column where tableId = ? and name = ? or returns null
if it could not be found. Uses the finder cache.
*
* @param tableId the table ID
* @param name the name
* @return the matching expando column, or null
if a matching expando column could not be found
*/
public ExpandoColumn fetchByT_N(long tableId, java.lang.String name);
/**
* Returns the expando column where tableId = ? and name = ? or returns null
if it could not be found, optionally using the finder cache.
*
* @param tableId the table ID
* @param name the name
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the matching expando column, or null
if a matching expando column could not be found
*/
public ExpandoColumn fetchByT_N(long tableId, java.lang.String name,
boolean retrieveFromCache);
/**
* Removes the expando column where tableId = ? and name = ? from the database.
*
* @param tableId the table ID
* @param name the name
* @return the expando column that was removed
*/
public ExpandoColumn removeByT_N(long tableId, java.lang.String name)
throws NoSuchColumnException;
/**
* Returns the number of expando columns where tableId = ? and name = ?.
*
* @param tableId the table ID
* @param name the name
* @return the number of matching expando columns
*/
public int countByT_N(long tableId, java.lang.String name);
/**
* Returns the number of expando columns where tableId = ? and name = any ?.
*
* @param tableId the table ID
* @param names the names
* @return the number of matching expando columns
*/
public int countByT_N(long tableId, java.lang.String[] names);
/**
* Returns the number of expando columns that the user has permission to view where tableId = ? and name = ?.
*
* @param tableId the table ID
* @param name the name
* @return the number of matching expando columns that the user has permission to view
*/
public int filterCountByT_N(long tableId, java.lang.String name);
/**
* Returns the number of expando columns that the user has permission to view where tableId = ? and name = any ?.
*
* @param tableId the table ID
* @param names the names
* @return the number of matching expando columns that the user has permission to view
*/
public int filterCountByT_N(long tableId, java.lang.String[] names);
/**
* Caches the expando column in the entity cache if it is enabled.
*
* @param expandoColumn the expando column
*/
public void cacheResult(ExpandoColumn expandoColumn);
/**
* Caches the expando columns in the entity cache if it is enabled.
*
* @param expandoColumns the expando columns
*/
public void cacheResult(java.util.List expandoColumns);
/**
* Creates a new expando column with the primary key. Does not add the expando column to the database.
*
* @param columnId the primary key for the new expando column
* @return the new expando column
*/
public ExpandoColumn create(long columnId);
/**
* Removes the expando column with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param columnId the primary key of the expando column
* @return the expando column that was removed
* @throws NoSuchColumnException if a expando column with the primary key could not be found
*/
public ExpandoColumn remove(long columnId) throws NoSuchColumnException;
public ExpandoColumn updateImpl(ExpandoColumn expandoColumn);
/**
* Returns the expando column with the primary key or throws a {@link NoSuchColumnException} if it could not be found.
*
* @param columnId the primary key of the expando column
* @return the expando column
* @throws NoSuchColumnException if a expando column with the primary key could not be found
*/
public ExpandoColumn findByPrimaryKey(long columnId)
throws NoSuchColumnException;
/**
* Returns the expando column with the primary key or returns null
if it could not be found.
*
* @param columnId the primary key of the expando column
* @return the expando column, or null
if a expando column with the primary key could not be found
*/
public ExpandoColumn fetchByPrimaryKey(long columnId);
@Override
public java.util.Map fetchByPrimaryKeys(
java.util.Set primaryKeys);
/**
* Returns all the expando columns.
*
* @return the expando columns
*/
public java.util.List findAll();
/**
* Returns a range of all the expando columns.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @return the range of expando columns
*/
public java.util.List findAll(int start, int end);
/**
* Returns an ordered range of all the expando columns.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of expando columns
*/
public java.util.List findAll(int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator);
/**
* Returns an ordered range of all the expando columns.
*
*
* 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 {@link 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 {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ExpandoColumnModelImpl}. 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.
*
*
* @param start the lower bound of the range of expando columns
* @param end the upper bound of the range of expando columns (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of expando columns
*/
public java.util.List findAll(int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean retrieveFromCache);
/**
* Removes all the expando columns from the database.
*/
public void removeAll();
/**
* Returns the number of expando columns.
*
* @return the number of expando columns
*/
public int countAll();
@Override
public java.util.Set getBadColumnNames();
}