Array.java, [...]: Removed redundant modifiers.

2003-10-11  Michael Koch  <konqueror@gmx.de>

	* java/sql/Array.java,
	java/sql/Blob.java,
	java/sql/CallableStatement.java,
	java/sql/Clob.java,
	java/sql/Connection.java,
	java/sql/DatabaseMetaData.java,
	java/sql/Driver.java,
	java/sql/ParameterMetaData.java,
	java/sql/PreparedStatement.java,
	java/sql/Ref.java,
	java/sql/ResultSet.java,
	java/sql/ResultSetMetaData.java,
	java/sql/SQLData.java,
	java/sql/SQLInput.java,
	java/sql/SQLOutput.java,
	java/sql/Savepoint.java,
	java/sql/Statement.java,
	java/sql/Struct.java:
	Removed redundant modifiers.

From-SVN: r72356
This commit is contained in:
Michael Koch 2003-10-11 18:49:51 +00:00 committed by Michael Koch
parent eb0043a057
commit afe6016980
19 changed files with 724 additions and 702 deletions

View file

@ -53,7 +53,7 @@ public interface Array
* @param The name of the SQL type of the elements in this array.
* @exception SQLException If an error occurs.
*/
public String getBaseTypeName() throws SQLException;
String getBaseTypeName() throws SQLException;
/**
* Returns the JDBC type identifier of the elements in this
@ -64,7 +64,7 @@ public interface Array
* @exception SQLException If an error occurs.
* @see Types
*/
public int getBaseType() throws SQLException;
int getBaseType() throws SQLException;
/**
* Returns the contents of this array. This object returned
@ -73,7 +73,7 @@ public interface Array
* @return The contents of the array as an array of Java objects.
* @exception SQLException If an error occurs.
*/
public Object getArray() throws SQLException;
Object getArray() throws SQLException;
/**
* Returns the contents of this array. The specified
@ -84,7 +84,7 @@ public interface Array
* @return The contents of the array as an array of Java objects.
* @exception SQLException If an error occurs.
*/
public Object getArray(Map map) throws SQLException;
Object getArray(Map map) throws SQLException;
/**
* Returns a portion of this array starting at <code>index</code>
@ -99,7 +99,7 @@ public interface Array
* @return The requested portion of the array.
* @exception SQLException If an error occurs.
*/
public Object getArray(long index, int count) throws SQLException;
Object getArray(long index, int count) throws SQLException;
/**
* This method returns a portion of this array starting at <code>index</code>
@ -116,7 +116,7 @@ public interface Array
* @return The requested portion of the array.
* @exception SQLException If an error occurs.
*/
public Object getArray(long index, int count, Map map) throws SQLException;
Object getArray(long index, int count, Map map) throws SQLException;
/**
* Returns the elements in the array as a <code>ResultSet</code>.
@ -128,7 +128,7 @@ public interface Array
* @exception SQLException If an error occurs.
* @see ResultSet
*/
public ResultSet getResultSet() throws SQLException;
ResultSet getResultSet() throws SQLException;
/**
* This method returns the elements in the array as a <code>ResultSet</code>.
@ -143,7 +143,7 @@ public interface Array
* @exception SQLException If an error occurs.
* @see ResultSet
*/
public ResultSet getResultSet(Map map) throws SQLException;
ResultSet getResultSet(Map map) throws SQLException;
/**
* This method returns a portion of the array as a <code>ResultSet</code>.
@ -160,7 +160,7 @@ public interface Array
* @exception SQLException If an error occurs.
* @see ResultSet
*/
public ResultSet getResultSet(long index, int count) throws SQLException;
ResultSet getResultSet(long index, int count) throws SQLException;
/**
* This method returns a portion of the array as a <code>ResultSet</code>.
@ -180,6 +180,6 @@ public interface Array
* @exception SQLException If an error occurs.
* @see ResultSet
*/
public ResultSet getResultSet(long index, int count, Map map)
ResultSet getResultSet(long index, int count, Map map)
throws SQLException;
}

View file

@ -55,7 +55,7 @@ public interface Blob
* @return The number of bytes in the BLOB.
* @exception SQLException If an error occurs.
*/
public long length() throws SQLException;
long length() throws SQLException;
/**
* This method returns up to the requested bytes of this BLOB as a
@ -66,7 +66,7 @@ public interface Blob
* @return The requested bytes from the BLOB.
* @exception SQLException If an error occurs.
*/
public byte[] getBytes(long pos, int length) throws SQLException;
byte[] getBytes(long pos, int length) throws SQLException;
/**
* This method returns a stream that will read the bytes of the BLOB.
@ -74,7 +74,7 @@ public interface Blob
* @return A stream that will read the bytes of the BLOB.
* @exception SQLException If an error occurs.
*/
public InputStream getBinaryStream() throws SQLException;
InputStream getBinaryStream() throws SQLException;
/**
* This method returns the index into the BLOB at which the first instance
@ -87,7 +87,7 @@ public interface Blob
* pattern is not found.
* @exception SQLException If an error occurs.
*/
public long position(byte[] pattern, long start) throws SQLException;
long position(byte[] pattern, long start) throws SQLException;
/**
* This method returns the index into the BLOB at which the first instance
@ -102,30 +102,30 @@ public interface Blob
* pattern is not found.
* @exception SQLException If an error occurs.
*/
public long position(Blob pattern, long start) throws SQLException;
long position(Blob pattern, long start) throws SQLException;
/**
* @exception SQLException If an error occurs.
* @since 1.4
*/
public int setBytes(long pos, byte[] bytes) throws SQLException;
int setBytes(long pos, byte[] bytes) throws SQLException;
/**
* @exception SQLException If an error occurs.
* @since 1.4
*/
public int setBytes(long pos, byte[] bytes, int offset, int len)
int setBytes(long pos, byte[] bytes, int offset, int len)
throws SQLException;
/**
* @exception SQLException If an error occurs.
* @since 1.4
*/
public OutputStream setBinaryStream(long pos) throws SQLException;
OutputStream setBinaryStream(long pos) throws SQLException;
/**
* @exception SQLException If an error occurs.
* @since 1.4
*/
public void truncate(long len) throws SQLException;
void truncate(long len) throws SQLException;
}

View file

