public abstract class PluginHibernate extends AbstractPluginObject
isMapped() and action(...).AbstractPluginObject.Field| Modifier and Type | Field and Description |
|---|---|
protected String |
configuration
The configuration name.
|
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 |
|---|
PluginHibernate() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
action(IContext context,
Object instance,
RowAdapter row,
IResultSet result)
Process a Hibernate action.
|
protected abstract void |
action(IContext context,
Object instance,
RowAdapter row,
IResultSet result,
org.hibernate.SessionFactory sf)
This method can be and should be overridden to perform save, comparison,
etc for updates.
|
String |
getConfiguration()
The configuration name.
|
void |
setConfiguration(String configuration)
Set configuration name.
|
create, doEnd, getCreator, getCreatorInstance, getMapping, getObject, getObjects, getReference, getSeparator, getSupermapping, getType, getTypeInstance, initialize, isMapped, 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, setParametersgetActionTypeprotected String configuration
public String getConfiguration()
public void setConfiguration(String configuration)
configuration - The name.protected void action(IContext context, Object instance, RowAdapter row, IResultSet result) throws Exception
action in class AbstractPluginObjectcontext - The context.instance - The instance ready to use. All object where set, and related
objects assembled.row - The row.result - The result set.Exception - On processing errors.protected abstract void action(IContext context, Object instance, RowAdapter row, IResultSet result, org.hibernate.SessionFactory sf) throws Exception
context - The test context.instance - The object instance.row - The row of object.result - The result set.sf - The session factory.Exception - On exception errors.Copyright © 2017. All rights reserved.