|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.
| Field Summary |
| Fields inherited from interface org.objectweb.jorm.naming.api.PNameCoder |
CTBYTE, CTBYTEARRAY, CTCHAR, CTCHARARRAY, CTCOMPOSITE, CTDATE, CTINT, CTLONG, CTOBYTE, CTOCHAR, CTOINT, CTOLONG, CTOSHORT, CTSHORT, CTSTRING, CTSYSTEM |
| Method Summary | |
void |
bind(PName pn,
PBindingCtrl pb)
It associates a PBinding object with a PName within a PBinder. |
PClassMapping |
getBinderClassMapping()
It returns the PClassMapping for which it is the binder. |
CacheManager |
getCacheManager()
Returns the cache manager associated with this binder. |
PBinding |
lookup(PName pn)
It looks for a PBinding object with the given PName within a PBinder. |
void |
setCacheManager(CacheManager cm)
Assigns the cache manager associated with this binder. |
void |
setPClassMapping(PClassMapping pcm)
It set the PClassMapping which use this binder slave. |
void |
unbind(PBindingCtrl pb)
It releases the link between the PBinding passed as parameter and its associated DSI represented by the PName referenced by this PBinding. |
| 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, decodeByte, decodeChar, decodeCharArray, decodeDate, decodeInt, decodeLong, decodeObyte, decodeOchar, decodeOint, decodeOlong, decodeOshort, decodeShort, decodeString, encode, encodeAbstract, encodeByte, encodeChar, encodeCharArray, encodeDate, encodeInt, encodeLong, encodeObyte, encodeOchar, encodeOint, encodeOlong, encodeOshort, encodeShort, encodeString, getNull, getPType, setNullPName, setPType, supportCompositeField, supportDynamicComposite, supportStaticComposite |
| Method Detail |
public PBinding lookup(PName pn)
throws PException
pn - The PName to associate to the PBinding. This PName must be
valid within this binder just like with a naming context.
PExceptionNaming - The given PName is not valid in this
PBinder or this PBinding cannot be managed
by this PBinder.
PException
public void bind(PName pn,
PBindingCtrl pb)
throws PException
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.
PExceptionNaming - The given PName is not valid in this
PBinder or this PBinding cannot be managed
by this PBinder.
PExceptionpublic PClassMapping getBinderClassMapping()
public void setPClassMapping(PClassMapping pcm)
pcm - The PClassMapping.
public void unbind(PBindingCtrl pb)
throws PException
pb - The PBinding to unbind.
PExceptionNaming - This PBinding cannot be managed by this
PBinder.
PExceptionpublic CacheManager getCacheManager()
public void setCacheManager(CacheManager cm)
throws PException
cm - The cache manager.
PException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||