| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
package net.admin4j.jdbc.driver.sql; |
| 15 | |
|
| 16 | |
import java.io.InputStream; |
| 17 | |
import java.io.Reader; |
| 18 | |
import java.sql.NClob; |
| 19 | |
import java.sql.PreparedStatement; |
| 20 | |
import java.sql.RowId; |
| 21 | |
import java.sql.SQLException; |
| 22 | |
import java.sql.SQLXML; |
| 23 | |
|
| 24 | |
import net.admin4j.util.annotate.PackageRestrictions; |
| 25 | |
import net.admin4j.util.annotate.Product; |
| 26 | |
import net.admin4j.util.annotate.ProductDependencies; |
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
@ProductDependencies( {Product.JDBC40} ) |
| 34 | |
@PackageRestrictions({"net.admin4j","java","javax"}) |
| 35 | |
public abstract class PreparedStatementWrapper40Base extends PreparedStatementWrapper30Base { |
| 36 | |
|
| 37 | |
public PreparedStatementWrapper40Base(ConnectionWrapper30Base connection, |
| 38 | |
PreparedStatement statement) { |
| 39 | 120021 | super(connection, statement); |
| 40 | 120021 | } |
| 41 | |
|
| 42 | |
protected PreparedStatement getUnderlyingPreparedStatement() { |
| 43 | 180195 | return (PreparedStatement)this.getUnderlyingStatement(); |
| 44 | |
} |
| 45 | |
|
| 46 | |
public void setRowId(int parameterIndex, RowId x) throws SQLException { |
| 47 | 3 | this.getUnderlyingPreparedStatement().setRowId(parameterIndex, x); |
| 48 | 3 | } |
| 49 | |
|
| 50 | |
public void setNString(int parameterIndex, String value) |
| 51 | |
throws SQLException { |
| 52 | 3 | this.getUnderlyingPreparedStatement().setNString(parameterIndex, value); |
| 53 | 3 | } |
| 54 | |
|
| 55 | |
public void setNCharacterStream(int parameterIndex, Reader value, |
| 56 | |
long length) throws SQLException { |
| 57 | 3 | this.getUnderlyingPreparedStatement().setNCharacterStream(parameterIndex, value, length); |
| 58 | |
|
| 59 | 3 | } |
| 60 | |
|
| 61 | |
public void setNClob(int parameterIndex, NClob value) throws SQLException { |
| 62 | 3 | this.getUnderlyingPreparedStatement().setNClob(parameterIndex, value); |
| 63 | |
|
| 64 | 3 | } |
| 65 | |
|
| 66 | |
public void setClob(int parameterIndex, Reader reader, long length) |
| 67 | |
throws SQLException { |
| 68 | 3 | this.getUnderlyingPreparedStatement().setClob(parameterIndex, reader, length); |
| 69 | |
|
| 70 | 3 | } |
| 71 | |
|
| 72 | |
public void setBlob(int parameterIndex, InputStream inputStream, long length) |
| 73 | |
throws SQLException { |
| 74 | 3 | this.getUnderlyingPreparedStatement().setBlob(parameterIndex, inputStream, length); |
| 75 | |
|
| 76 | 3 | } |
| 77 | |
|
| 78 | |
public void setNClob(int parameterIndex, Reader reader, long length) |
| 79 | |
throws SQLException { |
| 80 | 3 | this.getUnderlyingPreparedStatement().setNClob(parameterIndex, reader, length); |
| 81 | |
|
| 82 | 3 | } |
| 83 | |
|
| 84 | |
public void setSQLXML(int parameterIndex, SQLXML xmlObject) |
| 85 | |
throws SQLException { |
| 86 | 3 | this.getUnderlyingPreparedStatement().setSQLXML(parameterIndex, xmlObject); |
| 87 | |
|
| 88 | 3 | } |
| 89 | |
|
| 90 | |
public void setObject(int parameterIndex, Object x, int targetSqlType, |
| 91 | |
int scaleOrLength) throws SQLException { |
| 92 | 3 | this.getUnderlyingPreparedStatement().setObject(parameterIndex, x, targetSqlType, scaleOrLength); |
| 93 | |
|
| 94 | 3 | } |
| 95 | |
|
| 96 | |
public void setAsciiStream(int parameterIndex, InputStream x, long length) |
| 97 | |
throws SQLException { |
| 98 | 3 | this.getUnderlyingPreparedStatement().setAsciiStream(parameterIndex, x, length); |
| 99 | |
|
| 100 | 3 | } |
| 101 | |
|
| 102 | |
public void setBinaryStream(int parameterIndex, InputStream x, long length) |
| 103 | |
throws SQLException { |
| 104 | 3 | this.getUnderlyingPreparedStatement().setBinaryStream(parameterIndex, x, length); |
| 105 | |
|
| 106 | 3 | } |
| 107 | |
|
| 108 | |
public void setCharacterStream(int parameterIndex, Reader reader, |
| 109 | |
long length) throws SQLException { |
| 110 | 3 | this.getUnderlyingPreparedStatement().setCharacterStream(parameterIndex, reader, length); |
| 111 | |
|
| 112 | 3 | } |
| 113 | |
|
| 114 | |
public void setAsciiStream(int parameterIndex, InputStream x) |
| 115 | |
throws SQLException { |
| 116 | 3 | this.getUnderlyingPreparedStatement().setAsciiStream(parameterIndex, x); |
| 117 | |
|
| 118 | 3 | } |
| 119 | |
|
| 120 | |
public void setBinaryStream(int parameterIndex, InputStream x) |
| 121 | |
throws SQLException { |
| 122 | 3 | this.getUnderlyingPreparedStatement().setBinaryStream(parameterIndex, x); |
| 123 | |
|
| 124 | 3 | } |
| 125 | |
|
| 126 | |
public void setCharacterStream(int parameterIndex, Reader reader) |
| 127 | |
throws SQLException { |
| 128 | 3 | this.getUnderlyingPreparedStatement().setCharacterStream(parameterIndex, reader); |
| 129 | |
|
| 130 | 3 | } |
| 131 | |
|
| 132 | |
public void setNCharacterStream(int parameterIndex, Reader value) |
| 133 | |
throws SQLException { |
| 134 | 3 | this.getUnderlyingPreparedStatement().setNCharacterStream(parameterIndex, value); |
| 135 | |
|
| 136 | 3 | } |
| 137 | |
|
| 138 | |
public void setClob(int parameterIndex, Reader reader) throws SQLException { |
| 139 | 3 | this.getUnderlyingPreparedStatement().setClob(parameterIndex, reader); |
| 140 | |
|
| 141 | 3 | } |
| 142 | |
|
| 143 | |
public void setBlob(int parameterIndex, InputStream inputStream) |
| 144 | |
throws SQLException { |
| 145 | 3 | this.getUnderlyingPreparedStatement().setBlob(parameterIndex, inputStream); |
| 146 | |
|
| 147 | 3 | } |
| 148 | |
|
| 149 | |
public void setNClob(int parameterIndex, Reader reader) throws SQLException { |
| 150 | 3 | this.getUnderlyingPreparedStatement().setNClob(parameterIndex, reader); |
| 151 | |
|
| 152 | 3 | } |
| 153 | |
|
| 154 | |
|
| 155 | |
|
| 156 | |
|
| 157 | |
public boolean isClosed() throws SQLException { |
| 158 | 3 | return this.getUnderlyingPreparedStatement().isClosed(); |
| 159 | |
} |
| 160 | |
|
| 161 | |
|
| 162 | |
|
| 163 | |
|
| 164 | |
public void setPoolable(boolean poolable) throws SQLException { |
| 165 | 3 | this.getUnderlyingPreparedStatement().setPoolable(poolable); |
| 166 | |
|
| 167 | 3 | } |
| 168 | |
|
| 169 | |
|
| 170 | |
|
| 171 | |
|
| 172 | |
public boolean isPoolable() throws SQLException { |
| 173 | 3 | return this.getUnderlyingPreparedStatement().isPoolable(); |
| 174 | |
} |
| 175 | |
|
| 176 | |
|
| 177 | |
|
| 178 | |
|
| 179 | |
public boolean isWrapperFor(Class<?> iface) throws SQLException { |
| 180 | 3 | return this.getUnderlyingPreparedStatement().isWrapperFor(iface); |
| 181 | |
} |
| 182 | |
|
| 183 | |
|
| 184 | |
|
| 185 | |
|
| 186 | |
public <T> T unwrap(Class<T> iface) throws SQLException { |
| 187 | 3 | return this.getUnderlyingPreparedStatement().unwrap(iface); |
| 188 | |
} |
| 189 | |
|
| 190 | |
|
| 191 | |
} |