01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.persistency;
10:
11: /**
12: * Java-To-ColumnType converter
13: *
14: * @author Gennady Krizhevsky
15: */
16: public interface JavaToMetaType {
17:
18: ColumnType dataType(String dataType, int columnSize,
19: int decimalDigits, boolean required);
20:
21: String jdbcTypeToString(int dataType);
22:
23: ColumnType dataType(int jdbcType, int decimalDigits,
24: int columnSize, boolean required);
25:
26: int jdbcTypeByDatabaseOne(String databaseType);
27:
28: ColumnType dataTypeByDatabaseOne(String databaseType,
29: int decimalDigits, int columnSize, boolean required);
30: }
|