A B C D E G J L M O P R S T U

A

AbstractDatabase - Class in org.wamblee.support.persistence
 
AbstractDatabase() - Constructor for class org.wamblee.support.persistence.AbstractDatabase
 
AbstractDatabaseProvider - Class in org.wamblee.support.persistence
 
AbstractDatabaseProvider() - Constructor for class org.wamblee.support.persistence.AbstractDatabaseProvider
 
accept(String) - Method in class org.wamblee.support.persistence.CompositeJpaTables
 
add(ITableFilterSimple) - Method in class org.wamblee.support.persistence.CompositeJpaTables
 

B

bind(String, Object) - Method in class org.wamblee.support.jndi.StubInitialContext
 
bind(Name, Object) - Method in class org.wamblee.support.jndi.StubInitialContext
 

C

CAPABILIITIES - Static variable in class org.wamblee.support.persistence.DerbyDatabaseProvider
Capabilities of this type of database.
CAPABILIITIES - Static variable in class org.wamblee.support.persistence.ExternalDatabaseProvider
Capabilities of this type of database.
CAPABILITY_EXTERNAL - Static variable in interface org.wamblee.support.persistence.DatabaseProvider
Capability that all databases that are external have.
CAPABILITY_IN_MEMORY - Static variable in interface org.wamblee.support.persistence.DatabaseProvider
Capability that all databases that run inmemory have.
cleanDatabase() - Method in class org.wamblee.support.persistence.DatabaseUtils
 
cleanDatabase(ITableFilterSimple) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
CompositeJpaCustomizer - Class in org.wamblee.support.persistence
 
CompositeJpaCustomizer(List<JpaCustomizer>) - Constructor for class org.wamblee.support.persistence.CompositeJpaCustomizer
 
CompositeJpaTables - Class in org.wamblee.support.persistence
 
CompositeJpaTables() - Constructor for class org.wamblee.support.persistence.CompositeJpaTables
 
contains(String) - Method in interface org.wamblee.support.persistence.DatabaseUtils.TableSet
 
countResultSet(ResultSet) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
create() - Method in interface org.wamblee.support.persistence.DatabaseProvider
Creates a database instance that represents a running instance of that database.
create() - Method in class org.wamblee.support.persistence.DerbyDatabaseProvider
 
create() - Method in class org.wamblee.support.persistence.ExternalDatabaseProvider
 
createConnection() - Method in class org.wamblee.support.persistence.DerbyDatabase
 
createDataSource() - Method in class org.wamblee.support.persistence.AbstractDatabase
This method must be called from the start method.
createDbTester() - Method in class org.wamblee.support.persistence.DatabaseUtils
 
createDbTester(String[]) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
createFactory() - Method in class org.wamblee.support.persistence.JpaBuilder
Creates a new entity manager factory.
customize(PersistenceUnitDescription, Map<String, String>) - Method in class org.wamblee.support.persistence.CompositeJpaCustomizer
 
customize(PersistenceUnitDescription, Map<String, String>) - Method in interface org.wamblee.support.persistence.JpaCustomizer
 

D

Database - Interface in org.wamblee.support.persistence
Represents a database.
DatabaseBuilder - Class in org.wamblee.support.persistence
DatabaseBuilder is used from unit test to obtain a reference to a database from unit test.
DatabaseDescription - Class in org.wamblee.support.persistence
Description of a specific database.
DatabaseDescription(String[], String, String) - Constructor for class org.wamblee.support.persistence.DatabaseDescription
Constructs the description.
DatabaseProvider - Interface in org.wamblee.support.persistence
Database provider.
DatabaseStarter - Class in org.wamblee.support.persistence
This class is used for starting the database from ant.
DatabaseStarter(Class) - Constructor for class org.wamblee.support.persistence.DatabaseStarter
Constructs the database starter.
DatabaseStarter() - Constructor for class org.wamblee.support.persistence.DatabaseStarter
Constructs a database starter with the derby database.
DatabaseUtils - Class in org.wamblee.support.persistence
Database utilities is a simple support class for common tasks in working with databases.
DatabaseUtils(DataSource, ITableFilterSimple) - Constructor for class org.wamblee.support.persistence.DatabaseUtils
Constructs the database utils.
DatabaseUtils.JdbcUnitOfWork<T> - Interface in org.wamblee.support.persistence
 
