com.liferay.portal.service.persistence.impl
Interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- All Known Implementing Classes:
- CachelessTableMapperImpl, ReverseTableMapper, TableMapperImpl
public interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
|
Method Summary |
boolean |
addTableMapping(long companyId,
long leftPrimaryKey,
long rightPrimaryKey)
|
boolean |
containsTableMapping(long companyId,
long leftPrimaryKey,
long rightPrimaryKey)
|
int |
deleteLeftPrimaryKeyTableMappings(long companyId,
long leftPrimaryKey)
|
int |
deleteRightPrimaryKeyTableMappings(long companyId,
long rightPrimaryKey)
|
boolean |
deleteTableMapping(long companyId,
long leftPrimaryKey,
long rightPrimaryKey)
|
void |
destroy()
|
List<L> |
getLeftBaseModels(long companyId,
long rightPrimaryKey,
int start,
int end,
OrderByComparator<L> obc)
|
long[] |
getLeftPrimaryKeys(long companyId,
long rightPrimaryKey)
|
TableMapper<R,L> |
getReverseTableMapper()
|
List<R> |
getRightBaseModels(long companyId,
long leftPrimaryKey,
int start,
int end,
OrderByComparator<R> obc)
|
long[] |
getRightPrimaryKeys(long companyId,
long leftPrimaryKey)
|
boolean |
matches(String leftColumnName,
String rightColumnName)
|
addTableMapping
boolean addTableMapping(long companyId,
long leftPrimaryKey,
long rightPrimaryKey)
containsTableMapping
boolean containsTableMapping(long companyId,
long leftPrimaryKey,
long rightPrimaryKey)
deleteLeftPrimaryKeyTableMappings
int deleteLeftPrimaryKeyTableMappings(long companyId,
long leftPrimaryKey)
deleteRightPrimaryKeyTableMappings
int deleteRightPrimaryKeyTableMappings(long companyId,
long rightPrimaryKey)
deleteTableMapping
boolean deleteTableMapping(long companyId,
long leftPrimaryKey,
long rightPrimaryKey)
destroy
void destroy()
getLeftBaseModels
List<L> getLeftBaseModels(long companyId,
long rightPrimaryKey,
int start,
int end,
OrderByComparator<L> obc)
getLeftPrimaryKeys
long[] getLeftPrimaryKeys(long companyId,
long rightPrimaryKey)
getReverseTableMapper
TableMapper<R,L> getReverseTableMapper()
getRightBaseModels
List<R> getRightBaseModels(long companyId,
long leftPrimaryKey,
int start,
int end,
OrderByComparator<R> obc)
getRightPrimaryKeys
long[] getRightPrimaryKeys(long companyId,
long leftPrimaryKey)
matches
boolean matches(String leftColumnName,
String rightColumnName)