Package com.espertech.esper.client

Examples of com.espertech.esper.client.PropertyAccessException


    }

    public static PropertyAccessException getInvocationTargetException(Method method, InvocationTargetException e) {
        Class declaring = method.getDeclaringClass();
        String message = "Failed to invoke method " + method.getName() + " on class " + JavaClassHelper.getClassNameFullyQualPretty(declaring) + ": " + e.getTargetException().getMessage();
        throw new PropertyAccessException(message, e);
    }
View Full Code Here


    }

    private static PropertyAccessException getAccessExceptionField(Field field, Exception e) {
        Class declaring = field.getDeclaringClass();
        String message = "Failed to obtain field value for field " + field.getName() + " on class " + JavaClassHelper.getClassNameFullyQualPretty(declaring) + ": " + e.getMessage();
        throw new PropertyAccessException(message, e);
    }
View Full Code Here

            message += JavaClassHelper.getClassNameFullyQualPretty(object.getClass());
        }
        else {
            message += "null";
        }
        throw new PropertyAccessException(message, e);
    }
View Full Code Here

    }

    private static PropertyAccessException getAccessExceptionMethod(Method method, Exception e) {
        Class declaring = method.getDeclaringClass();
        String message = "Failed to invoke method " + method.getName() + " on class " + JavaClassHelper.getClassNameFullyQualPretty(declaring) + ": " + e.getMessage();
        throw new PropertyAccessException(message, e);
    }
View Full Code Here

  public Object get(String property) throws PropertyAccessException
    {
    EventPropertyGetter getter = eventType.getGetter(property);
    if (getter == null) {
      throw new PropertyAccessException("Property named '" + property
          + "' is not a valid property name for this type");
    }
    return getter.get(this);
  }
View Full Code Here

        Object underlying = eventBean.getUnderlying();

        // The underlying is expected to be a map
        if (!(underlying instanceof Map))
        {
            throw new PropertyAccessException("Mismatched property getter to event bean type, " +
                    "the underlying data object is not of type java.lang.Map");
        }

        Map<String, Object> map = (Map<String, Object>) underlying;
        return getMapInternal(map, index);
View Full Code Here

        Object underlying = obj.getUnderlying();

        // The underlying is expected to be a map
        if (!(underlying instanceof Map))
        {
            throw new PropertyAccessException("Mismatched property getter to event bean type, " +
                    "the underlying data object is not of type java.lang.Map");
        }

        Map<String, Object> map = (Map<String, Object>) underlying;
        return getMap(map);
View Full Code Here

        Object underlying = eventBean.getUnderlying();

        // The underlying is expected to be a map
        if (!(underlying instanceof Map))
        {
            throw new PropertyAccessException("Mismatched property getter to event bean type, " +
                    "the underlying data object is not of type java.lang.Map");
        }

        Map map = (Map) underlying;
        return map.containsKey(propertyMap);
View Full Code Here

  }

  public Object get(String property) throws PropertyAccessException {
    EventPropertyGetter getter = eventType.getGetter(property);
    if (getter == null)
       throw new PropertyAccessException("Property named '" + property + "' is not a valid property name for this type");
    return getter.get(this);
  }
View Full Code Here

    public Object getFragment(String propertyExpression)
    {
        EventPropertyGetter getter = eventType.getGetter(propertyExpression);
        if (getter == null)
        {
            throw new PropertyAccessException("Property named '" + propertyExpression + "' is not a valid property name for this type");
        }
        return getter.getFragment(this);
    }
View Full Code Here

TOP

Related Classes of com.espertech.esper.client.PropertyAccessException

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.