Interface PlaceholderDialect
-
- All Known Subinterfaces:
NamePlaceholderDialect
- All Known Implementing Classes:
H2PlaceholderDialect,MariaDBPlaceholderDialect,MySQLPlaceholderDialect,OraclePlaceholderDialect,PostgreSQLPlaceholderDialect,SQLServerPlaceholderDialect
public interface PlaceholderDialectPlaceholder dialect- Since:
- 1.0.5
- Version:
- 1.0.5
- Author:
- Gang Cheng
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_PLACEHOLDERThe constant DEFAULT_PLACEHOLDERstatic StringPLACEHOLDER_DIALECT_NAME_ATTRIBUTE_KEYThe constant PLACEHOLDER_DIALECT_NAME_ATTRIBUTE_KEY.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetMarker()Get marker string.Stringname()Dialect name.default intstartIndex()Placeholder start index.default booleansupported(io.r2dbc.spi.ConnectionMetadata connectionMetadata, ReactiveExecutorContextAttribute reactiveExecutorContextAttribute)Supported boolean.default booleanusingIndexMarker()Using index marker.
-
-
-
Field Detail
-
PLACEHOLDER_DIALECT_NAME_ATTRIBUTE_KEY
static final String PLACEHOLDER_DIALECT_NAME_ATTRIBUTE_KEY
The constant PLACEHOLDER_DIALECT_NAME_ATTRIBUTE_KEY.- See Also:
- Constant Field Values
-
DEFAULT_PLACEHOLDER
static final String DEFAULT_PLACEHOLDER
The constant DEFAULT_PLACEHOLDER- See Also:
- Constant Field Values
-
-
Method Detail
-
name
String name()
Dialect name.- Returns:
- the dialect name
-
supported
default boolean supported(io.r2dbc.spi.ConnectionMetadata connectionMetadata, ReactiveExecutorContextAttribute reactiveExecutorContextAttribute)Supported boolean.- Parameters:
connectionMetadata- the connection metadatareactiveExecutorContextAttribute- the reactive executor context attribute- Returns:
- the boolean
-
getMarker
default String getMarker()
Get marker string.- Returns:
- the marker
-
usingIndexMarker
default boolean usingIndexMarker()
Using index marker.- Returns:
- the boolean
-
startIndex
default int startIndex()
Placeholder start index.- Returns:
- the int default is 0
-
-