@ProviderType
public interface TableMapper<L extends BaseModel<L>,R extends BaseModel<R>>
Modifier and Type | Method and Description |
---|---|
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) |
boolean addTableMapping(long companyId, long leftPrimaryKey, long rightPrimaryKey)
long[] addTableMappings(long companyId, long leftPrimaryKey, long[] rightPrimaryKeys)
long[] addTableMappings(long companyId, long[] leftPrimaryKeys, long rightPrimaryKey)
boolean containsTableMapping(long leftPrimaryKey, long rightPrimaryKey)
int deleteLeftPrimaryKeyTableMappings(long leftPrimaryKey)
int deleteRightPrimaryKeyTableMappings(long rightPrimaryKey)
boolean deleteTableMapping(long leftPrimaryKey, long rightPrimaryKey)
long[] deleteTableMappings(long leftPrimaryKey, long[] rightPrimaryKeys)
long[] deleteTableMappings(long[] leftPrimaryKeys, long rightPrimaryKey)
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)