home *** CD-ROM | disk | FTP | other *** search
- package sun.jdbc.odbc;
-
- import java.io.InputStream;
-
- public class JdbcOdbcBoundParam extends JdbcOdbcObject {
- protected byte[] binaryData;
- protected byte[] paramLength;
- protected InputStream paramInputStream;
- protected int paramInputStreamLen;
- protected int sqlType;
- protected int streamType;
- public static final short ASCII = 1;
- public static final short UNICODE = 2;
- public static final short BINARY = 3;
- protected boolean outputParameter;
-
- public void initialize() {
- this.paramLength = new byte[4];
- }
-
- public byte[] allocBindDataBuffer(int var1) {
- this.binaryData = new byte[var1];
- this.setInputStream((InputStream)null, 0);
- return this.binaryData;
- }
-
- public byte[] getBindDataBuffer() {
- return this.binaryData;
- }
-
- public byte[] getBindLengthBuffer() {
- return this.paramLength;
- }
-
- public void setInputStream(InputStream var1, int var2) {
- this.paramInputStream = var1;
- this.paramInputStreamLen = var2;
- }
-
- public InputStream getInputStream() {
- return this.paramInputStream;
- }
-
- public int getInputStreamLen() {
- return this.paramInputStreamLen;
- }
-
- public void setSqlType(int var1) {
- this.sqlType = var1;
- }
-
- public int getSqlType() {
- return this.sqlType;
- }
-
- public void setStreamType(int var1) {
- this.streamType = var1;
- }
-
- public int getStreamType() {
- return this.streamType;
- }
-
- public void setOutputParameter(boolean var1) {
- this.outputParameter = var1;
- }
-
- public boolean isOutputParameter() {
- return this.outputParameter;
- }
- }
-