Package org.hibernate.tool.schema.spi
Interface TargetDescriptor
-
- All Known Subinterfaces:
JpaTargetAndSourceDescriptor
public interface TargetDescriptor
Describes the target(s) of schema create, drop and migrate actions. The purpose of this "abstraction" of a target is to enable other back-ends (OGM) by simply describing where to target rather than defining the targets themselves. The reason being that ultimately the Java type representing a "DDL command" sent to these targets might be different (e.g., String for JDBC).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScriptTargetOutput
getScriptTargetOutput()
IfgetTargetTypes()
includes scripts, return a representation of the script file to write to.java.util.EnumSet<TargetType>
getTargetTypes()
The target type described here.
-
-
-
Method Detail
-
getTargetTypes
java.util.EnumSet<TargetType> getTargetTypes()
The target type described here.- Returns:
- The target type.
-
getScriptTargetOutput
ScriptTargetOutput getScriptTargetOutput()
IfgetTargetTypes()
includes scripts, return a representation of the script file to write to. Otherwise, returnsnull
. While it is ultimately up to the actual tooling provider, it is generally an error forgetTargetTypes()
to indicate that scripts are a target and for this method to returnnull
.- Returns:
- The script output target
-
-