Examples of Getter


Examples of com.complexible.stardog.api.Getter

    if (subject == null && predicate == null) {
      return list;
    }
   
    Connection connection = dataSource.getConnection();
    Getter getter = null;
    try {
      getter = connection.get();
     
      if (subject != null) {
        getter.subject(new URIImpl(subject));
      }
     
      if (predicate != null) {
        getter.predicate(new URIImpl(predicate));
      }
     
      com.complexible.common.iterations.Iteration<Statement, StardogException> iterator = getter.iterator();
     
      while (iterator.hasNext()) {
        list.add(action.processStatement(iterator.next()));
      }
     
View Full Code Here

Examples of jodd.introspector.Getter

  /**
   * Extracts type of current property.
   */
  protected Class extractType(BeanProperty bp, boolean declared) {
    Getter getter = bp.getGetter(declared);
    if (getter != null) {
      if (bp.index != null) {
        Class type = getter.getGetterRawComponentType();
        return type == null ? Object.class : type;
      }
      return getter.getGetterRawType();
    }

    return null// this should not happens
  }
View Full Code Here

Examples of jodd.introspector.Getter

    if (bp.bean == null) {
      return false;
    }

    // try: getter
    Getter getter = bp.getGetter(declared);
    if (getter != null) {
      return true;
    }

    // try: (Map) get("property")
View Full Code Here

Examples of jodd.introspector.Getter

    if ((bp.name.length() == 0 && bp.first) || bp.name.equals(JoddBean.thisRef)) {
      return bp.bean;
    }

    Getter getter = bp.getGetter(declared);

    if (getter != null) {
      Object result;
      try {
        result = getter.invokeGetter(bp.bean);
      } catch (Exception ex) {
        throw new BeanException("Getter failed: " + getter, ex);
      }

      if ((result == null) && (bp.forced == true)) {
View Full Code Here

Examples of jodd.introspector.Getter

   */
  protected Object getIndexProperty(BeanProperty bp, boolean declared) {
    String indexString = extractIndex(bp);

    Object resultBean = getSimpleProperty(bp, declared);
    Getter getter = bp.getGetter(declared);

    if (indexString == null) {
      return resultBean;  // no index, just simple bean
    }
    if (resultBean == null) {
View Full Code Here

Examples of jodd.introspector.Getter

      return;
    }

    // try: getInner()
    Object nextBean = getSimpleProperty(bp, declared);
    Getter getter = bp.getGetter(declared);

    if (nextBean == null) {
      throw new BeanException("Index property is null:" + bp.name, bp);
    }
View Full Code Here

Examples of org.hibernate.property.Getter

    Class clazz = bean.getClass();
    String[] params = getNamedParameters();
    for (int i = 0; i < params.length; i++) {
      String namedParam = params[i];
      try {
        Getter getter = ReflectHelper.getGetter( clazz, namedParam );
        Class retType = getter.getReturnType();
        final Object object = getter.get( bean );
        if ( Collection.class.isAssignableFrom( retType ) ) {
          setParameterList( namedParam, ( Collection ) object );
        }
        else if ( retType.isArray() ) {
           setParameterList( namedParam, ( Object[] ) object );
View Full Code Here

Examples of org.hibernate.property.Getter

    Class clazz = bean.getClass();
    String[] params = getNamedParameters();
    for (int i = 0; i < params.length; i++) {
      String namedParam = params[i];
      try {
        Getter getter = ReflectHelper.getGetter( clazz, namedParam );
        Class retType = getter.getReturnType();
        final Object object = getter.get( bean );
        if ( Collection.class.isAssignableFrom( retType ) ) {
          setParameterList( namedParam, ( Collection ) object );
        }
        else if ( retType.isArray() ) {
           setParameterList( namedParam, ( Object[] ) object );
View Full Code Here

Examples of org.hibernate.property.Getter

  private void addSubElement(Property property, ValidatableElement element) {
    if ( property != null && property.isComposite() && !property.isBackRef() ) {
      Component component = (Component) property.getValue();
      if ( component.isEmbedded() ) return;
      PropertyAccessor accessor = PropertyAccessorFactory.getPropertyAccessor( property, EntityMode.POJO );
      Getter getter = accessor.getGetter( element.clazz, property.getName() );
      ClassValidator validator = new ClassValidator( getter.getReturnType() );
      ValidatableElement subElement = new ValidatableElement( getter.getReturnType(), validator, getter );
      Iterator properties = component.getPropertyIterator();
      while ( properties.hasNext() ) {
        addSubElement( (Property) properties.next(), subElement );
      }
      if ( subElement.getSubElements().size() != 0 || subElement.validator.hasValidationRules() ) {
View Full Code Here

Examples of org.hibernate.property.Getter

    Class clazz = bean.getClass();
    String[] params = getNamedParameters();
    for (int i = 0; i < params.length; i++) {
      String namedParam = params[i];
      try {
        Getter getter = ReflectHelper.getGetter( clazz, namedParam );
        Class retType = getter.getReturnType();
        final Object object = getter.get( bean );
        if ( Collection.class.isAssignableFrom( retType ) ) {
          setParameterList( namedParam, ( Collection ) object );
        }
        else if ( retType.isArray() ) {
           setParameterList( namedParam, ( Object[] ) object );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.