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
Modifier and TypeMethodDescription
-
Method Details
-
getAbsolutePath
String getAbsolutePath()- Returns:
- The absolute path and filename of the resource on the classpath or filesystem (path and filename).
-
getAbsolutePathOnDisk
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
String getFilename()- Returns:
- The filename of this resource, without the path.
-
getRelativePath
String getRelativePath()- Returns:
- The filename of this resource, as well as the path relative to the location where the resource was loaded from.
-