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