Package one.microstream.afs.sql.types
Interface SqlPathSeparatorProvider
- All Known Implementing Classes:
SqlPathSeparatorProvider.Default
public interface SqlPathSeparatorProvider
Configure the separator character used by the microstream SQL AFS implementation.
Classes that implement this interface must provide the character as sting and as char.
The supplied character is used to separate path components and file names when mapping
directory structures to SQL-Table names.
Therefore the supplied character must be allowed to be part of table names of the used
SQL database the AFS is working with.
The configuration has to be done before any SQLFileSystem instance is created!
The configuration is done static via the SqlPath
class.
E.g. to configure "_" as separator:
SqlPath.set(SqlPathSeparatorProvider.New("_", '_'));
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SqlPathSeparatorProvider.Default
-
Field Summary
Fields Modifier and Type Field Description static String
DIRECTORY_TABLE_NAME_SEPARATOR_DEFAULT
static char
DIRECTORY_TABLE_NAME_SEPARATOR_DEFAULT_CHAR
-
Method Summary
Modifier and Type Method Description String
getSqlPathSeparator()
char
getSqlPathSeparatorChar()
static SqlPathSeparatorProvider.Default
New()
Create a Default instance that provides the default separator '$'.static SqlPathSeparatorProvider.Default
New(String pathSeparator, char pathSeparatorChar)
Create a Default instance that provides the configured separator.
-
Field Details
-
DIRECTORY_TABLE_NAME_SEPARATOR_DEFAULT
- See Also:
- Constant Field Values
-
DIRECTORY_TABLE_NAME_SEPARATOR_DEFAULT_CHAR
static final char DIRECTORY_TABLE_NAME_SEPARATOR_DEFAULT_CHAR- See Also:
- Constant Field Values
-
-
Method Details
-
getSqlPathSeparatorChar
char getSqlPathSeparatorChar() -
getSqlPathSeparator
String getSqlPathSeparator() -
New
Create a Default instance that provides the default separator '$'.- Returns:
- an instance of SqlPathSeparatorProvider.Default.
-
New
Create a Default instance that provides the configured separator. The both parameters must configure the same character as String and as char.- Parameters:
pathSeparator
- the separator as StringpathSeparatorChar
- the separator as char- Returns:
- an instance of SqlPathSeparatorProvider.Default.
-