com.khubla.pragmatach.plugin.mongodb.proxy
Class MongoProxyFactory

java.lang.Object
  extended by com.khubla.pragmatach.plugin.mongodb.proxy.MongoProxyFactory

public class MongoProxyFactory
extends Object

Author:
tom

Field Summary
static String LAZYFETCHED
           
static String LAZYID
          some special names
 
Constructor Summary
MongoProxyFactory()
           
 
Method Summary
static boolean getFetched(Object o)
           
static String getId(Object o)
           
static Object getProxyObject(Class<?> typeClazz)
          get a proxy to an instance of a type
static void setFetched(Object o, boolean fetched)
           
static void setID(Object o, String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAZYID

public static final String LAZYID
some special names

See Also:
Constant Field Values

LAZYFETCHED

public static final String LAZYFETCHED
See Also:
Constant Field Values
Constructor Detail

MongoProxyFactory

public MongoProxyFactory()
Method Detail

getProxyObject

public static Object getProxyObject(Class<?> typeClazz)
                             throws javassist.NotFoundException,
                                    IllegalAccessException,
                                    InstantiationException,
                                    javassist.CannotCompileException
get a proxy to an instance of a type

Throws:
javassist.NotFoundException
IllegalAccessException
InstantiationException
javassist.CannotCompileException

setID

public static void setID(Object o,
                         String id)
                  throws IllegalAccessException
Throws:
IllegalAccessException

setFetched

public static void setFetched(Object o,
                              boolean fetched)
                       throws IllegalAccessException
Throws:
IllegalAccessException

getId

public static String getId(Object o)
                    throws IllegalAccessException
Throws:
IllegalAccessException

getFetched

public static boolean getFetched(Object o)
                          throws IllegalAccessException
Throws:
IllegalAccessException


Copyright © 2014 khubla.com. All rights reserved.