1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
10 #ifndef PHONE_BOOK_ICE
11 #define PHONE_BOOK_ICE
13 #include <Ice/Identity.ice>
18 exception DatabaseException
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;
41 sequence<Contact*> Contacts;
45 Contact* createContact() throws DatabaseException;
46 idempotent Contacts findContacts(string name) throws DatabaseException;
47 void setEvictorSize(int size) throws DatabaseException;