| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.gora.persistency.impl.BeanFactoryImpl<K,T>
public class BeanFactoryImpl<K,T extends Persistent>
A default implementation of the BeanFactory interface. Constructs 
 the keys using by reflection, Persistent objects by calling 
 Persistent.newInstance(org.apache.gora.persistency.StateManager).
| Constructor Summary | |
|---|---|
| BeanFactoryImpl(Class<K> keyClass,
                Class<T> persistentClass) | |
| Method Summary | |
|---|---|
|  K | getCachedKey()Returns an instance of the key object to be used to access static fields of the object. | 
|  T | getCachedPersistent()Returns an instance of the Persistentobject to be 
 used to access static fields of the object. | 
|  Class<K> | getKeyClass()Returns the key class | 
|  Class<T> | getPersistentClass()Returns the persistent class | 
|  boolean | isKeyPersistent() | 
|  K | newKey()Constructs a new instance of the key class | 
|  T | newPersistent()Constructs a new instance of the Persistent class | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public BeanFactoryImpl(Class<K> keyClass,
                       Class<T> persistentClass)
| Method Detail | 
|---|
public K newKey()
         throws Exception
BeanFactory
newKey in interface BeanFactory<K,T extends Persistent>Exceptionpublic T newPersistent()
BeanFactory
newPersistent in interface BeanFactory<K,T extends Persistent>public K getCachedKey()
BeanFactory
getCachedKey in interface BeanFactory<K,T extends Persistent>public T getCachedPersistent()
BeanFactoryPersistent object to be 
 used to access static fields of the object. Returned object MUST  
 be treated as read-only. No fields other than the static fields 
 of the object should be assumed to be readable.
getCachedPersistent in interface BeanFactory<K,T extends Persistent>public Class<K> getKeyClass()
BeanFactory
getKeyClass in interface BeanFactory<K,T extends Persistent>public Class<T> getPersistentClass()
BeanFactory
getPersistentClass in interface BeanFactory<K,T extends Persistent>public boolean isKeyPersistent()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||