Skip navigation links
A C D G H I J K L M N O P R S T 

A

asString() - Method in class io.ebean.dbmigration.MigrationVersion
Return the trimmed version excluding version comment and un-parsable string.

C

checkState() - Method in class io.ebean.dbmigration.MigrationRunner
Return the migrations that would be applied if the migration is run.
close(Connection) - Static method in class io.ebean.dbmigration.util.JdbcClose
Close the connection logging if an error occurs.
close(Statement) - Static method in class io.ebean.dbmigration.util.JdbcClose
 
close(ResultSet) - Static method in class io.ebean.dbmigration.util.JdbcClose
 
compareTo(MigrationVersion) - Method in class io.ebean.dbmigration.MigrationVersion
 
compareTo(LocalMigrationResource) - Method in class io.ebean.dbmigration.runner.LocalMigrationResource
Default ordering by version.
createAndSetIfNeeded() - Method in class io.ebean.dbmigration.runner.MigrationSchema
Create and set the DB schema if desired.
createConnection() - Method in class io.ebean.dbmigration.MigrationConfig
Create a Connection to the database using the configured driver, url, username etc.
createIfNeededAndLock() - Method in class io.ebean.dbmigration.runner.MigrationTable
Create the table is it does not exist.

D

DB2 - Static variable in interface io.ebean.dbmigration.DbPlatformNames
 
DbPlatformNames - Interface in io.ebean.dbmigration
Known database platform names.
DdlParser - Class in io.ebean.dbmigration.ddl
Parses string content into separate SQL/DDL statements.
DdlParser() - Constructor for class io.ebean.dbmigration.ddl.DdlParser
 
DdlRunner - Class in io.ebean.dbmigration.ddl
Runs DDL scripts.
DdlRunner(boolean, String) - Constructor for class io.ebean.dbmigration.ddl.DdlRunner
Construct with a script name (for logging) and flag indicating if errors are expected.
DdlRunnerException - Exception in io.ebean.dbmigration.ddl
 
DdlRunnerException(Throwable) - Constructor for exception io.ebean.dbmigration.ddl.DdlRunnerException
 

G

getApplySuffix() - Method in class io.ebean.dbmigration.MigrationConfig
Return the suffix for migration resources (defaults to .sql).
getClassLoader() - Method in class io.ebean.dbmigration.MigrationConfig
Return the ClassLoader to use to load resources.
getComment() - Method in class io.ebean.dbmigration.MigrationVersion
Return the version comment.
getComment() - Method in class io.ebean.dbmigration.runner.LocalMigrationResource
Return the migration comment.
getContent() - Method in class io.ebean.dbmigration.runner.LocalMigrationResource
Return the content for the migration apply ddl script.
getDbDriver() - Method in class io.ebean.dbmigration.MigrationConfig
Return the DB Driver.
getDbPassword() - Method in class io.ebean.dbmigration.MigrationConfig
Return the DB password.
getDbSchema() - Method in class io.ebean.dbmigration.MigrationConfig
Return the DB connection Schema.
getDbUrl() - Method in class io.ebean.dbmigration.MigrationConfig
Return the DB connection URL.
getDbUsername() - Method in class io.ebean.dbmigration.MigrationConfig
Return the DB username.
getFull() - Method in class io.ebean.dbmigration.MigrationVersion
Return the full version.
getLocation() - Method in class io.ebean.dbmigration.runner.LocalMigrationResource
Return the resource location.
getMetaTable() - Method in class io.ebean.dbmigration.MigrationConfig
Return the name of the migration table.
getMigrationPath() - Method in class io.ebean.dbmigration.MigrationConfig
Return the root path used to find migrations.
getPlatformName() - Method in class io.ebean.dbmigration.MigrationConfig
Return the DB platform name (used for platform create table and select for update syntax).
getRaw() - Method in class io.ebean.dbmigration.MigrationVersion
Return the version in raw form.
getRunPlaceholderMap() - Method in class io.ebean.dbmigration.MigrationConfig
Return a map of name/value pairs that can be expressions replaced in migration scripts.
getRunPlaceholders() - Method in class io.ebean.dbmigration.MigrationConfig
Return a Comma and equals delimited key/value placeholders to replace in DDL scripts.
getType() - Method in class io.ebean.dbmigration.runner.LocalMigrationResource
Return the type code ("R" or "V") for this migration.
getVersion() - Method in class io.ebean.dbmigration.runner.LocalMigrationResource
Return the underlying migration version.
getVersions() - Method in class io.ebean.dbmigration.runner.LocalMigrationResources
Return the list of migration resources in version order.

