Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.ejb
Interface QueryProperties

All Known Subinterfaces:
PreparedQuery, Query, WLQueryProperties

public interface QueryProperties

Field Summary
static short TX_MANDATORY
           
static short TX_REQUIRED
           
static short TX_REQUIRES_NEW
           

 

Method Summary
abstract  boolean getEnableQueryCaching()
           
abstract  boolean getIncludeUpdates()
           
abstract  int getMaxElements()
           
abstract  short getTransaction()
           
abstract  boolean isResultTypeRemote()
           
abstract  void setEnableQueryCaching(boolean value)
          Used to turn query caching on
abstract  void setIncludeUpdates(boolean value)
          Used to specify whether any updates that have been made during the current transaction will be reflected in the query result.
abstract  void setMaxElements(int value)
          Sets the maximum number of results that can be returned.
abstract  void setResultTypeRemote(boolean value)
          Used to specify whether the results of the query will be EJBObjects or EJBLocalObjects.
abstract  void setTransaction(short value)
          Uses the standard EJB values: Required, RequiresNew, etc.

 

Field Detail

TX_REQUIRED

static final short TX_REQUIRED
See Also:
Constant Field Values

TX_REQUIRES_NEW

static final short TX_REQUIRES_NEW
See Also:
Constant Field Values

TX_MANDATORY

static final short TX_MANDATORY
See Also:
Constant Field Values

Method Detail

setTransaction

void setTransaction(short value)
                    throws FinderException
Uses the standard EJB values: Required, RequiresNew, etc. Default: Required
Throws:
FinderException

getTransaction

short getTransaction()
                     throws FinderException
Throws:
FinderException

setMaxElements

void setMaxElements(int value)
                    throws FinderException
Sets the maximum number of results that can be returned. Default: no limit
Throws:
FinderException

getMaxElements

int getMaxElements()
                   throws FinderException
Throws:
FinderException

setIncludeUpdates

void setIncludeUpdates(boolean value)
                       throws FinderException
Used to specify whether any updates that have been made during the current transaction will be reflected in the query result. Default: updates from the current transaction are not included
Throws:
FinderException

getIncludeUpdates

boolean getIncludeUpdates()
                          throws FinderException
Throws:
FinderException

setResultTypeRemote

void setResultTypeRemote(boolean value)
                         throws FinderException
Used to specify whether the results of the query will be EJBObjects or EJBLocalObjects. This setting is only valid when an EJB with both a local and remote client view is returned. Default: false
Throws:
FinderException

isResultTypeRemote

boolean isResultTypeRemote()
                           throws FinderException
Throws:
FinderException

setEnableQueryCaching

void setEnableQueryCaching(boolean value)
                           throws FinderException
Used to turn query caching on
Throws:
FinderException

getEnableQueryCaching

boolean getEnableQueryCaching()
                              throws FinderException
Throws:
FinderException

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09