@ -59,7 +59,7 @@ public interface CallableStatement extends PreparedStatement
* @param type The SQL type value from <code>Types</code>.
* @exception SQLException If an error occurs.
*/
public void registerOutParameter(int parameterIndex, int sqlType)
void registerOutParameter(int parameterIndex, int sqlType)
throws SQLException;
/**
@ -71,7 +71,7 @@ public interface CallableStatement extends PreparedStatement
* @param scale The scale of the value that will be returned.
* @exception SQLException If an error occurs.
*/
public void registerOutParameter(int parameterIndex, int sqlType, int scale)
void registerOutParameter(int parameterIndex, int sqlType, int scale)
throws SQLException;
/**
@ -82,7 +82,7 @@ public interface CallableStatement extends PreparedStatement
* <code>false</code> otherwise.
* @exception SQLException If an error occurs.
*/
public boolean wasNull() throws SQLException;
boolean wasNull() throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -92,7 +92,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>String</code>.
* @exception SQLException If an error occurs.
*/
public String getString(int parameterIndex) throws SQLException;
String getString(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -102,7 +102,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>boolean</code>.
* @exception SQLException If an error occurs.
*/
public boolean getBoolean(int parameterIndex) throws SQLException;
boolean getBoolean(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -112,7 +112,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>byte</code>.
* @exception SQLException If an error occurs.
*/
public byte getByte(int parameterIndex) throws SQLException;
byte getByte(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -122,7 +122,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>short</code>.
* @exception SQLException If an error occurs.
*/
public short getShort(int parameterIndex) throws SQLException;
short getShort(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -132,7 +132,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>int</code>.
* @exception SQLException If an error occurs.
*/
public int getInt(int parameterIndex) throws SQLException;
int getInt(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -142,7 +142,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>long</code>.
* @exception SQLException If an error occurs.
*/
public long getLong(int parameterIndex) throws SQLException;
long getLong(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -152,7 +152,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>float</code>.
* @exception SQLException If an error occurs.
*/
public float getFloat(int parameterIndex) throws SQLException;
float getFloat(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -162,7 +162,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>double</code>.
* @exception SQLException If an error occurs.
*/
public double getDouble(int parameterIndex) throws SQLException;
double getDouble(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -175,7 +175,7 @@ public interface CallableStatement extends PreparedStatement
* @deprecated Use getBigDecimal(int parameterIndex)
* or getBigDecimal(String parameterName) instead.
*/
public BigDecimal getBigDecimal(int parameterIndex, int scale)
BigDecimal getBigDecimal(int parameterIndex, int scale)
throws SQLException;
/**
@ -186,7 +186,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a byte array
* @exception SQLException If an error occurs.
*/
public byte[] getBytes(int parameterIndex) throws SQLException;
byte[] getBytes(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -196,7 +196,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>java.sql.Date</code>.
* @exception SQLException If an error occurs.
*/
public Date getDate(int parameterIndex) throws SQLException;
Date getDate(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -206,7 +206,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>java.sql.Time</code>.
* @exception SQLException If an error occurs.
*/
public Time getTime(int parameterIndex) throws SQLException;
Time getTime(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -216,7 +216,7 @@ public interface CallableStatement extends PreparedStatement
* @return The parameter value as a <code>java.sql.Timestamp</code>.
* @exception SQLException If an error occurs.
*/
public Timestamp getTimestamp(int parameterIndex) throws SQLException;
Timestamp getTimestamp(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -227,7 +227,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public Object getObject(int parameterIndex) throws SQLException;
Object getObject(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -238,7 +238,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public BigDecimal getBigDecimal(int parameterIndex) throws SQLException;
BigDecimal getBigDecimal(int parameterIndex) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -250,7 +250,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public Object getObject(int index, Map map) throws SQLException;
Object getObject(int index, Map map) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -261,7 +261,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public Ref getRef(int index) throws SQLException;
Ref getRef(int index) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -272,7 +272,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public Blob getBlob(int index) throws SQLException;
Blob getBlob(int index) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -283,7 +283,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public Clob getClob(int index) throws SQLException;
Clob getClob(int index) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -294,7 +294,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public Array getArray(int index) throws SQLException;
Array getArray(int index) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -306,7 +306,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public Date getDate(int parameterIndex, Calendar cal) throws SQLException;
Date getDate(int parameterIndex, Calendar cal) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -318,7 +318,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public Time getTime(int parameterIndex, Calendar cal) throws SQLException;
Time getTime(int parameterIndex, Calendar cal) throws SQLException;
/**
* This method returns the value of the specified parameter as a Java
@ -329,7 +329,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public Timestamp getTimestamp(int parameterIndex, Calendar cal)
Timestamp getTimestamp(int parameterIndex, Calendar cal)
throws SQLException;
/**
@ -342,7 +342,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.2
*/
public void registerOutParameter(int paramIndex, int sqlType,
void registerOutParameter(int paramIndex, int sqlType,
String typeName)
throws SQLException;
@ -355,7 +355,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.4
*/
public void registerOutParameter(String parameterName, int sqlType)
void registerOutParameter(String parameterName, int sqlType)
throws SQLException;
/**
@ -369,7 +369,7 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.4
*/
public void registerOutParameter(String parameterName, int sqlType,
void registerOutParameter(String parameterName, int sqlType,
int scale)
throws SQLException;
@ -386,266 +386,266 @@ public interface CallableStatement extends PreparedStatement
* @exception SQLException If an error occurs.
* @since 1.4
*/
public void registerOutParameter(String parameterName, int sqlType,
void registerOutParameter(String parameterName, int sqlType,
String typeName)
throws SQLException;
/**
* @since 1.4
*/
public URL getURL(int parameterIndex) throws SQLException;
URL getURL(int parameterIndex) throws SQLException;
/**
* @since 1.4
*/
public void setURL(String parameterName, URL val) throws SQLException;
void setURL(String parameterName, URL val) throws SQLException;
/**
* @since 1.4
*/
public void setNull(String parameterName, int sqlType) throws SQLException;
void setNull(String parameterName, int sqlType) throws SQLException;
/**
* @since 1.4
*/
public void setBoolean(String parameterName, boolean x) throws SQLException;
void setBoolean(String parameterName, boolean x) throws SQLException;
/**
* @since 1.4
*/
public void setByte(String parameterName, byte x) throws SQLException;
void setByte(String parameterName, byte x) throws SQLException;
/**
* @since 1.4
*/
public void setShort(String parameterName, short x) throws SQLException;
void setShort(String parameterName, short x) throws SQLException;
/**
* @since 1.4
*/
public void setInt(String parameterName, int x) throws SQLException;
void setInt(String parameterName, int x) throws SQLException;
/**
* @since 1.4
*/
public void setLong(String parameterName, long x) throws SQLException;
void setLong(String parameterName, long x) throws SQLException;
/**
* @since 1.4
*/
public void setFloat(String parameterName, float x) throws SQLException;
void setFloat(String parameterName, float x) throws SQLException;
/**
* @since 1.4
*/
public void setDouble(String parameterName, double x) throws SQLException;
void setDouble(String parameterName, double x) throws SQLException;
/**
* @since 1.4
*/
public void setBigDecimal(String parameterName, BigDecimal x)
void setBigDecimal(String parameterName, BigDecimal x)
throws SQLException;
/**
* @since 1.4
*/
public void setString(String parameterName, String x) throws SQLException;
void setString(String parameterName, String x) throws SQLException;
/**
* @since 1.4
*/
public void setBytes(String parameterName, byte[] x) throws SQLException;
void setBytes(String parameterName, byte[] x) throws SQLException;
/**
* @since 1.4
*/
public void setDate(String parameterName, Date x) throws SQLException;
void setDate(String parameterName, Date x) throws SQLException;
/**
* @since 1.4
*/
public void setTime(String parameterName, Time x) throws SQLException;
void setTime(String parameterName, Time x) throws SQLException;
/**
* @since 1.4
*/
public void setTimestamp(String parameterName, Timestamp x)
void setTimestamp(String parameterName, Timestamp x)
throws SQLException;
/**
* @since 1.4
*/
public void setAsciiStream(String parameterName, InputStream x, int length)
void setAsciiStream(String parameterName, InputStream x, int length)
throws SQLException;
/**
* @since 1.4
*/
public void setBinaryStream(String parameterName, InputStream x, int length)
void setBinaryStream(String parameterName, InputStream x, int length)
throws SQLException;
/**
* @since 1.4
*/
public void setObject(String parameterName, Object x, int targetSqlType,
void setObject(String parameterName, Object x, int targetSqlType,
int scale)
throws SQLException;
/**
* @since 1.4
*/
public void setObject(String parameterName, Object x, int targetSqlType)
void setObject(String parameterName, Object x, int targetSqlType)
throws SQLException;
/**
* @since 1.4
*/
public void setObject(String parameterName, Object x) throws SQLException;
void setObject(String parameterName, Object x) throws SQLException;
/**
* @since 1.4
*/
public void setCharacterStream(String parameterName, Reader reader,
void setCharacterStream(String parameterName, Reader reader,
int length)
throws SQLException;
/**
* @since 1.4
*/
public void setDate(String parameterName, Date x, Calendar cal)
void setDate(String parameterName, Date x, Calendar cal)
throws SQLException;
/**
* @since 1.4
*/
public void setTime(String parameterName, Time x, Calendar cal)
void setTime(String parameterName, Time x, Calendar cal)
throws SQLException;
/**
* @since 1.4
*/
public void setTimestamp(String parameterName, Timestamp x, Calendar cal)
void setTimestamp(String parameterName, Timestamp x, Calendar cal)
throws SQLException;
/**
* @since 1.4
*/
public void setNull(String parameterName, int sqlType, String typeName)
void setNull(String parameterName, int sqlType, String typeName)
throws SQLException;
/**
* @since 1.4
*/
public String getString(String parameterName) throws SQLException;
String getString(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public boolean getBoolean(String parameterName) throws SQLException;
boolean getBoolean(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public byte getByte(String parameterName) throws SQLException;
byte getByte(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public short getShort(String parameterName) throws SQLException;
short getShort(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public int getInt(String parameterName) throws SQLException;
int getInt(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public long getLong(String parameterName) throws SQLException;
long getLong(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public float getFloat(String parameterName) throws SQLException;
float getFloat(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public double getDouble(String parameterName) throws SQLException;
double getDouble(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public byte[] getBytes(String parameterName) throws SQLException;
byte[] getBytes(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public Date getDate(String parameterName) throws SQLException;
Date getDate(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public Time getTime(String parameterName) throws SQLException;
Time getTime(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public Timestamp getTimestamp(String parameterName) throws SQLException;
Timestamp getTimestamp(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public Object getObject(String parameterName) throws SQLException;
Object getObject(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public BigDecimal getBigDecimal(String parameterName) throws SQLException;
BigDecimal getBigDecimal(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public Object getObject(String parameterName, Map map) throws SQLException;
Object getObject(String parameterName, Map map) throws SQLException;
/**
* @since 1.4
*/
public Ref getRef(String parameterName) throws SQLException;
Ref getRef(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public Blob getBlob(String parameterName) throws SQLException;
Blob getBlob(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public Clob getClob(String parameterName) throws SQLException;
Clob getClob(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public Array getArray(String parameterName) throws SQLException;
Array getArray(String parameterName) throws SQLException;
/**
* @since 1.4
*/
public Date getDate(String parameterName, Calendar cal) throws SQLException;
Date getDate(String parameterName, Calendar cal) throws SQLException;
/**
* @since 1.4
*/
public Time getTime(String parameterName, Calendar cal) throws SQLException;
Time getTime(String parameterName, Calendar cal) throws SQLException;
/**
* @since 1.4
*/
public Timestamp getTimestamp(String parameterName, Calendar cal)
Timestamp getTimestamp(String parameterName, Calendar cal)
throws SQLException;
/**
* @since 1.4
*/
public URL getURL(String parameterName) throws SQLException;
URL getURL(String parameterName) throws SQLException;
}

View file

@ -57,7 +57,7 @@ public interface Clob
* @exception SQLException If an error occurs.
* @since 1.2
*/
public long length() throws SQLException;
long length() throws SQLException;
/**
* This method returns the specified portion of the CLOB as a
@ -70,7 +70,7 @@ public interface Clob
* @exception SQLException If an error occurs.
* @since 1.2
*/
public String getSubString(long pos, int length) throws SQLException;
String getSubString(long pos, int length) throws SQLException;
/**
* This method returns a character stream that reads the contents of the
@ -80,7 +80,7 @@ public interface Clob
* @exception SQLException If an error occurs.
* @since 1.2
*/
public Reader getCharacterStream() throws SQLException;
Reader getCharacterStream() throws SQLException;
/**
* This method returns a byte stream that reads the contents of the
@ -90,7 +90,7 @@ public interface Clob
* @exception SQLException If an error occurs.
* @since 1.2
*/
public InputStream getAsciiStream() throws SQLException;
InputStream getAsciiStream() throws SQLException;
/**
* This method returns the index into the CLOB of the first occurrence of
@ -106,7 +106,7 @@ public interface Clob
* @exception SQLException If an error occurs.
* @since 1.2
*/
public long position(String searchstr, long start) throws SQLException;
long position(String searchstr, long start) throws SQLException;
/**
* This method returns the index into the CLOB of the first occurrence of
@ -122,31 +122,31 @@ public interface Clob
* @exception SQLException If an error occurs.
* @since 1.2
*/
public long position(Clob searchstr, long start) throws SQLException;
long position(Clob searchstr, long start) throws SQLException;
/**
* @since 1.4
*/
public int setString(long pos, String str) throws SQLException;
int setString(long pos, String str) throws SQLException;
/**
* @since 1.4
*/
public int setString(long pos, String str, int offset, int len)
int setString(long pos, String str, int offset, int len)
throws SQLException;
/**
* @since 1.4
*/
public OutputStream setAsciiStream(long pos) throws SQLException;
OutputStream setAsciiStream(long pos) throws SQLException;
/**
* @since 1.4
*/
public Writer setCharacterStream(long pos) throws SQLException;
Writer setCharacterStream(long pos) throws SQLException;
/**
* @since 1.4
*/
public void truncate(long len) throws SQLException;
void truncate(long len) throws SQLException;
}

View file

@ -51,14 +51,14 @@ public interface Connection
* This transaction isolation level indicates that transactions are not
* supported.
*/
public static final int TRANSACTION_NONE = 0;
int TRANSACTION_NONE = 0;
/**
* This transaction isolation level indicates that one transaction can
* read modifications by other transactions before the other transactions
* have committed their changes. This could result in invalid reads.
*/
public static final int TRANSACTION_READ_UNCOMMITTED = 1;
int TRANSACTION_READ_UNCOMMITTED = 1;
/**
* This transaction isolation leve indicates that only committed data from
@ -66,7 +66,7 @@ public interface Connection
* another transaction commits a change to that row, the first transaction
* would retrieve the changed row on subsequent reads of the same row.
*/
public static final int TRANSACTION_READ_COMMITTED = 2;
int TRANSACTION_READ_COMMITTED = 2;
/**
* This transaction isolation level indicates that only committed data from
@ -74,7 +74,7 @@ public interface Connection
* a row will not be different on a subsequent read even if another
* transaction commits a change.
*/
public static final int TRANSACTION_REPEATABLE_READ = 4;
int TRANSACTION_REPEATABLE_READ = 4;
/**
* This transaction isolation level indicates that only committed data from
@ -84,7 +84,7 @@ public interface Connection
* transactions will not affect the result set returned during subsequent
* executions of the same WHERE clause in this transaction.
*/
public static final int TRANSACTION_SERIALIZABLE = 8;
int TRANSACTION_SERIALIZABLE = 8;
/**
* This method creates a new SQL statement. The default result set type
@ -94,7 +94,7 @@ public interface Connection
* @exception SQLException If an error occurs.
* @see Statement
*/
public Statement createStatement() throws SQLException;
Statement createStatement() throws SQLException;
/**
* This method creates a new <code>PreparedStatement</code> for the specified
@ -107,7 +107,7 @@ public interface Connection
* @exception SQLException If an error occurs.
* @see PreparedStatement
*/
public PreparedStatement prepareStatement(String sql) throws SQLException;
PreparedStatement prepareStatement(String sql) throws SQLException;
/**
* This method creates a new <code>CallableStatement</code> for the
@ -121,7 +121,7 @@ public interface Connection
* @exception SQLException If an error occurs.
* @see CallableStatement
*/
public CallableStatement prepareCall(String sql) throws SQLException;
CallableStatement prepareCall(String sql) throws SQLException;
/**
* This method converts the specified generic SQL statement into the
@ -131,7 +131,7 @@ public interface Connection
* @return The native SQL statement.
* @exception SQLException If an error occurs.
*/
public String nativeSQL(String sql) throws SQLException;
String nativeSQL(String sql) throws SQLException;
/**
* This method turns auto commit mode on or off. In auto commit mode,
@ -144,7 +144,7 @@ public interface Connection
* @see commit
* @see rollback
*/
public void setAutoCommit(boolean autoCommit) throws SQLException;
void setAutoCommit(boolean autoCommit) throws SQLException;
/**
* This method tests whether or not auto commit mode is currently enabled.
@ -159,7 +159,7 @@ public interface Connection
* @see commit
* @see rollback
*/
public boolean getAutoCommit() throws SQLException;
boolean getAutoCommit() throws SQLException;
/**
* This method commits any SQL statements executed on this connection since
@ -167,7 +167,7 @@ public interface Connection
*
* @exception SQLException If an error occurs.
*/
public void commit() throws SQLException;
void commit() throws SQLException;
/**
* This method rolls back any SQL statements executed on this connection
@ -175,14 +175,14 @@ public interface Connection
*
* @exception SQLException If an error occurs.
*/
public void rollback() throws SQLException;
void rollback() throws SQLException;
/**
* This method immediately closes this database connection.
*
* @exception SQLException If an error occurs.
*/
public void close() throws SQLException;
void close() throws SQLException;
/**
* This method tests whether or not this connection has been closed.
@ -191,7 +191,7 @@ public interface Connection
* otherwise.
* @exception SQLException If an error occurs.
*/
public boolean isClosed() throws SQLException;
boolean isClosed() throws SQLException;
/**
* This method returns the meta data for this database connection.
@ -200,7 +200,7 @@ public interface Connection
* @exception SQLException If an error occurs.
* @see DatabaseMetaData
*/
public DatabaseMetaData getMetaData() throws SQLException;
DatabaseMetaData getMetaData() throws SQLException;
/**
* This method turns read only mode on or off. It may not be called while
@ -210,7 +210,7 @@ public interface Connection
* <code>false</code> otherwise.
* @exception SQLException If an error occurs.
*/
public void setReadOnly(boolean readOnly) throws SQLException;
void setReadOnly(boolean readOnly) throws SQLException;
/**
* This method tests whether or not this connection is in read only mode.
@ -219,7 +219,7 @@ public interface Connection
* otherwise.
* @exception SQLException If an error occurs.
*/
public boolean isReadOnly() throws SQLException;
boolean isReadOnly() throws SQLException;
/**
* This method sets the name of the catalog in use by this connection.
@ -229,7 +229,7 @@ public interface Connection
* @param catalog The name of the catalog to use for this connection.
* @exception SQLException If an error occurs.
*/
public void setCatalog(String catalog) throws SQLException;
void setCatalog(String catalog) throws SQLException;
/**
* This method returns the name of the catalog in use by this connection,
@ -239,7 +239,7 @@ public interface Connection
* exist or catalogs are not supported by this database.
* @exception SQLException If an error occurs.
*/
public String getCatalog() throws SQLException;
String getCatalog() throws SQLException;
/**
* This method sets the current transaction isolation mode. This must
@ -248,7 +248,7 @@ public interface Connection
* @param level The transaction isolation level.
* @exception SQLException If an error occurs.
*/
public void setTransactionIsolation(int level) throws SQLException;
void setTransactionIsolation(int level) throws SQLException;
/**
* This method returns the current transaction isolation mode. This will
@ -257,7 +257,7 @@ public interface Connection
* @return The transaction isolation level.
* @exception SQLException If an error occurs.
*/
public int getTransactionIsolation() throws SQLException;
int getTransactionIsolation() throws SQLException;
/**
* This method returns the first warning that occurred on this connection,
@ -268,14 +268,14 @@ public interface Connection
* <code>null</code> if there have been no warnings.
* @exception SQLException If an error occurs.
*/
public SQLWarning getWarnings() throws SQLException;
SQLWarning getWarnings() throws SQLException;
/**
* This method clears all warnings that have occurred on this connection.
*
* @exception SQLException If an error occurs.
*/
public void clearWarnings() throws SQLException;
void clearWarnings() throws SQLException;
/**
* This method creates a new SQL statement with the specified type and
@ -290,7 +290,7 @@ public interface Connection
* @see Statement
* @see ResultSet
*/
public Statement createStatement(int resultSetType, int resultSetConcurrency)
Statement createStatement(int resultSetType, int resultSetConcurrency)
throws SQLException;
/**
@ -310,7 +310,7 @@ public interface Connection
* @see PreparedStatement
* @see ResultSet
*/
public PreparedStatement prepareStatement(String sql, int resultSetType,
PreparedStatement prepareStatement(String sql, int resultSetType,
int resultSetConcurrency) throws SQLException;
/**
@ -330,7 +330,7 @@ public interface Connection
* @see CallableStatement
* @see ResultSet
*/
public CallableStatement prepareCall(String sql, int resultSetType, int
CallableStatement prepareCall(String sql, int resultSetType, int
resultSetConcurrency) throws SQLException;
/**
@ -341,7 +341,7 @@ public interface Connection
* @return The SQL type to Java class mapping.
* @exception SQLException If an error occurs.
*/
public Map getTypeMap() throws SQLException;
Map getTypeMap() throws SQLException;
/**
* This method sets the mapping table for SQL types to Java classes.
@ -350,71 +350,71 @@ public interface Connection
* @param map The new SQL mapping table.
* @exception SQLException If an error occurs.
*/
public void setTypeMap(Map map) throws SQLException;
void setTypeMap(Map map) throws SQLException;
/**
* @since 1.4
*/
public void setHoldability(int holdability) throws SQLException;
void setHoldability(int holdability) throws SQLException;
/**
* @since 1.4
*/
public int getHoldability() throws SQLException;
int getHoldability() throws SQLException;
/**
* @since 1.4
*/
public Savepoint setSavepoint() throws SQLException;
Savepoint setSavepoint() throws SQLException;
/**
* @since 1.4
*/
public Savepoint setSavepoint(String name) throws SQLException;
Savepoint setSavepoint(String name) throws SQLException;
/**
* @since 1.4
*/
public void rollback(Savepoint savepoint) throws SQLException;
void rollback(Savepoint savepoint) throws SQLException;
/**
* @since 1.4
*/
public void releaseSavepoint(Savepoint savepoint) throws SQLException;
void releaseSavepoint(Savepoint savepoint) throws SQLException;
/**
* @since 1.4
*/
public Statement createStatement(int resultSetType, int
Statement createStatement(int resultSetType, int
resultSetConcurrency, int resultSetHoldability) throws SQLException;
/**
* @since 1.4
*/
public PreparedStatement prepareStatement(String sql, int resultSetType, int
PreparedStatement prepareStatement(String sql, int resultSetType, int
resultSetConcurrency, int resultSetHoldability) throws SQLException;
/**
* @since 1.4
*/
public CallableStatement prepareCall(String sql, int resultSetType, int
CallableStatement prepareCall(String sql, int resultSetType, int
resultSetConcurrency, int resultSetHoldability) throws SQLException;
/**
* @since 1.4
*/
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
throws SQLException;
/**
* @since 1.4
*/
public PreparedStatement prepareStatement(String sql, int[] columnIndexes)
PreparedStatement prepareStatement(String sql, int[] columnIndexes)
throws SQLException;
/**
* @since 1.4
*/
public PreparedStatement prepareStatement(String sql, String[] columnNames)
PreparedStatement prepareStatement(String sql, String[] columnNames)
throws SQLException;
}

File diff suppressed because it is too large Load diff

View file

@ -68,7 +68,7 @@ public interface Driver
* connection, or <code>null</code> if the URL is not understood.
* @exception SQLException If an error occurs.
*/
public Connection connect(String url, Properties info) throws SQLException;
Connection connect(String url, Properties info) throws SQLException;
/**
* This method tests whether or not the driver believes it can connect to
@ -81,9 +81,9 @@ public interface Driver
* <code>false</code> otherwise.
* @exception SQLException If an error occurs.
*/
public boolean acceptsURL(String url) throws SQLException;
boolean acceptsURL(String url) throws SQLException;
/**
/**
* This method returns an array of possible properties that could be
* used to connect to the specified database.
*
@ -94,7 +94,7 @@ public interface Driver
* database. This list may be empty.
* @exception SQLException If an error occurs.
*/
public DriverPropertyInfo[] getPropertyInfo(String url, Properties properties)
DriverPropertyInfo[] getPropertyInfo(String url, Properties properties)
throws SQLException;
/**
@ -102,14 +102,14 @@ public interface Driver
*
* @return The major version number of the driver.
*/
public int getMajorVersion();
int getMajorVersion();
/**
* This method returns the minor version number of the driver.
*
* @return The minor version number of the driver.
*/
public int getMinorVersion();
int getMinorVersion();
/**
* This method tests whether or not the driver is JDBC compliant. This
@ -119,5 +119,5 @@ public interface Driver
* @return <code>true</code> if the driver has been certified JDBC compliant,
* <code>false</code> otherwise.
*/
public boolean jdbcCompliant();
boolean jdbcCompliant();
}

View file

@ -40,64 +40,64 @@ package java.sql;
/**
* @since 1.4
*/
public interface ParameterMetaData
interface ParameterMetaData
{
public static final int parameterNoNulls = 0;
int parameterNoNulls = 0;
public static final int parameterNullable = 1;
int parameterNullable = 1;
public static final int parameterNullableUnknown = 2;
int parameterNullableUnknown = 2;
public static final int parameterModeUnknown = 0;
int parameterModeUnknown = 0;
public static final int parameterModeIn = 1;
int parameterModeIn = 1;
public static final int parameterModeInOut = 2;
int parameterModeInOut = 2;
public static final int parameterModeOut = 4;
int parameterModeOut = 4;
/**
* @since 1.4
*/
public int getParameterCount() throws SQLException;
int getParameterCount() throws SQLException;
/**
* @since 1.4
*/
public int isNullable(int param) throws SQLException;
int isNullable(int param) throws SQLException;
/**
* @since 1.4
*/
public boolean isSigned(int param) throws SQLException;
boolean isSigned(int param) throws SQLException;
/**
* @since 1.4
*/
public int getPrecision(int param) throws SQLException;
int getPrecision(int param) throws SQLException;
/**
* @since 1.4
*/
public int getScale(int param) throws SQLException;
int getScale(int param) throws SQLException;
/**
* @since 1.4
*/
public int getParameterType(int param) throws SQLException;
int getParameterType(int param) throws SQLException;
/**
* @since 1.4
*/
public String getParameterTypeName(int param) throws SQLException;
String getParameterTypeName(int param) throws SQLException;
/**
* @since 1.4
*/
public String getParameterClassName(int param) throws SQLException;
String getParameterClassName(int param) throws SQLException;
/**
* @since 1.4
*/
public int getParameterMode(int param) throws SQLException;
int getParameterMode(int param) throws SQLException;
}

View file

@ -51,7 +51,7 @@ import java.util.Calendar;
*
* @author Aaron M. Renn (arenn@urbanophile.com)
*/
public interface PreparedStatement extends Statement
interface PreparedStatement extends Statement
{
/**
* This method executes a prepared SQL query and returns its ResultSet.
@ -59,7 +59,7 @@ public interface PreparedStatement extends Statement
* @return The ResultSet of the SQL statement.
* @exception SQLException If an error occurs.
*/
public ResultSet executeQuery() throws SQLException;
ResultSet executeQuery() throws SQLException;
/**
* This method executes an SQL INSERT, UPDATE or DELETE statement. SQL
@ -69,7 +69,7 @@ public interface PreparedStatement extends Statement
* statements; or 0 for SQL statements that return nothing.
* @exception SQLException If an error occurs.
*/
public int executeUpdate() throws SQLException;
int executeUpdate() throws SQLException;
/**
* This method populates the specified parameter with a SQL NULL value
@ -80,7 +80,7 @@ public interface PreparedStatement extends Statement
*
* @exception SQLException If an error occurs.
*/
public void setNull(int parameterIndex, int sqlType) throws SQLException;
void setNull(int parameterIndex, int sqlType) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -90,7 +90,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setBoolean(int parameterIndex, boolean x) throws SQLException;
void setBoolean(int parameterIndex, boolean x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -100,7 +100,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setByte(int parameterIndex, byte x) throws SQLException;
void setByte(int parameterIndex, byte x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -110,7 +110,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setShort(int parameterIndex, short x) throws SQLException;
void setShort(int parameterIndex, short x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -120,7 +120,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setInt(int parameterIndex, int x) throws SQLException;
void setInt(int parameterIndex, int x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -130,7 +130,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setLong(int parameterIndex, long x) throws SQLException;
void setLong(int parameterIndex, long x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -140,7 +140,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setFloat(int parameterIndex, float x) throws SQLException;
void setFloat(int parameterIndex, float x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -150,7 +150,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setDouble(int parameterIndex, double x) throws SQLException;
void setDouble(int parameterIndex, double x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -160,7 +160,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setBigDecimal(int parameterIndex, BigDecimal x) throws
void setBigDecimal(int parameterIndex, BigDecimal x) throws
SQLException;
/**
@ -171,7 +171,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setString(int parameterIndex, String x) throws SQLException;
void setString(int parameterIndex, String x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -181,7 +181,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setBytes(int parameterIndex, byte[] x) throws SQLException;
void setBytes(int parameterIndex, byte[] x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -191,7 +191,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setDate(int parameterIndex, Date x) throws SQLException;
void setDate(int parameterIndex, Date x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -201,7 +201,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setTime(int parameterIndex, Time x) throws SQLException;
void setTime(int parameterIndex, Time x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -211,7 +211,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setTimestamp(int parameterIndex, Timestamp x)
void setTimestamp(int parameterIndex, Timestamp x)
throws SQLException;
/**
@ -223,7 +223,7 @@ public interface PreparedStatement extends Statement
* @param length The number of bytes in the stream.
* @exception SQLException If an error occurs.
*/
public void setAsciiStream(int parameterIndex, InputStream x, int length)
void setAsciiStream(int parameterIndex, InputStream x, int length)
throws SQLException;
/**
@ -236,7 +236,7 @@ public interface PreparedStatement extends Statement
* @exception SQLException If an error occurs.
* @deprecated
*/
public void setUnicodeStream(int parameterIndex, InputStream x, int length)
void setUnicodeStream(int parameterIndex, InputStream x, int length)
throws SQLException;
/**
@ -248,7 +248,7 @@ public interface PreparedStatement extends Statement
* @param length The number of bytes in the stream.
* @exception SQLException If an error occurs.
*/
public void setBinaryStream(int parameterIndex, InputStream x, int length)
void setBinaryStream(int parameterIndex, InputStream x, int length)
throws SQLException;
/**
@ -257,7 +257,7 @@ public interface PreparedStatement extends Statement
*
* @exception SQLException If an error occurs.
*/
public void clearParameters() throws SQLException;
void clearParameters() throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -270,7 +270,7 @@ public interface PreparedStatement extends Statement
* @exception SQLException If an error occurs.
* @see Types
*/
public void setObject(int parameterIndex, Object x, int targetSqlType,
void setObject(int parameterIndex, Object x, int targetSqlType,
int scale) throws SQLException;
/**
@ -283,7 +283,7 @@ public interface PreparedStatement extends Statement
* @exception SQLException If an error occurs.
* @see Types
*/
public void setObject(int parameterIndex, Object x, int targetSqlType)
void setObject(int parameterIndex, Object x, int targetSqlType)
throws SQLException;
/**
@ -295,7 +295,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setObject(int parameterIndex, Object x) throws SQLException;
void setObject(int parameterIndex, Object x) throws SQLException;
/**
* This method executes a prepared SQL query.
@ -306,13 +306,13 @@ public interface PreparedStatement extends Statement
* @return The result of the SQL statement.
* @exception SQLException If an error occurs.
*/
public boolean execute() throws SQLException;
boolean execute() throws SQLException;
/**
* This method adds a set of parameters to the batch for JDBC 2.0.
* @exception SQLException If an error occurs.
*/
public void addBatch() throws SQLException;
void addBatch() throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -323,7 +323,7 @@ public interface PreparedStatement extends Statement
* @param length The number of bytes in the stream.
* @exception SQLException If an error occurs.
*/
public void setCharacterStream(int parameterIndex, Reader reader,
void setCharacterStream(int parameterIndex, Reader reader,
int length) throws SQLException;
/**
@ -335,7 +335,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setRef(int i, Ref x) throws SQLException;
void setRef(int i, Ref x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -346,7 +346,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setBlob(int i, Blob x) throws SQLException;
void setBlob(int i, Blob x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -357,7 +357,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setClob(int i, Clob x) throws SQLException;
void setClob(int i, Clob x) throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -368,7 +368,7 @@ public interface PreparedStatement extends Statement
* @param value The value of the parameter.
* @exception SQLException If an error occurs.
*/
public void setArray(int i, Array x) throws SQLException;
void setArray(int i, Array x) throws SQLException;
/**
* This method returns meta data for the result set from this statement.
@ -376,7 +376,7 @@ public interface PreparedStatement extends Statement
* @return Meta data for the result set from this statement.
* @exception SQLException If an error occurs.
*/
public ResultSetMetaData getMetaData() throws SQLException;
ResultSetMetaData getMetaData() throws SQLException;
/**
* This method sets the specified parameter from the given Java
@ -387,7 +387,7 @@ public interface PreparedStatement extends Statement
* @param calendar The <code>Calendar</code> to use for timezone and locale.
* @exception SQLException If an error occurs.
*/
public void setDate(int parameterIndex, Date x, Calendar cal)
void setDate(int parameterIndex, Date x, Calendar cal)
throws SQLException;
/**
@ -399,7 +399,7 @@ public interface PreparedStatement extends Statement
* @param calendar The <code>Calendar</code> to use for timezone and locale.
* @exception SQLException If an error occurs.
*/
public void setTime(int parameterIndex, Time x, Calendar cal)
void setTime(int parameterIndex, Time x, Calendar cal)
throws SQLException;
/**
@ -411,7 +411,7 @@ public interface PreparedStatement extends Statement
* @param calendar The <code>Calendar</code> to use for timezone and locale.
* @exception SQLException If an error occurs.
*/
public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)
throws SQLException;
/**
@ -423,16 +423,16 @@ public interface PreparedStatement extends Statement
* @param name The name of the data type, for user defined types.
* @exception SQLException If an error occurs.
*/
public void setNull(int paramIndex, int sqlType, String typeName)
void setNull(int paramIndex, int sqlType, String typeName)
throws SQLException;
/**
* @since 1.4
*/
public void setURL(int parameterIndex, URL x) throws SQLException;
void setURL(int parameterIndex, URL x) throws SQLException;
/**
* @since 1.4
*/
public ParameterMetaData getParameterMetaData() throws SQLException;
ParameterMetaData getParameterMetaData() throws SQLException;
}

View file

@ -46,7 +46,7 @@ import java.util.Map;
* @author Aaron M. Renn (arenn@urbanophile.com)
* @since 1.2
*/
public interface Ref
interface Ref
{
/**
* This method returns the fully qualified name of the SQL structured
@ -56,20 +56,20 @@ public interface Ref
* @exception SQLException If an error occurs.
* @since 1.2
*/
public String getBaseTypeName() throws SQLException;
String getBaseTypeName() throws SQLException;
/**
* @since 1.4
*/
public Object getObject(Map map) throws SQLException;
Object getObject(Map map) throws SQLException;
/**
* @since 1.4
*/
public Object getObject() throws SQLException;
Object getObject() throws SQLException;
/**
* @since 1.4
*/
public void setObject(Object value) throws SQLException;
void setObject(Object value) throws SQLException;
}

File diff suppressed because it is too large Load diff

View file

@ -51,17 +51,17 @@ public interface ResultSetMetaData
/**
* The column does not allow NULL's.
*/
public static final int columnNoNulls = 0;
int columnNoNulls = 0;
/**
* The column allows NULL's.
*/
public static final int columnNullable = 1;
int columnNullable = 1;
/**
* It is unknown whether or not the column allows NULL's.
*/
public static final int columnNullableUnknown = 2;
int columnNullableUnknown = 2;
/**
* This method returns the number of columns in the result set.
@ -69,7 +69,7 @@ public interface ResultSetMetaData
* @return The number of columns in the result set.
* @exception SQLException If an error occurs.
*/
public int getColumnCount() throws SQLException;
int getColumnCount() throws SQLException;
/**
* This method test whether or not the column is an auto-increment column.
@ -80,7 +80,7 @@ public interface ResultSetMetaData
* otherwise.
* @exception SQLException If an error occurs.
*/
public boolean isAutoIncrement(int column) throws SQLException;
boolean isAutoIncrement(int column) throws SQLException;
/**
* This method tests whether or not a column is case sensitive in its values.
@ -90,7 +90,7 @@ public interface ResultSetMetaData
* <code>false</code> otherwise.
* @exception SQLException If an error occurs.
*/
public boolean isCaseSensitive(int column) throws SQLException;
boolean isCaseSensitive(int column) throws SQLException;
/**
* This method tests whether not the specified column can be used in
@ -101,7 +101,7 @@ public interface ResultSetMetaData
* <code>false</code> otherwise.
* @exception SQLException If an error occurs.
*/
public boolean isSearchable(int column) throws SQLException;
boolean isSearchable(int column) throws SQLException;
/**
* This method tests whether or not the column stores a monetary value.
@ -111,7 +111,7 @@ public interface ResultSetMetaData
* <code>false</code> otherwise.
* @exception SQLException If an error occurs.
*/
public boolean isCurrency(int column) throws SQLException;
boolean isCurrency(int column) throws SQLException;
/**
* This method returns a value indicating whether or not the specified
@ -123,7 +123,7 @@ public interface ResultSetMetaData
* <code>columnNullable</code>, or <code>columnNullableUnknown</code>.
* @exception SQLException If an error occurs.
*/
public int isNullable(int column) throws SQLException;
int isNullable(int column) throws SQLException;
/**
* This method tests whether or not the value of the specified column
@ -134,7 +134,7 @@ public interface ResultSetMetaData
* otherwise.
* @exception SQLException If an error occurs.
*/
public boolean isSigned(int column) throws SQLException;
boolean isSigned(int column) throws SQLException;
/**
* This method returns the maximum number of characters that can be used
@ -145,7 +145,7 @@ public interface ResultSetMetaData
* value for this column.
* @exception SQLException If an error occurs.
*/
public int getColumnDisplaySize(int column) throws SQLException;
int getColumnDisplaySize(int column) throws SQLException;
/**
* This method returns a string that should be used as a caption for this
@ -155,7 +155,7 @@ public interface ResultSetMetaData
* @return A display string for the column.
* @exception SQLException If an error occurs.
*/
public String getColumnLabel(int column) throws SQLException;
String getColumnLabel(int column) throws SQLException;
/**
* This method returns the name of the specified column.
@ -164,7 +164,7 @@ public interface ResultSetMetaData
* @return The name of the column.
* @exception SQLException If an error occurs.
*/
public String getColumnName(int column) throws SQLException;
String getColumnName(int column) throws SQLException;
/**
* This method returns the name of the schema that contains the specified
@ -174,7 +174,7 @@ public interface ResultSetMetaData
* @return The name of the schema that contains the column.
* @exception SQLException If an error occurs.
*/
public String getSchemaName(int column) throws SQLException;
String getSchemaName(int column) throws SQLException;
/**
* This method returns the precision of the specified column, which is the
@ -184,7 +184,7 @@ public interface ResultSetMetaData
* @return The precision of the specified column.
* @exception SQLException If an error occurs.
*/
public int getPrecision(int column) throws SQLException;
int getPrecision(int column) throws SQLException;
/**
* This method returns the scale of the specified column, which is the
@ -194,7 +194,7 @@ public interface ResultSetMetaData
* @return The scale of the column.
* @exception SQLException If an error occurs.
*/
public int getScale(int column) throws SQLException;
int getScale(int column) throws SQLException;
/**
* This method returns the name of the table containing the specified
@ -204,7 +204,7 @@ public interface ResultSetMetaData
* @return The name of the table containing the column.
* @exception SQLException If an error occurs.
*/
public String getTableName(int column) throws SQLException;
String getTableName(int column) throws SQLException;
/**
* This method returns the name of the catalog containing the specified
@ -214,7 +214,7 @@ public interface ResultSetMetaData
* @return The name of the catalog containing the column.
* @exception SQLException If an error occurs.
*/
public String getCatalogName(int column) throws SQLException;
String getCatalogName(int column) throws SQLException;
/**
* This method returns the SQL type of the specified column. This will
@ -225,7 +225,7 @@ public interface ResultSetMetaData
* @exception SQLException If an error occurs.
* @see Types
*/
public int getColumnType(int column) throws SQLException;
int getColumnType(int column) throws SQLException;
/**
* This method returns the name of the SQL type for this column.
@ -234,7 +234,7 @@ public interface ResultSetMetaData
* @return The name of the SQL type for this column.
* @exception SQLException If an error occurs.
*/
public String getColumnTypeName(int column) throws SQLException;
String getColumnTypeName(int column) throws SQLException;
/**
* This method tests whether or not the specified column is read only.
@ -244,7 +244,7 @@ public interface ResultSetMetaData
* otherwise.
* @exception SQLException If an error occurs.
*/
public boolean isReadOnly(int column) throws SQLException;
boolean isReadOnly(int column) throws SQLException;
/**
* This method tests whether or not the column may be writable. This
@ -255,7 +255,7 @@ public interface ResultSetMetaData
* <code>false</code> otherwise.
* @exception SQLException If an error occurs.
*/
public boolean isWritable(int column) throws SQLException;
boolean isWritable(int column) throws SQLException;
/**
* This method tests whether or not the column is writable. This
@ -266,7 +266,7 @@ public interface ResultSetMetaData
* <code>false</code> otherwise.
* @exception SQLException If an error occurs.
*/
public boolean isDefinitelyWritable(int column) throws SQLException;
boolean isDefinitelyWritable(int column) throws SQLException;
/**
* This method returns the name of the Java class which will be used to
@ -277,5 +277,5 @@ public interface ResultSetMetaData
* this column.
* @exception SQLException If an error occurs.
*/
public String getColumnClassName(int column) throws SQLException;
String getColumnClassName(int column) throws SQLException;
}

View file

@ -51,7 +51,7 @@ public interface SQLData
* @return The user defined data type name for this object.
* @exception SQLException If an error occurs.
*/
public String getSQLTypeName() throws SQLException;
String getSQLTypeName() throws SQLException;
/**
* This method populates the data in the object from the specified stream.
@ -60,7 +60,7 @@ public interface SQLData
* @param name The data type name of the data on the stream.
* @exception SQLException If an error occurs.
*/
public void readSQL(SQLInput stream, String typeName) throws SQLException;
void readSQL(SQLInput stream, String typeName) throws SQLException;
/**
* This method writes the data in this object to the specified stream.
@ -68,5 +68,5 @@ public interface SQLData
* @param stream The stream to write the data to.
* @exception SQLException If an error occurs.
*/
public void writeSQL(SQLOutput stream) throws SQLException;
void writeSQL(SQLOutput stream) throws SQLException;
}

View file

@ -59,7 +59,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>String</code>.
* @exception SQLException If an error occurs.
*/
public String readString() throws SQLException;
String readString() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -68,7 +68,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>boolean</code>.
* @exception SQLException If an error occurs.
*/
public boolean readBoolean() throws SQLException;
boolean readBoolean() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -77,7 +77,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>byte</code>.
* @exception SQLException If an error occurs.
*/
public byte readByte() throws SQLException;
byte readByte() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -86,7 +86,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>short</code>.
* @exception SQLException If an error occurs.
*/
public short readShort() throws SQLException;
short readShort() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -95,7 +95,7 @@ public interface SQLInput
* @return The value read from the stream as an <code>int</code>.
* @exception SQLException If an error occurs.
*/
public int readInt() throws SQLException;
int readInt() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -104,7 +104,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>long</code>.
* @exception SQLException If an error occurs.
*/
public long readLong() throws SQLException;
long readLong() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -113,7 +113,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>float</code>.
* @exception SQLException If an error occurs.
*/
public float readFloat() throws SQLException;
float readFloat() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -122,7 +122,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>double</code>.
* @exception SQLException If an error occurs.
*/
public double readDouble() throws SQLException;
double readDouble() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -131,7 +131,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>BigDecimal</code>.
* @exception SQLException If an error occurs.
*/
public BigDecimal readBigDecimal() throws SQLException;
BigDecimal readBigDecimal() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -140,7 +140,7 @@ public interface SQLInput
* @return The value read from the stream as a byte array.
* @exception SQLException If an error occurs.
*/
public byte[] readBytes() throws SQLException;
byte[] readBytes() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -149,7 +149,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>java.sql.Date</code>.
* @exception SQLException If an error occurs.
*/
public Date readDate() throws SQLException;
Date readDate() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -158,7 +158,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>java.sql.Time</code>.
* @exception SQLException If an error occurs.
*/
public Time readTime() throws SQLException;
Time readTime() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -167,7 +167,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>java.sql.Timestamp</code>.
* @exception SQLException If an error occurs.
*/
public Timestamp readTimestamp() throws SQLException;
Timestamp readTimestamp() throws SQLException;
/**
* This method reads the next item from the stream a character
@ -176,7 +176,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>Reader</code>.
* @exception SQLException If an error occurs.
*/
public Reader readCharacterStream() throws SQLException;
Reader readCharacterStream() throws SQLException;
/**
* This method reads the next item from the stream a ASCII text
@ -185,7 +185,7 @@ public interface SQLInput
* @return The value read from the stream as an <code>InputStream</code>.
* @exception SQLException If an error occurs.
*/
public InputStream readAsciiStream() throws SQLException;
InputStream readAsciiStream() throws SQLException;
/**
* This method reads the next item from the stream a binary
@ -194,7 +194,7 @@ public interface SQLInput
* @return The value read from the stream as an <code>InputStream</code>.
* @exception SQLException If an error occurs.
*/
public InputStream readBinaryStream() throws SQLException;
InputStream readBinaryStream() throws SQLException;
/**
* This method reads the next item from the stream a Java
@ -203,7 +203,7 @@ public interface SQLInput
* @return The value read from the stream as an <code>Object</code>.
* @exception SQLException If an error occurs.
*/
public Object readObject() throws SQLException;
Object readObject() throws SQLException;
/**
* This method reads the next item from the stream a Java SQL
@ -212,7 +212,7 @@ public interface SQLInput
* @return The value read from the stream as an <code>Ref</code>.
* @exception SQLException If an error occurs.
*/
public Ref readRef() throws SQLException;
Ref readRef() throws SQLException;
/**
* This method reads the next item from the stream a Java SQL
@ -221,7 +221,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>Blob</code>.
* @exception SQLException If an error occurs.
*/
public Blob readBlob() throws SQLException;
Blob readBlob() throws SQLException;
/**
* This method reads the next item from the stream a Java SQL
@ -230,7 +230,7 @@ public interface SQLInput
* @return The value read from the stream as a <code>Clob</code>.
* @exception SQLException If an error occurs.
*/
public Clob readClob() throws SQLException;
Clob readClob() throws SQLException;
/**
* This method reads the next item from the stream a Java SQL
@ -239,7 +239,7 @@ public interface SQLInput
* @return The value read from the stream as an <code>Array</code>.
* @exception SQLException If an error occurs.
*/
public Array readArray() throws SQLException;
Array readArray() throws SQLException;
/**
* This method tests whether or not the last value read was a SQL
@ -249,11 +249,11 @@ public interface SQLInput
* <code>false</code> otherwise.
* @exception SQLException If an error occurs.
*/
public boolean wasNull() throws SQLException;
boolean wasNull() throws SQLException;
/**
* @since 1.4
*/
public URL readURL() throws SQLException;
URL readURL() throws SQLException;
}

View file

@ -59,7 +59,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeString(String x) throws SQLException;
void writeString(String x) throws SQLException;
/**
* This method writes the specified Java <code>boolean</code>
@ -68,7 +68,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeBoolean(boolean x) throws SQLException;
void writeBoolean(boolean x) throws SQLException;
/**
* This method writes the specified Java <code>byte</code>
@ -77,7 +77,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeByte(byte x) throws SQLException;
void writeByte(byte x) throws SQLException;
/**
* This method writes the specified Java <code>short</code>
@ -86,7 +86,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeShort(short x) throws SQLException;
void writeShort(short x) throws SQLException;
/**
* This method writes the specified Java <code>int</code>
@ -95,7 +95,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeInt(int x) throws SQLException;
void writeInt(int x) throws SQLException;
/**
* This method writes the specified Java <code>long</code>
@ -104,7 +104,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeLong(long x) throws SQLException;
void writeLong(long x) throws SQLException;
/**
* This method writes the specified Java <code>float</code>
@ -113,7 +113,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeFloat(float x) throws SQLException;
void writeFloat(float x) throws SQLException;
/**
* This method writes the specified Java <code>double</code>
@ -122,7 +122,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeDouble(double x) throws SQLException;
void writeDouble(double x) throws SQLException;
/**
* This method writes the specified Java <code>BigDecimal</code>
@ -131,7 +131,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeBigDecimal(BigDecimal x) throws SQLException;
void writeBigDecimal(BigDecimal x) throws SQLException;
/**
* This method writes the specified Java <code>byte</code> array
@ -140,7 +140,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeBytes(byte[] x) throws SQLException;
void writeBytes(byte[] x) throws SQLException;
/**
* This method writes the specified Java <code>java.sql.Date</code>
@ -149,7 +149,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeDate(Date x) throws SQLException;
void writeDate(Date x) throws SQLException;
/**
* This method writes the specified Java <code>java.sql.Time</code>
@ -158,7 +158,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeTime(Time x) throws SQLException;
void writeTime(Time x) throws SQLException;
/**
* This method writes the specified Java <code>java.sql.Timestamp</code>
@ -167,7 +167,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeTimestamp(Timestamp x) throws SQLException;
void writeTimestamp(Timestamp x) throws SQLException;
/**
* This method writes the specified Java character stream
@ -176,7 +176,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeCharacterStream(Reader x) throws SQLException;
void writeCharacterStream(Reader x) throws SQLException;
/**
* This method writes the specified ASCII text stream
@ -185,7 +185,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeAsciiStream(InputStream x) throws SQLException;
void writeAsciiStream(InputStream x) throws SQLException;
/**
* This method writes the specified uninterpreted binary byte stream
@ -194,7 +194,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeBinaryStream(InputStream x) throws SQLException;
void writeBinaryStream(InputStream x) throws SQLException;
/**
* This method writes the specified Java <code>SQLData</code> object
@ -203,7 +203,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeObject(SQLData x) throws SQLException;
void writeObject(SQLData x) throws SQLException;
/**
* This method writes the specified Java SQL <code>Ref</code> object
@ -212,7 +212,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeRef(Ref x) throws SQLException;
void writeRef(Ref x) throws SQLException;
/**
* This method writes the specified Java SQL <code>Blob</code> object
@ -221,7 +221,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeBlob(Blob x) throws SQLException;
void writeBlob(Blob x) throws SQLException;
/**
* This method writes the specified Java SQL <code>Clob</code> object
@ -230,7 +230,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeClob(Clob x) throws SQLException;
void writeClob(Clob x) throws SQLException;
/**
* This method writes the specified Java SQL <code>Struct</code> object
@ -239,7 +239,7 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeStruct(Struct x) throws SQLException;
void writeStruct(Struct x) throws SQLException;
/**
* This method writes the specified Java SQL <code>Array</code> object
@ -248,10 +248,10 @@ public interface SQLOutput
* @param value The value to write to the stream.
* @exception SQLException If an error occurs.
*/
public void writeArray(Array x) throws SQLException;
void writeArray(Array x) throws SQLException;
/**
* @since 1.4
*/
public void writeURL(URL x) throws SQLException;
void writeURL(URL x) throws SQLException;
}

View file

@ -46,10 +46,10 @@ public interface Savepoint
/**
* @since 1.4
*/
public int getSavepointId() throws SQLException;
int getSavepointId() throws SQLException;
/**
* @since 1.4
*/
public String getSavepointName() throws SQLException;
String getSavepointName() throws SQLException;
}

View file

@ -45,13 +45,13 @@ package java.sql;
*/
public interface Statement
{
public static final int CLOSE_CURRENT_RESULT = 1;
public static final int KEEP_CURRENT_RESULT = 2;
public static final int CLOSE_ALL_RESULTS = 3;
public static final int SUCCESS_NO_INFO = -2;
public static final int EXECUTE_FAILED = -3;
public static final int RETURN_GENERATED_KEYS = 1;
public static final int NO_GENERATED_KEYS = 2;
int CLOSE_CURRENT_RESULT = 1;
int KEEP_CURRENT_RESULT = 2;
int CLOSE_ALL_RESULTS = 3;
int SUCCESS_NO_INFO = -2;
int EXECUTE_FAILED = -3;
int RETURN_GENERATED_KEYS = 1;
int NO_GENERATED_KEYS = 2;
/**
* This method executes the specified SQL SELECT statement and returns a
@ -61,7 +61,7 @@ public interface Statement
* @return The result set of the SQL statement.
* @exception SQLException If an error occurs.
*/
public ResultSet executeQuery(String sql) throws SQLException;
ResultSet executeQuery(String sql) throws SQLException;
/**
* This method executes the specified SQL INSERT, UPDATE, or DELETE statement
@ -71,14 +71,14 @@ public interface Statement
* @return The number of rows affected by the SQL statement.
* @exception SQLException If an error occurs.
*/
public int executeUpdate(String sql) throws SQLException;
int executeUpdate(String sql) throws SQLException;
/**
* This method closes the statement and frees any associated resources.
*
* @exception SQLException If an error occurs.
*/
public void close() throws SQLException;
void close() throws SQLException;
/**
* This method returns the maximum length of any column value in bytes.
@ -86,7 +86,7 @@ public interface Statement
* @return The maximum length of any column value in bytes.
* @exception SQLException If an error occurs.
*/
public int getMaxFieldSize() throws SQLException;
int getMaxFieldSize() throws SQLException;
/**
* This method sets the limit for the maximum length of any column in bytes.
@ -94,7 +94,7 @@ public interface Statement
* @param maxsize The new maximum length of any column in bytes.
* @exception SQLException If an error occurs.
*/
public void setMaxFieldSize(int max) throws SQLException;
void setMaxFieldSize(int max) throws SQLException;
/**
* This method returns the maximum possible number of rows in a result set.
@ -102,7 +102,7 @@ public interface Statement
* @return The maximum possible number of rows in a result set.
* @exception SQLException If an error occurs.
*/
public int getMaxRows() throws SQLException;
int getMaxRows() throws SQLException;
/**
* This method sets the maximum number of rows that can be present in a
@ -111,7 +111,7 @@ public interface Statement
* @param maxrows The maximum possible number of rows in a result set.
* @exception SQLException If an error occurs.
*/
public void setMaxRows(int max) throws SQLException;
void setMaxRows(int max) throws SQLException;
/**
* This method sets the local escape processing mode on or off. The
@ -121,7 +121,7 @@ public interface Statement
* <code>false</code> to disable it.
* @exception SQLException If an error occurs.
*/
public void setEscapeProcessing(boolean enable) throws SQLException;
void setEscapeProcessing(boolean enable) throws SQLException;
/**
* The method returns the number of seconds a statement may be in process
@ -130,7 +130,7 @@ public interface Statement
* @return The SQL statement timeout in seconds.
* @exception SQLException If an error occurs.
*/
public int getQueryTimeout() throws SQLException;
int getQueryTimeout() throws SQLException;
/**
* This method sets the number of seconds a statement may be in process
@ -139,7 +139,7 @@ public interface Statement
* @param timeout The new SQL statement timeout value.
* @exception SQLException If an error occurs.
*/
public void setQueryTimeout(int seconds) throws SQLException;
void setQueryTimeout(int seconds) throws SQLException;
/**
* This method cancels an outstanding statement, if the database supports
@ -147,7 +147,7 @@ public interface Statement
*
* @exception SQLException If an error occurs.
*/
public void cancel() throws SQLException;
void cancel() throws SQLException;
/**
* This method returns the first SQL warning attached to this statement.
@ -156,7 +156,7 @@ public interface Statement
* @return The first SQL warning for this statement.
* @exception SQLException If an error occurs.
*/
public SQLWarning getWarnings() throws SQLException;
SQLWarning getWarnings() throws SQLException;
/**
* This method clears any SQL warnings that have been attached to this
@ -164,7 +164,7 @@ public interface Statement
*
* @exception SQLException If an error occurs.
*/
public void clearWarnings() throws SQLException;
void clearWarnings() throws SQLException;
/**
* This method sets the cursor name that will be used by the result set.
@ -172,7 +172,7 @@ public interface Statement
* @param name The cursor name to use for this statement.
* @exception SQLException If an error occurs.
*/
public void setCursorName(String name) throws SQLException;
void setCursorName(String name) throws SQLException;
/**
* This method executes an arbitrary SQL statement of any time. The
@ -183,7 +183,7 @@ public interface Statement
* if an update count was returned.
* @exception SQLException If an error occurs.
*/
public boolean execute(String sql) throws SQLException;
boolean execute(String sql) throws SQLException;
/**
* This method returns the result set of the SQL statement that was
@ -194,7 +194,7 @@ public interface Statement
* @exception SQLException If an error occurs.
* @see execute
*/
public ResultSet getResultSet() throws SQLException;
ResultSet getResultSet() throws SQLException;
/**
* This method returns the update count of the SQL statement that was
@ -205,7 +205,7 @@ public interface Statement
* @exception SQLException If an error occurs.
* @see execute
*/
public int getUpdateCount() throws SQLException;
int getUpdateCount() throws SQLException;
/**
* This method advances the result set pointer to the next result set,
@ -217,7 +217,7 @@ public interface Statement
* @exception SQLException If an error occurs.
* @see execute
*/
public boolean getMoreResults() throws SQLException;
boolean getMoreResults() throws SQLException;
/**
* This method informs the driver which direction the result set will
@ -226,7 +226,7 @@ public interface Statement
* @param direction The direction the result set will be accessed in (?????)
* @exception SQLException If an error occurs.
*/
public void setFetchDirection(int direction) throws SQLException;
void setFetchDirection(int direction) throws SQLException;
/**
* This method returns the current direction that the driver thinks the
@ -235,7 +235,7 @@ public interface Statement
* @return The direction the result set will be accessed in (????)
* @exception SQLException If an error occurs.
*/
public int getFetchDirection() throws SQLException;
int getFetchDirection() throws SQLException;
/**
* This method informs the driver how many rows it should fetch from the
@ -245,7 +245,7 @@ public interface Statement
* to populate the result set.
* @exception SQLException If an error occurs.
*/
public void setFetchSize(int rows) throws SQLException;
void setFetchSize(int rows) throws SQLException;
/**
* This method returns the number of rows the driver believes should be
@ -254,7 +254,7 @@ public interface Statement
* @return The number of rows that will be fetched from the database at a time.
* @exception SQLException If an error occurs.
*/
public int getFetchSize() throws SQLException;
int getFetchSize() throws SQLException;
/**
* This method returns the concurrency type of the result set for this
@ -265,7 +265,7 @@ public interface Statement
* @exception SQLException If an error occurs.
* @see ResultSet
*/
public int getResultSetConcurrency() throws SQLException;
int getResultSetConcurrency() throws SQLException;
/**
* This method returns the result set type for this statement. This will
@ -275,7 +275,7 @@ public interface Statement
* @exception SQLException If an error occurs.
* @see ResultSet
*/
public int getResultSetType() throws SQLException;
int getResultSetType() throws SQLException;
/**
* This method adds a SQL statement to a SQL batch. A driver is not
@ -284,7 +284,7 @@ public interface Statement
* @param sql The sql statement to add to the batch.
* @exception SQLException If an error occurs.
*/
public void addBatch(String sql) throws SQLException;
void addBatch(String sql) throws SQLException;
/**
* This method clears out any SQL statements that have been populated in
@ -292,7 +292,7 @@ public interface Statement
*
* @exception SQLException If an error occurs.
*/
public void clearBatch() throws SQLException;
void clearBatch() throws SQLException;
/**
* This method executes the SQL batch and returns an array of update
@ -303,7 +303,7 @@ public interface Statement
* @return An array of update counts for this batch.
* @exception SQLException If an error occurs.
*/
public int[] executeBatch() throws SQLException;
int[] executeBatch() throws SQLException;
/**
* This method returns the <code>Connection</code> instance that was
@ -312,55 +312,55 @@ public interface Statement
* @return The connection used to create this object.
* @exception SQLException If an error occurs.
*/
public Connection getConnection() throws SQLException;
Connection getConnection() throws SQLException;
/**
* @since 1.4
*/
public boolean getMoreResults(int current) throws SQLException;
boolean getMoreResults(int current) throws SQLException;
/**
* @since 1.4
*/
public ResultSet getGeneratedKeys() throws SQLException;
ResultSet getGeneratedKeys() throws SQLException;
/**
* @since 1.4
*/
public int executeUpdate(String sql, int autoGeneratedKeys)
int executeUpdate(String sql, int autoGeneratedKeys)
throws SQLException;
/**
* @since 1.4
*/
public int executeUpdate(String sql, int[] columnIndexes)
int executeUpdate(String sql, int[] columnIndexes)
throws SQLException;
/**
* @since 1.4
*/
public int executeUpdate(String sql, String[] columnNames)
int executeUpdate(String sql, String[] columnNames)
throws SQLException;
/**
* @since 1.4
*/
public boolean execute(String sql, int autoGeneratedKeys)
boolean execute(String sql, int autoGeneratedKeys)
throws SQLException;
/**
* @since 1.4
*/
public boolean execute(String sql, int[] columnIndexes) throws SQLException;
boolean execute(String sql, int[] columnIndexes) throws SQLException;
/**
* @since 1.4
*/
public boolean execute(String sql, String[] columnNames)
boolean execute(String sql, String[] columnNames)
throws SQLException;
/**
* @since 1.4
*/
public int getResultSetHoldability() throws SQLException;
int getResultSetHoldability() throws SQLException;
}

View file

@ -55,7 +55,7 @@ public interface Struct
* @return The SQL structured type name.
* @exception SQLException If an error occurs.
*/
public String getSQLTypeName() throws SQLException;
String getSQLTypeName() throws SQLException;
/**
* This method returns the attributes of this SQL structured type.
@ -63,7 +63,7 @@ public interface Struct
* @return The attributes of this structure type.
* @exception SQLException If an error occurs.
*/
public Object[] getAttributes() throws SQLException;
Object[] getAttributes() throws SQLException;
/**
* This method returns the attributes of this SQL structured type.
@ -73,5 +73,5 @@ public interface Struct
* @return The attributes of this structure type.
* @exception SQLException If a error occurs.
*/
public Object[] getAttributes(Map map) throws SQLException;
Object[] getAttributes(Map map) throws SQLException;
}