|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jorm.naming.lib.BasicPNamingContext
org.objectweb.jorm.naming.lib.BasicPBinder
org.objectweb.jorm.facility.naming.rdbsequence.RdbSequenceBinder
This binder is specific to the rdb mapper.
Field Summary |
Fields inherited from class org.objectweb.jorm.naming.lib.BasicPBinder |
cache, nullPName, pcm |
Fields inherited from class org.objectweb.jorm.naming.lib.BasicPNamingContext |
ptype |
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 |
Constructor Summary | |
RdbSequenceBinder()
|
Method Summary | |
boolean |
codingSupported(int codingtype)
It tests if a given coding type is supported by this naming context. |
PName |
decodeLong(long en)
The decodeLong methods recreates PName within a naming context from an encoded representation. |
PName |
decodeOlong(java.lang.Long en)
The decodeOlong methods recreates PName within a naming context from an encoded representation. |
PName |
decodeString(java.lang.String en)
The decodeString methods recreates PName within a naming context from an encoded representation. |
long |
encodeLong(PName pn)
The encodeLong method produces an encoded representation of a PName within a naming context. |
java.lang.Long |
encodeOlong(PName pn)
The encodeOlong method produces an encoded representation of a PName within a naming context. |
java.lang.String |
encodeString(PName pn)
The encodeString method produces an encoded representation of a PName within a naming context. |
PName |
export(java.lang.Object c,
java.lang.Object en)
It associates a PName to an information item within a naming context. |
PName |
export(java.lang.Object conn,
java.lang.Object infoitem,
java.lang.Object hints)
It associates a PName to an information item within a naming context. |
RdbSequenceHelper |
getSequenceHelper()
|
SequenceIdAllocator |
getSequenceIdAllocator()
|
protected void |
initSequenceHelper()
|
PName |
resolve(java.lang.Object conn,
PName pn)
It retrieves the information item associated to the given PName (if any exists). |
void |
setSequenceHelper(RdbSequenceHelper sequenceHelper)
|
void |
setSequenceIdAllocator(SequenceIdAllocator sia)
|
void |
unexport(java.lang.Object conn,
PName pn)
It removes the PName and all the associated information within a naming context (i.e., the association between the PName and its information item). |
void |
unexport(java.lang.Object conn,
PName pn,
java.lang.Object hints)
It removes the PName and all the associated information within a naming context (i.e., the association between the PName and its information item). |
Methods inherited from class org.objectweb.jorm.naming.lib.BasicPBinder |
bind, getBinderClassMapping, getCacheManager, getClassName, getNull, lookup, setCacheManager, setNullPName, setPClassMapping, unbind |
Methods inherited from class org.objectweb.jorm.naming.lib.BasicPNamingContext |
decode, decodeAbstract, decodeBigDecimal, decodeBigInteger, decodeByte, decodeChar, decodeCharArray, decodeDate, decodeInt, decodeObyte, decodeOchar, decodeOint, decodeOshort, decodeShort, encode, encodeAbstract, encodeBigDecimal, encodeBigInteger, encodeByte, encodeChar, encodeCharArray, encodeDate, encodeInt, encodeObyte, encodeOchar, encodeOint, encodeOshort, encodeShort, getPType, setPType, supportCompositeField, supportDynamicComposite, supportStaticComposite |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jorm.naming.api.PNameCoder |
decode, decodeAbstract, decodeBigDecimal, decodeBigInteger, decodeByte, decodeChar, decodeCharArray, decodeDate, decodeInt, decodeObyte, decodeOchar, decodeOint, decodeOshort, decodeShort, encode, encodeAbstract, encodeBigDecimal, encodeBigInteger, encodeByte, encodeChar, encodeCharArray, encodeDate, encodeInt, encodeObyte, encodeOchar, encodeOint, encodeOshort, encodeShort, getPType, setPType, supportCompositeField, supportDynamicComposite, supportStaticComposite |
Constructor Detail |
public RdbSequenceBinder()
Method Detail |
public void setSequenceIdAllocator(SequenceIdAllocator sia)
public SequenceIdAllocator getSequenceIdAllocator()
public RdbSequenceHelper getSequenceHelper()
public void setSequenceHelper(RdbSequenceHelper sequenceHelper)
protected void initSequenceHelper()
public PName resolve(java.lang.Object conn, PName pn) throws PException
PNamingContext
conn
- The connection that can be used to access the data store.pn
- The PName to be looked up.
PException
public PName export(java.lang.Object conn, java.lang.Object infoitem, java.lang.Object hints) throws PException
PNameManager
conn
- The connection that can be used to access the data store.infoitem
- The information item that must be accessible through a
PName within a naming context.hints
- Any information relevant for name creation.
PName
associated to the given information
item.
PException
public PName export(java.lang.Object c, java.lang.Object en) throws PException
PNameManager
c
- The connection that can be used to access the data store.en
- The information item that must be accessible through a
PName within a naming context.
PName
associated to the given information
item.
PException
public void unexport(java.lang.Object conn, PName pn) throws PException
PNameManager
conn
- The connection that can be used to access the data store.pn
- A PName valid in this naming context. In case of a PBinder,
export is done on a PBinding.
PException
public void unexport(java.lang.Object conn, PName pn, java.lang.Object hints) throws PException
PNameManager
conn
- The connection that can be used to access the data store.pn
- A PName valid in this naming context. In case of a PBinder,
export is done on a PBinding.hints
- Any information relevant for name removing.
PException
public long encodeLong(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeLong
in interface PNameCoder
encodeLong
in class BasicPNamingContext
PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Long encodeOlong(PName pn) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
encodeOlong
in interface PNameCoder
encodeOlong
in class BasicPNamingContext
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeLong(long en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeLong
in interface PNameCoder
decodeLong
in class BasicPNamingContext
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeOlong(java.lang.Long en) throws PExceptionNaming, java.lang.UnsupportedOperationException
PNameCoder
decodeOlong
in interface PNameCoder
decodeOlong
in class BasicPNamingContext
PExceptionNaming
java.lang.UnsupportedOperationException
public PName decodeString(java.lang.String en) throws PExceptionNaming
PNameCoder
en
- The String to be decoded.
PExceptionNaming
public boolean codingSupported(int codingtype)
PNameCoder
codingSupported
in interface PNameCoder
codingSupported
in class BasicPNamingContext
public java.lang.String encodeString(PName pn) throws PExceptionNaming
PNameCoder
pn
- The PName to be encoded
PExceptionNaming
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |