play.db.jpa
Class JPQLDialect

java.lang.Object
  extended by play.db.jpa.JPQLDialect

public class JPQLDialect
extends java.lang.Object


Field Summary
static JPQLDialect instance
           
 
Constructor Summary
JPQLDialect()
           
 
Method Summary
 javax.persistence.Query bindParameters(javax.persistence.Query q, java.lang.Object... params)
           
 java.lang.String createCountQuery(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 entityName, java.lang.String entityClass, java.lang.String query, java.lang.Object... params)
           
protected static java.lang.String extractProp(java.lang.String part, java.lang.String end)
           
 java.lang.String findByToJPQL(java.lang.String findBy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static JPQLDialect instance
Constructor Detail

JPQLDialect

public JPQLDialect()
Method Detail

createFindByQuery

public java.lang.String createFindByQuery(java.lang.String entityName,
                                          java.lang.String entityClass,
                                          java.lang.String query,
                                          java.lang.Object... params)

createDeleteQuery

public java.lang.String createDeleteQuery(java.lang.String entityName,
                                          java.lang.String entityClass,
                                          java.lang.String query,
                                          java.lang.Object... params)

createCountQuery

public java.lang.String createCountQuery(java.lang.String entityName,
                                         java.lang.String entityClass,
                                         java.lang.String query,
                                         java.lang.Object... params)

bindParameters

public javax.persistence.Query bindParameters(javax.persistence.Query q,
                                              java.lang.Object... params)

findByToJPQL

public java.lang.String findByToJPQL(java.lang.String findBy)

extractProp

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