org.apache.openjpa.kernel
Class AbstractHintHandler

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

public abstract class AbstractHintHandler
extends Object
implements Serializable

Default hint handler abstract base class.

Since:
2.0.0
See Also:
Serialized Form

Field Summary
protected  FetchConfigurationImpl _fConfig
           
protected static String BLANK
           
protected static String DOT
           
protected static String PREFIX_JDBC
           
protected static String PREFIX_OPENJPA
           
 
Constructor Summary
AbstractHintHandler(FetchConfigurationImpl fConfig)
          Constructor; supply delegate.
 
Method Summary
protected static String getPrefixOf(String key)
           
protected static String getSuffixOf(String key)
           
protected  void handleException(RuntimeException e)
           
protected  boolean hasPrecedent(String key)
           
protected  String hintToKey(String key)
           
protected  boolean hintToSetter(Object target, String k, Object value)
           
 boolean setHint(String hintName, Object value, boolean validateThrowException)
           
protected abstract  boolean setHintInternal(String hintName, Object value, boolean validateThrowException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOT

protected static final String DOT
See Also:
Constant Field Values

BLANK

protected static final String BLANK
See Also:
Constant Field Values

PREFIX_OPENJPA

protected static final String PREFIX_OPENJPA
See Also:
Constant Field Values

PREFIX_JDBC

protected static final String PREFIX_JDBC
See Also:
Constant Field Values

_fConfig

protected FetchConfigurationImpl _fConfig
Constructor Detail

AbstractHintHandler

public AbstractHintHandler(FetchConfigurationImpl fConfig)
Constructor; supply delegate.

Method Detail

setHintInternal

protected abstract boolean setHintInternal(String hintName,
                                           Object value,
                                           boolean validateThrowException)

setHint

public boolean setHint(String hintName,
                       Object value,
                       boolean validateThrowException)

hintToKey

protected String hintToKey(String key)

hasPrecedent

protected boolean hasPrecedent(String key)

handleException

protected void handleException(RuntimeException e)

hintToSetter

protected final boolean hintToSetter(Object target,
                                     String k,
                                     Object value)

getPrefixOf

protected static String getPrefixOf(String key)

getSuffixOf

protected static String getSuffixOf(String key)


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