org.objectweb.jorm.naming.api
Interface PBinder
- PNameCoder, PNameManager
This interface defines a binder as a particular PNameManager that manages
the association of bindings with PName. Each JORM class managed by a mapper
have an associated PBinder. * Binders provide binding objects specific to the persistent class.
- R. Basset, P. D?chamboux
CTBIGDECIMAL , CTBIGINTEGER , CTBYTE , CTBYTEARRAY , CTCHAR , CTCHARARRAY , CTCOMPOSITE , CTDATE , CTINT , CTLONG , CTOBYTE , CTOCHAR , CTOINT , CTOLONG , CTOSHORT , CTSHORT , CTSTRING , CTSYSTEM |
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 |
bind
public void bind(PName pn,
PBindingCtrl pb)
throws PException
It associates a PBinding object with a PName within a PBinder. This
sets/resets the link between a PBinding and a DSI.
pn
- The PName to associate to the PBinding. This PName must be
valid within this binder just like with a naming context.pb
- The PBinding to bind with the given PName; this PBinding
must have been created or initialised by this PBinder.
getBinderClassMapping
public PClassMapping getBinderClassMapping()
It returns the PClassMapping for which it is the binder.
- The PClassMapping to which it is associated.
getCacheManager
public CacheManager getCacheManager()
Returns the cache manager associated with this binder.
- The cache manager.
lookup
public PBinding lookup(PName pn)
throws PException
It looks for a PBinding object with the given PName within a PBinder.
pn
- The PName to associate to the PBinding. This PName must be
valid within this binder just like with a naming context.
- The PBinding bound with the given PName.
setCacheManager
public void setCacheManager(CacheManager cm)
throws PException
Assigns the cache manager associated with this binder.
cm
- The cache manager.
PException
-
setPClassMapping
public void setPClassMapping(PClassMapping pcm)
It set the PClassMapping which use this binder slave.
pcm
- The PClassMapping.
unbind
public void unbind(PBindingCtrl pb)
throws PException
It releases the link between the PBinding passed as parameter and its
associated DSI represented by the PName referenced by this PBinding.
pb
- The PBinding to unbind.