Liferay 7.0-ga1 portal-kernel

com.liferay.portal.kernel.service.persistence.impl
Interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>

All Known Implementing Classes:
CachelessTableMapperImpl, ReverseTableMapper, TableMapperImpl

@ProviderType
public interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>


Method Summary
 boolean addTableMapping(long companyId, long leftPrimaryKey, long rightPrimaryKey)
           
 long[] addTableMappings(long companyId, long[] leftPrimaryKeys, long rightPrimaryKey)
           
 long[] addTableMappings(long companyId, long leftPrimaryKey, long[] rightPrimaryKeys)
           
 boolean containsTableMapping(long leftPrimaryKey, long rightPrimaryKey)
           
 int deleteLeftPrimaryKeyTableMappings(long leftPrimaryKey)
           
 int deleteRightPrimaryKeyTableMappings(long rightPrimaryKey)
           
 boolean deleteTableMapping(long leftPrimaryKey, long rightPrimaryKey)
           
 long[] deleteTableMappings(long[] leftPrimaryKeys, long rightPrimaryKey)
           
 long[] deleteTableMappings(long leftPrimaryKey, long[] rightPrimaryKeys)
           
 void destroy()
           
 List<L> getLeftBaseModels(long rightPrimaryKey, int start, int end, OrderByComparator<L> obc)
           
 long[] getLeftPrimaryKeys(long rightPrimaryKey)
           
 TableMapper<R,L> getReverseTableMapper()
           
 List<R> getRightBaseModels(long leftPrimaryKey, int start, int end, OrderByComparator<R> obc)
           
 long[] getRightPrimaryKeys(long leftPrimaryKey)
           
 boolean matches(String leftColumnName, String rightColumnName)
           
 

Method Detail

addTableMapping

boolean addTableMapping(long companyId,
                        long leftPrimaryKey,
                        long rightPrimaryKey)

addTableMappings

long[] addTableMappings(long companyId,
                        long leftPrimaryKey,
                        long[] rightPrimaryKeys)

addTableMappings

long[] addTableMappings(long companyId,
                        long[] leftPrimaryKeys,
                        long rightPrimaryKey)

containsTableMapping

boolean containsTableMapping(long leftPrimaryKey,
                             long rightPrimaryKey)

deleteLeftPrimaryKeyTableMappings

int deleteLeftPrimaryKeyTableMappings(long leftPrimaryKey)

deleteRightPrimaryKeyTableMappings

int deleteRightPrimaryKeyTableMappings(long rightPrimaryKey)

deleteTableMapping

boolean deleteTableMapping(long leftPrimaryKey,
                           long rightPrimaryKey)

deleteTableMappings

long[] deleteTableMappings(long leftPrimaryKey,
                           long[] rightPrimaryKeys)

deleteTableMappings

long[] deleteTableMappings(long[] leftPrimaryKeys,
                           long rightPrimaryKey)

destroy

void destroy()

getLeftBaseModels

List<L> getLeftBaseModels(long rightPrimaryKey,
                          int start,
                          int end,
                          OrderByComparator<L> obc)

getLeftPrimaryKeys

long[] getLeftPrimaryKeys(long rightPrimaryKey)

getReverseTableMapper

TableMapper<R,L> getReverseTableMapper()

getRightBaseModels

List<R> getRightBaseModels(long leftPrimaryKey,
                           int start,
                           int end,
                           OrderByComparator<R> obc)

getRightPrimaryKeys

long[] getRightPrimaryKeys(long leftPrimaryKey)

matches

boolean matches(String leftColumnName,
                String rightColumnName)

Liferay 7.0-ga1 portal-kernel