org.ow2.jonas.lib.ejb21.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(Object pk)
          This method build a PName with the primary key specifed in parameter.
 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(Object pk)
                                           throws org.objectweb.jorm.api.PException,
                                                  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
UnsupportedOperationException - operation not supported.

encode

Object encode(org.objectweb.jorm.naming.api.PName pn)
              throws org.objectweb.jorm.api.PException,
                     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
UnsupportedOperationException - operation not supported.


Copyright © 2010 OW2 Consortium. All Rights Reserved.