public class PlatformDelegate extends Object implements Platform
Connection will pick a existing platform type based on the JDBC driver
metadata product name, otherwise will use Generic as a default.| Constructor and Description |
|---|
PlatformDelegate(Connection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMappings(Mapping mapping)
Given the attribute and
FieldType allows the platform to replace the storage type
with a platform specific one. |
GeneratedColumnDefinition |
generatedColumnDefinition() |
Generator<LimitedElement> |
limitGenerator() |
Generator<OrderByElement> |
orderByGenerator() |
boolean |
supportsAddingConstraint() |
boolean |
supportsGeneratedColumnsInPrepareStatement() |
boolean |
supportsGeneratedKeysInBatchUpdate() |
boolean |
supportsIfExists() |
boolean |
supportsInlineForeignKeyReference() |
boolean |
supportsUpsert() |
String |
toString() |
Generator<Map<Expression<?>,Object>> |
upsertGenerator() |
VersionColumnDefinition |
versionColumnDefinition() |
public PlatformDelegate(Connection connection)
public void addMappings(Mapping mapping)
PlatformFieldType allows the platform to replace the storage type
with a platform specific one. Substitution occurs both for table generation and entity
property conversion.addMappings in interface Platformmapping - mapping containing type information of what is being read or written.public boolean supportsIfExists()
supportsIfExists in interface Platformpublic boolean supportsInlineForeignKeyReference()
supportsInlineForeignKeyReference in interface Platformpublic boolean supportsAddingConstraint()
supportsAddingConstraint in interface Platformpublic boolean supportsGeneratedKeysInBatchUpdate()
supportsGeneratedKeysInBatchUpdate in interface PlatformStatement.getGeneratedKeys().public boolean supportsGeneratedColumnsInPrepareStatement()
supportsGeneratedColumnsInPrepareStatement in interface PlatformConnection.prepareStatement(String, String[])
method should be used to get the generated key set when inserting records.public boolean supportsUpsert()
supportsUpsert in interface PlatformPlatform.upsertGenerator()public GeneratedColumnDefinition generatedColumnDefinition()
generatedColumnDefinition in interface Platformpublic Generator<LimitedElement> limitGenerator()
limitGenerator in interface Platformpublic VersionColumnDefinition versionColumnDefinition()
versionColumnDefinition in interface Platformpublic Generator<Map<Expression<?>,Object>> upsertGenerator()
upsertGenerator in interface Platformpublic Generator<OrderByElement> orderByGenerator()
orderByGenerator in interface Platform