public abstract class AbstractSourceItemTransformer extends Object implements SourceItemTransformer
Modifier and Type | Field and Description |
---|---|
private Item |
source |
private Item |
target |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSourceItemTransformer(Item source,
Item target)
Create a new instance that transforms between the given
source and target item types.
|
Modifier and Type | Method and Description |
---|---|
Item |
getSourceItemType()
Get the item type of the source items.
|
Item |
getTargetItemType()
Get the item type of the target items.
|
protected Set<Integer> |
safeIdList(DbControl dc,
ItemQuery<?> query,
String parameterName,
Set<Integer> values)
Safely execute the query even if the number of values in the 'values' set
is higher than
DbEngine.getMaxParametersInQuery() . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transform
public Item getSourceItemType()
SourceItemTransformer
getSourceItemType
in interface SourceItemTransformer
public Item getTargetItemType()
SourceItemTransformer
getTargetItemType
in interface SourceItemTransformer
protected Set<Integer> safeIdList(DbControl dc, ItemQuery<?> query, String parameterName, Set<Integer> values)
DbEngine.getMaxParametersInQuery()
. In this case, the
values will be divided into subsets and the result of the query is merged
in memory. It is important that the query is such that executing it multiple
times with different subsets return the same result as if it was only executed
a single time with the complete set.query
- The query to executparameterName
- The name of the parameter to set for the valuesvalues
- The values to use in the query