- DataSourceDestination - Class in com.ninja_squad.dbsetup.destination
-
A destination which wraps a DataSource and gets its connection from the wrapped DataSource
- DataSourceDestination(DataSource) - Constructor for class com.ninja_squad.dbsetup.destination.DataSourceDestination
-
Constructor
- dateBinder() - Static method in class com.ninja_squad.dbsetup.bind.Binders
-
Returns a binder suitable for columns of type DATE.
- dateSequence() - Static method in class com.ninja_squad.dbsetup.generator.ValueGenerators
-
Returns a value generator that returns a sequence of dates, starting at a given date and incremented by a given
time, specified as an increment and a calendar field.
- DateSequenceValueGenerator - Class in com.ninja_squad.dbsetup.generator
-
A
ValueGenerator
that returns a sequence of dates, starting at a given zoned date time and incremented by a
given time, specified as an increment and a temporal unit.
- DateSequenceValueGenerator.CalendarField - Enum in com.ninja_squad.dbsetup.generator
-
- DbSetup - Class in com.ninja_squad.dbsetup
-
Allows executing a sequence of database operations.
- DbSetup(Destination, Operation) - Constructor for class com.ninja_squad.dbsetup.DbSetup
-
- DbSetup(Destination, Operation, BinderConfiguration) - Constructor for class com.ninja_squad.dbsetup.DbSetup
-
- DbSetupRuntimeException - Exception in com.ninja_squad.dbsetup
-
A runtime exception indicating that a DbSetup failed.
- DbSetupRuntimeException() - Constructor for exception com.ninja_squad.dbsetup.DbSetupRuntimeException
-
- DbSetupRuntimeException(String, Throwable) - Constructor for exception com.ninja_squad.dbsetup.DbSetupRuntimeException
-
- DbSetupRuntimeException(String) - Constructor for exception com.ninja_squad.dbsetup.DbSetupRuntimeException
-
- DbSetupRuntimeException(Throwable) - Constructor for exception com.ninja_squad.dbsetup.DbSetupRuntimeException
-
- DbSetupTracker - Class in com.ninja_squad.dbsetup
-
This class allows speeding up test execution, by avoiding re-executing the same sequence of database operations
before each test method even if each of these test methods leaves the database as it is (and only performs read-only
operations, which is the most frequent case).
- DbSetupTracker() - Constructor for class com.ninja_squad.dbsetup.DbSetupTracker
-
- decimalBinder() - Static method in class com.ninja_squad.dbsetup.bind.Binders
-
Returns a binder suitable for numeric, decimal columns.
- defaultBinder() - Static method in class com.ninja_squad.dbsetup.bind.Binders
-
Returns the default binder.
- DefaultBinderConfiguration - Class in com.ninja_squad.dbsetup.bind
-
- DefaultBinderConfiguration() - Constructor for class com.ninja_squad.dbsetup.bind.DefaultBinderConfiguration
-
Constructor.
- DeleteAll - Class in com.ninja_squad.dbsetup.operation
-
An operation which deletes everything from a given database table.
- deleteAllFrom(String) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a delete from table
operation.
- deleteAllFrom(String...) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a sequence of delete from table
operations.
- deleteAllFrom(List<String>) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a sequence of delete from ...
- Destination - Interface in com.ninja_squad.dbsetup.destination
-
The destination of a database setup.
- DriverManagerDestination - Class in com.ninja_squad.dbsetup.destination
-
A destination which uses the DriverManager
to get a connection
- DriverManagerDestination(String, String, String) - Constructor for class com.ninja_squad.dbsetup.destination.DriverManagerDestination
-
Constructor
- sequence() - Static method in class com.ninja_squad.dbsetup.generator.ValueGenerators
-
Returns a value generator which generates a sequence of long values starting with 1, with an increment of 1.
- sequenceOf(Operation...) - Static method in class com.ninja_squad.dbsetup.operation.CompositeOperation
-
Creates a new Operation containing all the given operations
- sequenceOf(List<? extends Operation>) - Static method in class com.ninja_squad.dbsetup.operation.CompositeOperation
-
Creates a new Operation containing all the given operations
- sequenceOf(Operation...) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a sequence of operations.
- sequenceOf(List<? extends Operation>) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a sequence of operations.
- SequenceValueGenerator - Class in com.ninja_squad.dbsetup.generator
-
- skipNextLaunch() - Method in class com.ninja_squad.dbsetup.DbSetupTracker
-
Marks the current test method as read-only, and thus the need for the next test method to re-execute the same
sequence of database setup operations.
- sql(String) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a SQL operation.
- sql(String...) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a sequence of SQL operations.
- sql(List<String>) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a sequence of SQL operations.
- SqlOperation - Class in com.ninja_squad.dbsetup.operation
-
An operation which simply executes a SQL statement (using Statement.executeUpdate(String)
).
- startingAt(Date, TimeZone) - Method in class com.ninja_squad.dbsetup.generator.DateSequenceValueGenerator
-
- startingAt(Date) - Method in class com.ninja_squad.dbsetup.generator.DateSequenceValueGenerator
-
- startingAt(Calendar) - Method in class com.ninja_squad.dbsetup.generator.DateSequenceValueGenerator
-
- startingAt(String) - Method in class com.ninja_squad.dbsetup.generator.DateSequenceValueGenerator
-
Restarts the sequence at the given date, in the default time zone
- startingAt(LocalDate) - Method in class com.ninja_squad.dbsetup.generator.DateSequenceValueGenerator
-
Restarts the sequence at the given local date, in the default time zone
- startingAt(LocalDateTime) - Method in class com.ninja_squad.dbsetup.generator.DateSequenceValueGenerator
-
Restarts the sequence at the given local date time, in the default time zone
- startingAt(ZonedDateTime) - Method in class com.ninja_squad.dbsetup.generator.DateSequenceValueGenerator
-
Restarts the sequence at the given zoned date time
- startingAt(long) - Method in class com.ninja_squad.dbsetup.generator.SequenceValueGenerator
-
Restarts the sequence at the given value
- startingAt(long) - Method in class com.ninja_squad.dbsetup.generator.StringSequenceValueGenerator
-
Restarts the sequence at the given value
- stringBinder() - Static method in class com.ninja_squad.dbsetup.bind.Binders
-
Returns a binder suitable for columns of type CHAR and VARCHAR.
- stringSequence(String) - Static method in class com.ninja_squad.dbsetup.generator.ValueGenerators
-
Returns a value generator that returns a string prefix followed by a sequence number, optionally left-padded
with 0 to ensure a correct ordering (for example: CODE_001, CODE_002, etc.).
- StringSequenceValueGenerator - Class in com.ninja_squad.dbsetup.generator
-
A
ValueGenerator
that returns a string prefix followed by a sequence number, optionally left-padded
with 0 to ensure a correct ordering (for example: CODE_001, CODE_002, etc.).
- table(String) - Static method in class com.ninja_squad.dbsetup.operation.Truncate
-
Returns an operation which truncates the given table.
- tables(String...) - Static method in class com.ninja_squad.dbsetup.operation.Truncate
-
Returns a composite operation which truncates the given tables, in the same order as the
tables.
- tables(List<String>) - Static method in class com.ninja_squad.dbsetup.operation.Truncate
-
Returns a composite operation which truncates the given tables, in the same order as the
tables.
- timeBinder() - Static method in class com.ninja_squad.dbsetup.bind.Binders
-
Returns a binder suitable for columns of type TIME or TIME_WITH_TIMEZONE.
- times(int) - Method in class com.ninja_squad.dbsetup.operation.Insert.RowBuilder
-
Ends the row, adds it to the Insert Builder the given amount of times, and returns it, for chaining.
- times(int) - Method in interface com.ninja_squad.dbsetup.operation.Insert.RowRepeater
-
Adds several rows with the same non-generated values to the insert.
- timestampBinder() - Static method in class com.ninja_squad.dbsetup.bind.Binders
-
Returns a binder suitable for columns of type TIMESTAMP and TIMESTAMP_WITH_TIMEZONE.
- toString() - Method in class com.ninja_squad.dbsetup.bind.DefaultBinderConfiguration
-
- toString() - Method in class com.ninja_squad.dbsetup.DbSetup
-
- toString() - Method in class com.ninja_squad.dbsetup.DbSetupTracker
-
- toString() - Method in class com.ninja_squad.dbsetup.destination.DataSourceDestination
-
- toString() - Method in class com.ninja_squad.dbsetup.destination.DriverManagerDestination
-
- toString() - Method in class com.ninja_squad.dbsetup.generator.DateSequenceValueGenerator
-
- toString() - Method in class com.ninja_squad.dbsetup.generator.SequenceValueGenerator
-
- toString() - Method in class com.ninja_squad.dbsetup.generator.StringSequenceValueGenerator
-
- toString() - Method in class com.ninja_squad.dbsetup.operation.CompositeOperation
-
- toString() - Method in class com.ninja_squad.dbsetup.operation.DeleteAll
-
- toString() - Method in class com.ninja_squad.dbsetup.operation.Insert.Builder
-
- toString() - Method in class com.ninja_squad.dbsetup.operation.Insert
-
- toString() - Method in class com.ninja_squad.dbsetup.operation.SqlOperation
-
- toString() - Method in class com.ninja_squad.dbsetup.operation.Truncate
-
- Truncate - Class in com.ninja_squad.dbsetup.operation
-
An operation which deletes everything from a given database table using a TRUNCATE statement., which is sometimes
faster that using a DELETE statement.
- truncate(String) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a truncate table ...
- truncate(String...) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a sequence of truncate table ...
- truncate(List<String>) - Static method in class com.ninja_squad.dbsetup.Operations
-
Creates a sequence of truncate table ...