UNPKG

nodejs-jdbc

Version:
70 lines 1.94 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CallableStatement = void 0; const PreparedStatement_1 = require("./PreparedStatement"); const jinst_1 = require("./jinst"); class CallableStatement extends PreparedStatement_1.PreparedStatement { constructor(statement) { super(statement); this.cs = statement; } getArray(arg) { return this.cs.getArraySync(arg); } getBigDecimal(arg) { return this.cs.getBigDecimalSync(arg); } getBlob(arg) { return this.cs.getBlobSync(arg); } getBoolean(arg) { return this.cs.getBooleanSync(arg); } getByte(arg) { return this.cs.getByteSync(arg); } getBytes(arg) { return this.cs.getBytesSync(arg); } getCharacterStream(arg1, callback) { return callback(new Error('NOT IMPLEMENTED')); } getClob(arg) { return this.cs.getClobSync(arg); } getDate(arg) { return this.cs.getDateSync(arg); } getDouble(arg) { return this.cs.getDoubleSync(arg); } getFloat(arg) { return this.cs.getFloatSync(arg); } getInt(index) { return this.cs.getIntSync(index); } getLong(arg) { return this.cs.getLongSync(arg); } getNCharacterStream(arg1, callback) { return callback(new Error('NOT IMPLEMENTED')); } getNClob(arg) { return this.cs.getNClobSync(arg); } getNString(arg) { return this.cs.getNStringSync(arg); } getObject(arg) { return this.cs.getObjectSync(arg); } registerOutParameter(index, type) { this.cs.registerOutParameterSync(index, this.getType(type)); } getType(type) { return (0, jinst_1.getInstance)().java.getStaticFieldValue('java.sql.Types', type); } } exports.CallableStatement = CallableStatement; //# sourceMappingURL=CallableStatement.js.map