public class OracleShardingKeyBuilderImpl extends java.lang.Object implements OracleShardingKeyBuilder
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_ORA_HASH |
| Constructor and Description |
|---|
OracleShardingKeyBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
OracleShardingKeyImpl |
build()
Builds the sharding key with the sub keys provided and their default
metadata.
|
OracleShardingKeyBuilderImpl |
oraHash(long oraHash)
Used to build the shard key with the known ORA HASH value.
|
OracleShardingKeyBuilderImpl |
subkey(java.lang.Object subkey,
java.sql.SQLType subkeyType)
This method is called to include a subkey into a sharding key object being
built.
|
public static final long DEFAULT_ORA_HASH
public OracleShardingKeyBuilderImpl subkey(java.lang.Object subkey, java.sql.SQLType subkeyType)
subkey in interface OracleShardingKeyBuildersubkey - contains the object that needs to be part of sharding sub keysubkeyType - sub-key data type which can be specified using one of the types
from java.sql.JDBCType or oracle.jdbc.OracleTypeOracleShardingKeyBuilder.subkey(java.lang.Object,
java.sql.SQLType)public OracleShardingKeyBuilderImpl oraHash(long oraHash)
oraHash - the known ORA HASH value for the shard key that is being built.public OracleShardingKeyImpl build()
build in interface OracleShardingKeyBuilderOracleShardingKeyBuilder.build()