1 19 package org.netbeans.mdr.persistence.jdbcimpl; 20 21 import org.netbeans.mdr.persistence.*; 22 23 import java.util.*; 24 25 31 class JdbcCollection extends AbstractCollection 32 { 33 private JdbcSet set; 35 36 JdbcCollection( 37 JdbcStorage storage, 38 Storage.EntryType entryType, 39 LazyPreparedStatement sqlIterator, 40 LazyPreparedStatement sqlSize, 41 LazyPreparedStatement sqlContains) 42 { 43 set = new JdbcSet(storage,entryType,sqlIterator,sqlSize,sqlContains); 44 } 45 46 public boolean contains(Object obj) 48 { 49 return set.contains(obj); 50 } 51 52 public Iterator iterator() 54 { 55 return set.iterator(); 56 } 57 58 public int size() 60 { 61 return set.size(); 62 } 63 } 64 65 | Popular Tags |