Examples of Getter


Examples of org.hibernate.property.Getter

    public void mapToEntityFromMap(Object obj, Map data) {
        if (data == null || obj == null) {
            return;
        }

        Getter getter = ReflectionTools.getGetter(obj.getClass(), idPropertyData);
        Setter setter = ReflectionTools.getSetter(obj.getClass(), idPropertyData);

        try {
            Object subObj = ReflectHelper.getDefaultConstructor( getter.getReturnType() ).newInstance();
            setter.set(obj, subObj, null);

            for (IdMapper idMapper : ids.values()) {
                idMapper.mapToEntityFromMap(subObj, data);
            }
View Full Code Here

Examples of org.hibernate.property.Getter

    public Object mapToIdFromEntity(Object data) {
        if (data == null) {
            return null;
        }

        Getter getter = ReflectionTools.getGetter(data.getClass(), idPropertyData);
        return getter.get(data);
    }
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.Getter

                    }
                }
            });

            final Method getter = findMatchingGetter(bindDecl.getJavaName(), beanTypeClass);
            mut.register(bindDecl.getJavaName(), new Getter() {
                @Override
                public Object invoke(Object entity) {
                    try {

                        if(entity instanceof AutoBeanStub)
View Full Code Here

Examples of org.milyn.javabean.binding.model.get.Getter

    private void writeElements(Writer outputStream, SerializationContext context) throws IOException {
        context.incDepth();
        for(XMLElementSerializationNode element : elements) {
            if(element.isCollection) {
                NodeGetter collectionNodeGetter = element.getCollectionGetter();
                Getter collectionGetter = collectionNodeGetter.getter;
                Object collectionObject;
                List<?> collection = null;

                if (collectionGetter instanceof GetterGraph) {
                    collectionObject = context.getValue(((GetterGraph) collectionGetter).getContextObjectName(), collectionGetter);
View Full Code Here

Examples of org.sql2o.reflection.Getter

            if(!method.getName().startsWith("get_")) continue;

            Field field = pojo.getClass()
                    .getDeclaredField(method.getName().substring(3));

            Getter getter = mgf.newGetter(method);
            assertSame(field.getType(),getter.getType());

            Object val1 = field.get(pojo);
            assertEquals(val1, getter.getProperty(pojo));
        }
    }
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.