Package org.hivedb.util

Examples of org.hivedb.util.InstanceCollectionValueGetter


      final Class entityInterface,
      final String propertyName) {
    this.propertyName = propertyName;
    this.indexName = propertyName;
    this.indexType = resolveIndexType(entityInterface, propertyName);
    this.secondaryIndexCollectionGetter = new InstanceCollectionValueGetter() {
      public Collection<Object> get(Object instance) {
        if (!getValidator().isValid(instance, propertyName))
          getValidator().throwInvalid(instance, propertyName);
        return Actor.forceCollection(ReflectionTools.invokeGetter(instance, propertyName));
    }};
View Full Code Here


      final String innerClassPropertyName) {
    this.propertyName = propertyName;
    this.innerClassPropertyName = innerClassPropertyName;
    this.indexName = SqlUtils.singularize(propertyName) + ReflectionTools.capitalize(innerClassPropertyName);
    this.indexType = ReflectionTools.getGetterOfProperty(entityInterface, propertyName).getAnnotation(Index.class).type();
    this.secondaryIndexCollectionGetter = new InstanceCollectionValueGetter() {
      @SuppressWarnings("unchecked")
      public Collection<Object> get(Object instance) {
        if (!getValidator().isValid(instance, propertyName))
          getValidator().throwInvalid(instance, propertyName);
        return Transform.map(new Unary<Object, Object>() {
View Full Code Here

TOP

Related Classes of org.hivedb.util.InstanceCollectionValueGetter

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.