Uses of Class
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.model.Database
Package
Description
This package mainly contains the database platform abstraction,
org.apache.ddlutils.Platform
and the factory to create instances for individual platforms,
org.apache.ddlutils.PlatformFactory
.
Contains the algorithm for comparing two database models and determining
what needs to be changed to migrate one to the other.
The
org.apache.ddlutils.io
package contains a classes for input
and output of both the database schemas and data files.
This package contains the classes making up the database model.
This package contains the platform implementations for the individual databases.
This package contains the platform implementation for the
DB2 UDB database.
This package contains the platform implementation for the
Apache Derby database.
This package contains the platform implementation for the
Firebird database.
This package contains the platform implementation for the
HSQLDB database.
This package contains the platform implementation for the
Interbase database.
This package contains the platform implementation for the
MaxDB database.
This package contains the platform implementation for the
Mckoi database.
This package contains the platform implementation for the
Sql Server database.
This package contains the platform implementation for the
MySQL database.
This package contains the platform implementation for the
Oracle database.
This package contains the platform implementation for the
PostgreSQL database.
This package contains the platform implementation for the
SAP DB database.
This package contains the platform implementation for the
Sybase ASE database.
The
org.apache.ddlutils.task
package contains the Ant
tasks provided by DdlUtils.-
Uses of Database in edu.internet2.middleware.grouper.app.adobe
Modifier and TypeMethodDescriptionstatic void
GrouperAdobeAuth.createTableAdobeAuth
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperAdobeGroup.createTableAdobeGroup
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperAdobeMembership.createTableAdobeMembership
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperAdobeUser.createTableAdobeUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.app.azure
Modifier and TypeMethodDescriptionstatic void
GrouperAzureAuth.createTableAzureAuth
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperAzureGroup.createTableAzureGroup
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperAzureMembership.createTableAzureMembership
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperAzureUser.createTableAzureUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.app.boxProvisioner
Modifier and TypeMethodDescriptionstatic void
GrouperBoxAuth.createTableBoxAuth
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperBoxGroup.createTableBoxGroup
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperBoxMembership.createTableBoxMembership
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperBoxUser.createTableBoxUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.app.duo
Modifier and TypeMethodDescriptionstatic void
GrouperDuoGroup.createTableDuoGroup
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperDuoMembership.createTableDuoMembership
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperDuoUser.createTableDuoUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.app.duo.role
Modifier and TypeMethodDescriptionstatic void
GrouperDuoRoleUser.createTableDuoUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.app.google
Modifier and TypeMethodDescriptionstatic void
GrouperGoogleAuth.createTableGoogleAuth
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperGoogleGroup.createTableGoogleGroup
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperGoogleMembership.createTableGoogleMembership
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperGoogleUser.createTableGoogleUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.app.okta
Modifier and TypeMethodDescriptionstatic void
GrouperOktaAuth.createTableOktaAuth
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperOktaGroup.createTableOktaGroup
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperOktaMembership.createTableOktaMembership
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperOktaUser.createTableOktaUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.app.remedyV2
Modifier and TypeMethodDescriptionstatic void
GrouperRemedyAuth.createTableRemedyAuth
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperRemedyGroup.createTableRemedyGroup
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperRemedyMembership.createTableRemedyMembership
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperRemedyUser.createTableRemedyUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.app.remedyV2.digitalMarketplace
Modifier and TypeMethodDescriptionstatic void
GrouperDigitalMarketplaceAuth.createTableDigitalMarketplaceAuth
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperDigitalMarketplaceGroup.createTableDigitalMarketplaceGroup
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperDigitalMarketplaceMembership.createTableDigitalMarketplaceMembership
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperDigitalMarketplaceUser.createTableDigitalMarketplaceUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.app.scim2Provisioning
Modifier and TypeMethodDescriptionstatic void
GrouperScim2Group.createTableScimGroup
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperScim2Membership.createTableScimMembership
(DdlVersionBean ddlVersionBean, Database database) static void
GrouperScim2User.createTableScimUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.app.teamDynamix
Modifier and TypeMethodDescriptionstatic void
TeamDynamixAuth.createTableTeamDynamixAuth
(DdlVersionBean ddlVersionBean, Database database) static void
TeamDynamixGroup.createTableTeamDynamixGroup
(DdlVersionBean ddlVersionBean, Database database) static void
TeamDynamixMembership.createTableTeamDynamixMembership
(DdlVersionBean ddlVersionBean, Database database) static void
TeamDynamixUser.createTableTeamDynamixUser
(DdlVersionBean ddlVersionBean, Database database) -
Uses of Database in edu.internet2.middleware.grouper.ddl
Modifier and TypeMethodDescriptionDdlVersionBean.getDatabase()
database we are operating onDdlVersionBean.getOldDatabase()
current state of the database (after modifications :) ).Modifier and TypeMethodDescriptionstatic void
GrouperDdl2_5_38.addGrouperSyncStartColumns
(Database database, DdlVersionBean ddlVersionBean) static void
GrouperDdl2_6_16.addMemberIdIndexColumn
(Database database, DdlVersionBean ddlVersionBean) static void
GrouperDdl2_6_16.addMemberIdIndexComment
(Database database, DdlVersionBean ddlVersionBean) static void
GrouperDdl2_6_16.addMemberIdIndexIndex
(Database database, DdlVersionBean ddlVersionBean) static void
GrouperDdl2_5_38.adjustGrouperSyncMembershipIndex
(Database database, DdlVersionBean ddlVersionBean) static void
GrouperDdl2_6_18.attributeAssignDisallowNotNull
(Database database, DdlVersionBean ddlVersionBean) static void
GrouperDdlUtils.ddlutilsDropColumn
(Database database, String tableName, String columnName, DdlVersionBean ddlVersionBean) find and drop a column if it is there.static Column
GrouperDdlUtils.ddlutilsFindColumn
(Database database, String tableName, String columnName, boolean exceptionIfNotFound) find table, if not exist, throw exceptionstatic Index
GrouperDdlUtils.ddlutilsFindIndex
(Database database, String tableName, String indexName) add an index on a table.static ForeignKey
GrouperDdlUtils.ddlutilsFindOrCreateForeignKey
(Database database, String tableName, String foreignKeyName, String foreignTableName, String localColumnName, String foreignColumnName) add a foreign key on a table.static ForeignKey
GrouperDdlUtils.ddlutilsFindOrCreateForeignKey
(Database database, String tableName, String foreignKeyName, String foreignTableName, List<String> localColumnNames, List<String> foreignColumnNames) add a foreign key on a table.static Index
GrouperDdlUtils.ddlutilsFindOrCreateIndex
(Database database, DdlVersionBean ddlVersionBean, String tableName, String indexName, String customScript, boolean unique, String... columnNames) add an index on a table.static Index
GrouperDdlUtils.ddlutilsFindOrCreateIndex
(Database database, String tableName, String indexName, boolean unique, String... columnNames) add an index on a table.static Table
GrouperDdlUtils.ddlutilsFindOrCreateTable
(Database database, String tableName) find or create tablestatic Table
GrouperDdlUtils.ddlutilsFindTable
(Database database, String tableName, boolean exceptionOnNotFound) find table, if not exist, throw exceptionstatic ForeignKey
GrouperDdlUtils.ddlutilsForeignKeyExists
(Database database, String tableName, String foreignKey) static void
GrouperDdlUtils.dropAllForeignKeys
(Database database) drop all foreign keys from a ddlutils database objectstatic void
GrouperDdlUtils.removeAllTables
(Database database) remove all objects, the foreign keys, then the tablesvoid
DdlVersionBean.setDatabase
(Database database) database we are operating onvoid
DdlVersionBean.setOldDatabase
(Database oldDatabase) current state of the database (after modifications :) ).static void
GrouperDdl2_5_40.updateSyncMembershipView
(Database database, DdlVersionBean ddlVersionBean, boolean dropFirst) void
DdlVersionable.updateVersionFromPrevious
(Database database, DdlVersionBean ddlVersionBean) check to see if the changes are already made, and then add the changes to the database object that should be used to update from the previous versionabstract void
GrouperDdl.updateVersionFromPrevious
(Database database, DdlVersionBean ddlVersionBean) abstract void
GrouperMidpointDdl.updateVersionFromPrevious
(Database database, DdlVersionBean ddlVersionBean) abstract void
GrouperMockDdl.updateVersionFromPrevious
(Database database, DdlVersionBean ddlVersionBean) abstract void
GrouperOrgDdl.updateVersionFromPrevious
(Database database, DdlVersionBean ddlVersionBean) abstract void
GrouperTestDdl.updateVersionFromPrevious
(Database database, DdlVersionBean ddlVersionBean) abstract void
SubjectDdl.updateVersionFromPrevious
(Database database, DdlVersionBean ddlVersionBean) static void
GrouperDdlUtils.upgradeDatabaseVersion
(Database baseVersion, Database oldVersion, int baseDatabaseVersion, String objectName, int upgradeToVersion, StringBuilder additionalScripts, StringBuilder fullScript, Platform platform, Connection connection, String schema, SqlBuilder sqlBuilder) get a database object of a certain version based on the existing database, and tack on all the enums up to the version we want (if any)static void
GrouperDdlUtils.upgradeDatabaseVersion
(Database baseVersion, Database oldVersion, int baseDatabaseVersion, String objectName, int upgradeToVersion, StringBuilder additionalScripts, StringBuilder fullScript, Platform platform, Connection connection, String schema, SqlBuilder sqlBuilder, GrouperDdlCompareResult grouperDdlCompareResult) get a database object of a certain version based on the existing database, and tack on all the enums up to the version we want (if any)ModifierConstructorDescriptionDdlVersionBean
(String objectName, Platform platform, Connection connection, String schema, SqlBuilder sqlBuilder, Database oldDatabase, Database database, StringBuilder additionalScripts, boolean isDestinationVersion, int buildingToVersion, StringBuilder fullScript, int theBuildingFromVersion) construct -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils
Modifier and TypeMethodDescriptionPlatform.readModelFromDatabase
(String name) Reads the database model from the live database as specified by the data source set for this platform.Platform.readModelFromDatabase
(String name, String catalog, String schema, String[] tableTypes) Reads the database model from the live database as specified by the data source set for this platform.Platform.readModelFromDatabase
(Connection connection, String name) Reads the database model from the live database to which the given connection is pointing.Platform.readModelFromDatabase
(Connection connection, String name, String catalog, String schema, String[] tableTypes) Reads the database model from the live database to which the given connection is pointing.Modifier and TypeMethodDescriptionvoid
Platform.alterTables
(Database desiredDb, boolean continueOnError) Alters the database schema so that it match the given model.void
Platform.alterTables
(Database desiredDb, CreationParameters params, boolean continueOnError) Alters the database schema so that it match the given model.void
Platform.alterTables
(String catalog, String schema, String[] tableTypes, Database desiredDb, boolean continueOnError) Alters the database schema so that it match the given model.void
Platform.alterTables
(String catalog, String schema, String[] tableTypes, Database desiredDb, CreationParameters params, boolean continueOnError) Alters the database schema so that it match the given model.void
Platform.alterTables
(Connection connection, Database desiredDb, boolean continueOnError) Alters the database schema so that it match the given model.void
Platform.alterTables
(Connection connection, Database desiredDb, CreationParameters params, boolean continueOnError) Alters the database schema so that it match the given model.void
Platform.alterTables
(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredDb, boolean continueOnError) Alters the database schema so that it match the given model.void
Platform.alterTables
(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredDb, CreationParameters params, boolean continueOnError) Alters the database schema so that it match the given model.void
Platform.createTables
(Database model, boolean dropTablesFirst, boolean continueOnError) Creates the tables defined in the database model.void
Platform.createTables
(Database model, CreationParameters params, boolean dropTablesFirst, boolean continueOnError) Creates the tables defined in the database model.void
Platform.createTables
(Connection connection, Database model, boolean dropTablesFirst, boolean continueOnError) Creates the tables defined in the database model.void
Platform.createTables
(Connection connection, Database model, CreationParameters params, boolean dropTablesFirst, boolean continueOnError) Creates the tables defined in the database model.void
Deletes the given bean from the database, assuming the primary key values are specified.void
Platform.delete
(Connection connection, Database model, org.apache.commons.beanutils.DynaBean dynaBean) Deletes the row which maps to the given bean from the database.void
Drops the specified table and all foreign keys pointing to it.void
Platform.dropTable
(Connection connection, Database model, Table table, boolean continueOnError) Drops the specified table and all foreign keys pointing to it.void
Platform.dropTables
(Database model, boolean continueOnError) Drops the tables defined in the given database.void
Platform.dropTables
(Connection connection, Database model, boolean continueOnError) Drops the tables defined in the given database.Queries for a list of dyna beans representing rows of the given query.Queries for a list of dyna beans representing rows of the given query.Queries for a list of dyna beans representing rows of the given query.Queries for a list of dyna beans representing rows of the given query.Platform.fetch
(Database model, String sql, Collection parameters) Queries for a list of dyna beans representing rows of the given query.Platform.fetch
(Database model, String sql, Collection parameters, int start, int end) Queries for a list of dyna beans representing rows of the given query.Platform.fetch
(Database model, String sql, Collection parameters, Table[] queryHints) Queries for a list of dyna beans representing rows of the given query.Platform.fetch
(Database model, String sql, Collection parameters, Table[] queryHints, int start, int end) Queries for a list of dyna beans representing rows of the given query.Platform.getAlterTablesSql
(Database desiredDb) Returns the SQL for altering the database schema so that it match the given model.Platform.getAlterTablesSql
(Database desiredDb, CreationParameters params) Returns the SQL for altering the database schema so that it match the given model.Platform.getAlterTablesSql
(String catalog, String schema, String[] tableTypes, Database desiredDb) Returns the SQL for altering the database schema so that it match the given model.Platform.getAlterTablesSql
(String catalog, String schema, String[] tableTypes, Database desiredDb, CreationParameters params) Returns the SQL for altering the database schema so that it match the given model.Platform.getAlterTablesSql
(Connection connection, Database desiredDb) Returns the SQL for altering the database schema so that it match the given model.Platform.getAlterTablesSql
(Connection connection, Database desiredDb, CreationParameters params) Returns the SQL for altering the database schema so that it match the given model.Platform.getAlterTablesSql
(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredDb) Returns the SQL for altering the database schema so that it match the given model.Platform.getAlterTablesSql
(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredDb, CreationParameters params) Returns the SQL for altering the database schema so that it match the given model.Platform.getCreateTablesSql
(Database model, boolean dropTablesFirst, boolean continueOnError) Returns the SQL for creating the tables defined in the database model.Platform.getCreateTablesSql
(Database model, CreationParameters params, boolean dropTablesFirst, boolean continueOnError) Returns the SQL for creating the tables defined in the database model.Platform.getDeleteSql
(Database model, org.apache.commons.beanutils.DynaBean dynaBean) Returns the sql for deleting the given bean from the database.Platform.getDropTableSql
(Database model, Table table, boolean continueOnError) Returns the SQL for dropping the given table and all foreign keys pointing to it.Platform.getDropTablesSql
(Database model, boolean continueOnError) Returns the SQL for dropping the tables defined in the given database.Platform.getInsertSql
(Database model, org.apache.commons.beanutils.DynaBean dynaBean) Returns the sql for inserting the given bean.Platform.getUpdateSql
(Database model, org.apache.commons.beanutils.DynaBean dynaBean) Returns the sql for updating the given bean in the database.void
Platform.insert
(Database model, Collection dynaBeans) Inserts the given beans in the database, assuming the primary key values are specified.void
Inserts the given DynaBean in the database, assuming the primary key values are specified.void
Platform.insert
(Connection connection, Database model, Collection dynaBeans) Inserts the given beans.void
Platform.insert
(Connection connection, Database model, org.apache.commons.beanutils.DynaBean dynaBean) Inserts the bean.Performs the given SQL query returning an iterator over the results.Performs the given SQL query returning an iterator over the results.Platform.query
(Database model, String sql, Collection parameters) Performs the given parameterized SQL query returning an iterator over the results.Platform.query
(Database model, String sql, Collection parameters, Table[] queryHints) Performs the given parameterized SQL query returning an iterator over the results.void
Stores the given bean in the database, inserting it if there is no primary key otherwise the bean is updated in the database.void
Updates the given bean in the database, assuming the primary key values are specified.void
Platform.update
(Connection connection, Database model, org.apache.commons.beanutils.DynaBean dynaBean) Updates the row which maps to the given bean. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.alteration
Modifier and TypeMethodDescriptionvoid
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.void
Applies this change to the given database.Compares the two models and returns the changes necessary to create the second model from the first one.ModelComparator.compareTables
(Database sourceModel, Table sourceTable, Database targetModel, Table targetTable) Compares the two tables and returns the changes necessary to create the second table from the first one. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.io
Modifier and TypeMethodDescriptionDatabaseDataIO.getConfiguredDataReader
(Platform platform, Database model) Returns a data reader instance configured for the given platform (which needs to be connected to a live database) and model.void
Sets the database model.void
DatabaseDataIO.writeDataToDatabase
(Platform platform, Database model, InputStream[] inputs) Reads the data from the given input streams and writes it to the database to which the given platform is connected.void
DatabaseDataIO.writeDataToDatabase
(Platform platform, Database model, Reader[] inputs) Reads the data from the given input readers and writes it to the database to which the given platform is connected.void
DatabaseDataIO.writeDataToDatabase
(Platform platform, Database model, String[] files) Reads the data from the indicated files and writes it to the database to which the given platform is connected.void
DatabaseDataIO.writeDataToXML
(Platform platform, Database model, DataWriter writer) Writes the data contained in the database to which the given platform is connected, as XML to the given data writer.void
DatabaseDataIO.writeDataToXML
(Platform platform, Database model, OutputStream output, String xmlEncoding) Writes the data contained in the database to which the given platform is connected, as XML to the given output stream (which won't be closed by this method).void
DatabaseDataIO.writeDataToXML
(Platform platform, Database model, Writer output, String xmlEncoding) Writes the data contained in the database to which the given platform is connected, as XML to the given output writer (which won't be closed by this method).void
DatabaseDataIO.writeDataToXML
(Platform platform, Database model, String path, String xmlEncoding) Writes the data contained in the database to which the given platform is connected, as XML to the given output stream (which won't be closed by this method).void
Writes the DTD for data xml files for the given database model, to the specified writer.ModifierConstructorDescriptionDataToDatabaseSink
(Platform platform, Database model) Creates a new sink instance.DynaSqlCreateRule
(Database model, Table table, DataSink receiver) Creates a new creation rule that creates dyna bean instances. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.model
-
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform
Modifier and TypeMethodDescriptionJdbcModelReader.getDatabase
(Connection connection, String name) Reads the database model from the given connection.JdbcModelReader.getDatabase
(Connection connection, String name, String catalog, String schema, String[] tableTypes) Reads the database model from the given connection.PlatformImplBase.readModelFromDatabase
(String name) Reads the database model from the live database as specified by the data source set for this platform.PlatformImplBase.readModelFromDatabase
(String name, String catalog, String schema, String[] tableTypes) Reads the database model from the live database as specified by the data source set for this platform.PlatformImplBase.readModelFromDatabase
(Connection connection, String name) Reads the database model from the live database to which the given connection is pointing.PlatformImplBase.readModelFromDatabase
(Connection connection, String name, String catalog, String schema, String[] tableTypes) Reads the database model from the live database to which the given connection is pointing.Modifier and TypeMethodDescriptionvoid
SqlBuilder.alterDatabase
(Database currentModel, Database desiredModel, CreationParameters params) Generates the DDL to modify an existing database so the schema matches the specified database schema by using drops, modifications and additions.void
PlatformImplBase.alterTables
(Database desiredDb, boolean continueOnError) Alters the database schema so that it match the given model.void
PlatformImplBase.alterTables
(Database desiredDb, CreationParameters params, boolean continueOnError) Alters the database schema so that it match the given model.void
PlatformImplBase.alterTables
(String catalog, String schema, String[] tableTypes, Database desiredModel, boolean continueOnError) Alters the database schema so that it match the given model.void
PlatformImplBase.alterTables
(String catalog, String schema, String[] tableTypes, Database desiredModel, CreationParameters params, boolean continueOnError) Alters the database schema so that it match the given model.void
PlatformImplBase.alterTables
(Connection connection, Database desiredModel, boolean continueOnError) Alters the database schema so that it match the given model.void
PlatformImplBase.alterTables
(Connection connection, Database desiredModel, CreationParameters params, boolean continueOnError) Alters the database schema so that it match the given model.void
PlatformImplBase.alterTables
(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredModel, boolean continueOnError) Alters the database schema so that it match the given model.void
PlatformImplBase.alterTables
(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredModel, CreationParameters params, boolean continueOnError) Alters the database schema so that it match the given model.protected String
PlatformImplBase.createDeleteSql
(Database model, SqlDynaClass dynaClass, SqlDynaProperty[] primaryKeys, org.apache.commons.beanutils.DynaBean bean) Creates the SQL for deleting an object of the given type.void
SqlBuilder.createExternalForeignKeys
(Database database) Creates the external foreignkey creation statements for all tables in the database.void
SqlBuilder.createExternalForeignKeys
(Database database, Table table) Creates external foreignkey creation statements if necessary.protected String
PlatformImplBase.createInsertSql
(Database model, SqlDynaClass dynaClass, SqlDynaProperty[] properties, org.apache.commons.beanutils.DynaBean bean) Creates the SQL for inserting an object of the given type.protected ModelBasedResultSetIterator
PlatformImplBase.createResultSetIterator
(Database model, ResultSet resultSet, Table[] queryHints) Creates an iterator over the given result set.protected String
PlatformImplBase.createSelectLastInsertIdSql
(Database model, SqlDynaClass dynaClass) Creates the SQL for querying for the id generated by the last insert of an object of the given type.void
SqlBuilder.createTable
(Database database, Table table) Outputs the DDL to create the table along with any non-external constraints as well as with external primary keys and indices (but not foreign keys).void
SqlBuilder.createTable
(Database database, Table table, Map parameters) Outputs the DDL to create the table along with any non-external constraints as well as with external primary keys and indices (but not foreign keys).void
PlatformImplBase.createTables
(Database model, boolean dropTablesFirst, boolean continueOnError) Creates the tables defined in the database model.void
PlatformImplBase.createTables
(Database model, CreationParameters params, boolean dropTablesFirst, boolean continueOnError) Creates the tables defined in the database model.void
PlatformImplBase.createTables
(Connection connection, Database model, boolean dropTablesFirst, boolean continueOnError) Creates the tables defined in the database model.void
PlatformImplBase.createTables
(Connection connection, Database model, CreationParameters params, boolean dropTablesFirst, boolean continueOnError) Creates the tables defined in the database model.void
SqlBuilder.createTables
(Database database) Outputs the DDL required to drop and (re)create all tables in the database model.void
SqlBuilder.createTables
(Database database, boolean dropTables) Outputs the DDL required to drop (if requested) and (re)create all tables in the database model.void
SqlBuilder.createTables
(Database database, CreationParameters params, boolean dropTables) Outputs the DDL required to drop (if requested) and (re)create all tables in the database model.protected void
SqlBuilder.createTemporaryTable
(Database database, Table table, Map parameters) Outputs the DDL to create the given temporary table.protected String
PlatformImplBase.createUpdateSql
(Database model, SqlDynaClass dynaClass, SqlDynaProperty[] primaryKeys, SqlDynaProperty[] properties, org.apache.commons.beanutils.DynaBean bean) Creates the SQL for updating an object of the given type.void
Deletes the given bean from the database, assuming the primary key values are specified.void
PlatformImplBase.delete
(Connection connection, Database model, org.apache.commons.beanutils.DynaBean dynaBean) Deletes the row which maps to the given bean from the database.void
Drops the specified table and all foreign keys pointing to it.void
PlatformImplBase.dropTable
(Connection connection, Database model, Table table, boolean continueOnError) Drops the specified table and all foreign keys pointing to it.void
Outputs the DDL required to drop the given table.void
PlatformImplBase.dropTables
(Database model, boolean continueOnError) Drops the tables defined in the given database.void
PlatformImplBase.dropTables
(Connection connection, Database model, boolean continueOnError) Drops the tables defined in the given database.void
SqlBuilder.dropTables
(Database database) Outputs the DDL required to drop the database.protected void
SqlBuilder.dropTemporaryTable
(Database database, Table table) Outputs the DDL to drop the given temporary table.Queries for a list of dyna beans representing rows of the given query.Queries for a list of dyna beans representing rows of the given query.Queries for a list of dyna beans representing rows of the given query.Queries for a list of dyna beans representing rows of the given query.PlatformImplBase.fetch
(Database model, String sql, Collection parameters) Queries for a list of dyna beans representing rows of the given query.PlatformImplBase.fetch
(Database model, String sql, Collection parameters, int start, int end) Queries for a list of dyna beans representing rows of the given query.PlatformImplBase.fetch
(Database model, String sql, Collection parameters, Table[] queryHints) Queries for a list of dyna beans representing rows of the given query.PlatformImplBase.fetch
(Database model, String sql, Collection parameters, Table[] queryHints, int start, int end) Queries for a list of dyna beans representing rows of the given query.PlatformImplBase.getAlterTablesSql
(Database desiredDb) Returns the SQL for altering the database schema so that it match the given model.PlatformImplBase.getAlterTablesSql
(Database desiredDb, CreationParameters params) Returns the SQL for altering the database schema so that it match the given model.PlatformImplBase.getAlterTablesSql
(String catalog, String schema, String[] tableTypes, Database desiredModel) Returns the SQL for altering the database schema so that it match the given model.PlatformImplBase.getAlterTablesSql
(String catalog, String schema, String[] tableTypes, Database desiredModel, CreationParameters params) Returns the SQL for altering the database schema so that it match the given model.PlatformImplBase.getAlterTablesSql
(Connection connection, Database desiredModel) Returns the SQL for altering the database schema so that it match the given model.PlatformImplBase.getAlterTablesSql
(Connection connection, Database desiredModel, CreationParameters params) Returns the SQL for altering the database schema so that it match the given model.PlatformImplBase.getAlterTablesSql
(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredModel) Returns the SQL for altering the database schema so that it match the given model.PlatformImplBase.getAlterTablesSql
(Connection connection, String catalog, String schema, String[] tableTypes, Database desiredModel, CreationParameters params) Returns the SQL for altering the database schema so that it match the given model.PlatformImplBase.getCreateTablesSql
(Database model, boolean dropTablesFirst, boolean continueOnError) Returns the SQL for creating the tables defined in the database model.PlatformImplBase.getCreateTablesSql
(Database model, CreationParameters params, boolean dropTablesFirst, boolean continueOnError) Returns the SQL for creating the tables defined in the database model.PlatformImplBase.getDeleteSql
(Database model, org.apache.commons.beanutils.DynaBean dynaBean) Returns the sql for deleting the given bean from the database.PlatformImplBase.getDropTableSql
(Database model, Table table, boolean continueOnError) Returns the SQL for dropping the given table and all foreign keys pointing to it.PlatformImplBase.getDropTablesSql
(Database model, boolean continueOnError) Returns the SQL for dropping the tables defined in the given database.PlatformImplBase.getInsertSql
(Database model, org.apache.commons.beanutils.DynaBean dynaBean) Returns the sql for inserting the given bean.protected Table
SqlBuilder.getRealTargetTableFor
(Database targetModel, Table sourceTable, Table targetTable) Creates the target table object that differs from the given target table only in the indices.protected Table
SqlBuilder.getTemporaryTableFor
(Database targetModel, Table targetTable) Creates a temporary table object that corresponds to the given table.PlatformImplBase.getUpdateSql
(Database model, org.apache.commons.beanutils.DynaBean dynaBean) Returns the sql for updating the given bean in the database.void
PlatformImplBase.insert
(Database model, Collection dynaBeans) Inserts the given beans in the database, assuming the primary key values are specified.void
Inserts the given DynaBean in the database, assuming the primary key values are specified.void
PlatformImplBase.insert
(Connection connection, Database model, Collection dynaBeans) Inserts the given beans.void
PlatformImplBase.insert
(Connection connection, Database model, org.apache.commons.beanutils.DynaBean dynaBean) Inserts the bean.protected void
PlatformImplBase.postprocessModelFromDatabase
(Database model) Allows the platform to postprocess the model just read from the database.protected void
SqlBuilder.processChange
(Database currentModel, Database desiredModel, AddPrimaryKeyChange change) Processes the addition of a primary key to a table.protected void
SqlBuilder.processChange
(Database currentModel, Database desiredModel, CreationParameters params, AddForeignKeyChange change) Processes the change representing the addition of a foreign key.protected void
SqlBuilder.processChange
(Database currentModel, Database desiredModel, CreationParameters params, AddIndexChange change) Processes the change representing the addition of an index.protected void
SqlBuilder.processChange
(Database currentModel, Database desiredModel, CreationParameters params, AddTableChange change) Processes the change representing the addition of a table.protected void
SqlBuilder.processChange
(Database currentModel, Database desiredModel, CreationParameters params, ModelChange change) This is a fall-through callback which generates a warning because a specific change type wasn't handled.protected void
SqlBuilder.processChange
(Database currentModel, Database desiredModel, CreationParameters params, RemoveForeignKeyChange change) Processes the change representing the removal of a foreign key.protected void
SqlBuilder.processChange
(Database currentModel, Database desiredModel, CreationParameters params, RemoveIndexChange change) Processes the change representing the removal of an index.protected void
SqlBuilder.processChange
(Database currentModel, Database desiredModel, CreationParameters params, RemoveTableChange change) Processes the change representing the removal of a table.protected void
SqlBuilder.processChanges
(Database currentModel, Database desiredModel, List changes, CreationParameters params) Processes the changes.protected void
SqlBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner.protected void
SqlBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, CreationParameters params, Collection changes) Processes the changes to the structure of tables.protected void
SqlBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, String tableName, Map parameters, List changes) Processes the changes to the structure of a single table.Performs the given SQL query returning an iterator over the results.Performs the given SQL query returning an iterator over the results.PlatformImplBase.query
(Database model, String sql, Collection parameters) Performs the given parameterized SQL query returning an iterator over the results.PlatformImplBase.query
(Database model, String sql, Collection parameters, Table[] queryHints) Performs the given parameterized SQL query returning an iterator over the results.protected void
JdbcModelReader.sortForeignKeys
(Database model) Sorts the foreign keys in the tables of the model.void
Stores the given bean in the database, inserting it if there is no primary key otherwise the bean is updated in the database.void
Updates the given bean in the database, assuming the primary key values are specified.void
PlatformImplBase.update
(Connection connection, Database model, org.apache.commons.beanutils.DynaBean dynaBean) Updates the row which maps to the given bean.protected void
SqlBuilder.writeEmbeddedForeignKeysStmt
(Database database, Table table) Writes the foreign key constraints inside a create table () clause.protected void
SqlBuilder.writeExternalForeignKeyCreateStmt
(Database database, Table table, ForeignKey key) Writes a single foreign key constraint using a alter table statement.protected void
SqlBuilder.writeTableCreationStmt
(Database database, Table table, Map parameters) Writes the table creation statement without the statement end.ModifierConstructorDescriptionModelBasedResultSetIterator
(PlatformImplBase platform, Database model, ResultSet resultSet, Table[] queryHints, boolean cleanUpAfterFinish) Creates a new iterator. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.db2
Modifier and TypeMethodDescriptionprotected void
Db2Builder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
Db2Builder.processChange
(Database currentModel, Database desiredModel, PrimaryKeyChange change) Processes the change of the primary key of a table.protected void
Db2Builder.processChange
(Database currentModel, Database desiredModel, RemoveColumnChange change) Processes the removal of a column from a table.protected void
Db2Builder.processChange
(Database currentModel, Database desiredModel, RemovePrimaryKeyChange change) Processes the removal of a primary key from a table.protected void
Db2Builder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.derby
Modifier and TypeMethodDescriptionprotected void
DerbyBuilder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
DerbyBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.firebird
Modifier and TypeMethodDescriptionvoid
FirebirdBuilder.createExternalForeignKeys
(Database database) Creates the external foreignkey creation statements for all tables in the database.void
FirebirdBuilder.createTable
(Database database, Table table, Map parameters) Outputs the DDL to create the table along with any non-external constraints as well as with external primary keys and indices (but not foreign keys).protected void
FirebirdBuilder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
FirebirdBuilder.processChange
(Database currentModel, Database desiredModel, RemoveColumnChange change) Processes the removal of a column from a table.protected void
FirebirdBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.hsqldb
Modifier and TypeMethodDescriptionprotected void
HsqlDbBuilder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
HsqlDbBuilder.processChange
(Database currentModel, Database desiredModel, RemoveColumnChange change) Processes the removal of a column from a table.protected void
HsqlDbBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.interbase
Modifier and TypeMethodDescriptionvoid
InterbaseBuilder.createTable
(Database database, Table table, Map parameters) Outputs the DDL to create the table along with any non-external constraints as well as with external primary keys and indices (but not foreign keys).protected void
InterbaseBuilder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
InterbaseBuilder.processChange
(Database currentModel, Database desiredModel, RemoveColumnChange change) Processes the removal of a column from a table.protected void
InterbaseBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.maxdb
Modifier and TypeMethodDescriptionprotected void
MaxDbBuilder.writeExternalForeignKeyCreateStmt
(Database database, Table table, ForeignKey key) Writes a single foreign key constraint using a alter table statement. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.mckoi
Modifier and TypeMethodDescriptionvoid
MckoiBuilder.createTable
(Database database, Table table, Map parameters) Outputs the DDL to create the table along with any non-external constraints as well as with external primary keys and indices (but not foreign keys).protected void
MckoiBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.mssql
Modifier and TypeMethodDescriptionvoid
MSSqlBuilder.createTable
(Database database, Table table, Map parameters) Outputs the DDL to create the table along with any non-external constraints as well as with external primary keys and indices (but not foreign keys).protected void
MSSqlBuilder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
MSSqlBuilder.processChange
(Database currentModel, Database desiredModel, RemoveColumnChange change) Processes the removal of a column from a table.protected void
MSSqlBuilder.processChange
(Database currentModel, Database desiredModel, RemovePrimaryKeyChange change) Processes the removal of a primary key from a table.protected void
MSSqlBuilder.processChanges
(Database currentModel, Database desiredModel, List changes, CreationParameters params) Processes the changes.protected void
MSSqlBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.mysql
Modifier and TypeMethodDescriptionprotected void
MySqlBuilder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
MySqlBuilder.processChange
(Database currentModel, Database desiredModel, PrimaryKeyChange change) Processes the change of the primary key of a table.protected void
MySqlBuilder.processChange
(Database currentModel, Database desiredModel, RemoveColumnChange change) Processes the removal of a column from a table.protected void
MySqlBuilder.processChange
(Database currentModel, Database desiredModel, RemovePrimaryKeyChange change) Processes the removal of a primary key from a table.protected void
MySqlBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.oracle
Modifier and TypeMethodDescriptionvoid
Oracle8Builder.createTable
(Database database, Table table, Map parameters) Outputs the DDL to create the table along with any non-external constraints as well as with external primary keys and indices (but not foreign keys).protected void
Oracle8Builder.createTemporaryTable
(Database database, Table table, Map parameters) Outputs the DDL to create the given temporary table.protected void
Oracle8Builder.dropTemporaryTable
(Database database, Table table) Outputs the DDL to drop the given temporary table.protected void
Oracle8Builder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
Oracle8Builder.processChange
(Database currentModel, Database desiredModel, RemoveColumnChange change) Processes the removal of a column from a table.protected void
Oracle8Builder.processChange
(Database currentModel, Database desiredModel, RemovePrimaryKeyChange change) Processes the removal of a primary key from a table.protected void
Oracle8Builder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.postgresql
Modifier and TypeMethodDescriptionvoid
PostgreSqlBuilder.createTable
(Database database, Table table, Map parameters) Outputs the DDL to create the table along with any non-external constraints as well as with external primary keys and indices (but not foreign keys).protected void
PostgreSqlBuilder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
PostgreSqlBuilder.processChange
(Database currentModel, Database desiredModel, RemoveColumnChange change) Processes the removal of a column from a table.protected void
PostgreSqlBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.sapdb
Modifier and TypeMethodDescriptionprotected void
SapDbBuilder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
SapDbBuilder.processChange
(Database currentModel, Database desiredModel, ColumnDefaultValueChange change) Processes the change of the default value of a column.protected void
SapDbBuilder.processChange
(Database currentModel, Database desiredModel, ColumnRequiredChange change) Processes the change of the required constraint of a column.protected void
SapDbBuilder.processChange
(Database currentModel, Database desiredModel, RemoveColumnChange change) Processes the removal of a column from a table.protected void
SapDbBuilder.processChange
(Database currentModel, Database desiredModel, RemovePrimaryKeyChange change) Processes the removal of a primary key from a table.protected void
SapDbBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner.protected void
SapDbBuilder.writeExternalForeignKeyCreateStmt
(Database database, Table table, ForeignKey key) Writes a single foreign key constraint using a alter table statement. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.platform.sybase
Modifier and TypeMethodDescriptionvoid
SybaseBuilder.createTable
(Database database, Table table, Map parameters) Outputs the DDL to create the table along with any non-external constraints as well as with external primary keys and indices (but not foreign keys).Queries for a list of dyna beans representing rows of the given query.SybasePlatform.fetch
(Database model, String sql, Collection parameters, Table[] queryHints, int start, int end) Queries for a list of dyna beans representing rows of the given query.protected void
SybaseBuilder.processChange
(Database currentModel, Database desiredModel, AddColumnChange change) Processes the addition of a column to a table.protected void
SybaseBuilder.processChange
(Database currentModel, Database desiredModel, ColumnDefaultValueChange change) Processes the change of the default value of a column.protected void
SybaseBuilder.processChange
(Database currentModel, Database desiredModel, RemoveColumnChange change) Processes the removal of a column from a table.protected void
SybaseBuilder.processChange
(Database currentModel, Database desiredModel, RemovePrimaryKeyChange change) Processes the removal of a primary key from a table.protected void
SybaseBuilder.processChanges
(Database currentModel, Database desiredModel, List changes, CreationParameters params) Processes the changes.protected void
SybaseBuilder.processTableStructureChanges
(Database currentModel, Database desiredModel, Table sourceTable, Table targetTable, Map parameters, List changes) Allows database-specific implementations to handle changes in a database specific manner.Performs the given SQL query returning an iterator over the results.SybasePlatform.query
(Database model, String sql, Collection parameters, Table[] queryHints) Performs the given parameterized SQL query returning an iterator over the results. -
Uses of Database in edu.internet2.middleware.grouper.ext.org.apache.ddlutils.task
Modifier and TypeMethodDescriptionprotected abstract Database
DatabaseTaskBase.readModel()
Reads the database model on which the commands will work.Modifier and TypeMethodDescriptionabstract void
Command.execute
(DatabaseTaskBase task, Database model) Executes this command.void
CreateDatabaseCommand.execute
(DatabaseTaskBase task, Database model) Executes this command.void
DropDatabaseCommand.execute
(DatabaseTaskBase task, Database model) Executes this command.void
WriteDataToDatabaseCommand.execute
(DatabaseTaskBase task, Database model) Executes this command.void
WriteDataToFileCommand.execute
(DatabaseTaskBase task, Database model) Executes this command.void
WriteDtdToFileCommand.execute
(DatabaseTaskBase task, Database model) Executes this command.void
WriteSchemaSqlToFileCommand.execute
(DatabaseTaskBase task, Database model) Executes this command.void
WriteSchemaToDatabaseCommand.execute
(DatabaseTaskBase task, Database model) Executes this command.protected void
DatabaseTaskBase.executeCommands
(Database model) Executes the commands.protected CreationParameters
DatabaseCommandWithCreationParameters.getFilteredParameters
(Database model, String platformName, boolean isCaseSensitive) Filters the parameters for the given model and platform.