本文整理汇总了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);
}
}
}
示例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;
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}