Package org.gridgain.cache.store.jdbc
Class JdbcCacheStore.EntryMapping
java.lang.Object
org.gridgain.cache.store.jdbc.JdbcCacheStore.EntryMapping
- Enclosing class:
- JdbcCacheStore<K,
V>
Entry mapping description.
-
Constructor Summary
ConstructorsConstructorDescriptionEntryMapping(JdbcDialect dialect, JdbcType typeMeta, JdbcCacheStore.TypeKind keyKind, JdbcCacheStore.TypeKind valKind, boolean escape) Entry mapping. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet full table name.protected JdbcTypeField[]Gets key columns.protected JdbcCacheStore.TypeKindkeyKind()Get key type kind.protected StringkeyType()Get key type.protected StringloadCacheRangeQuery(boolean appendLowerBound, boolean appendUpperBound) Construct query for select values in range.protected StringloadQuery(int keyCnt) Construct query for select values with key count less or equalmaxKeysPerStmt.protected JdbcTypeField[]Gets value columns.protected JdbcCacheStore.TypeKindGet value type kind.protected StringGet value type.
-
Constructor Details
-
EntryMapping
public EntryMapping(JdbcDialect dialect, JdbcType typeMeta, JdbcCacheStore.TypeKind keyKind, JdbcCacheStore.TypeKind valKind, boolean escape) Entry mapping.- Parameters:
dialect- JDBC dialect.typeMeta- Type metadata.keyKind- Type kind.valKind- Value kind.escape- Escape SQL identifiers flag.
-
-
Method Details
-
keyType
Get key type.- Returns:
- Key type.
-
keyKind
Get key type kind.- Returns:
- Key type kind.
-
valueType
Get value type.- Returns:
- Value type.
-
valueKind
Get value type kind.- Returns:
- Value type kind.
-
loadQuery
Construct query for select values with key count less or equalmaxKeysPerStmt.- Parameters:
keyCnt- Key count.- Returns:
- Load query statement text.
-
loadCacheRangeQuery
Construct query for select values in range.- Parameters:
appendLowerBound- Need add lower bound for range.appendUpperBound- Need add upper bound for range.- Returns:
- Query with range.
-
keyColumns
Gets key columns.- Returns:
- Key columns.
-
valueColumns
Gets value columns.- Returns:
- Value columns.
-
fullTableName
Get full table name.- Returns:
- The name.
-