org.openorb.pss.connector.database
Class DatabaseUtil

java.lang.Object
  extended by org.openorb.pss.connector.database.DatabaseUtil

public class DatabaseUtil
extends java.lang.Object

This class provides utility for database persistence.

Author:
Jerome Daniel

Constructor Summary
DatabaseUtil()
           
 
Method Summary
static void flatOutput(org.omg.CORBA.portable.OutputStream output, org.omg.CORBA.portable.OutputStream[] outputs)
           
static byte[] getBuffer(org.openorb.orb.iiop.CDROutputStream output)
           
static org.openorb.orb.iiop.CDRInputStream getCDRInputStream(byte[] data)
           
static org.openorb.orb.iiop.CDROutputStream getCDROutputStream()
           
static KeyBag[] keys(int size)
           
static void marshalRef(java.lang.Object ref, org.omg.CORBA.portable.OutputStream output)
           
static org.omg.CORBA.portable.InputStream[] multipleInput(org.omg.CORBA.portable.InputStream input, int nb)
           
static org.omg.CORBA.portable.OutputStream[] outputArray(int size)
           
static void truncArray(java.lang.Object[] src, java.lang.Object[] tgt, int index)
           
static StorageObjectRef unmarshalRef(java.lang.Object ref, org.omg.CORBA.portable.InputStream input, StorageHomeBase hbase)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseUtil

public DatabaseUtil()
Method Detail

truncArray

public static void truncArray(java.lang.Object[] src,
                              java.lang.Object[] tgt,
                              int index)

keys

public static KeyBag[] keys(int size)

marshalRef

public static void marshalRef(java.lang.Object ref,
                              org.omg.CORBA.portable.OutputStream output)

unmarshalRef

public static StorageObjectRef unmarshalRef(java.lang.Object ref,
                                            org.omg.CORBA.portable.InputStream input,
                                            StorageHomeBase hbase)

outputArray

public static org.omg.CORBA.portable.OutputStream[] outputArray(int size)

flatOutput

public static void flatOutput(org.omg.CORBA.portable.OutputStream output,
                              org.omg.CORBA.portable.OutputStream[] outputs)

multipleInput

public static org.omg.CORBA.portable.InputStream[] multipleInput(org.omg.CORBA.portable.InputStream input,
                                                                 int nb)

getCDROutputStream

public static org.openorb.orb.iiop.CDROutputStream getCDROutputStream()

getCDRInputStream

public static org.openorb.orb.iiop.CDRInputStream getCDRInputStream(byte[] data)

getBuffer

public static byte[] getBuffer(org.openorb.orb.iiop.CDROutputStream output)