DatabaseUtils.TableSet - Interface in org.wamblee.support.persistence
 
DatabaseUtils.TableSetOperation - Interface in org.wamblee.support.persistence
 
DB_PASSWORD_PROP - Static variable in class org.wamblee.support.persistence.ExternalDatabase
System property/environment variable that defines the database password.
DB_URL_PROP - Static variable in class org.wamblee.support.persistence.ExternalDatabase
System property/environment variable that defines the database URL.
DB_USER_PROP - Static variable in class org.wamblee.support.persistence.ExternalDatabase
System property/environment variable that defines the database user.
DerbyDatabase - Class in org.wamblee.support.persistence
Derby database setup.
DerbyDatabase() - Constructor for class org.wamblee.support.persistence.DerbyDatabase
Constructs derby database class to allow creation of derby database instances.
DerbyDatabase(boolean) - Constructor for class org.wamblee.support.persistence.DerbyDatabase
 
DerbyDatabaseProvider - Class in org.wamblee.support.persistence
 
DerbyDatabaseProvider() - Constructor for class org.wamblee.support.persistence.DerbyDatabaseProvider
Creates a new DerbyDatabaseProvider object.
doStart() - Method in class org.wamblee.support.persistence.AbstractDatabase
 
doStart() - Method in class org.wamblee.support.persistence.DerbyDatabase
 
doStart() - Method in class org.wamblee.support.persistence.ExternalDatabase
 
doStop() - Method in class org.wamblee.support.persistence.AbstractDatabase
 
doStop() - Method in class org.wamblee.support.persistence.DerbyDatabase
Stops the derby database and cleans up all derby files.
doStop() - Method in class org.wamblee.support.persistence.ExternalDatabase
 
dropTable(String) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
dropTables() - Method in class org.wamblee.support.persistence.DatabaseUtils
 
dropTables(ITableFilterSimple) - Method in class org.wamblee.support.persistence.DatabaseUtils
 

E

emptyTable(String) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
emptyTables() - Method in class org.wamblee.support.persistence.DatabaseUtils
 
emptyTables(ITableFilterSimple) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
execute(Connection) - Method in interface org.wamblee.support.persistence.DatabaseUtils.JdbcUnitOfWork
 
execute(String) - Method in interface org.wamblee.support.persistence.DatabaseUtils.TableSetOperation
 
execute(JpaBuilder.JpaUnitOfWork<T>) - Method in class org.wamblee.support.persistence.JpaBuilder
Executes a unit of work.
execute(EntityManager) - Method in interface org.wamblee.support.persistence.JpaBuilder.JpaUnitOfWork
Executes the unit of work.
executeInTransaction(DatabaseUtils.JdbcUnitOfWork<T>) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
executeOnTables(ITableFilterSimple, DatabaseUtils.TableSetOperation) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
executeQuery(Connection, String) - Method in class org.wamblee.support.persistence.DatabaseUtils
Executes an SQL query.
executeQuery(Connection, String, Object) - Method in class org.wamblee.support.persistence.DatabaseUtils
Executes a query with a single argument.
executeQuery(Connection, String, Object[]) - Method in class org.wamblee.support.persistence.DatabaseUtils
Executes a query.
executeSql(String) - Method in class org.wamblee.support.persistence.DatabaseUtils
Executes an SQL statement within a transaction.
executeSql(String, Object) - Method in class org.wamblee.support.persistence.DatabaseUtils
Executes an SQL statement within a transaction.
executeSql(String, Object[]) - Method in class org.wamblee.support.persistence.DatabaseUtils
Executes an sql statement.
executeUpdate(Connection, String, Object...) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
ExternalDatabase - Class in org.wamblee.support.persistence
Database that encapsulates connection to an external database.
ExternalDatabase() - Constructor for class org.wamblee.support.persistence.ExternalDatabase
 
ExternalDatabaseProvider - Class in org.wamblee.support.persistence
 
ExternalDatabaseProvider() - Constructor for class org.wamblee.support.persistence.ExternalDatabaseProvider
 

G

getActiveConnections() - Method in class org.wamblee.support.persistence.AbstractDatabase
 
getActiveConnections() - Method in interface org.wamblee.support.persistence.Database
Gets the number of active connections from the pool.
getCapabilities() - Method in class org.wamblee.support.persistence.AbstractDatabaseProvider
 
