org.objectweb.jorm.naming.api

Interface KeyFilteredNamingContext

All Superinterfaces:
PNameCoder, PNameManager, PNamingContext

public interface KeyFilteredNamingContext
extends PNamingContext

Author:
S.Chassande-Barrioz

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

Map
entries()
Object
evaluate(Object png, Object ctx)
Evaluate the Expression/filter on a PNameGetter
void
exportClass(PBinder binder, Object key)
Export a new persistent class into this PNamingContext
PType
getExpressionType()
PBinder
lookup(Object key)
void
setExpressionType(PType type)
void
unexportClass(Object key)
Unexport a persistent class from this PNamingContext

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

Methods inherited from interface org.objectweb.jorm.naming.api.PNameManager

export, export, unexport, unexport

Methods inherited from interface org.objectweb.jorm.naming.api.PNamingContext

resolve

Method Details

entries

public Map entries()

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


evaluate

public Object evaluate(Object png,
                       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.


exportClass

public void exportClass(PBinder binder,
                        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.


getExpressionType

public PType getExpressionType()


lookup

public PBinder lookup(Object key)

Parameters:
key - is the persistent class identifier

Returns:
the Pbinder instance corresponding a persistent class


setExpressionType

public void setExpressionType(PType type)


unexportClass

public void unexportClass(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.