当前位置: 首页>>代码示例>>Java>>正文


Java Type.getJDBCTypeCode方法代码示例

本文整理汇总了Java中org.hsqldb.types.Type.getJDBCTypeCode方法的典型用法代码示例。如果您正苦于以下问题:Java Type.getJDBCTypeCode方法的具体用法?Java Type.getJDBCTypeCode怎么用?Java Type.getJDBCTypeCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.hsqldb.types.Type的用法示例。


在下文中一共展示了Type.getJDBCTypeCode方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getColumnType

import org.hsqldb.types.Type; //导入方法依赖的package包/类
/**
 * <!-- start generic documentation -->
 * Retrieves the designated column's SQL type.
 * <!-- end generic documentation -->
 *
 * <!-- start Release-specific documentation -->
 * <div class="ReleaseSpecificDocumentation">
 * <h3>HSQLDB-Specific Information:</h3> <p>
 *
 * This reports the SQL type code of the column. For time and timestamp
 * types that are WITH TIME ZONE, the values as the SQL Standard CLI
 * codes.<p>
 *
 * </div>
 * <!-- end release-specific documentation -->
 *
 *
 * @param column the first column is 1, the second is 2, ...
 * @return SQL type from java.sql.Types
 * @exception SQLException if a database access error occurs
 * @see java.sql.Types
 */
public int getColumnType(int column) throws SQLException {

    checkColumn(column);

    Type type = translateType(resultMetaData.columnTypes[--column]);

    return type.getJDBCTypeCode();
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:31,代码来源:JDBCResultSetMetaData.java

示例2: getParameterType

import org.hsqldb.types.Type; //导入方法依赖的package包/类
/**
 * Retrieves the designated parameter's SQL type.
 *
 * @param param the first parameter is 1, the second is 2, ...
 * @return SQL type from <code>java.sql.Types</code>
 * @exception SQLException if a database access error occurs
 * @since JDK 1.4, HSQLDB 1.7.2
 * @see java.sql.Types
 */
public int getParameterType(int param) throws SQLException {

    checkRange(param);

    Type type = translateType(rmd.columnTypes[--param]);

    return type.getJDBCTypeCode();
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:18,代码来源:JDBCParameterMetaData.java

示例3: getColumnType

import org.hsqldb.types.Type; //导入方法依赖的package包/类
/**
 * <!-- start generic documentation -->
 * Retrieves the designated column's SQL type.
 * <!-- end generic documentation -->
 *
 * <!-- start Release-specific documentation -->
 * <div class="ReleaseSpecificDocumentation">
 * <h3>HSQLDB-Specific Information:</h3> <p>
 *
 * This reports the SQL type code of the column. For time and timestamp
 * types that are WITH TIME ZONE, the values as the SQL Standarc CLI
 * codes.<p>
 *
 * </div>
 * <!-- end release-specific documentation -->
 *
 *
 * @param column the first column is 1, the second is 2, ...
 * @return SQL type from java.sql.Types
 * @exception SQLException if a database access error occurs
 * @see java.sql.Types
 */
public int getColumnType(int column) throws SQLException {

    checkColumn(column);

    Type type = resultMetaData.columnTypes[--column];

    return type.getJDBCTypeCode();
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:31,代码来源:JDBCResultSetMetaData.java

示例4: getColumnType

import org.hsqldb.types.Type; //导入方法依赖的package包/类
/**
 * <!-- start generic documentation -->
 * Retrieves the designated column's SQL type.
 * <!-- end generic documentation -->
 *
 * <!-- start Release-specific documentation -->
 * <div class="ReleaseSpecificDocumentation">
 * <h3>HSQLDB-Specific Information:</h3> <p>
 *
 * This reports the SQL type code of the column. For time and timestamp
 * types that are WITH TIME ZONE, the values as the SQL Standarc CLI
 * codes.<p>
 *
 * </div>
 * <!-- end release-specific documentation -->
 *
 *
 * @param column the first column is 1, the second is 2, ...
 * @return SQL type from java.sql.Types
 * @exception SQLException if a database access error occurs
 * @see java.sql.Types
 */
public int getColumnType(int column) throws SQLException {

    checkColumn(column);

    Type type = translateType(resultMetaData.columnTypes[--column]);

    return type.getJDBCTypeCode();
}
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:31,代码来源:JDBCResultSetMetaData.java


注:本文中的org.hsqldb.types.Type.getJDBCTypeCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。