org.sourceforge.beanindex.store
Class BeanRepository

java.lang.Object
  extended byorg.sourceforge.beanindex.store.BeanRepository

public class BeanRepository
extends java.lang.Object

This class stores the bean instances and their locations in two files for fast retrieval repository.inf file contains the beans and indexes detials

Author:
Sakthivel Muthusamy

Constructor Summary
BeanRepository(java.lang.String path, boolean enableCache, int cacheLimit)
           
 
Method Summary
 void closeFiles()
           
 java.lang.Object get(int id)
           
 java.lang.Object[] get(int[] ids)
           
 java.lang.reflect.Field[] getIndexedFields()
           
 java.lang.String[] getIndexNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanRepository

public BeanRepository(java.lang.String path,
                      boolean enableCache,
                      int cacheLimit)
               throws java.lang.Exception
Parameters:
path -
enableCache -
cacheLimit -
Throws:
java.lang.Exception
Method Detail

get

public java.lang.Object[] get(int[] ids)
                       throws BeanIndexException
Parameters:
ids -
Returns:
Object[]
Throws:
BeanIndexException

get

public java.lang.Object get(int id)
                     throws java.lang.Exception
Parameters:
id -
Returns:
Object
Throws:
java.lang.Exception

closeFiles

public void closeFiles()
                throws java.lang.Exception
Throws:
java.lang.Exception

getIndexNames

public java.lang.String[] getIndexNames()
Returns:
String[]

getIndexedFields

public java.lang.reflect.Field[] getIndexedFields()
Returns:
Field[]