Package org.flywaydb.core.api.resource
Interface Resource
-
- All Known Implementing Classes:
LoadableResource
public interface ResourceA resource (such as a .sql file) used by Flyway.
-
-
Method Summary
Modifier and Type Method Description java.lang.StringgetAbsolutePath()java.lang.StringgetAbsolutePathOnDisk()java.lang.StringgetFilename()java.lang.StringgetRelativePath()
-
-
-
Method Detail
-
getAbsolutePath
java.lang.String getAbsolutePath()
- Returns:
- The absolute path and filename of the resource on the classpath or filesystem (path and filename).
-
getAbsolutePathOnDisk
java.lang.String getAbsolutePathOnDisk()
- Returns:
- The absolute path and filename of this resource on disk, regardless of whether this resources points at the classpath or filesystem.
-
getFilename
java.lang.String getFilename()
- Returns:
- The filename of this resource, without the path.
-
getRelativePath
java.lang.String getRelativePath()
- Returns:
- The filename of this resource, as well as the path relative to the location where the resource was loaded from.
-
-