getCapabilities() - Method in class org.wamblee.support.persistence.DerbyDatabaseProvider
 
getCapabilities() - Method in class org.wamblee.support.persistence.ExternalDatabaseProvider
 
getCustomizer() - Static method in class org.wamblee.support.persistence.JpaCustomizerBuilder
 
getDatabase(String...) - Static method in class org.wamblee.support.persistence.DatabaseBuilder
Gets the first database that has all required capabilities.
getDataSource() - Method in class org.wamblee.support.persistence.JpaTester
 
getDb() - Method in class org.wamblee.support.persistence.JpaTester
 
getDbTester() - Method in class org.wamblee.support.persistence.JpaTester
 
getDbUtils() - Method in class org.wamblee.support.persistence.JpaTester
 
getDescription() - Method in interface org.wamblee.support.persistence.DatabaseProvider
Gets the description for the database.
getDescription() - Method in class org.wamblee.support.persistence.DerbyDatabaseProvider
 
getDescription() - Method in class org.wamblee.support.persistence.ExternalDatabaseProvider
 
getExternalJdbcUrl() - Method in interface org.wamblee.support.persistence.Database
Gets the external Jdbc URL to connect to this database from other JVMs.
getExternalJdbcUrl() - Method in class org.wamblee.support.persistence.DerbyDatabase
 
getExternalJdbcUrl() - Method in class org.wamblee.support.persistence.ExternalDatabase
 
getInitialContext(Hashtable<?, ?>) - Method in class org.wamblee.support.jndi.StubInitialContextFactory
 
getJdbcUrl() - Method in interface org.wamblee.support.persistence.Database
Gets the Jdbc Url to connect to this database.
getJdbcUrl() - Method in class org.wamblee.support.persistence.DerbyDatabase
 
getJdbcUrl() - Method in class org.wamblee.support.persistence.ExternalDatabase
 
getJndiName() - Method in class org.wamblee.support.persistence.PersistenceUnitDescription
 
getJpaBuilder() - Method in class org.wamblee.support.persistence.JpaTester
 
getJpaTables() - Method in class org.wamblee.support.persistence.CompositeJpaCustomizer
 
getJpaTables() - Method in interface org.wamblee.support.persistence.JpaCustomizer
 
getPassword() - Method in interface org.wamblee.support.persistence.Database
Gets the password to connect to the database.
getPassword() - Method in class org.wamblee.support.persistence.DerbyDatabase
Gets the password.
getPassword() - Method in class org.wamblee.support.persistence.ExternalDatabase
 
getPersistenceUnit() - Method in class org.wamblee.support.persistence.JpaTester
 
getProperty(String) - Method in class org.wamblee.support.persistence.AbstractDatabase
 
getProxy(T) - Method in class org.wamblee.support.persistence.TransactionProxyFactory
 
getProxy() - Method in class org.wamblee.support.ThreadSpecificProxyFactory
Gets the proxy that delegates to the thread-specific instance set by set(Object)
getSupportedDatabases() - Static method in class org.wamblee.support.persistence.DatabaseBuilder
Gets a list of available databases.
getTableNames() - Method in class org.wamblee.support.persistence.DatabaseUtils
 
getTableNames(ITableFilterSimple) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
getTables() - Method in class org.wamblee.support.persistence.PersistenceUnitDescription
 
getTableSize(String) - Method in class org.wamblee.support.persistence.DatabaseUtils
 
getTransactionScopedEntityManager() - Method in class org.wamblee.support.persistence.TransactionProxyFactory
 
getUnitName() - Method in class org.wamblee.support.persistence.PersistenceUnitDescription
 
getUsername() - Method in interface org.wamblee.support.persistence.Database
Gets the username to connect to the database.
getUsername() - Method in class org.wamblee.support.persistence.DerbyDatabase
Gets the user name.
getUsername() - Method in class org.wamblee.support.persistence.ExternalDatabase
 

J

JpaBuilder - Class in org.wamblee.support.persistence
Utility for building an appropriately configured EntityManagerFactory.
JpaBuilder(DataSource, PersistenceUnitDescription) - Constructor for class org.wamblee.support.persistence.JpaBuilder
Constructs the builder.
JpaBuilder.JpaUnitOfWork<T> - Interface in org.wamblee.support.persistence
Callback interface to execute some JPA code within a transaction with the entitymanager to use provided as input.
JpaCustomizer - Interface in org.wamblee.support.persistence
JPA customizer is used to customize properties for a given JPA implementation.
JpaCustomizerBuilder - Class in org.wamblee.support.persistence
 
