|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OIDEncoder
Converts between the external and configurable internal representations of an
object identifier (OID
).
Note: An OIDEncoder
service is needed both at server
and at client side. Their bit mask configurations have to be identical
under all circumstances! Exactly one OIDEncoder
service is
used by a CDO Mapper
service. It's configuration
must match the needs of all applications using this
Mapper
service.
Method Summary | |
---|---|
long |
getOID(int rid,
long oidFragment)
Computes the packed OID from a given RID and OID fragment. |
long |
getOIDFragment(long oid)
Extracts the OID fragment from a packed OID . |
int |
getRID(long oid)
Extracts the RID from a packed OID . |
java.lang.String |
toString(int rid,
long oidFragment)
Computes the string representation of an OID . |
java.lang.String |
toString(long oid)
Computes the string representation of an OID . |
Methods inherited from interface org.eclipse.net4j.spring.Service |
---|
addStateListener, dump, getState, isActive, isAutoStart, isStarted, removeStateListener, start, stop, testSetState |
Methods inherited from interface org.eclipse.net4j.spring.Loggable |
---|
debug, debug, error, error, fatal, fatal, getBeanName, getChild, getContainer, getFullBeanName, getLogger, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isWarnEnabled, warn, warn |
Method Detail |
---|
int getRID(long oid)
RID
from a packed OID
.
oid
- The OID
value to extract the RID
from.
RID
value.long getOIDFragment(long oid)
OID
fragment from a packed OID
.
oid
- The OID
value to extract the OID
fragment from.
OID
fragment value.long getOID(int rid, long oidFragment)
OID
from a given RID
and OID
fragment.
rid
- The RID
part.oidFragment
- The OID
fragment part.
OID
valuejava.lang.String toString(int rid, long oidFragment)
OID
.
rid
- The RID
part of the OID
.oidFragment
- The OID
fragment part of the OID
.
OID
.java.lang.String toString(long oid)
OID
.
oid
- The packed OID
value.
OID
.
|
Copyright (c) 2004, 2005, 2006 Eike Stepper, Germany. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |