org.chromattic.core
Class ObjectContext<O extends ObjectContext<O>>

java.lang.Object
  extended by org.chromattic.core.ObjectContext<O>
All Implemented Interfaces:
MethodHandler
Direct Known Subclasses:
EmbeddedContext, EntityContext

public abstract class ObjectContext<O extends ObjectContext<O>>
extends java.lang.Object
implements MethodHandler

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ObjectContext()
           
 
Method Summary
abstract  EntityContext getEntity()
           
abstract  ObjectMapper<O> getMapper()
           
abstract  java.lang.Object getObject()
           
<V> V
getPropertyValue(java.lang.String propertyName, ValueDefinition<?,V> type)
           
<V> java.util.List<V>
getPropertyValues(java.lang.String propertyName, ValueDefinition<?,V> simpleType, ListType listType)
           
abstract  NodeTypeInfo getTypeInfo()
           
 java.lang.Object invoke(java.lang.Object o, java.lang.reflect.Method method)
           
 java.lang.Object invoke(java.lang.Object o, java.lang.reflect.Method method, java.lang.Object arg)
           
 java.lang.Object invoke(java.lang.Object o, java.lang.reflect.Method method, java.lang.Object[] args)
           
<V> void
setPropertyValue(java.lang.String propertyName, ValueDefinition<?,V> type, V o)
           
<V> void
setPropertyValues(java.lang.String propertyName, ValueDefinition<?,V> type, ListType listType, java.util.List<V> objects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectContext

public ObjectContext()
Method Detail

getMapper

public abstract ObjectMapper<O> getMapper()

getObject

public abstract java.lang.Object getObject()

getEntity

public abstract EntityContext getEntity()

getTypeInfo

public abstract NodeTypeInfo getTypeInfo()

invoke

public final java.lang.Object invoke(java.lang.Object o,
                                     java.lang.reflect.Method method)
                              throws java.lang.Throwable
Specified by:
invoke in interface MethodHandler
Throws:
java.lang.Throwable

invoke

public final java.lang.Object invoke(java.lang.Object o,
                                     java.lang.reflect.Method method,
                                     java.lang.Object arg)
                              throws java.lang.Throwable
Specified by:
invoke in interface MethodHandler
Throws:
java.lang.Throwable

invoke

public final java.lang.Object invoke(java.lang.Object o,
                                     java.lang.reflect.Method method,
                                     java.lang.Object[] args)
                              throws java.lang.Throwable
Specified by:
invoke in interface MethodHandler
Throws:
java.lang.Throwable

getPropertyValue

public final <V> V getPropertyValue(java.lang.String propertyName,
                                    ValueDefinition<?,V> type)
                         throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getPropertyValues

public final <V> java.util.List<V> getPropertyValues(java.lang.String propertyName,
                                                     ValueDefinition<?,V> simpleType,
                                                     ListType listType)
                                          throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

setPropertyValue

public final <V> void setPropertyValue(java.lang.String propertyName,
                                       ValueDefinition<?,V> type,
                                       V o)
                            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

setPropertyValues

public final <V> void setPropertyValues(java.lang.String propertyName,
                                        ValueDefinition<?,V> type,
                                        ListType listType,
                                        java.util.List<V> objects)
                             throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.