JpaCustomizerBuilder() - Constructor for class org.wamblee.support.persistence.JpaCustomizerBuilder
 
JpaTester - Class in org.wamblee.support.persistence
This class is the entry point for JPA tests.
JpaTester(PersistenceUnitDescription) - Constructor for class org.wamblee.support.persistence.JpaTester
Constructs the tester.

L

lookup(String) - Method in class org.wamblee.support.jndi.StubInitialContext
 
lookup(Name) - Method in class org.wamblee.support.jndi.StubInitialContext
 

M

main(String[]) - Static method in class org.wamblee.support.persistence.DatabaseStarter
Execution as a main program.

O

org.wamblee.support - package org.wamblee.support
 
org.wamblee.support.jndi - package org.wamblee.support.jndi
 
org.wamblee.support.persistence - package org.wamblee.support.persistence
 

P

PersistenceUnitDescription - Class in org.wamblee.support.persistence
 
PersistenceUnitDescription(String, String, ITableFilterSimple) - Constructor for class org.wamblee.support.persistence.PersistenceUnitDescription
 

R

register() - Static method in class org.wamblee.support.jndi.StubInitialContextFactory
This method must be called to register this initial context factory as the default implementation for JNDI.

S

set(T) - Method in class org.wamblee.support.ThreadSpecificProxyFactory
Sets the thread-specific service.
start() - Method in class org.wamblee.support.persistence.AbstractDatabase
 
start() - Method in interface org.wamblee.support.persistence.Database
Starts a database.
start() - Method in class org.wamblee.support.persistence.DatabaseStarter
Starts the database.
start() - Method in class org.wamblee.support.persistence.DatabaseUtils
Starts the database utils.
start() - Method in class org.wamblee.support.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.support.persistence.JpaTester
Starts the tester.
stop() - Method in class org.wamblee.support.persistence.AbstractDatabase
 
stop() - Method in interface org.wamblee.support.persistence.Database
Stops a database.
stop() - Method in class org.wamblee.support.persistence.DatabaseUtils
Stops the database utils, closing any JDBC connections that were created by this utility.
stop() - Method in class org.wamblee.support.persistence.JpaBuilder
Stops the entity manager factory and disables JNDI mocking.
stop() - Method in class org.wamblee.support.persistence.JpaTester
Stops the tester.
StubInitialContext - Class in org.wamblee.support.jndi
 
StubInitialContext() - Constructor for class org.wamblee.support.jndi.StubInitialContext
 
StubInitialContextFactory - Class in org.wamblee.support.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.support.jndi.StubInitialContextFactory
 
supportsCapabilities(String[]) - Method in class org.wamblee.support.persistence.AbstractDatabaseProvider
 
supportsCapabilities(String[]) - Method in interface org.wamblee.support.persistence.DatabaseProvider
Determines if the database has all capabilities that are requested.

T

ThreadSpecificProxyFactory<T> - Class in org.wamblee.support
Thread-specific proxy is used to create implementations of interfaces that delegate to a thread-specific implementation of the service.
ThreadSpecificProxyFactory(Class<T>) - Constructor for class org.wamblee.support.ThreadSpecificProxyFactory
Constructs the factory.
toString() - Method in class org.wamblee.support.persistence.DatabaseDescription
 
TransactionProxyFactory<T> - Class in org.wamblee.support.persistence
This utility makes sure that each invocation on a certain interface is carried out within a JPA unit of work.
TransactionProxyFactory(JpaBuilder, Class<T>) - Constructor for class org.wamblee.support.persistence.TransactionProxyFactory
Constructs the transaction proxy.

U

unbind(String) - Method in class org.wamblee.support.jndi.StubInitialContext
 
unbind(Name) - Method in class org.wamblee.support.jndi.StubInitialContext
 
unregister() - Static method in class org.wamblee.support.jndi.StubInitialContextFactory
Unregisters the initial context factory

A B C D E G J L M O P R S T U

Copyright © 2010. All Rights Reserved.