Package org.geoserver.catalog.impl

Examples of org.geoserver.catalog.impl.ClassMappings


                Integer targetPropertyOid = prop.getPropertyType().getTargetPropertyOid();
                PropertyType targetProperty;
                String targetPropertyName;

                Class<?> targetQueryType;
                ClassMappings classMappings = ClassMappings.fromImpl(relatedObject.getClass());
                targetQueryType = classMappings.getInterface();
                targetProperty = dbMappings.getPropertyType(targetPropertyOid);
                targetPropertyName = targetProperty.getPropertyName();

                Set<Integer> propertyTypeIds;
                propertyTypeIds = dbMappings
View Full Code Here


     * @param queryType
     * @return
     */
    @SuppressWarnings("unchecked")
    public List<Integer> getConcreteQueryTypes(Class<?> queryType) {
        ClassMappings mappings = ClassMappings.fromInterface((Class<? extends Info>) queryType);
        Class<? extends Info>[] concreteInterfaces = mappings.concreteInterfaces();

        List<Integer> inValues = new ArrayList<Integer>(concreteInterfaces.length);
        for (Class<?> type : concreteInterfaces) {
            Integer typeId = getTypeId(type);
            inValues.add(typeId);
View Full Code Here

        propertyName = removeIndexes(propertyName);

        Set<PropertyType> matches = Sets.newHashSet();

        ClassMappings classMappings;
        classMappings = ClassMappings.fromInterface((Class<? extends Info>) queryType);
        checkState(classMappings != null, "ClassMappings not found for " + queryType);
        Class<? extends Info>[] concreteInterfaces = classMappings.concreteInterfaces();

        for (Class<? extends Info> concreteType : concreteInterfaces) {
            Map<String, PropertyType> propTypes = getPropertyTypes(concreteType);
            if (null == propTypes) {
                continue;
View Full Code Here

     * @param info
     * @return
     */
    public Iterable<Property> properties(Info object) {
        checkArgument(!(object instanceof Proxy));
        final ClassMappings classMappings = ClassMappings.fromImpl(object.getClass());
        checkNotNull(classMappings);
        return properties(object, classMappings);
    }
View Full Code Here

        return properties(object, classMappings);
    }

    public Iterable<Property> changedProperties(Info oldObject, Info object) {
        checkArgument(!(oldObject instanceof Proxy));
        final ClassMappings classMappings = ClassMappings.fromImpl(oldObject.getClass());
        checkNotNull(classMappings);

        ImmutableSet<Property> oldProperties = properties(oldObject, classMappings);
        ImmutableSet<Property> newProperties = properties(object, classMappings);
View Full Code Here

TOP

Related Classes of org.geoserver.catalog.impl.ClassMappings

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.