Class SqlTransformerSupport
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqlbase.SqlTransformerSupport
-
public class SqlTransformerSupport extends Object
Holds various component dependencies that are used during schema to DB transformations. Components can be obtained to execute calls on them, but preferably the needed logic can be implemented here (better abstraction).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SqlTransformerSupport.ParseResult<T extends Objectable>
-
Field Summary
Fields Modifier and Type Field Description protected SchemaService
schemaService
protected SqlRepoContext
sqlRepoContext
-
Constructor Summary
Constructors Constructor Description SqlTransformerSupport(SchemaService schemaService, SqlRepoContext sqlRepoContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull PrismParserNoIO
createStringParser(String serializedResult)
@NotNull PrismSerializer<String>
createStringSerializer()
@NotNull QName
normalizeRelation(QName qName)
<T extends Objectable>
SqlTransformerSupport.ParseResult<T>parsePrismObject(String serializedForm)
PrismContext
prismContext()
Sometimes delegation is not enough - we need Prism context for schema type construction with definitions (parameter to constructor).<T> Class<? extends T>
qNameToSchemaClass(QName qName)
QName
schemaClassToQName(Class<?> schemaClass)
SqlRepoContext
sqlRepoContext()
-
-
-
Field Detail
-
schemaService
protected final SchemaService schemaService
-
sqlRepoContext
protected final SqlRepoContext sqlRepoContext
-
-
Constructor Detail
-
SqlTransformerSupport
public SqlTransformerSupport(SchemaService schemaService, SqlRepoContext sqlRepoContext)
-
-
Method Detail
-
createStringSerializer
@NotNull public @NotNull PrismSerializer<String> createStringSerializer()
-
parsePrismObject
public <T extends Objectable> SqlTransformerSupport.ParseResult<T> parsePrismObject(String serializedForm) throws SchemaException
- Throws:
SchemaException
-
createStringParser
@NotNull public @NotNull PrismParserNoIO createStringParser(String serializedResult)
-
prismContext
public PrismContext prismContext()
Sometimes delegation is not enough - we need Prism context for schema type construction with definitions (parameter to constructor).
-
sqlRepoContext
public SqlRepoContext sqlRepoContext()
-
-