This project has retired. For details please refer to its
Attic page .
DBUtils (Jetspeed 1 Enterprise Portal 1.6 API)
org.apache.jetspeed.services.psmlmanager.db
Class DBUtils
java.lang.Object
org.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
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
DBUtils
public DBUtils ()
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.