H

H2 - Static variable in interface io.ebean.dbmigration.DbPlatformNames
 
HSQL - Static variable in interface io.ebean.dbmigration.DbPlatformNames
 

I

io.ebean.dbmigration - package io.ebean.dbmigration
 
io.ebean.dbmigration.ddl - package io.ebean.dbmigration.ddl
 
io.ebean.dbmigration.runner - package io.ebean.dbmigration.runner
 
io.ebean.dbmigration.util - package io.ebean.dbmigration.util
 
IOUtils - Class in io.ebean.dbmigration.util
Utilities for IO.
IOUtils() - Constructor for class io.ebean.dbmigration.util.IOUtils
 
isCreateSchemaIfNotExists() - Method in class io.ebean.dbmigration.MigrationConfig
Return true if migration should create the schema if it does not exist.
isRepeatable() - Method in class io.ebean.dbmigration.MigrationVersion
Return true if this is a "repeatable" version.
isRepeatable() - Method in class io.ebean.dbmigration.runner.LocalMigrationResource
Return true if the underlying version is "repeatable".
isSkipChecksum() - Method in class io.ebean.dbmigration.MigrationConfig
Return true if checksum check should be skipped (during development).

J

JdbcClose - Class in io.ebean.dbmigration.util
Utility for closing raw Jdbc resources.
JdbcClose() - Constructor for class io.ebean.dbmigration.util.JdbcClose
 

K

key() - Method in class io.ebean.dbmigration.runner.LocalMigrationResource
Return the "key" that identifies the migration.

L

load(Properties) - Method in class io.ebean.dbmigration.MigrationConfig
Load configuration from standard properties.
LocalMigrationResource - Class in io.ebean.dbmigration.runner
A DB migration resource (DDL script with version).
LocalMigrationResource(MigrationVersion, String, Resource) - Constructor for class io.ebean.dbmigration.runner.LocalMigrationResource
Construct with version and resource.
LocalMigrationResources - Class in io.ebean.dbmigration.runner
Loads the DB migration resources and sorts them into execution order.
LocalMigrationResources(MigrationConfig) - Constructor for class io.ebean.dbmigration.runner.LocalMigrationResources
Construct with configuration options.

M

MigrationConfig - Class in io.ebean.dbmigration
Configuration used to run the migration.
MigrationConfig() - Constructor for class io.ebean.dbmigration.MigrationConfig
 
MigrationException - Exception in io.ebean.dbmigration
 
MigrationException(String, Throwable) - Constructor for exception io.ebean.dbmigration.MigrationException
 
MigrationException(String) - Constructor for exception io.ebean.dbmigration.MigrationException
 
MigrationRunner - Class in io.ebean.dbmigration
Runs the DB migration typically on application start.
MigrationRunner(MigrationConfig) - Constructor for class io.ebean.dbmigration.MigrationRunner
 
MigrationSchema - Class in io.ebean.dbmigration.runner
Create Schema if needed and set current Schema in Migration
MigrationSchema(MigrationConfig, Connection) - Constructor for class io.ebean.dbmigration.runner.MigrationSchema
Construct with configuration and connection.
MigrationScriptRunner - Class in io.ebean.dbmigration.runner
Runs the DDL migration scripts.
MigrationScriptRunner(Connection) - Constructor for class io.ebean.dbmigration.runner.MigrationScriptRunner
Construct with a given connection.
MigrationTable - Class in io.ebean.dbmigration.runner
Manages the migration table.
MigrationTable(MigrationConfig, Connection, boolean) - Constructor for class io.ebean.dbmigration.runner.MigrationTable
Construct with server, configuration and jdbc connection (DB admin user).
MigrationVersion - Class in io.ebean.dbmigration
The version of a migration used so that migrations are processed in order.
MYSQL - Static variable in interface io.ebean.dbmigration.DbPlatformNames
 

N

nextVersion() - Method in class io.ebean.dbmigration.MigrationVersion
Return the next version based on this version.
normalised() - Method in class io.ebean.dbmigration.MigrationVersion
Return the trimmed version with any underscores replaced with '.'

O

