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

E17483-01

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

java.lang.Object
  extended by oracle.adf.model.adapter.bean.jpa.JPQLEntity
All Implemented Interfaces:
JPQLConstants

public class JPQLEntity
extends java.lang.Object
implements JPQLConstants

Since:
11.1.2

Field Summary
 
Fields inherited from interface oracle.adf.model.adapter.bean.jpa.JPQLConstants
AND_S, AS_S, ASC_S, BETWEEN_S, DESC_S, DISTINCT_S, FROM_S, GROUP_BY_S, HAVING_S, INNER_JOIN_S, INNER_S, IS_NOT_NULL_S, IS_NULL_S, JOIN_S, LEFT_JOIN_S, LEFT_OUTER_JOIN_S, LEFT_S, LIKE_S, NOT_BETWEEN_S, NOT_LIKE_S, OR_S, ORDER_BY_S, SELECT_S, WHERE_S
 
Constructor Summary
JPQLEntity(java.lang.String className)
           
JPQLEntity(java.lang.String className, java.lang.String namedQuery)
           
 
Method Summary
 java.lang.String findNamedQuery(java.lang.String name)
           
 java.lang.String getBaseFilter()
           
 java.lang.String getBaseQuery()
           
 java.lang.String getGroupBy()
           
 java.lang.String getHaving()
           
 java.lang.String getJoin()
           
 java.lang.String getOrderBy()
           
 java.lang.String getQueryStmt()
           
 java.lang.String getQueryStmtCount()
           
 void setFilter(java.lang.String filter)
           
 void setGroupBy(java.lang.String groupBy)
           
 void setHaving(java.lang.String having)
           
 void setOrderBy(java.lang.String orderBy)
           
 java.lang.String[] tokenize(java.lang.String jpqlStmt, java.lang.String regex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPQLEntity

public JPQLEntity(java.lang.String className)
           throws java.lang.ClassNotFoundException
Parameters:
className - String entity class name
Throws:
java.lang.ClassNotFoundException

JPQLEntity

public JPQLEntity(java.lang.String className,
                  java.lang.String namedQuery)
           throws java.lang.ClassNotFoundException
Parameters:
className - String entity class name
namedQuery - String @NamedQuery name
Throws:
java.lang.ClassNotFoundException
Method Detail

findNamedQuery

public java.lang.String findNamedQuery(java.lang.String name)
Parameters:
name - String named pattern
Returns:
query statement matched name

setFilter

public void setFilter(java.lang.String filter)
Parameters:
filter - String filter clause

setOrderBy

public void setOrderBy(java.lang.String orderBy)
Parameters:
orderBy - String order by clause

setGroupBy

public void setGroupBy(java.lang.String groupBy)
Parameters:
groupBy - String group by clause

setHaving

public void setHaving(java.lang.String having)
Parameters:
having - String having clause

getBaseQuery

public java.lang.String getBaseQuery()
Returns:
JPQL base select statement

getJoin

public java.lang.String getJoin()
Returns:
JPQL join part of the query

getBaseFilter

public java.lang.String getBaseFilter()
Returns:
JPQL base filter statement

getQueryStmt

public java.lang.String getQueryStmt()
Returns:
jpqlStmt for entity

getQueryStmtCount

public java.lang.String getQueryStmtCount()
Returns:
JPQL count statement.

tokenize

public java.lang.String[] tokenize(java.lang.String jpqlStmt,
                                   java.lang.String regex)
Parameters:
jpqlStmt - String query stmt
Returns:
tokens list of query stmt

getOrderBy

public java.lang.String getOrderBy()
Returns:
JPQL order by clause

getGroupBy

public java.lang.String getGroupBy()
Returns:
JPQL group by clause

getHaving

public java.lang.String getHaving()
Returns:
JPQL having clause

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

E17483-01

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