--- /dev/null
+module subastas{
+
+
+ interface clienteSubastas{
+ readonly attribute string identificacion;
+ void finSubasta();
+ };
+
+ typedef sequence<clienteSubastas> lista_clientes;
+ interface coordinadorSubasta{
+ /**
+ * coordinadorSubasta: interfaz de objetos que gestionan el
+ * desarrollo de la subasta de cada bien subastado por la empresa.
+
+ * La subasta pasara por tres estados:
+ * Inscripcion
+ * Abierta
+ * Cerrada
+ *
+ */
+
+ attribute clienteSubastas ganador_provisional;
+ attribute lista_clientes clientes;
+
+ readonly attribute float valor;
+ readonly attribute string descripcion;
+ // Inscripcion -> Abierta -> Cerrada
+ readonly attribute string estado;
+
+ void inscribirCliente(in clienteSubastas cl);
+ void abrirSubasta();
+ boolean pujar(in float cantidad, in clienteSubastas cl);
+ void ultimaPuja(in clienteSubastas cl);
+ void ganador();
+ };
+
+ typedef sequence<coordinadorSubasta> lista_subastas;
+ interface gestorSubastas{
+ coordinadorSubasta crearSubasta(in float valor, in string desc);
+ void destruirSubasta(in coordinadorSubasta cs);
+ lista_subastas localizarSubasta(in string palabra);
+ };
+
+};
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/_clienteSubastasStub.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public class _clienteSubastasStub extends org.omg.CORBA.portable.ObjectImpl implements subastas.clienteSubastas
+{
+
+ public String identificacion ()
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("_get_identificacion", true);
+ $in = _invoke ($out);
+ String $result = $in.read_string ();
+ return $result;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ return identificacion ( );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // identificacion
+
+ public void finSubasta ()
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("finSubasta", true);
+ $in = _invoke ($out);
+ return;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ finSubasta ( );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // finSubasta
+
+ // Type-specific CORBA::Object operations
+ private static String[] __ids = {
+ "IDL:subastas/clienteSubastas:1.0"};
+
+ public String[] _ids ()
+ {
+ return (String[])__ids.clone ();
+ }
+
+ private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
+ {
+ String str = s.readUTF ();
+ String[] args = null;
+ java.util.Properties props = null;
+ org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
+ org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
+ _set_delegate (delegate);
+ }
+
+ private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
+ {
+ String[] args = null;
+ java.util.Properties props = null;
+ String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
+ s.writeUTF (str);
+ }
+} // class _clienteSubastasStub
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/_coordinadorSubastaStub.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public class _coordinadorSubastaStub extends org.omg.CORBA.portable.ObjectImpl implements subastas.coordinadorSubasta
+{
+
+
+ /**
+ * coordinadorSubasta: interfaz de objetos que gestionan el
+ * desarrollo de la subasta de cada bien subastado por la empresa.
+
+ * La subasta pasara por tres estados:
+ * Inscripcion
+ * Abierta
+ * Cerrada
+ *
+ */
+ public subastas.clienteSubastas ganador_provisional ()
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("_get_ganador_provisional", true);
+ $in = _invoke ($out);
+ subastas.clienteSubastas $result = subastas.clienteSubastasHelper.read ($in);
+ return $result;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ return ganador_provisional ( );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // ganador_provisional
+
+
+ /**
+ * coordinadorSubasta: interfaz de objetos que gestionan el
+ * desarrollo de la subasta de cada bien subastado por la empresa.
+
+ * La subasta pasara por tres estados:
+ * Inscripcion
+ * Abierta
+ * Cerrada
+ *
+ */
+ public void ganador_provisional (subastas.clienteSubastas newGanador_provisional)
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("_set_ganador_provisional", true);
+ subastas.clienteSubastasHelper.write ($out, newGanador_provisional);
+ $in = _invoke ($out);
+ return;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ ganador_provisional (newGanador_provisional );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // ganador_provisional
+
+ public subastas.clienteSubastas[] clientes ()
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("_get_clientes", true);
+ $in = _invoke ($out);
+ subastas.clienteSubastas $result[] = subastas.lista_clientesHelper.read ($in);
+ return $result;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ return clientes ( );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // clientes
+
+ public void clientes (subastas.clienteSubastas[] newClientes)
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("_set_clientes", true);
+ subastas.lista_clientesHelper.write ($out, newClientes);
+ $in = _invoke ($out);
+ return;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ clientes (newClientes );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // clientes
+
+ public float valor ()
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("_get_valor", true);
+ $in = _invoke ($out);
+ float $result = $in.read_float ();
+ return $result;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ return valor ( );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // valor
+
+ public String descripcion ()
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("_get_descripcion", true);
+ $in = _invoke ($out);
+ String $result = $in.read_string ();
+ return $result;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ return descripcion ( );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // descripcion
+
+
+ // Inscripcion -> Abierta -> Cerrada
+ public String estado ()
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("_get_estado", true);
+ $in = _invoke ($out);
+ String $result = $in.read_string ();
+ return $result;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ return estado ( );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // estado
+
+ public void inscribirCliente (subastas.clienteSubastas cl)
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("inscribirCliente", true);
+ subastas.clienteSubastasHelper.write ($out, cl);
+ $in = _invoke ($out);
+ return;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ inscribirCliente (cl );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // inscribirCliente
+
+ public void abrirSubasta ()
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("abrirSubasta", true);
+ $in = _invoke ($out);
+ return;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ abrirSubasta ( );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // abrirSubasta
+
+ public boolean pujar (float cantidad, subastas.clienteSubastas cl)
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("pujar", true);
+ $out.write_float (cantidad);
+ subastas.clienteSubastasHelper.write ($out, cl);
+ $in = _invoke ($out);
+ boolean $result = $in.read_boolean ();
+ return $result;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ return pujar (cantidad, cl );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // pujar
+
+ public void ultimaPuja (subastas.clienteSubastas cl)
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("ultimaPuja", true);
+ subastas.clienteSubastasHelper.write ($out, cl);
+ $in = _invoke ($out);
+ return;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ ultimaPuja (cl );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // ultimaPuja
+
+ public void ganador ()
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("ganador", true);
+ $in = _invoke ($out);
+ return;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ ganador ( );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // ganador
+
+ // Type-specific CORBA::Object operations
+ private static String[] __ids = {
+ "IDL:subastas/coordinadorSubasta:1.0"};
+
+ public String[] _ids ()
+ {
+ return (String[])__ids.clone ();
+ }
+
+ private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
+ {
+ String str = s.readUTF ();
+ String[] args = null;
+ java.util.Properties props = null;
+ org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
+ org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
+ _set_delegate (delegate);
+ }
+
+ private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
+ {
+ String[] args = null;
+ java.util.Properties props = null;
+ String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
+ s.writeUTF (str);
+ }
+} // class _coordinadorSubastaStub
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/_gestorSubastasStub.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public class _gestorSubastasStub extends org.omg.CORBA.portable.ObjectImpl implements subastas.gestorSubastas
+{
+
+ public subastas.coordinadorSubasta crearSubasta (float valor, String desc)
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("crearSubasta", true);
+ $out.write_float (valor);
+ $out.write_string (desc);
+ $in = _invoke ($out);
+ subastas.coordinadorSubasta $result = subastas.coordinadorSubastaHelper.read ($in);
+ return $result;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ return crearSubasta (valor, desc );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // crearSubasta
+
+ public void destruirSubasta (subastas.coordinadorSubasta cs)
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("destruirSubasta", true);
+ subastas.coordinadorSubastaHelper.write ($out, cs);
+ $in = _invoke ($out);
+ return;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ destruirSubasta (cs );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // destruirSubasta
+
+ public subastas.coordinadorSubasta[] localizarSubasta (String palabra)
+ {
+ org.omg.CORBA.portable.InputStream $in = null;
+ try {
+ org.omg.CORBA.portable.OutputStream $out = _request ("localizarSubasta", true);
+ $out.write_string (palabra);
+ $in = _invoke ($out);
+ subastas.coordinadorSubasta $result[] = subastas.lista_subastasHelper.read ($in);
+ return $result;
+ } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+ $in = $ex.getInputStream ();
+ String _id = $ex.getId ();
+ throw new org.omg.CORBA.MARSHAL (_id);
+ } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+ return localizarSubasta (palabra );
+ } finally {
+ _releaseReply ($in);
+ }
+ } // localizarSubasta
+
+ // Type-specific CORBA::Object operations
+ private static String[] __ids = {
+ "IDL:subastas/gestorSubastas:1.0"};
+
+ public String[] _ids ()
+ {
+ return (String[])__ids.clone ();
+ }
+
+ private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
+ {
+ String str = s.readUTF ();
+ String[] args = null;
+ java.util.Properties props = null;
+ org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
+ org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
+ _set_delegate (delegate);
+ }
+
+ private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
+ {
+ String[] args = null;
+ java.util.Properties props = null;
+ String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
+ s.writeUTF (str);
+ }
+} // class _gestorSubastasStub
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/clienteSubastas.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public interface clienteSubastas extends clienteSubastasOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
+{
+} // interface clienteSubastas
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/clienteSubastasHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+abstract public class clienteSubastasHelper
+{
+ private static String _id = "IDL:subastas/clienteSubastas:1.0";
+
+ public static void insert (org.omg.CORBA.Any a, subastas.clienteSubastas that)
+ {
+ org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+ a.type (type ());
+ write (out, that);
+ a.read_value (out.create_input_stream (), type ());
+ }
+
+ public static subastas.clienteSubastas extract (org.omg.CORBA.Any a)
+ {
+ return read (a.create_input_stream ());
+ }
+
+ private static org.omg.CORBA.TypeCode __typeCode = null;
+ synchronized public static org.omg.CORBA.TypeCode type ()
+ {
+ if (__typeCode == null)
+ {
+ __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (subastas.clienteSubastasHelper.id (), "clienteSubastas");
+ }
+ return __typeCode;
+ }
+
+ public static String id ()
+ {
+ return _id;
+ }
+
+ public static subastas.clienteSubastas read (org.omg.CORBA.portable.InputStream istream)
+ {
+ return narrow (istream.read_Object (_clienteSubastasStub.class));
+ }
+
+ public static void write (org.omg.CORBA.portable.OutputStream ostream, subastas.clienteSubastas value)
+ {
+ ostream.write_Object ((org.omg.CORBA.Object) value);
+ }
+
+ public static subastas.clienteSubastas narrow (org.omg.CORBA.Object obj)
+ {
+ if (obj == null)
+ return null;
+ else if (obj instanceof subastas.clienteSubastas)
+ return (subastas.clienteSubastas)obj;
+ else if (!obj._is_a (id ()))
+ throw new org.omg.CORBA.BAD_PARAM ();
+ else
+ {
+ org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
+ subastas._clienteSubastasStub stub = new subastas._clienteSubastasStub ();
+ stub._set_delegate(delegate);
+ return stub;
+ }
+ }
+
+ public static subastas.clienteSubastas unchecked_narrow (org.omg.CORBA.Object obj)
+ {
+ if (obj == null)
+ return null;
+ else if (obj instanceof subastas.clienteSubastas)
+ return (subastas.clienteSubastas)obj;
+ else
+ {
+ org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
+ subastas._clienteSubastasStub stub = new subastas._clienteSubastasStub ();
+ stub._set_delegate(delegate);
+ return stub;
+ }
+ }
+
+}
--- /dev/null
+package subastas;
+
+/**
+* subastas/clienteSubastasHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public final class clienteSubastasHolder implements org.omg.CORBA.portable.Streamable
+{
+ public subastas.clienteSubastas value = null;
+
+ public clienteSubastasHolder ()
+ {
+ }
+
+ public clienteSubastasHolder (subastas.clienteSubastas initialValue)
+ {
+ value = initialValue;
+ }
+
+ public void _read (org.omg.CORBA.portable.InputStream i)
+ {
+ value = subastas.clienteSubastasHelper.read (i);
+ }
+
+ public void _write (org.omg.CORBA.portable.OutputStream o)
+ {
+ subastas.clienteSubastasHelper.write (o, value);
+ }
+
+ public org.omg.CORBA.TypeCode _type ()
+ {
+ return subastas.clienteSubastasHelper.type ();
+ }
+
+}
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/clienteSubastasOperations.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public interface clienteSubastasOperations
+{
+ String identificacion ();
+ void finSubasta ();
+} // interface clienteSubastasOperations
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/clienteSubastasPOA.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public abstract class clienteSubastasPOA extends org.omg.PortableServer.Servant
+ implements subastas.clienteSubastasOperations, org.omg.CORBA.portable.InvokeHandler
+{
+
+ // Constructors
+
+ private static java.util.Hashtable _methods = new java.util.Hashtable ();
+ static
+ {
+ _methods.put ("_get_identificacion", new java.lang.Integer (0));
+ _methods.put ("finSubasta", new java.lang.Integer (1));
+ }
+
+ public org.omg.CORBA.portable.OutputStream _invoke (String $method,
+ org.omg.CORBA.portable.InputStream in,
+ org.omg.CORBA.portable.ResponseHandler $rh)
+ {
+ org.omg.CORBA.portable.OutputStream out = null;
+ java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
+ if (__method == null)
+ throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+
+ switch (__method.intValue ())
+ {
+ case 0: // subastas/clienteSubastas/_get_identificacion
+ {
+ String $result = null;
+ $result = this.identificacion ();
+ out = $rh.createReply();
+ out.write_string ($result);
+ break;
+ }
+
+ case 1: // subastas/clienteSubastas/finSubasta
+ {
+ this.finSubasta ();
+ out = $rh.createReply();
+ break;
+ }
+
+ default:
+ throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+ }
+
+ return out;
+ } // _invoke
+
+ // Type-specific CORBA::Object operations
+ private static String[] __ids = {
+ "IDL:subastas/clienteSubastas:1.0"};
+
+ public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
+ {
+ return (String[])__ids.clone ();
+ }
+
+ public clienteSubastas _this()
+ {
+ return clienteSubastasHelper.narrow(
+ super._this_object());
+ }
+
+ public clienteSubastas _this(org.omg.CORBA.ORB orb)
+ {
+ return clienteSubastasHelper.narrow(
+ super._this_object(orb));
+ }
+
+
+} // class clienteSubastasPOA
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/coordinadorSubasta.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public interface coordinadorSubasta extends coordinadorSubastaOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
+{
+} // interface coordinadorSubasta
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/coordinadorSubastaHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+abstract public class coordinadorSubastaHelper
+{
+ private static String _id = "IDL:subastas/coordinadorSubasta:1.0";
+
+ public static void insert (org.omg.CORBA.Any a, subastas.coordinadorSubasta that)
+ {
+ org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+ a.type (type ());
+ write (out, that);
+ a.read_value (out.create_input_stream (), type ());
+ }
+
+ public static subastas.coordinadorSubasta extract (org.omg.CORBA.Any a)
+ {
+ return read (a.create_input_stream ());
+ }
+
+ private static org.omg.CORBA.TypeCode __typeCode = null;
+ synchronized public static org.omg.CORBA.TypeCode type ()
+ {
+ if (__typeCode == null)
+ {
+ __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (subastas.coordinadorSubastaHelper.id (), "coordinadorSubasta");
+ }
+ return __typeCode;
+ }
+
+ public static String id ()
+ {
+ return _id;
+ }
+
+ public static subastas.coordinadorSubasta read (org.omg.CORBA.portable.InputStream istream)
+ {
+ return narrow (istream.read_Object (_coordinadorSubastaStub.class));
+ }
+
+ public static void write (org.omg.CORBA.portable.OutputStream ostream, subastas.coordinadorSubasta value)
+ {
+ ostream.write_Object ((org.omg.CORBA.Object) value);
+ }
+
+ public static subastas.coordinadorSubasta narrow (org.omg.CORBA.Object obj)
+ {
+ if (obj == null)
+ return null;
+ else if (obj instanceof subastas.coordinadorSubasta)
+ return (subastas.coordinadorSubasta)obj;
+ else if (!obj._is_a (id ()))
+ throw new org.omg.CORBA.BAD_PARAM ();
+ else
+ {
+ org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
+ subastas._coordinadorSubastaStub stub = new subastas._coordinadorSubastaStub ();
+ stub._set_delegate(delegate);
+ return stub;
+ }
+ }
+
+ public static subastas.coordinadorSubasta unchecked_narrow (org.omg.CORBA.Object obj)
+ {
+ if (obj == null)
+ return null;
+ else if (obj instanceof subastas.coordinadorSubasta)
+ return (subastas.coordinadorSubasta)obj;
+ else
+ {
+ org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
+ subastas._coordinadorSubastaStub stub = new subastas._coordinadorSubastaStub ();
+ stub._set_delegate(delegate);
+ return stub;
+ }
+ }
+
+}
--- /dev/null
+package subastas;
+
+/**
+* subastas/coordinadorSubastaHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public final class coordinadorSubastaHolder implements org.omg.CORBA.portable.Streamable
+{
+ public subastas.coordinadorSubasta value = null;
+
+ public coordinadorSubastaHolder ()
+ {
+ }
+
+ public coordinadorSubastaHolder (subastas.coordinadorSubasta initialValue)
+ {
+ value = initialValue;
+ }
+
+ public void _read (org.omg.CORBA.portable.InputStream i)
+ {
+ value = subastas.coordinadorSubastaHelper.read (i);
+ }
+
+ public void _write (org.omg.CORBA.portable.OutputStream o)
+ {
+ subastas.coordinadorSubastaHelper.write (o, value);
+ }
+
+ public org.omg.CORBA.TypeCode _type ()
+ {
+ return subastas.coordinadorSubastaHelper.type ();
+ }
+
+}
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/coordinadorSubastaOperations.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public interface coordinadorSubastaOperations
+{
+
+ /**
+ * coordinadorSubasta: interfaz de objetos que gestionan el
+ * desarrollo de la subasta de cada bien subastado por la empresa.
+
+ * La subasta pasara por tres estados:
+ * Inscripcion
+ * Abierta
+ * Cerrada
+ *
+ */
+ subastas.clienteSubastas ganador_provisional ();
+
+ /**
+ * coordinadorSubasta: interfaz de objetos que gestionan el
+ * desarrollo de la subasta de cada bien subastado por la empresa.
+
+ * La subasta pasara por tres estados:
+ * Inscripcion
+ * Abierta
+ * Cerrada
+ *
+ */
+ void ganador_provisional (subastas.clienteSubastas newGanador_provisional);
+ subastas.clienteSubastas[] clientes ();
+ void clientes (subastas.clienteSubastas[] newClientes);
+ float valor ();
+ String descripcion ();
+
+ // Inscripcion -> Abierta -> Cerrada
+ String estado ();
+ void inscribirCliente (subastas.clienteSubastas cl);
+ void abrirSubasta ();
+ boolean pujar (float cantidad, subastas.clienteSubastas cl);
+ void ultimaPuja (subastas.clienteSubastas cl);
+ void ganador ();
+} // interface coordinadorSubastaOperations
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/coordinadorSubastaPOA.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public abstract class coordinadorSubastaPOA extends org.omg.PortableServer.Servant
+ implements subastas.coordinadorSubastaOperations, org.omg.CORBA.portable.InvokeHandler
+{
+
+ // Constructors
+
+ private static java.util.Hashtable _methods = new java.util.Hashtable ();
+ static
+ {
+ _methods.put ("_get_ganador_provisional", new java.lang.Integer (0));
+ _methods.put ("_set_ganador_provisional", new java.lang.Integer (1));
+ _methods.put ("_get_clientes", new java.lang.Integer (2));
+ _methods.put ("_set_clientes", new java.lang.Integer (3));
+ _methods.put ("_get_valor", new java.lang.Integer (4));
+ _methods.put ("_get_descripcion", new java.lang.Integer (5));
+ _methods.put ("_get_estado", new java.lang.Integer (6));
+ _methods.put ("inscribirCliente", new java.lang.Integer (7));
+ _methods.put ("abrirSubasta", new java.lang.Integer (8));
+ _methods.put ("pujar", new java.lang.Integer (9));
+ _methods.put ("ultimaPuja", new java.lang.Integer (10));
+ _methods.put ("ganador", new java.lang.Integer (11));
+ }
+
+ public org.omg.CORBA.portable.OutputStream _invoke (String $method,
+ org.omg.CORBA.portable.InputStream in,
+ org.omg.CORBA.portable.ResponseHandler $rh)
+ {
+ org.omg.CORBA.portable.OutputStream out = null;
+ java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
+ if (__method == null)
+ throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+
+ switch (__method.intValue ())
+ {
+
+ /**
+ * coordinadorSubasta: interfaz de objetos que gestionan el
+ * desarrollo de la subasta de cada bien subastado por la empresa.
+
+ * La subasta pasara por tres estados:
+ * Inscripcion
+ * Abierta
+ * Cerrada
+ *
+ */
+ case 0: // subastas/coordinadorSubasta/_get_ganador_provisional
+ {
+ subastas.clienteSubastas $result = null;
+ $result = this.ganador_provisional ();
+ out = $rh.createReply();
+ subastas.clienteSubastasHelper.write (out, $result);
+ break;
+ }
+
+
+ /**
+ * coordinadorSubasta: interfaz de objetos que gestionan el
+ * desarrollo de la subasta de cada bien subastado por la empresa.
+
+ * La subasta pasara por tres estados:
+ * Inscripcion
+ * Abierta
+ * Cerrada
+ *
+ */
+ case 1: // subastas/coordinadorSubasta/_set_ganador_provisional
+ {
+ subastas.clienteSubastas newGanador_provisional = subastas.clienteSubastasHelper.read (in);
+ this.ganador_provisional (newGanador_provisional);
+ out = $rh.createReply();
+ break;
+ }
+
+ case 2: // subastas/coordinadorSubasta/_get_clientes
+ {
+ subastas.clienteSubastas $result[] = null;
+ $result = this.clientes ();
+ out = $rh.createReply();
+ subastas.lista_clientesHelper.write (out, $result);
+ break;
+ }
+
+ case 3: // subastas/coordinadorSubasta/_set_clientes
+ {
+ subastas.clienteSubastas newClientes[] = subastas.lista_clientesHelper.read (in);
+ this.clientes (newClientes);
+ out = $rh.createReply();
+ break;
+ }
+
+ case 4: // subastas/coordinadorSubasta/_get_valor
+ {
+ float $result = (float)0;
+ $result = this.valor ();
+ out = $rh.createReply();
+ out.write_float ($result);
+ break;
+ }
+
+ case 5: // subastas/coordinadorSubasta/_get_descripcion
+ {
+ String $result = null;
+ $result = this.descripcion ();
+ out = $rh.createReply();
+ out.write_string ($result);
+ break;
+ }
+
+
+ // Inscripcion -> Abierta -> Cerrada
+ case 6: // subastas/coordinadorSubasta/_get_estado
+ {
+ String $result = null;
+ $result = this.estado ();
+ out = $rh.createReply();
+ out.write_string ($result);
+ break;
+ }
+
+ case 7: // subastas/coordinadorSubasta/inscribirCliente
+ {
+ subastas.clienteSubastas cl = subastas.clienteSubastasHelper.read (in);
+ this.inscribirCliente (cl);
+ out = $rh.createReply();
+ break;
+ }
+
+ case 8: // subastas/coordinadorSubasta/abrirSubasta
+ {
+ this.abrirSubasta ();
+ out = $rh.createReply();
+ break;
+ }
+
+ case 9: // subastas/coordinadorSubasta/pujar
+ {
+ float cantidad = in.read_float ();
+ subastas.clienteSubastas cl = subastas.clienteSubastasHelper.read (in);
+ boolean $result = false;
+ $result = this.pujar (cantidad, cl);
+ out = $rh.createReply();
+ out.write_boolean ($result);
+ break;
+ }
+
+ case 10: // subastas/coordinadorSubasta/ultimaPuja
+ {
+ subastas.clienteSubastas cl = subastas.clienteSubastasHelper.read (in);
+ this.ultimaPuja (cl);
+ out = $rh.createReply();
+ break;
+ }
+
+ case 11: // subastas/coordinadorSubasta/ganador
+ {
+ this.ganador ();
+ out = $rh.createReply();
+ break;
+ }
+
+ default:
+ throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+ }
+
+ return out;
+ } // _invoke
+
+ // Type-specific CORBA::Object operations
+ private static String[] __ids = {
+ "IDL:subastas/coordinadorSubasta:1.0"};
+
+ public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
+ {
+ return (String[])__ids.clone ();
+ }
+
+ public coordinadorSubasta _this()
+ {
+ return coordinadorSubastaHelper.narrow(
+ super._this_object());
+ }
+
+ public coordinadorSubasta _this(org.omg.CORBA.ORB orb)
+ {
+ return coordinadorSubastaHelper.narrow(
+ super._this_object(orb));
+ }
+
+
+} // class coordinadorSubastaPOA
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/gestorSubastas.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public interface gestorSubastas extends gestorSubastasOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
+{
+} // interface gestorSubastas
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/gestorSubastasHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+abstract public class gestorSubastasHelper
+{
+ private static String _id = "IDL:subastas/gestorSubastas:1.0";
+
+ public static void insert (org.omg.CORBA.Any a, subastas.gestorSubastas that)
+ {
+ org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+ a.type (type ());
+ write (out, that);
+ a.read_value (out.create_input_stream (), type ());
+ }
+
+ public static subastas.gestorSubastas extract (org.omg.CORBA.Any a)
+ {
+ return read (a.create_input_stream ());
+ }
+
+ private static org.omg.CORBA.TypeCode __typeCode = null;
+ synchronized public static org.omg.CORBA.TypeCode type ()
+ {
+ if (__typeCode == null)
+ {
+ __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (subastas.gestorSubastasHelper.id (), "gestorSubastas");
+ }
+ return __typeCode;
+ }
+
+ public static String id ()
+ {
+ return _id;
+ }
+
+ public static subastas.gestorSubastas read (org.omg.CORBA.portable.InputStream istream)
+ {
+ return narrow (istream.read_Object (_gestorSubastasStub.class));
+ }
+
+ public static void write (org.omg.CORBA.portable.OutputStream ostream, subastas.gestorSubastas value)
+ {
+ ostream.write_Object ((org.omg.CORBA.Object) value);
+ }
+
+ public static subastas.gestorSubastas narrow (org.omg.CORBA.Object obj)
+ {
+ if (obj == null)
+ return null;
+ else if (obj instanceof subastas.gestorSubastas)
+ return (subastas.gestorSubastas)obj;
+ else if (!obj._is_a (id ()))
+ throw new org.omg.CORBA.BAD_PARAM ();
+ else
+ {
+ org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
+ subastas._gestorSubastasStub stub = new subastas._gestorSubastasStub ();
+ stub._set_delegate(delegate);
+ return stub;
+ }
+ }
+
+ public static subastas.gestorSubastas unchecked_narrow (org.omg.CORBA.Object obj)
+ {
+ if (obj == null)
+ return null;
+ else if (obj instanceof subastas.gestorSubastas)
+ return (subastas.gestorSubastas)obj;
+ else
+ {
+ org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
+ subastas._gestorSubastasStub stub = new subastas._gestorSubastasStub ();
+ stub._set_delegate(delegate);
+ return stub;
+ }
+ }
+
+}
--- /dev/null
+package subastas;
+
+/**
+* subastas/gestorSubastasHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public final class gestorSubastasHolder implements org.omg.CORBA.portable.Streamable
+{
+ public subastas.gestorSubastas value = null;
+
+ public gestorSubastasHolder ()
+ {
+ }
+
+ public gestorSubastasHolder (subastas.gestorSubastas initialValue)
+ {
+ value = initialValue;
+ }
+
+ public void _read (org.omg.CORBA.portable.InputStream i)
+ {
+ value = subastas.gestorSubastasHelper.read (i);
+ }
+
+ public void _write (org.omg.CORBA.portable.OutputStream o)
+ {
+ subastas.gestorSubastasHelper.write (o, value);
+ }
+
+ public org.omg.CORBA.TypeCode _type ()
+ {
+ return subastas.gestorSubastasHelper.type ();
+ }
+
+}
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/gestorSubastasOperations.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public interface gestorSubastasOperations
+{
+ subastas.coordinadorSubasta crearSubasta (float valor, String desc);
+ void destruirSubasta (subastas.coordinadorSubasta cs);
+ subastas.coordinadorSubasta[] localizarSubasta (String palabra);
+} // interface gestorSubastasOperations
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/gestorSubastasPOA.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public abstract class gestorSubastasPOA extends org.omg.PortableServer.Servant
+ implements subastas.gestorSubastasOperations, org.omg.CORBA.portable.InvokeHandler
+{
+
+ // Constructors
+
+ private static java.util.Hashtable _methods = new java.util.Hashtable ();
+ static
+ {
+ _methods.put ("crearSubasta", new java.lang.Integer (0));
+ _methods.put ("destruirSubasta", new java.lang.Integer (1));
+ _methods.put ("localizarSubasta", new java.lang.Integer (2));
+ }
+
+ public org.omg.CORBA.portable.OutputStream _invoke (String $method,
+ org.omg.CORBA.portable.InputStream in,
+ org.omg.CORBA.portable.ResponseHandler $rh)
+ {
+ org.omg.CORBA.portable.OutputStream out = null;
+ java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
+ if (__method == null)
+ throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+
+ switch (__method.intValue ())
+ {
+ case 0: // subastas/gestorSubastas/crearSubasta
+ {
+ float valor = in.read_float ();
+ String desc = in.read_string ();
+ subastas.coordinadorSubasta $result = null;
+ $result = this.crearSubasta (valor, desc);
+ out = $rh.createReply();
+ subastas.coordinadorSubastaHelper.write (out, $result);
+ break;
+ }
+
+ case 1: // subastas/gestorSubastas/destruirSubasta
+ {
+ subastas.coordinadorSubasta cs = subastas.coordinadorSubastaHelper.read (in);
+ this.destruirSubasta (cs);
+ out = $rh.createReply();
+ break;
+ }
+
+ case 2: // subastas/gestorSubastas/localizarSubasta
+ {
+ String palabra = in.read_string ();
+ subastas.coordinadorSubasta $result[] = null;
+ $result = this.localizarSubasta (palabra);
+ out = $rh.createReply();
+ subastas.lista_subastasHelper.write (out, $result);
+ break;
+ }
+
+ default:
+ throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+ }
+
+ return out;
+ } // _invoke
+
+ // Type-specific CORBA::Object operations
+ private static String[] __ids = {
+ "IDL:subastas/gestorSubastas:1.0"};
+
+ public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
+ {
+ return (String[])__ids.clone ();
+ }
+
+ public gestorSubastas _this()
+ {
+ return gestorSubastasHelper.narrow(
+ super._this_object());
+ }
+
+ public gestorSubastas _this(org.omg.CORBA.ORB orb)
+ {
+ return gestorSubastasHelper.narrow(
+ super._this_object(orb));
+ }
+
+
+} // class gestorSubastasPOA
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/lista_clientesHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+abstract public class lista_clientesHelper
+{
+ private static String _id = "IDL:subastas/lista_clientes:1.0";
+
+ public static void insert (org.omg.CORBA.Any a, subastas.clienteSubastas[] that)
+ {
+ org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+ a.type (type ());
+ write (out, that);
+ a.read_value (out.create_input_stream (), type ());
+ }
+
+ public static subastas.clienteSubastas[] extract (org.omg.CORBA.Any a)
+ {
+ return read (a.create_input_stream ());
+ }
+
+ private static org.omg.CORBA.TypeCode __typeCode = null;
+ synchronized public static org.omg.CORBA.TypeCode type ()
+ {
+ if (__typeCode == null)
+ {
+ __typeCode = subastas.clienteSubastasHelper.type ();
+ __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
+ __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (subastas.lista_clientesHelper.id (), "lista_clientes", __typeCode);
+ }
+ return __typeCode;
+ }
+
+ public static String id ()
+ {
+ return _id;
+ }
+
+ public static subastas.clienteSubastas[] read (org.omg.CORBA.portable.InputStream istream)
+ {
+ subastas.clienteSubastas value[] = null;
+ int _len0 = istream.read_long ();
+ value = new subastas.clienteSubastas[_len0];
+ for (int _o1 = 0;_o1 < value.length; ++_o1)
+ value[_o1] = subastas.clienteSubastasHelper.read (istream);
+ return value;
+ }
+
+ public static void write (org.omg.CORBA.portable.OutputStream ostream, subastas.clienteSubastas[] value)
+ {
+ ostream.write_long (value.length);
+ for (int _i0 = 0;_i0 < value.length; ++_i0)
+ subastas.clienteSubastasHelper.write (ostream, value[_i0]);
+ }
+
+}
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/lista_clientesHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public final class lista_clientesHolder implements org.omg.CORBA.portable.Streamable
+{
+ public subastas.clienteSubastas value[] = null;
+
+ public lista_clientesHolder ()
+ {
+ }
+
+ public lista_clientesHolder (subastas.clienteSubastas[] initialValue)
+ {
+ value = initialValue;
+ }
+
+ public void _read (org.omg.CORBA.portable.InputStream i)
+ {
+ value = subastas.lista_clientesHelper.read (i);
+ }
+
+ public void _write (org.omg.CORBA.portable.OutputStream o)
+ {
+ subastas.lista_clientesHelper.write (o, value);
+ }
+
+ public org.omg.CORBA.TypeCode _type ()
+ {
+ return subastas.lista_clientesHelper.type ();
+ }
+
+}
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/lista_subastasHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+abstract public class lista_subastasHelper
+{
+ private static String _id = "IDL:subastas/lista_subastas:1.0";
+
+ public static void insert (org.omg.CORBA.Any a, subastas.coordinadorSubasta[] that)
+ {
+ org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+ a.type (type ());
+ write (out, that);
+ a.read_value (out.create_input_stream (), type ());
+ }
+
+ public static subastas.coordinadorSubasta[] extract (org.omg.CORBA.Any a)
+ {
+ return read (a.create_input_stream ());
+ }
+
+ private static org.omg.CORBA.TypeCode __typeCode = null;
+ synchronized public static org.omg.CORBA.TypeCode type ()
+ {
+ if (__typeCode == null)
+ {
+ __typeCode = subastas.coordinadorSubastaHelper.type ();
+ __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
+ __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (subastas.lista_subastasHelper.id (), "lista_subastas", __typeCode);
+ }
+ return __typeCode;
+ }
+
+ public static String id ()
+ {
+ return _id;
+ }
+
+ public static subastas.coordinadorSubasta[] read (org.omg.CORBA.portable.InputStream istream)
+ {
+ subastas.coordinadorSubasta value[] = null;
+ int _len0 = istream.read_long ();
+ value = new subastas.coordinadorSubasta[_len0];
+ for (int _o1 = 0;_o1 < value.length; ++_o1)
+ value[_o1] = subastas.coordinadorSubastaHelper.read (istream);
+ return value;
+ }
+
+ public static void write (org.omg.CORBA.portable.OutputStream ostream, subastas.coordinadorSubasta[] value)
+ {
+ ostream.write_long (value.length);
+ for (int _i0 = 0;_i0 < value.length; ++_i0)
+ subastas.coordinadorSubastaHelper.write (ostream, value[_i0]);
+ }
+
+}
--- /dev/null
+package subastas;
+
+
+/**
+* subastas/lista_subastasHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from subastas.idl
+* domingo 8 de junio de 2008 18H18' CEST
+*/
+
+public final class lista_subastasHolder implements org.omg.CORBA.portable.Streamable
+{
+ public subastas.coordinadorSubasta value[] = null;
+
+ public lista_subastasHolder ()
+ {
+ }
+
+ public lista_subastasHolder (subastas.coordinadorSubasta[] initialValue)
+ {
+ value = initialValue;
+ }
+
+ public void _read (org.omg.CORBA.portable.InputStream i)
+ {
+ value = subastas.lista_subastasHelper.read (i);
+ }
+
+ public void _write (org.omg.CORBA.portable.OutputStream o)
+ {
+ subastas.lista_subastasHelper.write (o, value);
+ }
+
+ public org.omg.CORBA.TypeCode _type ()
+ {
+ return subastas.lista_subastasHelper.type ();
+ }
+
+}