ORACLE - Static variable in interface io.ebean.dbmigration.DbPlatformNames
 

P

parse(StringReader) - Method in class io.ebean.dbmigration.ddl.DdlParser
Break up the sql in reader into a list of statements using the semi-colon and $$ delimiters;
parse(String) - Static method in class io.ebean.dbmigration.MigrationVersion
Parse the raw version string into a MigrationVersion.
POSTGRES - Static variable in interface io.ebean.dbmigration.DbPlatformNames
 

R

ran() - Method in class io.ebean.dbmigration.runner.MigrationTable
Return the migrations that have been run.
readResources() - Method in class io.ebean.dbmigration.runner.LocalMigrationResources
Read all the migration resources (SQL scripts) returning true if there are versions.
readUtf8(InputStream) - Static method in class io.ebean.dbmigration.util.IOUtils
Reads the entire contents of the specified input stream and returns them as UTF-8 string.
rollback(Connection) - Static method in class io.ebean.dbmigration.util.JdbcClose
Rollback the connection logging if an error occurs.
run() - Method in class io.ebean.dbmigration.MigrationRunner
Run by creating a DB connection from driver, url, username defined in MigrationConfig.
run(DataSource) - Method in class io.ebean.dbmigration.MigrationRunner
Run using the connection from the DataSource.
run(Connection) - Method in class io.ebean.dbmigration.MigrationRunner
Run the migrations if there are any that need running.
runAll(String, Connection) - Method in class io.ebean.dbmigration.ddl.DdlRunner
Parse the content into sql statements and execute them in a transaction.

S

setApplySuffix(String) - Method in class io.ebean.dbmigration.MigrationConfig
Set the suffix for migration resources.
setClassLoader(ClassLoader) - Method in class io.ebean.dbmigration.MigrationConfig
Set the ClassLoader to use when loading resources.
setCreateSchemaIfNotExists(boolean) - Method in class io.ebean.dbmigration.MigrationConfig
Set to create Schema if it does not exist.
setDbDriver(String) - Method in class io.ebean.dbmigration.MigrationConfig
Set the DB Driver.
setDbPassword(String) - Method in class io.ebean.dbmigration.MigrationConfig
Set the DB password.
setDbSchema(String) - Method in class io.ebean.dbmigration.MigrationConfig
Set the DB connection Schema.
setDbUrl(String) - Method in class io.ebean.dbmigration.MigrationConfig
Set the DB connection URL.
setDbUsername(String) - Method in class io.ebean.dbmigration.MigrationConfig
Set the DB username.
setMetaTable(String) - Method in class io.ebean.dbmigration.MigrationConfig
Set the name of the migration table.
setMigrationPath(String) - Method in class io.ebean.dbmigration.MigrationConfig
Set the root path used to find migrations.
setPlatformName(String) - Method in class io.ebean.dbmigration.MigrationConfig
Set a DB platform name (to load specific create table and select for update syntax).
setRunPlaceholderMap(Map<String, String>) - Method in class io.ebean.dbmigration.MigrationConfig
Set a map of name/value pairs that can be expressions replaced in migration scripts.
setRunPlaceholders(String) - Method in class io.ebean.dbmigration.MigrationConfig
Set a Comma and equals delimited key/value placeholders to replace in DDL scripts.
setSkipChecksum(boolean) - Method in class io.ebean.dbmigration.MigrationConfig
Set to true to skip the checksum check.
shouldRun(LocalMigrationResource, LocalMigrationResource) - Method in class io.ebean.dbmigration.runner.MigrationTable
Return true if the migration ran successfully and false if the migration failed.
size() - Method in class io.ebean.dbmigration.runner.MigrationTable
Return the number of migrations in the DB migration table.
SQLANYWHERE - Static variable in interface io.ebean.dbmigration.DbPlatformNames
 
SQLITE - Static variable in interface io.ebean.dbmigration.DbPlatformNames
 
SQLSERVER - Static variable in interface io.ebean.dbmigration.DbPlatformNames
 

T

toString() - Method in class io.ebean.dbmigration.MigrationVersion
 
toString() - Method in class io.ebean.dbmigration.runner.LocalMigrationResource
 
trim(String) - Static method in class io.ebean.dbmigration.MigrationVersion
Parse the raw version string and just return the leading version number;
A C D G H I J K L M N O P R S T 
Skip navigation links

Copyright © 2017. All rights reserved.