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


Java IntValueHashMap.put方法代码示例

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


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

示例1: JDBCCallableStatement

import org.hsqldb.lib.IntValueHashMap; //导入方法依赖的package包/类
/**
 * Constructs a new JDBCCallableStatement with the specified connection and
 * result type.
 *
 * @param  c the connection on which this statement will execute
 * @param sql the SQL statement this object represents
 * @param resultSetType the type of result this statement will produce
 * @throws HsqlException if the statement is not accepted by the database
 * @throws SQLException if preprocessing by driver fails
 */
public JDBCCallableStatement(
        JDBCConnection c, String sql, int resultSetType,
        int resultSetConcurrency,
        int resultSetHoldability) throws HsqlException, SQLException {

    super(c, sql, resultSetType, resultSetConcurrency,
          resultSetHoldability, ResultConstants.RETURN_NO_GENERATED_KEYS,
          null, null);

    String[] names;
    String   name;

    // outRegistrationMap = new IntKeyIntValueHashMap();
    parameterNameMap = new IntValueHashMap();

    if (parameterMetaData != null) {
        names = parameterMetaData.columnLabels;

        for (int i = 0; i < names.length; i++) {
            name = names[i];

            // PRE:  should never happen in practice
            if (name == null || name.length() == 0) {
                continue;    // throw?
            }
            parameterNameMap.put(name, i);
        }
    }
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:40,代码来源:JDBCCallableStatement.java

示例2: setReferenceableColumns

import org.hsqldb.lib.IntValueHashMap; //导入方法依赖的package包/类
void setReferenceableColumns() {

        accessibleColumns = new boolean[indexLimitVisible];

        IntValueHashMap aliases = new IntValueHashMap();

        for (int i = 0; i < indexLimitVisible; i++) {
            Expression expression = exprColumns[i];
            String     alias      = expression.getAlias();

            if (alias.length() == 0) {
                SimpleName name = HsqlNameManager.getAutoColumnName(i);

                expression.setAlias(name);

                continue;
            }

            int index = aliases.get(alias, -1);

            if (index == -1) {
                aliases.put(alias, i);

                accessibleColumns[i] = true;
            } else {
                accessibleColumns[index] = false;
            }
        }
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:30,代码来源:QuerySpecification.java

示例3: JDBCCallableStatement

import org.hsqldb.lib.IntValueHashMap; //导入方法依赖的package包/类
/**
 * Constructs a new JDBCCallableStatement with the specified connection and
 * result type.
 *
 * @param  c the connection on which this statement will execute
 * @param sql the SQL statement this object represents
 * @param resultSetType the type of result this statement will produce
 * @throws HsqlException if the statement is not accepted by the database
 * @throws SQLException if preprocessing by driver fails
 */
public JDBCCallableStatement(
        JDBCConnection c, String sql, int resultSetType,
        int resultSetConcurrency,
        int resultSetHoldability) throws HsqlException, SQLException {

    super(c, sql, resultSetType, JDBCResultSet.CONCUR_READ_ONLY,
          JDBCResultSet.HOLD_CURSORS_OVER_COMMIT,
          ResultConstants.RETURN_NO_GENERATED_KEYS, null, null);

    session = c.sessionProxy;

    String[] names;
    String   name;

    // outRegistrationMap = new IntKeyIntValueHashMap();
    parameterNameMap = new IntValueHashMap();

    if (parameterMetaData != null) {
        names = parameterMetaData.columnLabels;

        for (int i = 0; i < names.length; i++) {
            name = names[i];

            // PRE:  should never happen in practice
            if (name == null || name.length() == 0) {
                continue;    // throw?
            }
            parameterNameMap.put(name, i);
        }
    }
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:42,代码来源:JDBCCallableStatement.java

示例4: jdbcCallableStatement

import org.hsqldb.lib.IntValueHashMap; //导入方法依赖的package包/类
/**
 * Constructs a new jdbcCallableStatement with the specified connection and
 * result type.
 *
 * @param  c the connection on which this statement will execute
 * @param sql the SQL statement this object represents
 * @param type the type of result this statement will produce
 * @throws HsqlException if the statement is not accepted by the database
 * @throws SQLException if preprocessing by driver fails
 */
public jdbcCallableStatement(jdbcConnection c, String sql,
                             int type)
                             throws HsqlException, SQLException {

    super(c, sql, type);

    String[] names;
    String   name;

    // outRegistrationMap = new IntKeyIntValueHashMap();
    parameterNameMap = new IntValueHashMap();

    if (pmdDescriptor != null && pmdDescriptor.metaData != null) {
        names = pmdDescriptor.metaData.colNames;

        for (int i = 0; i < names.length; i++) {
            name = names[i];

            // PRE:  should never happen in practice
            if (name == null || name.length() == 0) {
                continue;    // throw?
            }

            parameterNameMap.put(name, i);
        }
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:38,代码来源:jdbcCallableStatement.java

示例5: jdbcCallableStatement

import org.hsqldb.lib.IntValueHashMap; //导入方法依赖的package包/类
/**
 * Constructs a new jdbcCallableStatement with the specified connection and
 * result type.
 *
 * @param  c the connection on which this statement will execute
 * @param sql the SQL statement this object represents
 * @param type the type of result this statement will produce
 * @throws HsqlException if the statement is not accepted by the database
 * @throws SQLException if preprocessing by driver fails
 */
public jdbcCallableStatement(jdbcConnection c, String sql,
                             int type) throws HsqlException, SQLException {

    super(c, sql, type);

    String[] names;
    String   name;

    // outRegistrationMap = new IntKeyIntValueHashMap();
    parameterNameMap = new IntValueHashMap();

    if (pmdDescriptor != null && pmdDescriptor.metaData != null) {
        names = pmdDescriptor.metaData.colNames;

        for (int i = 0; i < names.length; i++) {
            name = names[i];

            // PRE:  should never happen in practice
            if (name == null || name.length() == 0) {
                continue;    // throw?
            }

            parameterNameMap.put(name, i);
        }
    }
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:37,代码来源:jdbcCallableStatement.java


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