Liferay 7.0-ce-a3

com.liferay.portal.service.persistence.impl
Class ReverseTableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

java.lang.Object
  extended by 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>


Constructor Summary
ReverseTableMapper(TableMapper<R,L> tableMapper)
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReverseTableMapper

public ReverseTableMapper(TableMapper<R,L> tableMapper)
Method Detail

addTableMapping

public boolean addTableMapping(long companyId,
                               long leftPrimaryKey,
                               long rightPrimaryKey)
Specified by:
addTableMapping in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

containsTableMapping

public boolean containsTableMapping(long companyId,
                                    long leftPrimaryKey,
                                    long rightPrimaryKey)
Specified by:
containsTableMapping in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

deleteLeftPrimaryKeyTableMappings

public int deleteLeftPrimaryKeyTableMappings(long companyId,
                                             long leftPrimaryKey)
Specified by:
deleteLeftPrimaryKeyTableMappings in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

deleteRightPrimaryKeyTableMappings

public int deleteRightPrimaryKeyTableMappings(long companyId,
                                              long rightPrimaryKey)
Specified by:
deleteRightPrimaryKeyTableMappings in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

deleteTableMapping

public boolean deleteTableMapping(long companyId,
                                  long leftPrimaryKey,
                                  long rightPrimaryKey)
Specified by:
deleteTableMapping in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

destroy

public void destroy()
Specified by:
destroy in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

getLeftBaseModels

public List<L> getLeftBaseModels(long companyId,
                                 long rightPrimaryKey,
                                 int start,
                                 int end,
                                 OrderByComparator<L> obc)
Specified by:
getLeftBaseModels in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

getLeftPrimaryKeys

public long[] getLeftPrimaryKeys(long companyId,
                                 long rightPrimaryKey)
Specified by:
getLeftPrimaryKeys in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

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 companyId,
                                  long leftPrimaryKey,
                                  int start,
                                  int end,
                                  OrderByComparator<R> obc)
Specified by:
getRightBaseModels in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

getRightPrimaryKeys

public long[] getRightPrimaryKeys(long companyId,
                                  long leftPrimaryKey)
Specified by:
getRightPrimaryKeys in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

matches

public boolean matches(String leftColumnName,
                       String rightColumnName)
Specified by:
matches in interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

Liferay 7.0-ce-a3