ShardingKeyBuilder
, OracleShardingKeyBuilder
public class OracleShardingKeyBuilderImpl extends Object implements OracleShardingKeyBuilder
Constructor | Description |
---|---|
OracleShardingKeyBuilderImpl() |
Modifier and Type | Method | 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(Object subkey, SQLType subkeyType) |
This method is called to include a subkey into a sharding key object being built.
|
public OracleShardingKeyBuilderImpl subkey(Object subkey, SQLType subkeyType)
subkey
in interface OracleShardingKeyBuilder
subkey
in interface ShardingKeyBuilder
subkey
- 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 OracleShardingKeyBuilder
build
in interface ShardingKeyBuilder
OracleShardingKeyBuilder.build()