public static Serializable serialize ( Serializable serializable ) throws IOException { if ( serializable == null ) { return null ; } if ( serializable instanceof KeyHelper ) { return serializable ; } ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream ( ) ; ObjectOutputStream objectOutputStream = new ObjectOutputStream ( byteArrayOutputStream ) ; objectOutputStream . writeObject ( serializable ) ; byteArrayOutputStream . flush ( ) ; //d164668 KeyHelper vkh = new KeyHelper ( ) ; vkh . vBytes = byteArrayOutputStream . toByteArray ( ) ; return vkh ; }
serialize the primary key corresponding to a Handle to an entity bean for Rel . 3 . 5 4 . 0 . This method is called from the writeObject