Navigation Menu

Skip to content

Commit

Permalink
Removed references to the Dynabeans
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jun 25, 2010
1 parent 8a5cfee commit ae503e4
Show file tree
Hide file tree
Showing 38 changed files with 0 additions and 12,423 deletions.
Expand Up @@ -215,32 +215,6 @@ public interface Platform
*/
public void returnConnection(Connection connection);

/**
* Executes a series of sql statements which must be seperated by the delimiter
* configured as {@link PlatformInfo#getSqlCommandDelimiter()} of the info object
* of this platform.
*
* @param sql The sql statements to execute
* @param continueOnError Whether to continue executing the sql commands when an error occurred
* @return The number of errors
*/
public int evaluateBatch(String sql, boolean continueOnError) throws DatabaseOperationException;

/**
* Executes a series of sql statements which must be seperated by the delimiter
* configured as {@link PlatformInfo#getSqlCommandDelimiter()} of the info object
* of this platform.
*
* TODO: consider outputting a collection of String or some kind of statement
* object from the SqlBuilder instead of having to parse strings here
*
* @param connection The connection to the database
* @param sql The sql statements to execute
* @param continueOnError Whether to continue executing the sql commands when an error occurred
* @return The number of errors
*/
public int evaluateBatch(Connection connection, String sql, boolean continueOnError) throws DatabaseOperationException;

/**
* Performs a shutdown at the database. This is necessary for some embedded databases which otherwise
* would be locked and thus would refuse other connections. Note that this does not change the database
Expand Down Expand Up @@ -594,278 +568,6 @@ public interface Platform
*/
public void dropTables(Connection connection, Database model, boolean continueOnError) throws DatabaseOperationException;

/**
* Performs the given SQL query returning an iterator over the results.
*
* @param model The database model to use
* @param sql The sql query to perform
* @return An iterator for the dyna beans resulting from the query
*/
public Iterator query(Database model, String sql) throws DatabaseOperationException;

/**
* Performs the given parameterized SQL query returning an iterator over the results.
*
* @param model The database model to use
* @param sql The sql query to perform
* @param parameters The query parameter values
* @return An iterator for the dyna beans resulting from the query
*/
public Iterator query(Database model, String sql, Collection parameters) throws DatabaseOperationException;

/**
* Performs the given SQL query returning an iterator over the results.
*
* @param model The database model to use
* @param sql The sql query to perform
* @param queryHints The tables that are queried (optional)
* @return An iterator for the dyna beans resulting from the query
*/
public Iterator query(Database model, String sql, Table[] queryHints) throws DatabaseOperationException;

/**
* Performs the given parameterized SQL query returning an iterator over the results.
*
* @param model The database model to use
* @param sql The sql query to perform
* @param parameters The query parameter values
* @param queryHints The tables that are queried (optional)
* @return An iterator for the dyna beans resulting from the query
*/
public Iterator query(Database model, String sql, Collection parameters, Table[] queryHints) throws DatabaseOperationException;

/**
* Queries for a list of dyna beans representing rows of the given query.
* In contrast to the {@link #query(Database, String)} method all beans will be
* materialized and the connection will be closed before returning the beans.
*
* @param model The database model to use
* @param sql The sql query
* @return The dyna beans resulting from the query
*/
public List fetch(Database model, String sql) throws DatabaseOperationException;

/**
* Queries for a list of dyna beans representing rows of the given query.
* In contrast to the {@link #query(Database, String, Collection)} method
* all beans will be materialized and the connection will be closed before
* returning the beans.
*
* @param model The database model to use
* @param sql The parameterized query
* @param parameters The parameter values
* @return The dyna beans resulting from the query
*/
public List fetch(Database model, String sql, Collection parameters) throws DatabaseOperationException;

/**
* Queries for a list of dyna beans representing rows of the given query.
* In contrast to the {@link #query(Database, String)} method all beans will be
* materialized and the connection will be closed before returning the beans.
*
* @param model The database model to use
* @param sql The sql query
* @param queryHints The tables that are queried (optional)
* @return The dyna beans resulting from the query
*/
public List fetch(Database model, String sql, Table[] queryHints) throws DatabaseOperationException;

/**
* Queries for a list of dyna beans representing rows of the given query.
* In contrast to the {@link #query(Database, String, Collection)} method
* all beans will be materialized and the connection will be closed before
* returning the beans.
*
* @param model The database model to use
* @param sql The parameterized query
* @param parameters The parameter values
* @param queryHints The tables that are queried (optional)
* @return The dyna beans resulting from the query
*/
public List fetch(Database model, String sql, Collection parameters, Table[] queryHints) throws DatabaseOperationException;

/**
* Queries for a list of dyna beans representing rows of the given query.
* In contrast to the {@link #query(Database, String)} method all beans will be
* materialized and the connection will be closed before returning the beans.
* Also, the two int parameters specify which rows of the result set to use.
* If there are more rows than desired, they will be ignored (and not read
* from the database).
*
* @param model The database model to use
* @param sql The sql query
* @param start Row number to start from (0 for first row)
* @param end Row number to stop at (inclusively; -1 for last row)
* @return The dyna beans resulting from the query
*/
public List fetch(Database model, String sql, int start, int end) throws DatabaseOperationException;

