Class MsWorkDirs
java.lang.Object
org.pgcodekeeper.core.database.ms.project.MsWorkDirs
Directory structure definitions for MS SQL Server project loader.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the directory name for a MS SQL Server database object type.static PathGets the relative file path for a MS SQL Server database statement.static PathgetRelativeFolderPath(IStatement st, Path baseDir) Gets the relative filesystem path for a MS SQL Server database statement.static booleanisInSchema(String dirSub)
-
Field Details
-
SECURITY
- See Also:
-
SCHEMAS
- See Also:
-
USERS
- See Also:
-
ROLES
- See Also:
-
-
Method Details
-
getDirectoryNames
-
isInSchema
-
getRelativeFolderPath
Gets the relative filesystem path for a MS SQL Server database statement.- Parameters:
st- the database statementbaseDir- the base directory path- Returns:
- relative path where the statement should be stored
- Throws:
IllegalStateException- if the object type is not supported
-
getRelativeFilePath
Gets the relative file path for a MS SQL Server database statement.- Parameters:
st- the database statement- Returns:
- relative path for the statement's file
-
getDirectoryNameForType
Gets the directory name for a MS SQL Server database object type.- Parameters:
type- the database object type- Returns:
- directory name for the type
- Throws:
IllegalStateException- if the object type is not supported
-