Examples of synthesizeReader()


Examples of com.inspiresoftware.lib.dto.geda.assembler.extension.MethodSynthesizer.synthesizeReader()

        final PropertyDescriptor dtoFieldDesc = PropertyInspector.getDtoPropertyDescriptorForField(
                dtoClass, meta.getDtoFieldName(), dtoPropertyDescriptors);

        final MethodSynthesizer synthesizer = context.getMethodSynthesizer();

        final DataReader dtoFieldRead = meta.isReadOnly() ? null : synthesizer.synthesizeReader(dtoFieldDesc);
        final DataWriter dtoFieldWrite = synthesizer.synthesizeWriter(dtoFieldDesc);

        final boolean isMapEntity = Map.class.isAssignableFrom(entityClass);
        final boolean isListEntity = !isMapEntity && List.class.isAssignableFrom(entityClass);
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.extension.MethodSynthesizer.synthesizeReader()

            entitySynthesizer = synthesizer;
            entityFieldDesc = PropertyInspector.getEntityPropertyDescriptorForField(
            dtoClass, entityClass, meta.getDtoFieldName(), meta.getEntityFieldName(), entityPropertyDescriptors);
        }

    final DataReader entityFieldRead = entitySynthesizer.synthesizeReader(entityFieldDesc);
    final DataWriter entityFieldWrite = meta.isReadOnly() ? null : entitySynthesizer.synthesizeWriter(entityFieldDesc);

        return new CollectionPipe(context,
                dtoFieldRead, dtoFieldWrite,
                entityFieldRead, entityFieldWrite,
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.extension.MethodSynthesizer.synthesizeReader()

        dtoClass, meta.getDtoFieldName(), dtoPropertyDescriptors);

        final MethodSynthesizer synthesizer = context.getMethodSynthesizer();

    return new DataVirtualPipe(
                meta.isReadOnly() ? null : synthesizer.synthesizeReader(dtoFieldDesc),
        synthesizer.synthesizeWriter(dtoFieldDesc),
        meta
    );
  }
 
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.extension.MethodSynthesizer.synthesizeReader()

        final PropertyDescriptor dtoFieldDesc = PropertyInspector.getDtoPropertyDescriptorForField(
                dtoClass, meta.getDtoFieldName(), dtoPropertyDescriptors);

        final MethodSynthesizer synthesizer = context.getMethodSynthesizer();

        final DataReader dtoFieldRead = meta.isReadOnly() ? null : synthesizer.synthesizeReader(dtoFieldDesc);
        final DataWriter dtoFieldWrite = synthesizer.synthesizeWriter(dtoFieldDesc);


        final boolean isMapEntity = Map.class.isAssignableFrom(entityClass);
        final boolean isListEntity = !isMapEntity && List.class.isAssignableFrom(entityClass);
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.extension.MethodSynthesizer.synthesizeReader()

            entitySynthesizer = synthesizer;
            entityFieldDesc = PropertyInspector.getEntityPropertyDescriptorForField(
            dtoClass, entityClass, meta.getDtoFieldName(), meta.getEntityFieldName(), entityPropertyDescriptors);
        }

    final DataReader entityFieldRead = entitySynthesizer.synthesizeReader(entityFieldDesc);
    final DataWriter entityFieldWrite = meta.isReadOnly() ? null : entitySynthesizer.synthesizeWriter(entityFieldDesc);

        return new MapPipe(context,
                dtoFieldRead, dtoFieldWrite,
                entityFieldRead, entityFieldWrite,
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.extension.MethodSynthesizer.synthesizeReader()

   
    return new DataPipe(context,
                meta.isReadOnly() ? null : synthesizer.synthesizeReader(dtoFieldDesc),
        synthesizer.synthesizeWriter(dtoFieldDesc),
        dtoParentReadMethod,
                entitySynthesizer.synthesizeReader(entityFieldDesc),
        meta.isReadOnly() ? null : entitySynthesizer.synthesizeWriter(entityFieldDesc),
        meta
    );
  }
 
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.extension.MethodSynthesizer.synthesizeReader()

  /** {@inheritDoc} */
  public DataReader synthesizeReader(final PropertyDescriptor descriptor)
      throws InspectionPropertyNotFoundException,
      UnableToCreateInstanceException, GeDARuntimeException {
    final MethodSynthesizer syn = lazyGet(clRef.get(), null);
    return syn.synthesizeReader(descriptor);
  }

  /** {@inheritDoc} */
  public DataWriter synthesizeWriter(final PropertyDescriptor descriptor)
      throws InspectionPropertyNotFoundException,
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.extension.MethodSynthesizer.synthesizeReader()

            entitySynthesizer = synthesizer;
            entityFieldDesc = PropertyInspector.getEntityPropertyDescriptorForField(
            dtoClass, entityClass, meta.getDtoFieldName(), meta.getEntityFieldName(), entityPropertyDescriptors);
        }
   
    final DataReader entityFieldRead = entitySynthesizer.synthesizeReader(entityFieldDesc);
    final DataWriter entityFieldWrite = meta.isReadOnly() ? null : entitySynthesizer.synthesizeWriter(entityFieldDesc);
   
    return new DataPipeChain(
                meta.isReadOnly() ? null : synthesizer.synthesizeReader(dtoFieldDesc),
                entityFieldRead,
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.