Cnt - The connection typePS - The statement type@Internal
public interface OpContext<Cnt,PS>
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convert(java.lang.Class<?> converterClass,
Cnt connection,
java.lang.Object value,
io.micronaut.core.type.Argument<?> argument)
Convert the property value if needed.
|
java.lang.Object |
convert(Cnt connection,
java.lang.Object value,
RuntimePersistentProperty<?> property)
Convert the property value if needed.
|
<T> RuntimePersistentEntity<T> |
getEntity(java.lang.Class<T> type)
Get persistent entity by type.
|
RuntimeEntityRegistry |
getRuntimeEntityRegistry()
Get runtime entity registry.
|
void |
setStatementParameter(PS preparedStatement,
int index,
DataType dataType,
java.lang.Object value,
Dialect dialect)
Set the parameter value on the given statement.
|
int |
shiftIndex(int index)
Used to define the index whether it is 1 based (JDBC) or 0 based (R2DBC).
|
RuntimeEntityRegistry getRuntimeEntityRegistry()
<T> RuntimePersistentEntity<T> getEntity(@NonNull java.lang.Class<T> type)
T - The typetype - The type classint shiftIndex(int index)
index - The index to shiftvoid setStatementParameter(PS preparedStatement, int index, DataType dataType, java.lang.Object value, Dialect dialect)
preparedStatement - The prepared statementindex - The indexdataType - The data typevalue - The valuedialect - The dialectjava.lang.Object convert(Cnt connection, java.lang.Object value, RuntimePersistentProperty<?> property)
connection - the connectionvalue - property - java.lang.Object convert(java.lang.Class<?> converterClass,
Cnt connection,
java.lang.Object value,
@Nullable
io.micronaut.core.type.Argument<?> argument)
converterClass - the converter classconnection - the connectionvalue - the valueargument - the argument