/**
* Queries for a list of dyna beans representing rows of the given query.
* In contrast to the {@link #query(Database, String, Collection)} method all
* beans will be materialized and the connection will be closed before returning
* the beans. Also, the two int parameters specify which rows of the result set
* to use. If there are more rows than desired, they will be ignored (and not
* read from the database).
*
* @param model The database model to use
* @param sql The parameterized sql query
* @param parameters The parameter values
* @param start Row number to start from (0 for first row)
* @param end Row number to stop at (inclusively; -1 for last row)
* @return The dyna beans resulting from the query
*/
public List fetch(Database model, String sql, Collection parameters, int start, int end) throws DatabaseOperationException;

/**
* Queries for a list of dyna beans representing rows of the given query.
* In contrast to the {@link #query(Database, String, Table[])} method all
* beans will be materialized and the connection will be closed before
* returning the beans. Also, the two int parameters specify which rows of
* the result set to use. If there are more rows than desired, they will be
* ignored (and not read from the database).
*
* @param model The database model to use
* @param sql The sql query
* @param queryHints The tables that are queried (optional)
* @param start Row number to start from (0 for first row)
* @param end Row number to stop at (inclusively; -1 for last row)
* @return The dyna beans resulting from the query
*/
public List fetch(Database model, String sql, Table[] queryHints, int start, int end) throws DatabaseOperationException;

/**
* Queries for a list of dyna beans representing rows of the given query.
* In contrast to the {@link #query(Database, String, Collection, Table[])}
* method all beans will be materialized and the connection will be closed
* before returning the beans. Also, the two int parameters specify which
* rows of the result set to use. If there are more rows than desired, they
* will be ignored (and not read from the database).
*
* @param model The database model to use
* @param sql The parameterized sql query
* @param parameters The parameter values
* @param queryHints The tables that are queried (optional)
* @param start Row number to start from (0 for first row)
* @param end Row number to stop at (inclusively; -1 for last row)
* @return The dyna beans resulting from the query
*/
public List fetch(Database model, String sql, Collection parameters, Table[] queryHints, int start, int end) throws DatabaseOperationException;

/**
* Stores the given bean in the database, inserting it if there is no primary key
* otherwise the bean is updated in the database.
*
* @param model The database model to use
* @param dynaBean The bean to store
*/
public void store(Database model, DynaBean dynaBean) throws DatabaseOperationException;

/**
* Returns the sql for inserting the given bean.
*
* @param model The database model to use
* @param dynaBean The bean
* @return The insert sql
*/
public String getInsertSql(Database model, DynaBean dynaBean);

/**
* Inserts the given DynaBean in the database, assuming the primary key values are specified.
*
* @param model The database model to use
* @param dynaBean The bean to insert
*/
public void insert(Database model, DynaBean dynaBean) throws DatabaseOperationException;

/**
* Inserts the bean. If one of the columns is an auto-incremented column, then the
* bean will also be updated with the column value generated by the database.
* Note that the connection will not be closed by this method.
*
* @param connection The database connection
* @param model The database model to use
* @param dynaBean The bean
*/
public void insert(Connection connection, Database model, DynaBean dynaBean) throws DatabaseOperationException;

/**
* Inserts the given beans in the database, assuming the primary key values are specified.
* Note that a batch insert is used for subsequent beans of the same type.
* Also the properties for the primary keys are not updated in the beans. Hence you should
* not use this method when the primary key values are defined by the database (via a sequence
* or identity constraint).
*
* @param model The database model to use
* @param dynaBeans The beans to insert
*/
public void insert(Database model, Collection dynaBeans) throws DatabaseOperationException;

/**
* Inserts the given beans. Note that a batch insert is used for subsequent beans of the same type.
* Also the properties for the primary keys are not updated in the beans. Hence you should
* not use this method when the primary key values are defined by the database (via a sequence
* or identity constraint).
* This method does not close the connection.
*
* @param connection The database connection
* @param model The database model to use
* @param dynaBeans The beans
*/
public void insert(Connection connection, Database model, Collection dynaBeans) throws DatabaseOperationException;

/**
* Returns the sql for updating the given bean in the database.
*
* @param model The database model to use
* @param dynaBean The bean
* @return The update sql
*/
public String getUpdateSql(Database model, DynaBean dynaBean);

/**
* Updates the given bean in the database, assuming the primary key values are specified.
*
* @param model The database model to use
* @param dynaBean The bean
*/
public void update(Database model, DynaBean dynaBean) throws DatabaseOperationException;

/**
* Updates the row which maps to the given bean.
*
* @param connection The database connection
* @param model The database model to use
* @param dynaBean The bean
*/
public void update(Connection connection, Database model, DynaBean dynaBean) throws DatabaseOperationException;

/**
* Returns the sql for deleting the given bean from the database.
*
* @param model The database model to use
* @param dynaBean The bean
* @return The sql
*/
public String getDeleteSql(Database model, DynaBean dynaBean);

/**
* Deletes the given bean from the database, assuming the primary key values are specified.
*
* @param model The database model to use
* @param dynaBean The bean to delete
*/
public void delete(Database model, DynaBean dynaBean) throws DatabaseOperationException;

/**
* Deletes the row which maps to the given bean from the database.
*
* @param model The database model to use
* @param dynaBean The bean
* @param connection The database connection
*/
public void delete(Connection connection, Database model, DynaBean dynaBean) throws DatabaseOperationException;

/**
* Reads the database model from the live database as specified by the data source set for
* this platform.
Expand Down

0 comments on commit ae503e4

Please sign in to comment.