Package org.eclipse.edc.sql.store
Class AbstractSqlStore
java.lang.Object
org.eclipse.edc.sql.store.AbstractSqlStore
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final QueryExecutorprotected final org.eclipse.edc.transaction.spi.TransactionContext -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSqlStore(org.eclipse.edc.transaction.datasource.spi.DataSourceRegistry dataSourceRegistry, String dataSourceName, org.eclipse.edc.transaction.spi.TransactionContext transactionContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, QueryExecutor queryExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Tprotected <T> Tprotected <T> Tprotected Connectionprotected <T> @NotNull com.fasterxml.jackson.core.type.TypeReference<T>protected <T> com.fasterxml.jackson.databind.type.CollectionTypeprotected Stringprotected <T> String
-
Field Details
-
transactionContext
protected final org.eclipse.edc.transaction.spi.TransactionContext transactionContext -
queryExecutor
-
-
Constructor Details
-
AbstractSqlStore
public AbstractSqlStore(org.eclipse.edc.transaction.datasource.spi.DataSourceRegistry dataSourceRegistry, String dataSourceName, org.eclipse.edc.transaction.spi.TransactionContext transactionContext, com.fasterxml.jackson.databind.ObjectMapper objectMapper, QueryExecutor queryExecutor)
-
-
Method Details
-
getConnection
- Throws:
SQLException
-
toJson
-
toJson
-
fromJson
protected <T> T fromJson(String json, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) -
fromJson
-
fromJson
-
listOf
-
getTypeRef
@NotNull protected <T> @NotNull com.fasterxml.jackson.core.type.TypeReference<T> getTypeRef()
-