public class JPQL
extends java.lang.Object
Constructor and Description |
---|
JPQL() |
Modifier and Type | Method and Description |
---|---|
GenericModel.JPAQuery |
all(java.lang.String entity) |
GenericModel.JPAQuery |
all(java.lang.String dbName,
java.lang.String entity) |
javax.persistence.Query |
bindParameters(javax.persistence.Query q,
java.util.Map<java.lang.String,java.lang.Object> params) |
javax.persistence.Query |
bindParameters(javax.persistence.Query q,
java.lang.Object... params) |
long |
count(java.lang.String entity) |
long |
count(java.lang.String dbName,
java.lang.String entity) |
long |
count(java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
long |
count(java.lang.String dbName,
java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
JPABase |
create(java.lang.String entity,
java.lang.String name,
Scope.Params params) |
JPABase |
create(java.lang.String dbName,
java.lang.String entity,
java.lang.String name,
Scope.Params params) |
java.lang.String |
createCountQuery(java.lang.String dbName,
java.lang.String entityName,
java.lang.String entityClass,
java.lang.String query,
java.lang.Object... params) |
java.lang.String |
createDeleteQuery(java.lang.String entityName,
java.lang.String entityClass,
java.lang.String query,
java.lang.Object... params) |
java.lang.String |
createFindByQuery(java.lang.String dbName,
java.lang.String entityName,
java.lang.String entityClass,
java.lang.String query,
java.lang.Object... params) |
int |
delete(java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
int |
delete(java.lang.String dbName,
java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
int |
deleteAll(java.lang.String entity) |
int |
deleteAll(java.lang.String dbName,
java.lang.String entity) |
javax.persistence.EntityManager |
em() |
javax.persistence.EntityManager |
em(java.lang.String dbName) |
protected static java.lang.String |
extractProp(java.lang.String part,
java.lang.String end) |
GenericModel.JPAQuery |
find(java.lang.String entity) |
GenericModel.JPAQuery |
find(java.lang.String dbName,
java.lang.String entity) |
GenericModel.JPAQuery |
find(java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
GenericModel.JPAQuery |
find(java.lang.String dbName,
java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
<T extends JPABase> |
findAll(java.lang.String entity) |
<T extends JPABase> |
findAll(java.lang.String dbName,
java.lang.String entity) |
<T extends JPABase> |
findBy(java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
<T extends JPABase> |
findBy(java.lang.String dbName,
java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
JPABase |
findById(java.lang.String entity,
java.lang.Object id) |
JPABase |
findById(java.lang.String dbName,
java.lang.String entity,
java.lang.Object id) |
java.lang.String |
findByToJPQL(java.lang.String findBy) |
java.lang.String |
findByToJPQL(java.lang.String dbName,
java.lang.String findBy) |
JPABase |
findOneBy(java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
JPABase |
findOneBy(java.lang.String dbName,
java.lang.String entity,
java.lang.String query,
java.lang.Object[] params) |
public static JPQL instance
public javax.persistence.EntityManager em(java.lang.String dbName)
public javax.persistence.EntityManager em()
public long count(java.lang.String entity)
public long count(java.lang.String dbName, java.lang.String entity)
public long count(java.lang.String entity, java.lang.String query, java.lang.Object[] params)
public long count(java.lang.String dbName, java.lang.String entity, java.lang.String query, java.lang.Object[] params)
public <T extends JPABase> java.util.List<T> findAll(java.lang.String entity)
public <T extends JPABase> java.util.List<T> findAll(java.lang.String dbName, java.lang.String entity)
public JPABase findById(java.lang.String entity, java.lang.Object id) throws java.lang.Exception
java.lang.Exception
public JPABase findById(java.lang.String dbName, java.lang.String entity, java.lang.Object id) throws java.lang.Exception
java.lang.Exception
public <T extends JPABase> java.util.List<T> findBy(java.lang.String entity, java.lang.String query, java.lang.Object[] params)
public <T extends JPABase> java.util.List<T> findBy(java.lang.String dbName, java.lang.String entity, java.lang.String query, java.lang.Object[] params)
public GenericModel.JPAQuery find(java.lang.String entity, java.lang.String query, java.lang.Object[] params)
public GenericModel.JPAQuery find(java.lang.String dbName, java.lang.String entity, java.lang.String query, java.lang.Object[] params)
public GenericModel.JPAQuery find(java.lang.String entity)
public GenericModel.JPAQuery find(java.lang.String dbName, java.lang.String entity)
public GenericModel.JPAQuery all(java.lang.String entity)
public GenericModel.JPAQuery all(java.lang.String dbName, java.lang.String entity)
public int delete(java.lang.String dbName, java.lang.String entity, java.lang.String query, java.lang.Object[] params)
public int delete(java.lang.String entity, java.lang.String query, java.lang.Object[] params)
public int deleteAll(java.lang.String dbName, java.lang.String entity)
public int deleteAll(java.lang.String entity)
public JPABase findOneBy(java.lang.String dbName, java.lang.String entity, java.lang.String query, java.lang.Object[] params)
public JPABase findOneBy(java.lang.String entity, java.lang.String query, java.lang.Object[] params)
public JPABase create(java.lang.String entity, java.lang.String name, Scope.Params params) throws java.lang.Exception
java.lang.Exception
public JPABase create(java.lang.String dbName, java.lang.String entity, java.lang.String name, Scope.Params params) throws java.lang.Exception
java.lang.Exception
public java.lang.String createFindByQuery(java.lang.String dbName, java.lang.String entityName, java.lang.String entityClass, java.lang.String query, java.lang.Object... params)
public java.lang.String createDeleteQuery(java.lang.String entityName, java.lang.String entityClass, java.lang.String query, java.lang.Object... params)
public java.lang.String createCountQuery(java.lang.String dbName, java.lang.String entityName, java.lang.String entityClass, java.lang.String query, java.lang.Object... params)
public javax.persistence.Query bindParameters(javax.persistence.Query q, java.lang.Object... params)
public javax.persistence.Query bindParameters(javax.persistence.Query q, java.util.Map<java.lang.String,java.lang.Object> params)
public java.lang.String findByToJPQL(java.lang.String findBy)
public java.lang.String findByToJPQL(java.lang.String dbName, java.lang.String findBy)
protected static java.lang.String extractProp(java.lang.String part, java.lang.String end)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly