|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.model.PersistenceFacade
public class PersistenceFacade
To access to some persistence services in an abstract way.
We need this class to write some code in OpenXava that works in the same way if we are using Hibernate or EJB3 JPA (or other persistence technology).
This class can be used in custom application code, although for this case maybe it's better to use directly the EJB3 JPA (or Hibernate) API.
This class uses the underlayer persistence provider that it's configured in xava.properties with the property persistenceProviderClass.
If the methods fail they throw RuntimeException, the specific
RuntimeException depends on the implementation technology.
| Constructor Summary | |
|---|---|
PersistenceFacade()
|
|
| Method Summary | |
|---|---|
static void |
refreshIfManaged(java.lang.Object object)
Refresh the state of the instance from the database, overwriting changes made to the entity, if any. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceFacade()
| Method Detail |
|---|
public static void refreshIfManaged(java.lang.Object object)
If the object is null or it's not managed simply do nothing, but not fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||