public class ObjectSelector extends Object implements IObjectSelector<org.hibernate.Session>
| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<ObjectSelector> |
instance
Thread safe instance of
ObjectSelector. |
protected org.hibernate.Session |
session
The object session factory.
|
| Constructor and Description |
|---|
ObjectSelector() |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
all(AbstractPluginObject caller,
IContext context,
IResultSet result) |
static ObjectSelector |
get()
Gets the thread safe instance of finder.
|
org.hibernate.Session |
getSource(AbstractPluginObject caller,
IContext context) |
void |
release() |
List<Object> |
select(AbstractPluginObject caller,
IContext context,
Object instance,
RowAdapter row,
IResultSet result) |
protected static ThreadLocal<ObjectSelector> instance
ObjectSelector.protected org.hibernate.Session session
public static ObjectSelector get()
public org.hibernate.Session getSource(AbstractPluginObject caller, IContext context) throws Exception
getSource in interface IObjectSelector<org.hibernate.Session>Exceptionpublic List<Object> all(AbstractPluginObject caller, IContext context, IResultSet result) throws Exception
all in interface IObjectSelector<org.hibernate.Session>Exceptionpublic List<Object> select(AbstractPluginObject caller, IContext context, Object instance, RowAdapter row, IResultSet result) throws Exception
select in interface IObjectSelector<org.hibernate.Session>Exceptionpublic void release()
throws Exception
release in interface IObjectSelector<org.hibernate.Session>ExceptionCopyright © 2017. All rights reserved.