package com.quantum.model; import com.quantum.util.sql.TypesHelper; /** * This class represents a data type. Columns in databases can be of particular types. * * @author BC */ public class DataType { private final int javaType; private final String databaseTypeName; public DataType(int javaType, String databaseTypeName) { this.javaType = javaType; this.databaseTypeName = databaseTypeName; } public String getDatabaseTypeName() { return this.databaseTypeName; } public int getJavaType() { return this.javaType; } public String getJavaNameType() { return TypesHelper.getTypeName(this.javaType); } }