Package net.sourceforge.squirrel_sql.plugins.hibernate.server

Examples of net.sourceforge.squirrel_sql.plugins.hibernate.server.ReflectionCaller


      }
   }

   private ArrayList getObjectsFromPersistentCollection(Object persistentCollection)
   {
      Iterator iterator = ((Collection) new ReflectionCaller(persistentCollection).getCallee()).iterator();

      ArrayList ret = new ArrayList();
      while(iterator.hasNext())
      {
         ret.add(iterator.next());
View Full Code Here


      return ret;
   }

   private boolean isPersistentCollectionIsInitialize(Object persistentCollection)
   {
      ReflectionCaller rc = new ReflectionCaller(persistentCollection);
      return (Boolean)rc.callMethod("wasInitialized").getCallee();
   }
View Full Code Here

         HibernatePropertyReader hpr = new HibernatePropertyReader(propertyName, obj);

         Object value = hpr.getValue();
         if (null != value && persistenCollectionClass.isAssignableFrom(value.getClass()))
         {
            ReflectionCaller rc = new ReflectionCaller(value);

            System.out.println("      PersistentCollection: " + hpr.getName() + "; wasInitialized=" + rc.callMethod("wasInitialized").getCallee());
         }
         else if (null != ViewObjectsUtil.findMappedClassInfo(hpr.getTypeName(), mappedClassInfos, true))
         {
            System.out.println("      " + hpr.getName() + " instance of mapped class: " + hpr.getTypeName());
         }
View Full Code Here

   {

      _persistentCollection = persistentCollection;
      _propertyInfo = propertyInfo;

      ReflectionCaller rc = new ReflectionCaller(persistentCollection);
      _initialized = (Boolean)rc.callMethod("wasInitialized").getCallee();

      String propertyName = _propertyInfo.getHibernatePropertyInfo().getPropertyName();
      String className = _propertyInfo.getMappedClassInfo().getClassName();

      if(_initialized)
      {
         _toString = s_stringMgr.getString("PersistentCollectionResult.initialized", propertyName, className);


         Iterator iterator = ((Collection) new ReflectionCaller(_persistentCollection).getCallee()).iterator();

         MappedClassInfo mci = null;
         while(iterator.hasNext())
         {
            Object obj = iterator.next();
View Full Code Here

         return "<null>";
      }

      if (_singleType.getPersistenCollectionClass().isAssignableFrom(value.getClass()))
      {
         boolean wasInitialized = (Boolean) new ReflectionCaller(value).callMethod("wasInitialized").getCallee();

         if(false == wasInitialized)
         {
            return "<unitialized persistent collection>";
         }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.plugins.hibernate.server.ReflectionCaller

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.