1 2 5 14 package org.jacorb.trading.db; 15 16 17 import java.util.*; 18 import org.omg.CosTrading.Lookup; 19 import org.omg.CosTrading.RegisterPackage.OfferInfo; 20 import org.omg.CosTrading.ProxyPackage.ProxyInfo; 21 import org.omg.CosTrading.Property; 22 import org.omg.CosTrading.Policy; 23 24 25 28 public interface OfferDatabase 29 { 30 31 public static final int READ = 0; 32 public static final int WRITE = 1; 33 34 35 36 public boolean validateOfferId(String offerId); 37 38 39 public boolean isTypeSupported(org.omg.CORBA.Any any); 40 41 42 46 public void begin(int mode); 47 48 49 public void end(); 50 51 52 53 public boolean exists(String offerId); 54 55 56 public boolean isProxy(String offerId); 57 58 59 public String create( 60 String serviceType, 61 org.omg.CORBA.Object obj, 62 Property[] props); 63 64 65 public String createProxy( 66 Lookup target, 67 String serviceType, 68 Property[] props, 69 boolean ifMatchAll, 70 String recipe, 71 Policy[] policies); 72 73 74 public void remove(String offerId); 75 76 77 public void removeProxy(String offerId); 78 79 83 public OfferInfo describe(String offerId); 84 85 89 public ProxyInfo describeProxy(String offerId); 90 91 92 public void modify(String offerId, Property[] props); 93 94 99 public Hashtable getOffers(String serviceType); 100 101 105 public String [] getOfferIds(String serviceType); 106 107 112 public Hashtable getProxyOffers(String serviceType); 113 114 118 public String [] getProxyOfferIds(String serviceType); 119 120 124 public String whichService(String offerId); 125 } 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | Popular Tags |