接口 SourceDescriptor
-
- 所有已知子接口:
JpaTargetAndSourceDescriptor
public interface SourceDescriptorDescribes a source for schema create, drop and migrate actions. IfgetSourceType()indicates that a script should be a source, thengetScriptSourceInput()identifies the script. The purpose here is also to allow other back-ends (OGM) by simply describing where to find sources rather than defining the sources themselves. The reason being that ultimately the Java type representing a "DDL command" might be different; e.g., String for JDBC.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ScriptSourceInputgetScriptSourceInput()IfgetSourceType()indicates scripts are involved, returns a representation of the script file to read.SourceTypegetSourceType()The indicated source type for this target type.
-
-
-
方法详细资料
-
getSourceType
SourceType getSourceType()
The indicated source type for this target type.- 返回:
- The source type
-
getScriptSourceInput
ScriptSourceInput getScriptSourceInput()
IfgetSourceType()indicates scripts are involved, returns a representation of the script file to read. Otherwise, returnsnull. While it is ultimately up to the actual tooling provider, it is generally an error forgetSourceType()to indicate that scripts are involved and for this method to returnnull.- 返回:
- The script file to read.
-
-