1 8 9 package com.sleepycat.persist; 10 11 import java.util.Map ; 12 import java.util.SortedMap ; 13 14 import com.sleepycat.collections.StoredMap; 15 import com.sleepycat.collections.StoredSortedMap; 16 import com.sleepycat.je.CursorConfig; 17 import com.sleepycat.je.Database; 18 import com.sleepycat.je.DatabaseEntry; 19 import com.sleepycat.je.DatabaseException; 20 import com.sleepycat.je.Environment; 21 import com.sleepycat.je.EnvironmentConfig; 22 import com.sleepycat.je.LockMode; 23 import com.sleepycat.je.SecondaryDatabase; 24 import com.sleepycat.je.Transaction; 25 26 567 public interface EntityIndex<K,V> { 568 569 579 boolean contains(K key) 580 throws DatabaseException; 581 582 595 boolean contains(Transaction txn, K key, LockMode lockMode) 596 throws DatabaseException; 597 598 609 V get(K key) 610 throws DatabaseException; 611 612 626 V get(Transaction txn, K key, LockMode lockMode) 627 throws DatabaseException; 628 629 639 long count() 640 throws DatabaseException; 641 642 651 boolean delete(K key) 652 throws DatabaseException; 653 654 664 boolean delete(Transaction txn, K key) 665 throws DatabaseException; 666 667 677 EntityCursor<K> keys() 678 throws DatabaseException; 679 680 694 EntityCursor<K> keys(Transaction txn, CursorConfig config) 695 throws DatabaseException; 696 697 707 EntityCursor<V> entities() 708 throws DatabaseException; 709 710 724 EntityCursor<V> entities(Transaction txn, 725 CursorConfig config) 726 throws DatabaseException; 727 728 752 EntityCursor<K> keys(K fromKey, 753 boolean fromInclusive, 754 K toKey, 755 boolean toInclusive) 756 throws DatabaseException; 757 758 786 EntityCursor<K> keys(Transaction txn, 787 K fromKey, 788 boolean fromInclusive, 789 K toKey, 790 boolean toInclusive, 791 CursorConfig config) 792 throws DatabaseException; 793 794 818 EntityCursor<V> entities(K fromKey, 819 boolean fromInclusive, 820 K toKey, 821 boolean toInclusive) 822 throws DatabaseException; 823 824 852 EntityCursor<V> entities(Transaction txn, 853 K fromKey, 854 boolean fromInclusive, 855 K toKey, 856 boolean toInclusive, 857 CursorConfig config) 858 throws DatabaseException; 859 860 881 882 909 910 932 933 961 962 970 Map <K,V> map(); 971 972 980 SortedMap <K,V> sortedMap(); 981 } 982 | Popular Tags |