All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.simpleflatmapper.map.property.DiscriminatorColumnProperty Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
package org.simpleflatmapper.map.property;

import org.simpleflatmapper.reflect.property.EligibleAsNonMappedProperty;
import org.simpleflatmapper.util.Predicate;
import org.simpleflatmapper.util.TypeHelper;

import java.lang.reflect.Type;

public class DiscriminatorColumnProperty implements Predicate, EligibleAsNonMappedProperty {

    private final Type commonType;


    public DiscriminatorColumnProperty(Type commonType) {
        this.commonType = commonType;
    }


    @Override
    public boolean test(Type type) {
        return TypeHelper.isAssignable(commonType, type);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy