ICE 3.4.2
[php5-ice-freebsdport.git] / java / demo / Freeze / phonebook / PhoneBook.ice
blob3781e6de844c7b915fc4e0234d2aac2b9b503e63
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 #ifndef PHONE_BOOK_ICE
11 #define PHONE_BOOK_ICE
13 #include <Ice/Identity.ice>
15 module Demo
18 exception DatabaseException
20     string message;
23 class Contact
25     idempotent string getName();
26     ["freeze:write"] idempotent void setName(string name) throws DatabaseException;
28     idempotent string getAddress();
29     ["freeze:write"] idempotent void setAddress(string address);
31     idempotent string getPhone();
32     ["freeze:write"] idempotent void setPhone(string phone);
34     ["freeze:write"] void destroy() throws DatabaseException;
36     string name;
37     string address;
38     string phone;
41 sequence<Contact*> Contacts;
43 interface PhoneBook
45     Contact* createContact() throws DatabaseException;
46     idempotent Contacts findContacts(string name) throws DatabaseException;
47     void setEvictorSize(int size) throws DatabaseException;
48     void shutdown();
53 #endif