Package org.dizitart.no2.migration
Interface InstructionSet
-
public interface InstructionSet
Represents a set of instruction to perform during database migration.- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CollectionInstruction
forCollection(String collectionName)
Creates aCollectionInstruction
.DatabaseInstruction
forDatabase()
Creates aDatabaseInstruction
.default RepositoryInstruction
forRepository(Class<?> type)
Creates aRepositoryInstruction
.default RepositoryInstruction
forRepository(Class<?> type, String key)
Creates aRepositoryInstruction
.default RepositoryInstruction
forRepository(String typeName)
Creates aRepositoryInstruction
.RepositoryInstruction
forRepository(String typeName, String key)
Creates aRepositoryInstruction
.default RepositoryInstruction
forRepository(EntityDecorator<?> entityDecorator)
Creates aRepositoryInstruction
.default RepositoryInstruction
forRepository(EntityDecorator<?> entityDecorator, String key)
Creates aRepositoryInstruction
.
-
-
-
Method Detail
-
forDatabase
DatabaseInstruction forDatabase()
Creates aDatabaseInstruction
.- Returns:
- the database instruction
-
forRepository
default RepositoryInstruction forRepository(Class<?> type)
Creates aRepositoryInstruction
.- Parameters:
type
- the type- Returns:
- the repository instruction
-
forRepository
default RepositoryInstruction forRepository(Class<?> type, String key)
Creates aRepositoryInstruction
.- Parameters:
type
- the typekey
- the key- Returns:
- the repository instruction
-
forRepository
default RepositoryInstruction forRepository(EntityDecorator<?> entityDecorator)
Creates aRepositoryInstruction
.- Parameters:
entityDecorator
- the entityDecorator- Returns:
- the repository instruction
-
forRepository
default RepositoryInstruction forRepository(EntityDecorator<?> entityDecorator, String key)
Creates aRepositoryInstruction
.- Parameters:
entityDecorator
- the entityDecoratorkey
- the key- Returns:
- the repository instruction
-
forRepository
default RepositoryInstruction forRepository(String typeName)
Creates aRepositoryInstruction
.- Parameters:
typeName
- the type name- Returns:
- the repository instruction
-
forRepository
RepositoryInstruction forRepository(String typeName, String key)
Creates aRepositoryInstruction
.- Parameters:
typeName
- the type namekey
- the key- Returns:
- the repository instruction
-
forCollection
CollectionInstruction forCollection(String collectionName)
Creates aCollectionInstruction
.- Parameters:
collectionName
- the collection name- Returns:
- the collection instruction
-
-