<commit_before>package org.springframework.roo.addon.dbre.model;

import java.math.BigDecimal;
import java.sql.Types;
import java.util.Date;
import java.util.HashMap;

import org.springframework.roo.model.DataType;
import org.springframework.roo.model.JavaType;

/**
 * Maps column types to Java types. 
 * 
 * @author <NAME>
 * @since 1.1
 */
public enum ColumnType {
	BIT(Types.BIT, JavaType.BOOLEAN_PRIMITIVE), 
	TINYINT(Types.TINYINT, JavaType.SHORT_OBJECT), 
	SMALLINT(Types.SMALLINT, JavaType.SHORT_OBJECT), 
	INTEGER(Types.INTEGER, JavaType.INT_OBJECT), 
	BIGINT(Types.BIGINT, JavaType.LONG_OBJECT), 
	FLOAT(Types.FLOAT, JavaType.FLOAT_OBJECT), 
	REAL(Types.REAL, JavaType.FLOAT_OBJECT), 
	NUMERIC(Types.NUMERIC, new JavaType(BigDecimal.class.getName())), 
	DECIMAL(Types.DECIMAL, new JavaType(BigDecimal.class.getName())), 
	CHAR(Types.CHAR, JavaType.STRING_OBJECT), 
	VARCHAR(Types.VARCHAR, JavaType.STRING_OBJECT), 
	LONGVARCHAR(Types.LONGVARCHAR, JavaType.STRING_OBJECT), 
	DATE(Types.DATE, new JavaType(Date.class.getName())), 
	TIME(Types.TIME, new JavaType(Date.class.getName())), 
	TIMESTAMP(Types.TIMESTAMP, new JavaType(Date.class.getName())), 
	BINARY(Types.BINARY, new JavaType("java.lang.Byte", 1, DataType.PRIMITIVE, null, null)), 
	VARBINARY(Types.VARBINARY, new JavaType("java.lang.Byte", 1, DataType.PRIMITIVE, null, null)), 
	LONGVARBINARY(Types.LONGVARBINARY, new JavaType("java.lang.Byte", 1, DataType.PRIMITIVE, null, null)), 
	NULL(Types.NULL, null), 
	OTHER(Types.OTHER, JavaType.STRING_OBJECT), 
	JAVA_OBJECT(Types.JAVA_OBJECT, new JavaType("java.lang.Object")), 
	DISTINCT(Types.DISTINCT, new JavaType(HashMap.class.getName())), 
	STRUCT(Types.STRUCT, new JavaType(HashMap.class.getName())), 
	ARRAY(Types.ARRAY, new JavaType("java.sql.Array")), <commit_msg>ROO-1573: Change DBRE-generated double primitive fields to Double objects for compatibility with GWT<commit_after>package org.springframework.roo.addon.dbre.model;

import java.math.BigDecimal;
import java.sql.Types;
import java.util.Date;
import java.util.HashMap;

import org.springframework.roo.model.DataType;
import org.springframework.roo.model.JavaType;

/**
 * Maps column types to Java types. 
 * 
 * @author <NAME>
 * @since 1.1
 */
public enum ColumnType {
	BIT(Types.BIT, JavaType.BOOLEAN_PRIMITIVE), 
	TINYINT(Types.TINYINT, JavaType.SHORT_OBJECT), 
	SMALLINT(Types.SMALLINT, JavaType.SHORT_OBJECT), 
	INTEGER(Types.INTEGER, JavaType.INT_OBJECT), 
	BIGINT(Types.BIGINT, JavaType.LONG_OBJECT), 
	FLOAT(Types.FLOAT, JavaType.DOUBLE_OBJECT), 
	REAL(Types.REAL, JavaType.FLOAT_OBJECT), 
	NUMERIC(Types.NUMERIC, new JavaType(BigDecimal.class.getName())), 
	DECIMAL(Types.DECIMAL, new JavaType(BigDecimal.class.getName())), 
	CHAR(Types.CHAR, JavaType.STRING_OBJECT), 
	VARCHAR(Types.VARCHAR, JavaType.STRING_OBJECT), 
	LONGVARCHAR(Types.LONGVARCHAR, JavaType.STRING_OBJECT), 
	DATE(Types.DATE, new JavaType(Date.class.getName())), 
	TIME(Types.TIME, new JavaType(Date.class.getName())), 
	TIMESTAMP(Types.TIMESTAMP, new JavaType(Date.class.getName())), 
	BINARY(Types.BINARY, new JavaType("java.lang.Byte", 1, DataType.PRIMITIVE, null, null)), 
	VARBINARY(Types.VARBINARY, new JavaType("java.lang.Byte", 1, DataType.PRIMITIVE, null, null)), 
	LONGVARBINARY(Types.LONGVARBINARY, new JavaType("java.lang.Byte", 1, DataType.PRIMITIVE, null, null)), 
	NULL(Types.NULL, null), 
	OTHER(Types.OTHER, JavaType.STRING_OBJECT), 
	JAVA_OBJECT(Types.JAVA_OBJECT, new JavaType("java.lang.Object")), 
	DISTINCT(Types.DISTINCT, new JavaType(HashMap.class.getName())), 
	STRUCT(Types.STRUCT, new JavaType(HashMap.class.getName())), 
	ARRAY(Types.ARRAY, new JavaType("java.sql.Array")), 
{'fraction_non_alphanumeric': 0.14531079607415484, 'fraction_numerical': 0.003816793893129771, 'mean_word_length': 6.1242718446601945, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1796609', 'n_tokens_mistral': 1351, 'n_tokens_neox': 1295, 'n_words': 210}