public class JPQL extends Object
Constructor and Description |
---|
JPQL() |
public static JPQL instance
public EntityManager em(String dbName)
public EntityManager em()
public long count(String entity)
public JPABase findById(String dbName, String entity, Object id) throws Exception
Exception
public <T extends JPABase> List<T> findBy(String dbName, String entity, String query, Object[] params)
public GenericModel.JPAQuery find(String entity, String query, Object[] params)
public GenericModel.JPAQuery find(String dbName, String entity, String query, Object[] params)
public GenericModel.JPAQuery find(String entity)
public GenericModel.JPAQuery find(String dbName, String entity)
public GenericModel.JPAQuery all(String entity)
public GenericModel.JPAQuery all(String dbName, String entity)
public int deleteAll(String entity)
public JPABase create(String entity, String name, Scope.Params params) throws Exception
Exception
public JPABase create(String dbName, String entity, String name, Scope.Params params) throws Exception
Exception
public String createFindByQuery(String dbName, String entityName, String entityClass, String query, Object... params)
public String createDeleteQuery(String entityName, String entityClass, String query, Object... params)
public String createCountQuery(String dbName, String entityName, String entityClass, String query, Object... params)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly