KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdbc > JdbcTypeRegistry


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.jdbc;
13
14 /**
15  * This supplies information about JDBC types (e.g. the JdbcConverterFactory
16  * for a JDBC type).
17  * @keep-all
18  * @see JdbcConverterFactory
19  */

20 public interface JdbcTypeRegistry {
21
22     /**
23      * Get the converter factory used for the supplied JDBC type or null
24      * if none.
25      * @param jdbcType JDBC type code from java.sql.Types
26      * @see java.sql.Types
27      * @exception IllegalArgumentException if jdbcType is invalid or there
28      * is no converter
29      */

30     public JdbcConverterFactory getJdbcConverterFactory(int jdbcType)
31             throws IllegalArgumentException JavaDoc;
32
33 }
34
35  
36
Popular Tags