|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.net.sharenet.ShareNetStatement
@SASScope(value="ALL") public class ShareNetStatement
ShareNetStatement implements java.sql.Statement
| Field Summary | |
|---|---|
protected boolean |
closed
|
protected boolean |
closeOnCompletion
|
protected ShareNetConnection |
connection
|
protected boolean |
describe
|
protected int |
fetchSize
|
protected int |
maxFieldSize
|
protected static java.lang.String[] |
months
|
protected com.sas.net.sharenet.Tcpmsg |
msg
|
protected ShareNetResultSet |
snresultset
|
| Method Summary | ||
|---|---|---|
void |
addBatch(java.lang.String sql)
This method is not supported and will always throw a SQLException. |
|
void |
addWarning(java.sql.SQLWarning warning)
Adds a warning to this Statement. |
|
void |
cancel()
|
|
void |
clearBatch()
This method is not supported and will always throw a SQLException. |
|
void |
clearWarnings()
|
|
void |
close()
|
|
void |
closeOnCompletion()
|
|
protected void |
describe()
Open up a new query (select statement). |
|
protected void |
destroy()
Destroy a query object. |
|
boolean |
execute(java.lang.String sql)
Executes an SQL statement and indicates the form of the first result. |
|
boolean |
execute(java.lang.String sql,
int autoGeneratedKeys)
This method is not supported and will always throw a SQLException. |
|
boolean |
execute(java.lang.String sql,
int[] columnIndexes)
This method is not supported and will always throw a SQLException. |
|
boolean |
execute(java.lang.String sql,
java.lang.String[] columnNames)
This method is not supported and will always throw a SQLException. |
|
int[] |
executeBatch()
This method is not supported and will always throw a SQLException. |
|
java.sql.ResultSet |
executeQuery(java.lang.String query)
|
|
int |
executeUpdate(java.lang.String sql)
|
|
int |
executeUpdate(java.lang.String sql,
int autoGeneratedKeys)
This method is not supported and will always throw a SQLException. |
|
int |
executeUpdate(java.lang.String sql,
int[] columnIndexes)
This method is not supported and will always throw a SQLException. |
|
int |
executeUpdate(java.lang.String sql,
java.lang.String[] columnNames)
This method is not supported and will always throw a SQLException. |
|
java.lang.String |
fieldFormat(int i)
Find the type of all the fields in the query. |
|
java.lang.String[] |
fieldNames()
Find the names of all the fields in the query. |
|
int |
fieldType(int i)
Find the type of all the fields in the query. |
|
protected void |
finalize()
Protected method which cleans up state associated with this object. |
|
protected int |
findFirstString(java.lang.String stmt,
java.lang.String token,
int offset)
|
|
protected com.sas.net.sharenet.Xhrspa3 |
getAns()
Gets the state of the query. |
|
java.sql.Connection |
getConnection()
|
|
int |
getFetchDirection()
JDBC 2.0 Gets the fetch direction for the result set created by this statement. |
|
int |
getFetchSize()
|
|
java.sql.ResultSet |
getGeneratedKeys()
This method is not supported and will always throw a SQLException. |
|
int |
getMaxFieldSize()
|
|
int |
getMaxRows()
|
|
boolean |
getMoreResults()
Moves to a Statement's next result. |
|
boolean |
getMoreResults(int current)
This method is not supported and will always throw a SQLException. |
|
int |
getQueryTimeout()
|
|
java.sql.ResultSet |
getResultSet()
|
|
int |
getResultSetConcurrency()
|
|
int |
getResultSetHoldability()
This method is not supported and will always throw a SQLException. |
|
int |
getResultSetType()
|
|
int |
getUpdateCount()
|
|
protected com.sas.net.sharenet.SqlFieldArray |
getVars()
Gets the state of the query. |
|
java.sql.SQLWarning |
getWarnings()
|
|
boolean |
isClosed()
|
|
boolean |
isCloseOnCompletion()
|
|
protected boolean |
isDescribe()
|
|
boolean |
isPoolable()
This method is not supported and will always throw a SQLException. |
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
|
|
int |
numFields()
Return the number of fields in the query. |
|
protected void |
prepare(java.lang.String statement)
Open up a new query (select statement). |
|
protected void |
prepareDescribe(java.lang.String statement)
Open up a new query (select statement). |
|
void |
setCursorName(java.lang.String name)
|
|
protected void |
setDescribe(boolean describe)
|
|
void |
setEscapeProcessing(boolean enable)
SAS software does not allow escape processing. |
|
void |
setFetchDirection(int direction)
JDBC 2.0 Gives a hint as to the direction in which the rows in the result set created by this statement will be processed. |
|
void |
setFetchSize(int rows)
JDBC 2.0 Sets the number of rows to be fetched. |
|
void |
setMaxFieldSize(int max)
|
|
void |
setMaxRows(int max)
|
|
void |
setPoolable(boolean poolable)
This method is not supported and will always throw a SQLException. |
|
void |
setQueryTimeout(int seconds)
|
|
protected void |
setVars(com.sas.net.sharenet.SqlFieldArray vars)
Gets the state of the query. |
|
|
unwrap(java.lang.Class<T> iface)
|
|
| Field Detail |
|---|
protected static java.lang.String[] months
protected int fetchSize
protected com.sas.net.sharenet.Tcpmsg msg
protected int maxFieldSize
protected ShareNetResultSet snresultset
protected ShareNetConnection connection
protected boolean describe
protected boolean closed
protected boolean closeOnCompletion
| Method Detail |
|---|
public java.sql.ResultSet executeQuery(java.lang.String query)
throws java.sql.SQLException
executeQuery in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String sql)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLExceptionpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.sql.Statement
public int getMaxFieldSize()
throws java.sql.SQLException
getMaxFieldSize in interface java.sql.Statementjava.sql.SQLException
public void setMaxFieldSize(int max)
throws java.sql.SQLException
setMaxFieldSize in interface java.sql.Statementjava.sql.SQLException
public int getMaxRows()
throws java.sql.SQLException
getMaxRows in interface java.sql.Statementjava.sql.SQLException
public void setMaxRows(int max)
throws java.sql.SQLException
setMaxRows in interface java.sql.Statementjava.sql.SQLException
public void setEscapeProcessing(boolean enable)
throws java.sql.SQLException
setEscapeProcessing in interface java.sql.Statementjava.sql.SQLException
public int getQueryTimeout()
throws java.sql.SQLException
getQueryTimeout in interface java.sql.Statementjava.sql.SQLException
public void setQueryTimeout(int seconds)
throws java.sql.SQLException
setQueryTimeout in interface java.sql.Statementjava.sql.SQLException
public void cancel()
throws java.sql.SQLException
cancel in interface java.sql.Statementjava.sql.SQLException
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface java.sql.Statementjava.sql.SQLException
public void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.Statementjava.sql.SQLException
public void setCursorName(java.lang.String name)
throws java.sql.SQLException
setCursorName in interface java.sql.Statementjava.sql.SQLException
public boolean execute(java.lang.String sql)
throws java.sql.SQLException
execute in interface java.sql.Statementsql - An SQL statement.
java.sql.SQLException - This exception is thrown if a ShareNetException is detectedgetResultSet(),
getUpdateCount(),
getMoreResults()
public java.sql.ResultSet getResultSet()
throws java.sql.SQLException
getResultSet in interface java.sql.Statementjava.sql.SQLException
public int getUpdateCount()
throws java.sql.SQLException
getUpdateCount in interface java.sql.Statementjava.sql.SQLException
protected void setDescribe(boolean describe)
throws java.sql.SQLException
java.sql.SQLException
protected boolean isDescribe()
throws java.sql.SQLException
java.sql.SQLException
public boolean getMoreResults()
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLException - This exception is required by the interface, but it is never thrown.execute(java.lang.String)
public void setFetchDirection(int direction)
throws java.sql.SQLException
setFetchDirection in interface java.sql.Statementdirection - An integer indicating the direction in which the rows of
the result set will be processed. Currently supports only FETCH_FORWARD.
java.sql.SQLException - This exception is thrown if the fetch direction is not FETCH_FORWARD.
public int getFetchDirection()
throws java.sql.SQLException
getFetchDirection in interface java.sql.Statementjava.sql.SQLException - This exception is required by the interface but it is never thrown.
public void setFetchSize(int rows)
throws java.sql.SQLException
setFetchSize in interface java.sql.Statementrows - The number of rows to fetch.
java.sql.SQLException - This exception is thrown if a database-access error occurs, or the
condition 0 <= rows <= this.getMaxRows() is not satisfied.
public int getFetchSize()
throws java.sql.SQLException
getFetchSize in interface java.sql.Statementjava.sql.SQLException
public int getResultSetConcurrency()
throws java.sql.SQLException
getResultSetConcurrency in interface java.sql.Statementjava.sql.SQLException
public int getResultSetType()
throws java.sql.SQLException
getResultSetType in interface java.sql.Statementjava.sql.SQLException
public void addBatch(java.lang.String sql)
throws java.sql.SQLException
addBatch in interface java.sql.Statementjava.sql.SQLException
public void clearBatch()
throws java.sql.SQLException
clearBatch in interface java.sql.Statementjava.sql.SQLException
public int[] executeBatch()
throws java.sql.SQLException
executeBatch in interface java.sql.Statementjava.sql.SQLException
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface java.sql.Statementjava.sql.SQLExceptionpublic void addWarning(java.sql.SQLWarning warning)
warning - The warning to add to this statement.
public boolean getMoreResults(int current)
throws java.sql.SQLException
getMoreResults in interface java.sql.Statementjava.sql.SQLException
public java.sql.ResultSet getGeneratedKeys()
throws java.sql.SQLException
getGeneratedKeys in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException
public int executeUpdate(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
executeUpdate in interface java.sql.Statementjava.sql.SQLException
public boolean execute(java.lang.String sql,
int autoGeneratedKeys)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public boolean execute(java.lang.String sql,
int[] columnIndexes)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public boolean execute(java.lang.String sql,
java.lang.String[] columnNames)
throws java.sql.SQLException
execute in interface java.sql.Statementjava.sql.SQLException
public int getResultSetHoldability()
throws java.sql.SQLException
getResultSetHoldability in interface java.sql.Statementjava.sql.SQLException
protected int findFirstString(java.lang.String stmt,
java.lang.String token,
int offset)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable - required. Not created in this method.
protected void prepareDescribe(java.lang.String statement)
throws ShareNetException
statement - select statement, e.g., "select * from lib.name"
ShareNetException - if an IOException is detected
protected void prepare(java.lang.String statement)
throws ShareNetException
statement - select statement, e.g., "select * from lib.name"
ShareNetException - if an IOException is detected
protected void describe()
throws ShareNetException
ShareNetException - if an IOException is detected
protected void destroy()
throws ShareNetException
ShareNetException - if an IOException is detectedpublic int numFields()
public java.lang.String[] fieldNames()
public int fieldType(int i)
public java.lang.String fieldFormat(int i)
protected com.sas.net.sharenet.Xhrspa3 getAns()
ShareNetException - This exception is never thrown.protected com.sas.net.sharenet.SqlFieldArray getVars()
ShareNetException - This exception is never thrown.protected void setVars(com.sas.net.sharenet.SqlFieldArray vars)
ShareNetException - This exception is never thrown.
public boolean isClosed()
throws java.sql.SQLException
isClosed in interface java.sql.Statementjava.sql.SQLException
public void setPoolable(boolean poolable)
throws java.sql.SQLException
setPoolable in interface java.sql.Statementjava.sql.SQLException
public boolean isPoolable()
throws java.sql.SQLException
isPoolable in interface java.sql.Statementjava.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLException
public void closeOnCompletion()
throws java.sql.SQLException
closeOnCompletion in interface java.sql.Statementjava.sql.SQLException
public boolean isCloseOnCompletion()
throws java.sql.SQLException
isCloseOnCompletion in interface java.sql.Statementjava.sql.SQLException
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||