File: stock.idl

package info (click to toggle)
libpgjava 8.1-405-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,484 kB
  • ctags: 4,266
  • sloc: java: 32,071; xml: 3,017; sql: 21; makefile: 18; sh: 10
file content (40 lines) | stat: -rwxr-xr-x 1,247 bytes parent folder | download
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
// $PostgreSQL: pgjdbc/example/corba/stock.idl,v 1.2 2003/11/29 22:41:21 pgsql Exp $
//
// This is our CORBA bindings for a very simple stock control
// system.
//
// $PostgreSQL: pgjdbc/example/corba/stock.idl,v 1.2 2003/11/29 22:41:21 pgsql Exp $
//

// For some reason, idltojava on my setup doesn't like this to be
// in caps. It could be a problem with Win95 & Samba, but for now,
// this is in lowercase
module stock
{
  exception StockException
    {
      string reason;
    };
  
  interface StockItem
      {
	  void fetchItem(in long id) raises (StockException);
	  long newItem() raises (StockException);
	  string getDescription() raises (StockException);
	  long getAvailable() raises (StockException);
	  long getOrdered() raises (StockException);
	  boolean isItemValid() raises (StockException);
	  void addNewStock(in long amount) raises (StockException);
	  void removeStock(in long amount) raises (StockException);
	  void orderStock(in long amount) raises (StockException);
	  long getLastID() raises (StockException);
	  string getInstanceName();
      };
  
  interface StockDispenser
      {
	  StockItem reserveItem() raises (StockException);
	  void releaseItem(in StockItem item) raises (StockException);
      };
  
};