| Package | Description |
|---|---|
| no.g9.dataaccess | |
| no.g9.jgrape |
The jgrape package contains jgrape implementation of g9 services.
|
| no.g9.jgrape.trigger | |
| no.g9.jgrape.tx |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHibernateSession
Common methods for a Hibernate implementation of the Session interface.
|
class |
HibernateSession
A Hibernate implementation of the
Session interface. |
class |
HibernateStatelessSession
A Hibernate implementation of the
Session interface. |
| Modifier and Type | Method and Description |
|---|---|
Session |
SessionFactory.cloneSession(Session session)
Get a copy of the given session.
The session is not shared within the thread. |
Session |
HibernateSessionFactory.cloneSession(Session session) |
Session |
SessionFactory.getSession(String contextName,
String mappingName)
Get a session instance.
The session is shared within the thread. |
Session |
HibernateSessionFactory.getSession(String contextName,
String mappingName) |
Session |
SessionFactory.getStatelessSession(String contextName,
String mappingName)
Get a stateless session instance.
The session is not shared within the thread. |
Session |
HibernateSessionFactory.getStatelessSession(String contextName,
String mappingName) |
Session |
HibernateSessionFactory.switchSession(String contextName,
String mappingName,
Session newSession)
Switch the cached
Session for the given
contextName and mappingName with a new one. |
| Modifier and Type | Method and Description |
|---|---|
Session |
SessionFactory.cloneSession(Session session)
Get a copy of the given session.
The session is not shared within the thread. |
Session |
HibernateSessionFactory.cloneSession(Session session) |
void |
SessionFactory.closeSession(Session session)
Close the given session.
|
void |
HibernateSessionFactory.closeSession(Session s) |
Session |
HibernateSessionFactory.switchSession(String contextName,
String mappingName,
Session newSession)
Switch the cached
Session for the given
contextName and mappingName with a new one. |
| Modifier and Type | Method and Description |
|---|---|
static Session |
SessionManager.getSession(ClientContext ctx,
String dbMapping)
Convenience method, returns a session for the given client context and
database mapping.
|
static Session |
SessionManager.getSession(ObjectSelection objectSelection,
ClientContext ctx)
Convenience method, returns a session for the given object selection and
client context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Manager.cleanupResult(Object rootResult,
ClientContext ctx,
Session session)
Postprocess the result after transaction is ended
|
void |
OsManager.cleanupResult(Object rootResult,
ClientContext ctx,
Session session) |
void |
Role.cleanupResult(Object rootResult,
ClientContext ctx,
Session session) |
void |
Manager.cleanupResultAssociations(Object rootResult,
ClientContext ctx,
Session session)
Postprocess the result after find actions
|
void |
OsManager.cleanupResultAssociations(Object rootResult,
ClientContext ctx,
Session session) |
void |
Role.cleanupResultAssociations(Object rootResult,
ClientContext ctx,
Session session) |
Object |
Manager.connect(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Connect an object to it's parent.
|
Object |
OsManager.connect(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Connect an object to it's parent.
|
abstract Object |
Role.connect(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
void |
DataServiceImpl.delete(Object object,
List<String> keyAttributes,
Session session) |
void |
DataService.delete(Object object,
List<String> keyAttributes,
Session session) |
Object |
Manager.delete(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Delete an existing object.
|
Object |
OsManager.delete(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
delete an existing object and the objects depending on it.
|
abstract Object |
Role.delete(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
void |
DataServiceImpl.delete(Object object,
Session session) |
void |
DataService.delete(Object object,
Session session)
Delete the given object.
|
Object |
Manager.disconnect(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Disconnect an object from it's parent.
|
Object |
OsManager.disconnect(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Disconnect an object from it's parent.
|
abstract Object |
Role.disconnect(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
Object |
DataServiceImpl.find(Class<?> clazz,
Object key,
FindData findData,
Session session) |
Object |
DataService.find(Class<?> clazz,
Object key,
FindData findData,
Session session)
Finds an object based on the primary key given in the input object.
|
Object |
DataServiceImpl.find(Class<?> clazz,
Object key,
List<String> keyAttributeNames,
FindData findData,
Session session) |
Object |
DataService.find(Class<?> clazz,
Object key,
List<String> keyAttributeNames,
FindData findData,
Session session)
Finds an object based on a candidate key.
|
Object |
DataServiceImpl.find(FindData findData,
Session session) |
Object |
DataService.find(FindData findData,
Session session)
Finds an object or a projection based on the given FindData.
|
Object |
Manager.find(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Find a single object.
|
Object |
OsManager.find(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Find a single object.
|
abstract Object |
Role.find(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
List<?> |
DataServiceImpl.findAll(Class<?> clazz,
Object example,
FindData findData,
Session session) |
List<?> |
DataService.findAll(Class<?> clazz,
Object example,
FindData findData,
Session session)
return purposes and if a maxSize parameter should be given as input or
set in the configuration.
|
List<?> |
DataServiceImpl.findAll(FindData findData,
Session session) |
List<?> |
DataService.findAll(FindData findData,
Session session)
Finds objects or projections based on the given FindData.
|
List<?> |
Manager.findAll(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Find multiple objects.
|
List<?> |
OsManager.findAll(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Find multiple objects.
|
abstract List<?> |
Role.findAll(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
void |
DataServiceImpl.findAssociated(Object object,
Session session) |
void |
DataService.findAssociated(Object object,
Session session)
Runs Hibernate.initialize().
|
Object |
DataServiceImpl.get(Object currentObject,
ENavigation navigation,
Session session) |
Object |
DataService.get(Object currentObject,
ENavigation navigation,
Session session) |
Object |
Manager.get(ObjectSelection objectSelection,
ENavigation navigation,
ClientContext ctx,
Session session) |
Object |
OsManager.get(ObjectSelection objectSelection,
ENavigation navigation,
ClientContext ctx,
Session session) |
abstract Object |
Role.get(ObjectSelection objectSelection,
ENavigation navigation,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
Object |
Manager.insert(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Insert a new object.
|
Object |
OsManager.insert(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Insert a new object.
|
abstract Object |
Role.insert(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
Serializable |
DataServiceImpl.insert(Object object,
Session session) |
Serializable |
DataService.insert(Object object,
Session session)
Insert the given object in the database.
|
Object |
DataServiceImpl.merge(Object object,
Session session) |
Object |
DataService.merge(Object object,
Session session)
Copy the state of the detached instance to a persistent instance with the
same identifier.
|
Object |
Manager.save(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Save an object.
|
Object |
OsManager.save(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Save an object.
|
abstract Object |
Role.save(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
Object |
Manager.update(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Update an existing object.
|
Object |
OsManager.update(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Update an existing object.
|
abstract Object |
Role.update(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
void |
DataServiceImpl.update(Object object,
Session session) |
void |
DataService.update(Object object,
Session session)
Update a database instance from the given object.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
TriggerInvoker.invoke(T domainObject,
JGrapeTrigger.TriggerType type,
boolean isTargetNode,
ClientContext ctx,
Session session)
Invoke the triggers for specified domain object.
|
void |
JGrapeTrigger.trigger(T domainObject,
JGrapeTrigger.TriggerType type,
boolean isTargetNode,
ClientContext ctx,
Session session)
The trigger that is invoked by JGrape Service Managers.
|
| Modifier and Type | Method and Description |
|---|---|
protected Session |
TxSessionManager.getSession(String contextName,
String mappingName)
Get a
Session for the given contextName
and mappingName. |
| Modifier and Type | Method and Description |
|---|---|
void |
TxCommand.execute(ClientContext clientContext,
Session session)
This method is called in a separate transaction context, that is
automatically committed, unless a RuntimeException is thrown.
|
protected void |
TxSessionManager.runTx(Session session,
ClientContext clientContext,
TxCommand command)
Method to execute the
command. |
Copyright © 2006–2020 Esito AS. All rights reserved.