T - The source type.public abstract class AbstractPluginObjectSelect<T> extends AbstractPluginObject
AbstractPluginObject.Field| Modifier and Type | Field and Description |
|---|---|
protected IObjectSelector<T> |
selector
The default object selector.
|
protected T |
source
The source.
|
creator, creatorInstance, fields, fieldToFields, headerToFields, instances, keysBefore, mapped, mapping, reference, references, separator, supermapping, type, typeInstancescopenameFEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_NORMALIZER, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAITparameters| Constructor and Description |
|---|
AbstractPluginObjectSelect(IObjectSelector<T> selector)
Create a select plugin, provided an object selector.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
action(IContext context,
Object instance,
RowAdapter row,
IResultSet result)
This method can be and should be overridden to perform save, comparison,
etc for updates.
|
ActionType |
getActionType()
Get the plugin type.
|
boolean |
isMapped()
Says if the instance show be mapped or not.
|
abstract void |
processList(IContext context,
Object instance,
RowAdapter row,
IResultSet result,
List<Object> list)
Process the list of objects recovered.
|
create, doEnd, getCreator, getCreatorInstance, getMapping, getObject, getObjects, getReference, getSeparator, getSupermapping, getType, getTypeInstance, initialize, isSpecial, loadFields, loadMapping, makeKey, mapObject, merge, populate, processLine, readData, readHeader, removeObject, setBoolean, setChar, setCreator, setCreatorInstance, setDouble, setEntity, setFloat, setInteger, setLong, setMapped, setMapping, setObject, setObjectInformation, setReference, setSeparator, setShort, setSupermapping, setType, setTypeInstance, setValuedoEnd, doStart, doStart, getTableAdapter, initialize, toStringgetScope, saveGlobal, saveLocal, saveStrict, setScopegetName, setNamecopy, getCondition, getConditionModel, getNormalized, getNormalized, getNormalizer, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, setCondition, setConditionModel, setNormalized, setNormalizer, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModelgetParameters, setParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, setParametersprotected IObjectSelector<T> selector
protected T source
public AbstractPluginObjectSelect(IObjectSelector<T> selector)
selector - The selector.public ActionType getActionType()
IActionTypepublic boolean isMapped()
AbstractPluginObjectisMapped in class AbstractPluginObjectprotected void action(IContext context, Object instance, RowAdapter row, IResultSet result) throws Exception
AbstractPluginObjectaction in class AbstractPluginObjectcontext - Test context.instance - The object instance.row - The row adapter.result - The result set.Exception - On action errors.public abstract void processList(IContext context, Object instance, RowAdapter row, IResultSet result, List<Object> list) throws Exception
context - The context.instance - The row instance.row - The row.result - The result set.list - The list of objects recovered.Exception - On processing errors.Copyright © 2016. All rights reserved.