public class DefaultSqlMappingContext extends Object implements SqlMappingContext
Sql mapping context that supports database-specific mappings. For a given mapping id, a database-specific mapping has precedence over a general mapping.
Constructor and Description |
---|
DefaultSqlMappingContext(Map<String,String> sqlMappings,
DatabaseType databaseType) |
Modifier and Type | Method and Description |
---|---|
String |
getSqlMapping(String id)
Returns the mapping for the given id.
|
public DefaultSqlMappingContext(Map<String,String> sqlMappings, DatabaseType databaseType)
public String getSqlMapping(String id)
Returns the mapping for the given id. If a database-specific mapping exists, it always has precedence over a general mapping.
getSqlMapping
in interface SqlMappingContext
id
- the identifier for which to return the mappingIllegalArgumentException
- thrown if there is no mapping for the given idCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.