org.apache.openjpa.persistence
Class FetchPlanHintHandler

java.lang.Object
  extended by org.apache.openjpa.kernel.AbstractHintHandler
      extended by org.apache.openjpa.persistence.FetchPlanHintHandler
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HintHandler

public class FetchPlanHintHandler
extends AbstractHintHandler

Fetch plan hint handler. Handles openjpa.FetchPlan.*, javax.persistence.lock.* and javax.persistence.query.* hints.

Since:
2.0.0
See Also:
Serialized Form

Field Summary
protected  FetchPlanImpl _fPlan
           
protected static Map<String,String> JavaxHintsMap
           
protected static Map<String,String[]> PrecedenceMap
           
protected static String PREFIX_FETCHPLAN
           
protected static String PREFIX_JPA
           
protected static Set<String> ValidProductPrefixes
           
 
Fields inherited from class org.apache.openjpa.kernel.AbstractHintHandler
_fConfig, BLANK, DOT, PREFIX_JDBC, PREFIX_OPENJPA
 
Constructor Summary
FetchPlanHintHandler(FetchPlanImpl fetchPlan)
          Constructor; supply delegate.
 
Method Summary
protected  void handleException(RuntimeException e)
           
protected  boolean hasPrecedent(String key)
           
protected  String hintToKey(String key)
           
 boolean setHint(String hintName, Object value, boolean validateThrowException)
           
protected  boolean setHintInternal(String hintName, Object value, boolean validateThrowException)
           
 
Methods inherited from class org.apache.openjpa.kernel.AbstractHintHandler
getPrefixOf, getSuffixOf, hintToSetter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX_JPA

protected static final String PREFIX_JPA
See Also:
Constant Field Values

PREFIX_FETCHPLAN

protected static final String PREFIX_FETCHPLAN
See Also:
Constant Field Values

ValidProductPrefixes

protected static final Set<String> ValidProductPrefixes

JavaxHintsMap

protected static final Map<String,String> JavaxHintsMap

PrecedenceMap

protected static final Map<String,String[]> PrecedenceMap

_fPlan

protected FetchPlanImpl _fPlan
Constructor Detail

FetchPlanHintHandler

public FetchPlanHintHandler(FetchPlanImpl fetchPlan)
Constructor; supply delegate.

Method Detail

setHint

public boolean setHint(String hintName,
                       Object value,
                       boolean validateThrowException)
Overrides:
setHint in class AbstractHintHandler

setHintInternal

protected boolean setHintInternal(String hintName,
                                  Object value,
                                  boolean validateThrowException)
Specified by:
setHintInternal in class AbstractHintHandler

hintToKey

protected String hintToKey(String key)
Overrides:
hintToKey in class AbstractHintHandler

hasPrecedent

protected boolean hasPrecedent(String key)
Overrides:
hasPrecedent in class AbstractHintHandler

handleException

protected void handleException(RuntimeException e)
Overrides:
handleException in class AbstractHintHandler


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.