1 package com.quantum.model;
3 import com.quantum.util.sql.TypesHelper;
7 * This class represents a data type. Columns in databases can be of particular types.
11 public class DataType {
12 private final int javaType;
13 private final String databaseTypeName;
15 public DataType(int javaType, String databaseTypeName) {
16 this.javaType = javaType;
17 this.databaseTypeName = databaseTypeName;
19 public String getDatabaseTypeName() {
20 return this.databaseTypeName;
22 public int getJavaType() {
25 public String getJavaNameType() {
26 return TypesHelper.getTypeName(this.javaType);