Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


oracle.adf.model.adapter.bean.jpa
Class JPQLUtils

java.lang.Object
  extended by oracle.adf.model.adapter.bean.jpa.JPQLUtils


public class JPQLUtils
extends java.lang.Object
Since:
11.1.2

Constructor Summary
JPQLUtils()
           

 

Method Summary
static java.lang.String getFilter(java.lang.Class clz, java.lang.String alias, SearchCriteria criteria)
          A common utility method that can convert the criteria into JPQL clause.
static java.lang.String getFormatedValue(java.lang.String type, java.lang.String value)
           
static java.lang.String getOperator(java.lang.String type)
          Get the name of the associated operator.
static java.lang.String getOrderBy(java.lang.Class clz, java.lang.String alias, SortCriteria criteria)
          A common utility method that can convert the criteria into JPQL clause.
static boolean isCharType(java.lang.String type)
          Return true if java.sql is type of char

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

JPQLUtils

public JPQLUtils()

Method Detail

getFilter

public static java.lang.String getFilter(java.lang.Class clz,
                                         java.lang.String alias,
                                         SearchCriteria criteria)
A common utility method that can convert the criteria into JPQL clause.
Parameters:
clz - An Class JPA entity class
alias - String alias name
criteria - A SearchCriteria is the criteria that needs to be converted into a JPQL clause
Returns:
A JPQL filter clause

getFormatedValue

public static java.lang.String getFormatedValue(java.lang.String type,
                                                java.lang.String value)

isCharType

public static boolean isCharType(java.lang.String type)
Return true if java.sql is type of char

getOperator

public static java.lang.String getOperator(java.lang.String type)
Get the name of the associated operator.
Parameters:
type - ADF operator name.
Returns:
JPQL operator.

getOrderBy

public static java.lang.String getOrderBy(java.lang.Class clz,
                                          java.lang.String alias,
                                          SortCriteria criteria)
A common utility method that can convert the criteria into JPQL clause.
Parameters:
clz - An Class JPA entity class
alias - String alias name
criteria - A SortCriteria is the criteria that needs to be converted into a JPQL clause
Returns:
A JPQL order by clause

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.2.0)

E17483-03


Copyright © 1997, 2012, Oracle. All rights reserved.