org.sourceforge.beanindex.store
Class BeanRepository
java.lang.Object
org.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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanRepository
public BeanRepository(java.lang.String path,
boolean enableCache,
int cacheLimit)
throws java.lang.Exception
- Parameters:
path
- enableCache
- cacheLimit
-
- Throws:
java.lang.Exception
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[]