com.liferay.portal.service.persistence.impl
Class ReverseTableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
java.lang.Object
com.liferay.portal.service.persistence.impl.ReverseTableMapper<L,R>
- All Implemented Interfaces:
- TableMapper<L,R>
public class ReverseTableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- extends Object
- implements TableMapper<L,R>
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)
|
void |
destroy()
|
List<L> |
getLeftBaseModels(long rightPrimaryKey,
int start,
int end,
OrderByComparator obc)
|
long[] |
getLeftPrimaryKeys(long rightPrimaryKey)
|
TableMapper<R,L> |
getReverseTableMapper()
|
List<R> |
getRightBaseModels(long leftPrimaryKey,
int start,
int end,
OrderByComparator obc)
|
long[] |
getRightPrimaryKeys(long leftPrimaryKey)
|
boolean |
matches(String leftColumnName,
String rightColumnName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReverseTableMapper
public ReverseTableMapper(TableMapper<R,L> tableMapper)
addTableMapping
public boolean addTableMapping(long leftPrimaryKey,
long rightPrimaryKey)
throws SystemException
- Specified by:
addTableMapping
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- Throws:
SystemException
containsTableMapping
public boolean containsTableMapping(long leftPrimaryKey,
long rightPrimaryKey)
throws SystemException
- Specified by:
containsTableMapping
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- Throws:
SystemException
deleteLeftPrimaryKeyTableMappings
public int deleteLeftPrimaryKeyTableMappings(long leftPrimaryKey)
throws SystemException
- Specified by:
deleteLeftPrimaryKeyTableMappings
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- Throws:
SystemException
deleteRightPrimaryKeyTableMappings
public int deleteRightPrimaryKeyTableMappings(long rightPrimaryKey)
throws SystemException
- Specified by:
deleteRightPrimaryKeyTableMappings
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- Throws:
SystemException
deleteTableMapping
public boolean deleteTableMapping(long leftPrimaryKey,
long rightPrimaryKey)
throws SystemException
- Specified by:
deleteTableMapping
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- Throws:
SystemException
destroy
public void destroy()
- Specified by:
destroy
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
getLeftBaseModels
public List<L> getLeftBaseModels(long rightPrimaryKey,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Specified by:
getLeftBaseModels
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- Throws:
SystemException
getLeftPrimaryKeys
public long[] getLeftPrimaryKeys(long rightPrimaryKey)
throws SystemException
- Specified by:
getLeftPrimaryKeys
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- Throws:
SystemException
getReverseTableMapper
public TableMapper<R,L> getReverseTableMapper()
- Specified by:
getReverseTableMapper
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
getRightBaseModels
public List<R> getRightBaseModels(long leftPrimaryKey,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Specified by:
getRightBaseModels
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- Throws:
SystemException
getRightPrimaryKeys
public long[] getRightPrimaryKeys(long leftPrimaryKey)
throws SystemException
- Specified by:
getRightPrimaryKeys
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
- Throws:
SystemException
matches
public boolean matches(String leftColumnName,
String rightColumnName)
- Specified by:
matches
in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>