org.objectweb.jorm.facility.naming.polymorphid
Class PolymorphIdBinderInfo

java.lang.Object
  |
  +--PolymorphIdBinder
        |
        +--org.objectweb.jorm.facility.naming.polymorphid.PolymorphIdBinderInfo
All Implemented Interfaces:
PAccessor, PBinder, PNameCoder, PNameManager

public class PolymorphIdBinderInfo
extends PolymorphIdBinder
implements PAccessor, PBinder

Implements a binder that manages polymorphic names. Such names are composed of the identifier of the persistent class to which they belong (see classId below), and of an object identifier within this binder, which is generated by this binder. The classId information is persistent; thus, this class is extended by ClassIdBinding generated by JORM using "ClassId.pd".

Author:
P. Dechamboux
See Also:
Serialized Form

Field Summary
static java.lang.String CLASSIDN
           
static java.lang.String IDCLASSN
           
 
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
 
Constructor Summary
PolymorphIdBinderInfo()
           
 
Method Summary
 PName export(java.lang.Object conn, java.lang.Object binding)
          It associates a PName to an information item within a naming context.
 PName export(java.lang.Object conn, java.lang.Object binding, java.lang.Object ctxt)
          It associates a PName to an information item within a naming context.
 java.lang.String getClassName()
           
 java.lang.Object getMemoryInstance()
          It returns the memory instance within which the persistent variables are defined.
 long paGetClassId()
           
 java.lang.String paGetClassName()
           
 void paSetClassId(long val)
           
 void paSetClassName(java.lang.String val)
           
 void setPType(PType pt)
          Assigns the PType associated to the JORM class which is the type of the name managed by this naming context.
 
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.PBinder
bind, getBinderClassMapping, getCacheManager, lookup, setCacheManager, setPClassMapping, unbind
 
Methods inherited from interface org.objectweb.jorm.naming.api.PNameManager
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, supportCompositeField, supportDynamicComposite, supportStaticComposite
 

Field Detail

CLASSIDN

public static final java.lang.String CLASSIDN
See Also:
Constant Field Values

IDCLASSN

public static final java.lang.String IDCLASSN
See Also:
Constant Field Values
Constructor Detail

PolymorphIdBinderInfo

public PolymorphIdBinderInfo()
Method Detail

getClassName

public java.lang.String getClassName()

setPType

public void setPType(PType pt)
Description copied from interface: PNameCoder
Assigns the PType associated to the JORM class which is the type of the name managed by this naming context.

Specified by:
setPType in interface PNameCoder
Parameters:
pt - The PType of the JORM class reference managed by this naming context.

export

public PName export(java.lang.Object conn,
                    java.lang.Object binding)
             throws PException
Description copied from interface: PNameManager
It associates a PName to an information item within a naming context.

Specified by:
export in interface PNameManager
Parameters:
conn - The connection that can be used to access the data store.
binding - The information item that must be accessible through a PName within a naming context.
Returns:
The PName associated to the given information item.
PException

export

public PName export(java.lang.Object conn,
                    java.lang.Object binding,
                    java.lang.Object ctxt)
             throws PException
Description copied from interface: PNameManager
It associates a PName to an information item within a naming context.

Specified by:
export in interface PNameManager
Parameters:
conn - The connection that can be used to access the data store.
binding - The information item that must be accessible through a PName within a naming context.
ctxt - Any information relevant for name creation.
Returns:
The PName associated to the given information item.
PException

getMemoryInstance

public java.lang.Object getMemoryInstance()
Description copied from interface: PAccessor
It returns the memory instance within which the persistent variables are defined.

Specified by:
getMemoryInstance in interface PAccessor
Returns:
The actual object containing memory persistent variables.

paSetClassId

public void paSetClassId(long val)
                  throws PException
PException

paGetClassId

public long paGetClassId()
                  throws PException
PException

paSetClassName

public void paSetClassName(java.lang.String val)
                    throws PException
PException

paGetClassName

public java.lang.String paGetClassName()
                                throws PException
PException