|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xenei.jena.entities.impl.EntityManagerImpl
public class EntityManagerImpl
An implementation of the EntityManager interface.
| Constructor Summary | |
|---|---|
EntityManagerImpl()
Constructor. |
|
| Method Summary | ||
|---|---|---|
com.hp.hpl.jena.rdf.model.Resource |
addInstanceProperties(com.hp.hpl.jena.rdf.model.Resource r,
Class<?> clazz)
Read an instance of clazz from Resource r. |
|
SubjectInfo |
getSubjectInfo(Class<?> clazz)
Get the SubjectInfo for the class. |
|
boolean |
isInstance(Object target,
Class<?> clazz)
Determine if target has all the properties required in the Subject( type ) annotation value. |
|
void |
parseClasses(String packageName)
Parses the the classes in a package (and subpackages) looking for Subject annotated classes. |
|
void |
parseClasses(String[] packageNames)
Parses the the classes in an array of packages (and subpackages) looking for Subject annotated classes. |
|
|
read(Object source,
Class<T> primaryClass,
Class<?>... secondaryClasses)
Read an instance of clazz from source. |
|
Object |
update(Object source,
Object target)
Since the EntityManger implements the manager as a live data read against the Model, this method provides a mechanism to copy all the values from the source to the target. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityManagerImpl()
| Method Detail |
|---|
public SubjectInfo getSubjectInfo(Class<?> clazz)
EntityManager
getSubjectInfo in interface EntityManagerclazz - The class to get SubjectInfo for.
public <T> T read(Object source,
Class<T> primaryClass,
Class<?>... secondaryClasses)
EntityManager
read in interface EntityManagersource - Must either implement Resource or ResourceWrapper interfaces.primaryClass - The class of the object to be returned.secondaryClasses - A lost of other classes that are implemented.
EntityManager.isInstance(Object, Class)
public boolean isInstance(Object target,
Class<?> clazz)
EntityManager
isInstance in interface EntityManagertarget - The object to check.clazz - A Subject annotated class.
public com.hp.hpl.jena.rdf.model.Resource addInstanceProperties(com.hp.hpl.jena.rdf.model.Resource r,
Class<?> clazz)
r - The Resource to verify.clazz - The Subject annotated class to verify against.
public void parseClasses(String packageName)
throws MissingAnnotation
EntityManager
parseClasses in interface EntityManagerpackageName - The name of the package to process
MissingAnnotationIf any Subject annotated classes are missing required annotations, a
log entry is written.
If any Subject annotated classes faild parsing a MissingAnnotation
exception is thrown after
all classes have been processed.
public void parseClasses(String[] packageNames)
throws MissingAnnotation
EntityManager
parseClasses in interface EntityManagerpackageNames - The array of package names to process
MissingAnnotationClassLoader.getResources(String)
public Object update(Object source,
Object target)
update in interface EntityManagersource - The object that has the values to transfer.target - The object that has the receptors for the values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||