1 /***
2 * License Agreement.
3 *
4 * JSPA (POJO-SP)
5 *
6 * Copyright (C) 2009 HRX Pty Ltd
7 *
8 * This file is part of JSPA.
9 *
10 * JSPA is free software: you can redistribute it and/or modify it under the
11 * terms of the GNU Lesser General Public License version 3 as published by the
12 * Free Software Foundation.
13 *
14 * JSPA is distributed in the hope that it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 * A PARTICULAR PURPOSE. See the Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with JSPA. If not, see <http://www.gnu.org/licenses/>.
20 */
21 package com.hrx.rasp.util.dao;
22
23 import java.sql.Types;
24
25 /***
26 * @author dan.stoica <dan.stoica@acslink.net.au>
27 *
28 */
29 public interface DAODataTypes
30 {
31 public final static int STRING = Types.VARCHAR;
32 public final static int BIG_DECIMAL = Types.DECIMAL;
33 public final static int BIG_INTEGER = Types.BIGINT;
34 public final static int BYTE = Types.TINYINT;
35 public final static int BYTE_P = Types.TINYINT;
36 public final static int CHARACTER = Types.CHAR;
37 public final static int CHAR = Types.CHAR;
38 public final static int DOUBLE = Types.DOUBLE;
39 public final static int DOUBLE_P = Types.DOUBLE;
40 public final static int FLOAT = Types.FLOAT;
41 public final static int FLOAT_P = Types.FLOAT;
42 public final static int LONG = Types.BIGINT;
43 public final static int LONG_P = Types.BIGINT;
44 public final static int INTEGER = Types.INTEGER;
45 public final static int INTEGER_P = Types.INTEGER;
46 public final static int BOOLEAN = Types.BIT;
47 public final static int BOOLEAN_P = Types.BIT;
48 public final static int NUMBER = Types.DECIMAL;
49 public final static int SHORT = Types.SMALLINT;
50 public final static int SHORT_P = Types.SMALLINT;
51 public final static int DATE = Types.TIMESTAMP;
52 public final static int TIMESTAMP = Types.TIMESTAMP;
53 public final static int TIME = Types.TIME;
54 public final static int CALENDAT = Types.TIMESTAMP;
55 public final static int SQL_DATE = Types.DATE;
56 public final static int BYTE_ARRAY = Types.LONGVARBINARY;
57 public final static int BYTE_ARRAY_P = Types.LONGVARBINARY;
58 public final static int BLOB = Types.BLOB;
59 public final static int CHAR_ARRAY = Types.LONGVARCHAR;
60 public final static int CHARACTER_ARRAY = Types.LONGVARCHAR;
61 public final static int CLOB = Types.CLOB;
62 public final static int STRUCT = Types.STRUCT;
63 public final static int ARRAY = Types.ARRAY;
64 public final static int COLLECTION = OracleHelper.ORACLE_CURSOR;
65 public final static int LIST = OracleHelper.ORACLE_CURSOR;
66 public final static int OBJECT = Types.OTHER;
67 }