Liferay 6.2.0

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
abstract  boolean addTableMapping(long leftPrimaryKey, long rightPrimaryKey)
           
abstract  boolean containsTableMapping(long leftPrimaryKey, long rightPrimaryKey)
           
abstract  int deleteLeftPrimaryKeyTableMappings(long leftPrimaryKey)
           
abstract  int deleteRightPrimaryKeyTableMappings(long rightPrimaryKey)
           
abstract  boolean deleteTableMapping(long leftPrimaryKey, long rightPrimaryKey)
           
abstract  void destroy()
           
abstract  List<L> getLeftBaseModels(long rightPrimaryKey, int start, int end, OrderByComparator obc)
           
abstract  long[] getLeftPrimaryKeys(long rightPrimaryKey)
           
abstract  TableMapper<R,L> getReverseTableMapper()
           
abstract  List<R> getRightBaseModels(long leftPrimaryKey, int start, int end, OrderByComparator obc)
           
abstract  long[] getRightPrimaryKeys(long leftPrimaryKey)
           
abstract  boolean matches(String leftColumnName, String rightColumnName)
           
 

Method Detail

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

destroy

void destroy()

getLeftBaseModels

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

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(String leftColumnName,
                String rightColumnName)

Liferay 6.2.0