public class SqlDataRecordSource extends DataRecordSource
Copyright 2001-2007 Partner Software, Inc.
IterableInput.StatuscurrentValues, fieldNames, verbose| Constructor and Description |
|---|
SqlDataRecordSource(Cog state) |
SqlDataRecordSource(SqlConnection connection,
java.sql.PreparedStatement statement) |
SqlDataRecordSource(SqlConnection connection,
java.sql.Statement statement,
java.lang.String query) |
SqlDataRecordSource(SqlConnection connection,
java.lang.String query) |
SqlDataRecordSource(SqlConnection connection,
java.lang.String query,
java.lang.Object... parameters) |
SqlDataRecordSource(SqlDatabase database,
java.lang.String query) |
SqlDataRecordSource(SqlDatabase database,
java.lang.String query,
java.lang.Object... parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeImp()
Subclass implementation of guts of close() method.
|
DataRecordSource |
copy()
Makes a copy of this DataRecordSource, that you can iterate over
separately.
|
boolean |
fetchImp()
Subclass implementation of guts of fetch() method.
|
SqlConnection |
getConnection() |
SqlDatabase |
getDatabase() |
java.lang.Object[] |
getParameters() |
java.lang.String |
getQuery() |
java.sql.Statement |
getStatement() |
boolean |
isOpen() |
void |
openImp()
Subclass implementation of guts of open() method.
|
void |
setConnection(SqlConnection newConnection) |
void |
setDatabase(SqlDatabase newDatabase) |
void |
setParameters(java.lang.Object... newParameters) |
void |
setQuery(java.lang.String newQuery) |
void |
setStatement(java.sql.Statement newStatement) |
java.lang.String |
toString() |
fetch, getCurrentValues, getFetched, getFieldNames, isVerbose, setVerbose, toCogclose, getException, getStatus, isFetchValid, iterator, openpublic SqlDataRecordSource(SqlDatabase database, java.lang.String query)
public SqlDataRecordSource(SqlConnection connection, java.lang.String query)
public SqlDataRecordSource(SqlDatabase database, java.lang.String query, java.lang.Object... parameters)
public SqlDataRecordSource(SqlConnection connection, java.lang.String query, java.lang.Object... parameters)
public SqlDataRecordSource(SqlConnection connection, java.sql.Statement statement, java.lang.String query)
public SqlDataRecordSource(SqlConnection connection, java.sql.PreparedStatement statement)
public SqlDataRecordSource(Cog state)
public void openImp()
throws java.lang.Exception
AbstractIterableInputSubclasses must implement this to do the actual work required by open(). Feel free to throw exceptions; these are caught inside the open() itself and applied to the exception variable. Thus, you can focus on the actual task instead of paperwork.
openImp in class AbstractIterableInput<Naming<java.lang.Object>>java.lang.Exceptionpublic boolean fetchImp()
throws java.lang.Exception
AbstractIterableInputSubclasses must implement this to do the actual work required by fetch(). Feel free to throw exceptions; these are caught inside the fetch() itself and applied to the exception variable. Thus, you can focus on the actual task instead of paperwork.
fetchImp in class AbstractIterableInput<Naming<java.lang.Object>>java.lang.Exceptionpublic void closeImp()
throws java.lang.Exception
AbstractIterableInputSubclasses must implement this to do the actual work required by close(). Feel free to throw exceptions; these are caught inside the close() itself and applied to the exception variable. Thus, you can focus on the actual task instead of paperwork.
closeImp in class AbstractIterableInput<Naming<java.lang.Object>>java.lang.Exceptionpublic DataRecordSource copy()
DataRecordSourcecopy in class DataRecordSourcepublic boolean isOpen()
public java.lang.String toString()
toString in class java.lang.Objectpublic SqlDatabase getDatabase()
public void setDatabase(SqlDatabase newDatabase)
public SqlConnection getConnection()
public void setConnection(SqlConnection newConnection)
public java.sql.Statement getStatement()
public void setStatement(java.sql.Statement newStatement)
public java.lang.String getQuery()
public void setQuery(java.lang.String newQuery)
public java.lang.Object[] getParameters()
public void setParameters(java.lang.Object... newParameters)