Class PersistenceFactory
java.lang.Object
org.eclipse.dirigible.database.persistence.PersistenceFactory
public class PersistenceFactory extends Object
A factory for creating Persistence objects.
-
Constructor Summary
Constructors Constructor Description PersistenceFactory() -
Method Summary
Modifier and Type Method Description static PersistenceTableModelcreateModel(Class<? extends Object> clazz)Creates a new Persistence object.static PersistenceTableModelcreateModel(Object pojo)Creates a new Persistence object.static PersistenceTableModelcreateModel(String json)Creates a new Persistence object.
-
Constructor Details
-
PersistenceFactory
public PersistenceFactory()
-
-
Method Details
-
createModel
Creates a new Persistence object.- Parameters:
pojo- the pojo- Returns:
- the persistence table model
- Throws:
PersistenceException- the persistence exception
-
createModel
public static PersistenceTableModel createModel(Class<? extends Object> clazz) throws PersistenceExceptionCreates a new Persistence object.- Parameters:
clazz- the clazz- Returns:
- the persistence table model
- Throws:
PersistenceException- the persistence exception
-
createModel
Creates a new Persistence object.- Parameters:
json- the json- Returns:
- the persistence table model
- Throws:
PersistenceException- the persistence exception
-