1 17 package org.apache.ldap.server.db; 18 19 20 import javax.naming.NamingEnumeration ; 21 import javax.naming.NamingException ; 22 23 24 33 public interface Table 34 { 35 42 TupleComparator getComparator(); 43 44 50 TupleRenderer getRenderer(); 51 52 58 void setRenderer( TupleRenderer renderer ); 59 60 65 String getName(); 66 67 72 boolean isDupsEnabled(); 73 74 80 boolean isSortedDupsEnabled(); 81 82 83 87 88 96 boolean has( Object key ) throws NamingException ; 97 98 106 boolean has( Object key, Object value ) throws NamingException ; 107 108 121 boolean has( Object key, boolean isGreaterThan ) throws NamingException ; 122 123 141 boolean has( Object key, Object val, boolean isGreaterThan ) 142 throws NamingException ; 143 144 145 149 161 Object get( Object key ) throws NamingException ; 162 163 173 Object put( Object key, Object value ) throws NamingException ; 174 175 188 Object put( Object key, NamingEnumeration values ) throws NamingException ; 189 190 198 Object remove( Object key ) throws NamingException ; 199 200 209 Object remove( Object key, Object value ) throws NamingException ; 210 211 212 227 Object remove( Object key, NamingEnumeration values ) 228 throws NamingException ; 229 230 231 243 NamingEnumeration listValues( Object key ) throws NamingException ; 244 245 246 250 251 258 NamingEnumeration listTuples() throws NamingException ; 259 260 269 NamingEnumeration listTuples( Object key ) throws NamingException ; 270 271 284 NamingEnumeration listTuples( Object key, boolean isGreaterThan ) 285 throws NamingException ; 286 287 307 NamingEnumeration listTuples( Object key, Object val, boolean isGreaterThan ) 308 throws NamingException ; 309 310 311 315 316 322 int count() throws NamingException ; 323 324 332 int count( Object key ) throws NamingException ; 333 334 344 int count( Object key, boolean isGreaterThan ) throws NamingException ; 345 346 351 void close() throws NamingException ; 352 } 353 | Popular Tags |