net.hasor.db.jdbc.mapping.FieldImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hasor-db Show documentation
Show all versions of hasor-db Show documentation
the hasor DataBase project.
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 extends TypeHandler>> typeHandler() {
return UnknownTypeHandler.class;
}
@Override
public Class extends Annotation> annotationType() {
return Field.class;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy