org.objectweb.jonas_ejb.container.jorm
Interface Coder


public interface Coder

This interface specifies two methods to translate a PName into a PK or the opposite action.

Author:
Sebastien Chassande-Barrioz

Method Summary
 org.objectweb.jorm.naming.api.PName decode(java.lang.Object pk)
          This method build a PName with the primary key specifed in parameter.
 java.lang.Object encode(org.objectweb.jorm.naming.api.PName pn)
          This method build a primary key with the PName specifed in parameter.
 

Method Detail

decode

org.objectweb.jorm.naming.api.PName decode(java.lang.Object pk)
                                           throws org.objectweb.jorm.api.PException,
                                                  java.lang.UnsupportedOperationException
This method build a PName with the primary key specifed in parameter.

Parameters:
pk - the primary key
Returns:
the PName
Throws:
org.objectweb.jorm.api.PException - the operation has failed
java.lang.UnsupportedOperationException - operation not supported.

encode

java.lang.Object encode(org.objectweb.jorm.naming.api.PName pn)
                        throws org.objectweb.jorm.api.PException,
                               java.lang.UnsupportedOperationException
This method build a primary key with the PName specifed in parameter.

Parameters:
pn - the Jorm PName
Returns:
the primary key
Throws:
org.objectweb.jorm.api.PException - the operation has failed
java.lang.UnsupportedOperationException - operation not supported.