-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCompteCourantPOA.java
108 lines (90 loc) · 2.96 KB
/
CompteCourantPOA.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/**
* CompteCourantPOA.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from banque.idl
* Thursday, October 3, 2024 7:53:47 PM WET
*/
public abstract class CompteCourantPOA extends org.omg.PortableServer.Servant
implements CompteCourantOperations, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("_get_DecouvertAutorise", new java.lang.Integer (0));
_methods.put ("_set_DecouvertAutorise", new java.lang.Integer (1));
_methods.put ("lire_montant", new java.lang.Integer (2));
_methods.put ("crediter", new java.lang.Integer (3));
_methods.put ("debiter", new java.lang.Integer (4));
}
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: // CompteCourant/_get_DecouvertAutorise
{
boolean $result = false;
$result = this.DecouvertAutorise ();
out = $rh.createReply();
out.write_boolean ($result);
break;
}
case 1: // CompteCourant/_set_DecouvertAutorise
{
boolean newDecouvertAutorise = in.read_boolean ();
this.DecouvertAutorise (newDecouvertAutorise);
out = $rh.createReply();
break;
}
case 2: // Compte/lire_montant
{
float $result = (float)0;
$result = this.lire_montant ();
out = $rh.createReply();
out.write_float ($result);
break;
}
case 3: // Compte/crediter
{
float somme_credit = in.read_float ();
this.crediter (somme_credit);
out = $rh.createReply();
break;
}
case 4: // Compte/debiter
{
float somme_debit = in.read_float ();
this.debiter (somme_debit);
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:CompteCourant:1.0",
"IDL:Compte:1.0"};
public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
{
return (String[])__ids.clone ();
}
public CompteCourant _this()
{
return CompteCourantHelper.narrow(
super._this_object());
}
public CompteCourant _this(org.omg.CORBA.ORB orb)
{
return CompteCourantHelper.narrow(
super._this_object(orb));
}
} // class CompteCourantPOA