org.objectweb.jorm.naming.api
Interface KeyFilteredNamingContext

All Superinterfaces:
PNameCoder, PNameManager, PNamingContext

public interface KeyFilteredNamingContext
extends PNamingContext

Author:
S.Chassande-Barrioz

Field Summary
 
Fields inherited from interface org.objectweb.jorm.naming.api.PNameCoder
CTBIGDECIMAL, CTBIGINTEGER, CTBYTE, CTBYTEARRAY, CTCHAR, CTCHARARRAY, CTCOMPOSITE, CTDATE, CTINT, CTLONG, CTOBYTE, CTOCHAR, CTOINT, CTOLONG, CTOSHORT, CTSHORT, CTSTRING, CTSYSTEM
 
Method Summary
 java.util.Map entries()
           
 java.lang.Object evaluate(java.lang.Object png, java.lang.Object ctx)
          Evaluate the Expression/filter on a PNameGetter
 void exportClass(PBinder binder, java.lang.Object key)
          Export a new persistent class into this PNamingContext
 PType getExpressionType()
           
 PBinder lookup(java.lang.Object key)
           
 void setExpressionType(PType type)
           
 void unexportClass(java.lang.Object key)
          Unexport a persistent class from this PNamingContext
 
Methods inherited from interface org.objectweb.jorm.naming.api.PNamingContext
resolve
 
Methods inherited from interface org.objectweb.jorm.naming.api.PNameManager
export, export, unexport, unexport
 
Methods inherited from interface org.objectweb.jorm.naming.api.PNameCoder
codingSupported, decode, decodeAbstract, decodeBigDecimal, decodeBigInteger, decodeByte, decodeChar, decodeCharArray, decodeDate, decodeInt, decodeLong, decodeObyte, decodeOchar, decodeOint, decodeOlong, decodeOshort, decodeShort, decodeString, encode, encodeAbstract, encodeBigDecimal, encodeBigInteger, encodeByte, encodeChar, encodeCharArray, encodeDate, encodeInt, encodeLong, encodeObyte, encodeOchar, encodeOint, encodeOlong, encodeOshort, encodeShort, encodeString, getNull, getPType, setNullPName, setPType, supportCompositeField, supportDynamicComposite, supportStaticComposite
 

Method Detail

exportClass

public void exportClass(PBinder binder,
                        java.lang.Object key)
                 throws PException
Export a new persistent class into this PNamingContext

Parameters:
binder - is the PBinder instance of the persistent class
key - is the key value permitting to identify the persistent class
Throws:
PException - if the class is already exported in this PNamingContext.

unexportClass

public void unexportClass(java.lang.Object key)
                   throws PException
Unexport a persistent class from this PNamingContext

Parameters:
key - is the key value permitting to identify the persistent class
Throws:
PException - if the persistent class is not managed by this PNamingContext.

lookup

public PBinder lookup(java.lang.Object key)
Parameters:
key - is the persistent class identifier
Returns:
the Pbinder instance corresponding a persistent class

entries

public java.util.Map entries()
Returns:
an unmodifiable map representing the associations between a persistent class identifiers (key) and the binder of the persistent class.

evaluate

public java.lang.Object evaluate(java.lang.Object png,
                                 java.lang.Object ctx)
                          throws PException
Evaluate the Expression/filter on a PNameGetter

Parameters:
png - is a PNameGetter permitting to fill the expression parameters
Returns:
value of the expression. This value should be a key value of a persistent class.
Throws:
PException

setExpressionType

public void setExpressionType(PType type)

getExpressionType

public PType getExpressionType()