org.apache.jetspeed.services.psmlmanager.db
Class DBUtils

java.lang.Object
  extended byorg.apache.jetspeed.services.psmlmanager.db.DBUtils

public class DBUtils
extends java.lang.Object

This is a utility class used for database PSML implementation.

Version:
$Id: DBUtils.java,v 1.7 2004/02/23 03:32:19 jford Exp $
Author:
Atul Dambalkar

Constructor Summary
DBUtils()
           
 
Method Summary
static Portlets bytesToPortlets(byte[] portletBytes, org.exolab.castor.mapping.Mapping mapping)
          Deserialize a PSML structure read from bytes array using Castor XML unmarshaller
static byte[] portletsToBytes(Portlets portlets, org.exolab.castor.mapping.Mapping mapping)
          Serialize a PSML structure using string writer with Castor XML marshaller, put it in bytes array and return it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBUtils

public DBUtils()
Method Detail

bytesToPortlets

public static Portlets bytesToPortlets(byte[] portletBytes,
                                       org.exolab.castor.mapping.Mapping mapping)
Deserialize a PSML structure read from bytes array using Castor XML unmarshaller

Parameters:
portletBytes - Bytes array to load the PSML from
Returns:
PSML structure Portlets object

portletsToBytes

public static byte[] portletsToBytes(Portlets portlets,
                                     org.exolab.castor.mapping.Mapping mapping)
Serialize a PSML structure using string writer with Castor XML marshaller, put it in bytes array and return it.

Parameters:
portlets - the structure to convert to bytes array
Returns:
Bytes array object for portles


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.