Package org.flywaydb.core.api.resource
Interface Resource
-
- All Known Implementing Classes:
LoadableResource
public interface Resource
A resource (such as a .sql file) used by Flyway.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAbsolutePath()
java.lang.String
getAbsolutePathOnDisk()
java.lang.String
getFilename()
java.lang.String
getRelativePath()
-
-
-
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.
-
-