- Database - Interface in org.wamblee.test.persistence
-
Represents a database.
- DatabaseBuilder - Class in org.wamblee.test.persistence
-
DatabaseBuilder is used from unit test to obtain a reference to a database
from unit test.
- DatabaseDescription - Class in org.wamblee.test.persistence
-
Description of a specific database.
- DatabaseDescription(String[], String, String) - Constructor for class org.wamblee.test.persistence.DatabaseDescription
-
Constructs the description.
- DatabaseProvider - Interface in org.wamblee.test.persistence
-
Database provider.
- DatabaseStarter - Class in org.wamblee.test.persistence
-
This class is used for starting the database as a main program.
- DatabaseStarter(Class) - Constructor for class org.wamblee.test.persistence.DatabaseStarter
-
Constructs the database starter.
- DatabaseStarter() - Constructor for class org.wamblee.test.persistence.DatabaseStarter
-
Constructs a database starter with the derby database.
- DatabaseUtils - Class in org.wamblee.test.persistence
-
Database utilities is a simple support class for common tasks in working with
databases.
- DatabaseUtils(DataSource) - Constructor for class org.wamblee.test.persistence.DatabaseUtils
-
Constructs the database utils.
- DatabaseUtils.JdbcUnitOfWork<T> - Interface in org.wamblee.test.persistence
-
Represents a unit of work (transaction).
- DatabaseUtils.TableSet - Interface in org.wamblee.test.persistence
-
Represents a set of tables.
- DatabaseUtils.TableSetOperation - Interface in org.wamblee.test.persistence
-
Operation to be executed on a set of tables for each table individually.
- DB_CAPABILITIES_PROP - Static variable in class org.wamblee.test.persistence.DatabaseBuilder
-
Environmment variable by which capabilities of the requested database can
be defined
- DB_PASSWORD_PROP - Static variable in class org.wamblee.test.persistence.ExternalDatabase
-
System property/environment variable that defines the database password.
- DB_URL_PROP - Static variable in class org.wamblee.test.persistence.ExternalDatabase
-
System property/environment variable that defines the database URL.
- DB_USER_PROP - Static variable in class org.wamblee.test.persistence.ExternalDatabase
-
System property/environment variable that defines the database user.
- DefaultUserTransactionFactory - Class in org.wamblee.test.transactions
-
- DefaultUserTransactionFactory() - Constructor for class org.wamblee.test.transactions.DefaultUserTransactionFactory
-
Constructs the factory.
- DerbyDatabase - Class in org.wamblee.test.persistence
-
Derby database setup.
- DerbyDatabase() - Constructor for class org.wamblee.test.persistence.DerbyDatabase
-
Constructs derby database class to allow creation of derby database
instances.
- DerbyDatabase(boolean) - Constructor for class org.wamblee.test.persistence.DerbyDatabase
-
- DerbyDatabaseProvider - Class in org.wamblee.test.persistence
-
Derby database provider.
- DerbyDatabaseProvider() - Constructor for class org.wamblee.test.persistence.DerbyDatabaseProvider
-
Creates a new DerbyDatabaseProvider object.
- doStart() - Method in class org.wamblee.test.persistence.AbstractDatabase
-
To be implemented by subclasses to start the database.
- doStart() - Method in class org.wamblee.test.persistence.DerbyDatabase
-
- doStart() - Method in class org.wamblee.test.persistence.ExternalDatabase
-
- doStop() - Method in class org.wamblee.test.persistence.AbstractDatabase
-
To be implemented by subclasses to stop the database.
- doStop() - Method in class org.wamblee.test.persistence.DerbyDatabase
-
Stops the derby database and cleans up all derby files.
- doStop() - Method in class org.wamblee.test.persistence.ExternalDatabase
-
- dropTable(String) - Method in class org.wamblee.test.persistence.DatabaseUtils
-
Drops a table.
- dropTables(ITableFilterSimple) - Method in class org.wamblee.test.persistence.DatabaseUtils
-
Drops tables.
- getActiveConnections() - Method in class org.wamblee.test.persistence.AbstractDatabase
-
- getActiveConnections() - Method in interface org.wamblee.test.persistence.Database
-
Gets the number of active connections from the pool.
- getBeanManager() - Method in class org.wamblee.test.cdi.BeanManagerSetup
-
Gets the bean manager.
- getCapabilities() - Method in class org.wamblee.test.persistence.AbstractDatabaseProvider
-
- getCapabilities() - Method in class org.wamblee.test.persistence.DerbyDatabaseProvider
-
- getCapabilities() - Method in class org.wamblee.test.persistence.ExternalDatabaseProvider
-
- getContextualEntityManager() - Method in class org.wamblee.test.persistence.JpaBuilder
-
Gets a contextual reference to an entity manager that delegates to the
appropriate (current) one which is active for the current transaction.
- getCustomizer() - Static method in class org.wamblee.test.persistence.JpaCustomizerBuilder
-
Gets the customizer to use.
- getDatabase(String...) - Static method in class org.wamblee.test.persistence.DatabaseBuilder
-
Gets the first database that has all required capabilities.
- getDataSource() - Method in class org.wamblee.test.persistence.JpaTester
-
Gets the datasource.
- getDb() - Method in class org.wamblee.test.persistence.JpaTester
-
Gets the database.
- getDbUtils() - Method in class org.wamblee.test.persistence.JpaTester
-
Gets the database utilities.
- getDescription() - Method in interface org.wamblee.test.persistence.DatabaseProvider
-
Gets the description for the database.
- getDescription() - Method in class org.wamblee.test.persistence.DerbyDatabaseProvider
-
- getDescription() - Method in class org.wamblee.test.persistence.ExternalDatabaseProvider
-
- getExternalJdbcUrl() - Method in interface org.wamblee.test.persistence.Database
-
Gets the external Jdbc URL to connect to this database from other JVMs.
- getExternalJdbcUrl() - Method in class org.wamblee.test.persistence.DerbyDatabase
-
- getExternalJdbcUrl() - Method in class org.wamblee.test.persistence.ExternalDatabase
-
- getInitialContext(Hashtable<?, ?>) - Method in class org.wamblee.test.jndi.StubInitialContextFactory
-
- getJdbcUrl() - Method in interface org.wamblee.test.persistence.Database
-
Gets the Jdbc Url to connect to this database.
- getJdbcUrl() - Method in class org.wamblee.test.persistence.DerbyDatabase
-
- getJdbcUrl() - Method in class org.wamblee.test.persistence.ExternalDatabase
-
- getJndiName() - Method in class org.wamblee.test.persistence.PersistenceUnitDescription
-
- getJpaBuilder() - Method in class org.wamblee.test.persistence.JpaTester
-
Gets the jpa builder.
- getJpaTables() - Method in class org.wamblee.test.persistence.CompositeJpaCustomizer
-
- getJpaTables() - Method in interface org.wamblee.test.persistence.JpaCustomizer
-
Gets the tables specific to the JPA provider.
- getPassword() - Method in interface org.wamblee.test.persistence.Database
-
Gets the password to connect to the database.
- getPassword() - Method in class org.wamblee.test.persistence.DerbyDatabase
-
Gets the password.
- getPassword() - Method in class org.wamblee.test.persistence.ExternalDatabase
-
- getPersistenceUnit() - Method in class org.wamblee.test.persistence.JpaTester
-
Gets the persistence unit.
- getProperty(String) - Method in class org.wamblee.test.persistence.AbstractDatabase
-
- getProxy(T) - Method in class org.wamblee.test.transactions.TransactionProxyFactory
-
- getStatus() - Method in class org.wamblee.test.transactions.SimpleUserTransaction
-
- getSupportedDatabases() - Static method in class org.wamblee.test.persistence.DatabaseBuilder
-
Gets a list of available databases.
- getTableNames(ITableFilterSimple) - Method in class org.wamblee.test.persistence.DatabaseUtils
-
Returns table names based on a table filter.
- getTableSize(String) - Method in class org.wamblee.test.persistence.DatabaseUtils
-
Gets the table size.
- getTransaction() - Method in class org.wamblee.test.transactions.SimpleTransactionManager
-
Gets the user transaction.
- getTransactionScopedEntityManager() - Method in class org.wamblee.test.transactions.TransactionProxyFactory
-
- getUnitName() - Method in class org.wamblee.test.persistence.PersistenceUnitDescription
-
Persistence unit name.
- getUsername() - Method in interface org.wamblee.test.persistence.Database
-
Gets the username to connect to the database.
- getUsername() - Method in class org.wamblee.test.persistence.DerbyDatabase
-
Gets the user name.
- getUsername() - Method in class org.wamblee.test.persistence.ExternalDatabase
-
- setRollbackOnly() - Method in class org.wamblee.test.transactions.SimpleUserTransaction
-
- setTransactionTimeout(int) - Method in class org.wamblee.test.transactions.SimpleUserTransaction
-
- shutdown() - Method in class org.wamblee.test.cdi.BeanManagerSetup
-
Cleans up the bean manager.
- SimpleTransactionManager - Class in org.wamblee.test.transactions
-
Simple transaction manager provides a simple mechanism to manage transactions
in test code through the
UserTransaction
object.
- SimpleTransactionManager(UserTransactionFactory) - Constructor for class org.wamblee.test.transactions.SimpleTransactionManager
-
Constructs the transaction manager.
- SimpleUserTransaction - Class in org.wamblee.test.transactions
-
Represents a user transaction spanning a number of resources.
- SimpleUserTransaction(UserTransactionCallback, TransactionResource<?>...) - Constructor for class org.wamblee.test.transactions.SimpleUserTransaction
-
Constructs the transaction.
- start() - Method in class org.wamblee.test.persistence.AbstractDatabase
-
Starts the database.
- start() - Method in interface org.wamblee.test.persistence.Database
-
Starts a database.
- start() - Method in class org.wamblee.test.persistence.DatabaseStarter
-
Starts the database.
- start() - Method in class org.wamblee.test.persistence.DatabaseUtils
-
Starts the database utils.
- start() - Method in class org.wamblee.test.persistence.JpaBuilder
-
Starts the builder, which in particular, mocks JNDI, binds the datasource
the JNDI where the persistence unit expects it, creates the entity
manager factory, and forces creation of the database schema.
- start() - Method in class org.wamblee.test.persistence.JpaTester
-
Starts the tester.
- status(TransactionResult) - Method in class org.wamblee.test.persistence.LoggingTransactionResultCallback
-
- status(TransactionResult) - Method in class org.wamblee.test.persistence.RequireTransactionStatus
-
- status(TransactionResult) - Method in interface org.wamblee.test.persistence.TransactionResultCallback
-
Result notification.
- stop() - Method in class org.wamblee.test.persistence.AbstractDatabase
-
Stops the database and tests for connection leaks.
- stop() - Method in interface org.wamblee.test.persistence.Database
-
Stops a database.
- stop() - Method in class org.wamblee.test.persistence.DatabaseUtils
-
Stops the database utils, closing any JDBC connections that were created
by this utility.
- stop() - Method in class org.wamblee.test.persistence.JpaBuilder
-
Stops the entity manager factory and disables JNDI mocking.
- stop() - Method in class org.wamblee.test.persistence.JpaTester
-
Stops the tester.
- StubInitialContextFactory - Class in org.wamblee.test.jndi
-
Test initial context factory used for testing software in a Java SE
environnment that uses JNDI to retrieve objects.
- StubInitialContextFactory() - Constructor for class org.wamblee.test.jndi.StubInitialContextFactory
-
- supportsCapabilities(String[]) - Method in class org.wamblee.test.persistence.AbstractDatabaseProvider
-
Standard implementation of the capabalities check.
- supportsCapabilities(String[]) - Method in interface org.wamblee.test.persistence.DatabaseProvider
-
Determines if the database has all capabilities that are requested.