/** * Used by the owning session to explicitly control serialization of the action queue * * @param oos The stream to which the action queue should get written * @throws IOException Indicates an error writing to the stream */ public void serialize(ObjectOutputStream oos) throws IOException { LOG.trace( "Serializing action-queue" ); if( unresolvedInsertions == null ) { unresolvedInsertions = new UnresolvedEntityInsertActions(); } unresolvedInsertions.serialize( oos ); for ( ListProvider p : EXECUTABLE_LISTS_MAP.values() ) { ExecutableList<?> l = p.get( this ); if( l == null ) { oos.writeBoolean( false ); } else { oos.writeBoolean( true ); l.writeExternal( oos ); } } }
/** * Used by the owning session to explicitly control serialization of the action queue * * @param oos The stream to which the action queue should get written * @throws IOException Indicates an error writing to the stream */ public void serialize(ObjectOutputStream oos) throws IOException { LOG.trace( "Serializing action-queue" ); if( unresolvedInsertions == null ) { unresolvedInsertions = new UnresolvedEntityInsertActions(); } unresolvedInsertions.serialize( oos ); for ( ListProvider p : EXECUTABLE_LISTS_MAP.values() ) { ExecutableList<?> l = p.get( this ); if( l == null ) { oos.writeBoolean( false ); } else { oos.writeBoolean( true ); l.writeExternal( oos ); } } }