@ProviderType public interface ExpandoTablePersistence extends BasePersistence<ExpandoTable>
Caching information and settings can be found in portal.properties
ExpandoTablePersistenceImpl
,
ExpandoTableUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(ExpandoTable expandoTable)
Caches the expando table in the entity cache if it is enabled.
|
void |
cacheResult(List<ExpandoTable> expandoTables)
Caches the expando tables in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of expando tables.
|
int |
countByC_C_N(long companyId,
long classNameId,
String name)
Returns the number of expando tables where companyId = ? and classNameId = ? and name = ?.
|
int |
countByC_C(long companyId,
long classNameId)
Returns the number of expando tables where companyId = ? and classNameId = ?.
|
ExpandoTable |
create(long tableId)
Creates a new expando table with the primary key.
|
ExpandoTable |
fetchByC_C_First(long companyId,
long classNameId,
OrderByComparator<ExpandoTable> orderByComparator)
Returns the first expando table in the ordered set where companyId = ? and classNameId = ?.
|
ExpandoTable |
fetchByC_C_Last(long companyId,
long classNameId,
OrderByComparator<ExpandoTable> orderByComparator)
Returns the last expando table in the ordered set where companyId = ? and classNameId = ?.
|
ExpandoTable |
fetchByC_C_N(long companyId,
long classNameId,
String name)
Returns the expando table where companyId = ? and classNameId = ? and name = ? or returns
null if it could not be found. |
ExpandoTable |
fetchByC_C_N(long companyId,
long classNameId,
String name,
boolean retrieveFromCache)
Returns the expando table where companyId = ? and classNameId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
ExpandoTable |
fetchByPrimaryKey(long tableId)
Returns the expando table with the primary key or returns
null if it could not be found. |
Map<Serializable,ExpandoTable> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
List<ExpandoTable> |
findAll()
Returns all the expando tables.
|
List<ExpandoTable> |
findAll(int start,
int end)
Returns a range of all the expando tables.
|
List<ExpandoTable> |
findAll(int start,
int end,
OrderByComparator<ExpandoTable> orderByComparator)
Returns an ordered range of all the expando tables.
|
List<ExpandoTable> |
findAll(int start,
int end,
OrderByComparator<ExpandoTable> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the expando tables.
|
ExpandoTable |
findByC_C_First(long companyId,
long classNameId,
OrderByComparator<ExpandoTable> orderByComparator)
Returns the first expando table in the ordered set where companyId = ? and classNameId = ?.
|
ExpandoTable |
findByC_C_Last(long companyId,
long classNameId,
OrderByComparator<ExpandoTable> orderByComparator)
Returns the last expando table in the ordered set where companyId = ? and classNameId = ?.
|
ExpandoTable |
findByC_C_N(long companyId,
long classNameId,
String name)
Returns the expando table where companyId = ? and classNameId = ? and name = ? or throws a
NoSuchTableException if it could not be found. |
ExpandoTable[] |
findByC_C_PrevAndNext(long tableId,
long companyId,
long classNameId,
OrderByComparator<ExpandoTable> orderByComparator)
Returns the expando tables before and after the current expando table in the ordered set where companyId = ? and classNameId = ?.
|
List<ExpandoTable> |
findByC_C(long companyId,
long classNameId)
Returns all the expando tables where companyId = ? and classNameId = ?.
|
List<ExpandoTable> |
findByC_C(long companyId,
long classNameId,
int start,
int end)
Returns a range of all the expando tables where companyId = ? and classNameId = ?.
|
List<ExpandoTable> |
findByC_C(long companyId,
long classNameId,
int start,
int end,
OrderByComparator<ExpandoTable> orderByComparator)
Returns an ordered range of all the expando tables where companyId = ? and classNameId = ?.
|
List<ExpandoTable> |
findByC_C(long companyId,
long classNameId,
int start,
int end,
OrderByComparator<ExpandoTable> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the expando tables where companyId = ? and classNameId = ?.
|
ExpandoTable |
findByPrimaryKey(long tableId)
Returns the expando table with the primary key or throws a
NoSuchTableException if it could not be found. |
ExpandoTable |
remove(long tableId)
Removes the expando table with the primary key from the database.
|
void |
removeAll()
Removes all the expando tables from the database.
|
ExpandoTable |
removeByC_C_N(long companyId,
long classNameId,
String name)
Removes the expando table where companyId = ? and classNameId = ? and name = ? from the database.
|
void |
removeByC_C(long companyId,
long classNameId)
Removes all the expando tables where companyId = ? and classNameId = ? from the database.
|
ExpandoTable |
updateImpl(ExpandoTable expandoTable) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
List<ExpandoTable> findByC_C(long companyId, long classNameId)
companyId
- the company IDclassNameId
- the class name IDList<ExpandoTable> findByC_C(long companyId, long classNameId, 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 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 QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ExpandoTableModelImpl
. 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.
companyId
- the company IDclassNameId
- the class name IDstart
- the lower bound of the range of expando tablesend
- the upper bound of the range of expando tables (not inclusive)List<ExpandoTable> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator<ExpandoTable> 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 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 QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ExpandoTableModelImpl
. 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.
companyId
- the company IDclassNameId
- the class name IDstart
- the lower bound of the range of expando tablesend
- the upper bound of the range of expando tables (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<ExpandoTable> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator<ExpandoTable> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ExpandoTableModelImpl
. 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.
companyId
- the company IDclassNameId
- the class name IDstart
- the lower bound of the range of expando tablesend
- the upper bound of the range of expando tables (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheExpandoTable findByC_C_First(long companyId, long classNameId, OrderByComparator<ExpandoTable> orderByComparator) throws NoSuchTableException
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTableException
- if a matching expando table could not be foundExpandoTable fetchByC_C_First(long companyId, long classNameId, OrderByComparator<ExpandoTable> orderByComparator)
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching expando table could not be foundExpandoTable findByC_C_Last(long companyId, long classNameId, OrderByComparator<ExpandoTable> orderByComparator) throws NoSuchTableException
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTableException
- if a matching expando table could not be foundExpandoTable fetchByC_C_Last(long companyId, long classNameId, OrderByComparator<ExpandoTable> orderByComparator)
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching expando table could not be foundExpandoTable[] findByC_C_PrevAndNext(long tableId, long companyId, long classNameId, OrderByComparator<ExpandoTable> orderByComparator) throws NoSuchTableException
tableId
- the primary key of the current expando tablecompanyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTableException
- if a expando table with the primary key could not be foundvoid removeByC_C(long companyId, long classNameId)
companyId
- the company IDclassNameId
- the class name IDint countByC_C(long companyId, long classNameId)
companyId
- the company IDclassNameId
- the class name IDExpandoTable findByC_C_N(long companyId, long classNameId, String name) throws NoSuchTableException
NoSuchTableException
if it could not be found.companyId
- the company IDclassNameId
- the class name IDname
- the nameNoSuchTableException
- if a matching expando table could not be foundExpandoTable fetchByC_C_N(long companyId, long classNameId, String name)
null
if it could not be found. Uses the finder cache.companyId
- the company IDclassNameId
- the class name IDname
- the namenull
if a matching expando table could not be foundExpandoTable fetchByC_C_N(long companyId, long classNameId, String name, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDclassNameId
- the class name IDname
- the nameretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching expando table could not be foundExpandoTable removeByC_C_N(long companyId, long classNameId, String name) throws NoSuchTableException
companyId
- the company IDclassNameId
- the class name IDname
- the nameNoSuchTableException
int countByC_C_N(long companyId, long classNameId, String name)
companyId
- the company IDclassNameId
- the class name IDname
- the namevoid cacheResult(ExpandoTable expandoTable)
expandoTable
- the expando tablevoid cacheResult(List<ExpandoTable> expandoTables)
expandoTables
- the expando tablesExpandoTable create(long tableId)
tableId
- the primary key for the new expando tableExpandoTable remove(long tableId) throws NoSuchTableException
tableId
- the primary key of the expando tableNoSuchTableException
- if a expando table with the primary key could not be foundExpandoTable updateImpl(ExpandoTable expandoTable)
ExpandoTable findByPrimaryKey(long tableId) throws NoSuchTableException
NoSuchTableException
if it could not be found.tableId
- the primary key of the expando tableNoSuchTableException
- if a expando table with the primary key could not be foundExpandoTable fetchByPrimaryKey(long tableId)
null
if it could not be found.tableId
- the primary key of the expando tablenull
if a expando table with the primary key could not be foundMap<Serializable,ExpandoTable> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<ExpandoTable>
List<ExpandoTable> findAll()
List<ExpandoTable> findAll(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 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 QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ExpandoTableModelImpl
. 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 tablesend
- the upper bound of the range of expando tables (not inclusive)List<ExpandoTable> findAll(int start, int end, OrderByComparator<ExpandoTable> 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 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 QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ExpandoTableModelImpl
. 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 tablesend
- the upper bound of the range of expando tables (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)List<ExpandoTable> findAll(int start, int end, OrderByComparator<ExpandoTable> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from ExpandoTableModelImpl
. 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 tablesend
- the upper bound of the range of expando tables (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()