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
Modifier and TypeMethodDescriptionforCollection(String collectionName) Creates aCollectionInstruction.Creates aDatabaseInstruction.default RepositoryInstructionforRepository(Class<?> type) Creates aRepositoryInstruction.default RepositoryInstructionforRepository(Class<?> type, String key) Creates aRepositoryInstruction.default RepositoryInstructionforRepository(String typeName) Creates aRepositoryInstruction.forRepository(String typeName, String key) Creates aRepositoryInstruction.default RepositoryInstructionforRepository(EntityDecorator<?> entityDecorator) Creates aRepositoryInstruction.default RepositoryInstructionforRepository(EntityDecorator<?> entityDecorator, String key) Creates aRepositoryInstruction.
-
Method Details
-
forDatabase
DatabaseInstruction forDatabase()Creates aDatabaseInstruction.- Returns:
- the database instruction
-
forRepository
Creates aRepositoryInstruction.- Parameters:
type- the type- Returns:
- the repository instruction
-
forRepository
Creates aRepositoryInstruction.- Parameters:
type- the typekey- the key- Returns:
- the repository instruction
-
forRepository
Creates aRepositoryInstruction.- Parameters:
entityDecorator- the entityDecorator- Returns:
- the repository instruction
-
forRepository
Creates aRepositoryInstruction.- Parameters:
entityDecorator- the entityDecoratorkey- the key- Returns:
- the repository instruction
-
forRepository
Creates aRepositoryInstruction.- Parameters:
typeName- the type name- Returns:
- the repository instruction
-
forRepository
Creates aRepositoryInstruction.- Parameters:
typeName- the type namekey- the key- Returns:
- the repository instruction
-
forCollection
Creates aCollectionInstruction.- Parameters:
collectionName- the collection name- Returns:
- the collection instruction
-