📄 platform.java
字号:
/**
* Returns the SQL for creating the tables defined in the database model.
*
* @param model The database model
* @param dropTablesFirst Whether to drop the tables prior to creating them (anew)
* @param continueOnError Whether to continue executing the sql commands when an error occurred
* @return The SQL statements
*/
public String getCreateTablesSql(Database model, boolean dropTablesFirst, boolean continueOnError);
/**
* Creates the tables defined in the database model.
*
* @param model The database model
* @param params The parameters used in the creation
* @param dropTablesFirst Whether to drop the tables prior to creating them (anew)
* @param continueOnError Whether to continue executing the sql commands when an error occurred
*/
public void createTables(Database model, CreationParameters params, boolean dropTablesFirst, boolean continueOnError) throws DatabaseOperationException;
/**
* Creates the tables defined in the database model.
*
* @param connection The connection to the database
* @param model The database model
* @param params The parameters used in the creation
* @param dropTablesFirst Whether to drop the tables prior to creating them (anew)
* @param continueOnError Whether to continue executing the sql commands when an error occurred
*/
public void createTables(Connection connection, Database model, CreationParameters params, boolean dropTablesFirst, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for creating the tables defined in the database model.
*
* @param model The database model
* @param params The parameters used in the creation
* @param dropTablesFirst Whether to drop the tables prior to creating them (anew)
* @param continueOnError Whether to continue executing the sql commands when an error occurred
* @return The SQL statements
*/
public String getCreateTablesSql(Database model, CreationParameters params, boolean dropTablesFirst, boolean continueOnError);
/**
* Alters the database schema so that it match the given model.
*
* @param desiredDb The desired database schema
* @param continueOnError Whether to continue with the next sql statement when an error occurred
*/
public void alterTables(Database desiredDb, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for altering the database schema so that it match the given model.
*
* @param desiredDb The desired database schema
* @return The SQL statements
*/
public String getAlterTablesSql(Database desiredDb) throws DatabaseOperationException;
/**
* Alters the database schema so that it match the given model.
*
* @param desiredDb The desired database schema
* @param params The parameters used in the creation
* @param continueOnError Whether to continue with the next sql statement when an error occurred
*/
public void alterTables(Database desiredDb, CreationParameters params, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for altering the database schema so that it match the given model.
*
* @param desiredDb The desired database schema
* @param params The parameters used in the creation
* @return The SQL statements
*/
public String getAlterTablesSql(Database desiredDb, CreationParameters params) throws DatabaseOperationException;
/**
* Alters the database schema so that it match the given model.
*
* @param catalog The catalog in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param schema The schema in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param tableTypes The table types to read from the existing database;
* use <code>null</code> or an empty array for the platform-specific default value
* @param desiredDb The desired database schema
* @param continueOnError Whether to continue with the next sql statement when an error occurred
*/
public void alterTables(String catalog, String schema, String[] tableTypes, Database desiredDb, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for altering the database schema so that it match the given model.
*
* @param catalog The catalog in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param schema The schema in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param tableTypes The table types to read from the existing database;
* use <code>null</code> or an empty array for the platform-specific default value
* @param desiredDb The desired database schema
* @return The SQL statements
*/
public String getAlterTablesSql(String catalog, String schema, String[] tableTypes, Database desiredDb) throws DatabaseOperationException;
/**
* Alters the database schema so that it match the given model.
*
* @param catalog The catalog in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param schema The schema in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param tableTypes The table types to read from the existing database;
* use <code>null</code> or an empty array for the platform-specific default value
* @param desiredDb The desired database schema
* @param params The parameters used in the creation
* @param continueOnError Whether to continue with the next sql statement when an error occurred
*/
public void alterTables(String catalog, String schema, String[] tableTypes, Database desiredDb, CreationParameters params, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for altering the database schema so that it match the given model.
*
* @param catalog The catalog in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param schema The schema in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param tableTypes The table types to read from the existing database;
* use <code>null</code> or an empty array for the platform-specific default value
* @param desiredDb The desired database schema
* @param params The parameters used in the creation
* @return The SQL statements
*/
public String getAlterTablesSql(String catalog, String schema, String[] tableTypes, Database desiredDb, CreationParameters params) throws DatabaseOperationException;
/**
* Alters the database schema so that it match the given model.
*
* @param connection A connection to the existing database that shall be modified
* @param desiredDb The desired database schema
* @param continueOnError Whether to continue with the next sql statement when an error occurred
*/
public void alterTables(Connection connection, Database desiredDb, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for altering the database schema so that it match the given model.
*
* @param connection A connection to the existing database that shall be modified
* @param desiredDb The desired database schema
* @return The SQL statements
*/
public String getAlterTablesSql(Connection connection, Database desiredDb) throws DatabaseOperationException;
/**
* Alters the database schema so that it match the given model.
*
* @param connection A connection to the existing database that shall be modified
* @param desiredDb The desired database schema
* @param params The parameters used in the creation
* @param continueOnError Whether to continue with the next sql statement when an error occurred
*/
public void alterTables(Connection connection, Database desiredDb, CreationParameters params, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for altering the database schema so that it match the given model.
*
* @param connection A connection to the existing database that shall be modified
* @param desiredDb The desired database schema
* @param params The parameters used in the creation
* @return The SQL statements
*/
public String getAlterTablesSql(Connection connection, Database desiredDb, CreationParameters params) throws DatabaseOperationException;
/**
* Alters the database schema so that it match the given model.
*
* @param connection A connection to the existing database that shall be modified
* @param catalog The catalog in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param schema The schema in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param tableTypes The table types to read from the existing database;
* use <code>null</code> or an empty array for the platform-specific default value
* @param desiredDb The desired database schema
* @param continueOnError Whether to continue with the next sql statement when an error occurred
*/
public void alterTables(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredDb, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for altering the database schema so that it match the given model.
*
* @param connection A connection to the existing database that shall be modified
* @param catalog The catalog in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param schema The schema in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param tableTypes The table types to read from the existing database;
* use <code>null</code> or an empty array for the platform-specific default value
* @param desiredDb The desired database schema
* @return The SQL statements
*/
public String getAlterTablesSql(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredDb) throws DatabaseOperationException;
/**
* Alters the database schema so that it match the given model.
*
* @param connection A connection to the existing database that shall be modified
* @param catalog The catalog in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param schema The schema in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param tableTypes The table types to read from the existing database;
* use <code>null</code> or an empty array for the platform-specific default value
* @param desiredDb The desired database schema
* @param params The parameters used in the creation
* @param continueOnError Whether to continue with the next sql statement when an error occurred
*/
public void alterTables(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredDb, CreationParameters params, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for altering the database schema so that it match the given model.
*
* @param connection A connection to the existing database that shall be modified
* @param catalog The catalog in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param schema The schema in the existing database to read (can be a pattern);
* use <code>null</code> for the platform-specific default value
* @param tableTypes The table types to read from the existing database;
* use <code>null</code> or an empty array for the platform-specific default value
* @param desiredDb The desired database schema
* @param params The parameters used in the creation
* @return The SQL statements
*/
public String getAlterTablesSql(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredDb, CreationParameters params) throws DatabaseOperationException;
/**
* Drops the specified table and all foreign keys pointing to it.
*
* @param model The database model
* @param table The table to drop
* @param continueOnError Whether to continue executing the sql commands when an error occurred
*/
public void dropTable(Database model, Table table, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for dropping the given table and all foreign keys pointing to it.
*
* @param model The database model
* @param table The table to drop
* @param continueOnError Whether to continue executing the sql commands when an error occurred
* @return The SQL statements
*/
public String getDropTableSql(Database model, Table table, boolean continueOnError);
/**
* Drops the specified table and all foreign keys pointing to it.
*
* @param connection The connection to the database
* @param model The database model
* @param table The table to drop
* @param continueOnError Whether to continue executing the sql commands when an error occurred
*/
public void dropTable(Connection connection, Database model, Table table, boolean continueOnError) throws DatabaseOperationException;
/**
* Drops the tables defined in the given database.
*
* @param model The database model
* @param continueOnError Whether to continue executing the sql commands when an error occurred
*/
public void dropTables(Database model, boolean continueOnError) throws DatabaseOperationException;
/**
* Returns the SQL for dropping the tables defined in the given database.
*
* @param model The database model
* @param continueOnError Whether to continue executing the sql commands when an error occurred
* @return The SQL statements
*/
public String getDropTablesSql(Database model, boolean continueOnError);
/**
* Drops the tables defined in the given database.
*
* @param connection The connection to the database
* @param model The database model
* @param continueOnError Whether to continue executing the sql commands when an error occurred
*/
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;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -