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

java.lang.Object
  extended byPolymorphIdBinder
      extended byorg.objectweb.jorm.facility.naming.polymorphid.PolymorphIdBinderInfo
All Implemented Interfaces:
PAccessor

public class PolymorphIdBinderInfo
extends PolymorphIdBinder
implements PAccessor

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
           
 
Constructor Summary
PolymorphIdBinderInfo()
           
 
Method Summary
 PName export(java.lang.Object conn, java.lang.Object binding)
           
 PName export(java.lang.Object conn, java.lang.Object binding, java.lang.Object ctxt)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

export

public PName export(java.lang.Object conn,
                    java.lang.Object binding)
             throws PException
Throws:
PException

export

public PName export(java.lang.Object conn,
                    java.lang.Object binding,
                    java.lang.Object ctxt)
             throws PException
Throws:
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
Throws:
PException

paGetClassId

public long paGetClassId()
                  throws PException
Throws:
PException

paSetClassName

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

paGetClassName

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