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

net.hasor.db.jdbc.mapping.FieldImpl Maven / Gradle / Ivy

There is a newer version: 4.3.5
Show newest version
package net.hasor.db.jdbc.mapping;
import net.hasor.db.types.TypeHandler;
import net.hasor.db.types.UnknownTypeHandler;

import java.lang.annotation.Annotation;
import java.sql.JDBCType;

class FieldImpl implements Field {
    private final String   fieldName;
    private final JDBCType jdbcType;

    public FieldImpl(String fieldName, JDBCType jdbcType) {
        this.fieldName = fieldName;
        this.jdbcType = jdbcType;
    }

    @Override
    public String value() {
        return this.fieldName;
    }

    @Override
    public String name() {
        return this.fieldName;
    }

    @Override
    public JDBCType jdbcType() {
        return this.jdbcType;
    }

    @Override
    public Class> typeHandler() {
        return UnknownTypeHandler.class;
    }

    @Override
    public Class annotationType() {
        return Field.class;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy