org.hibernate.shards.cfg
Class ShardedEnvironment

java.lang.Object
  extended by org.hibernate.shards.cfg.ShardedEnvironment

public final class ShardedEnvironment
extends Object

Hibernate Shards configuration properties.

Author:
[email protected] (Max Ross)
See Also:
Environment

Field Summary
static String CHECK_ALL_ASSOCIATED_OBJECTS_FOR_DIFFERENT_SHARDS
          Configuration property that determines whether or not we examine all associated objects for shard conflicts when we save or update.
static String SHARD_ID_PROPERTY
          Unique identifier for a shard.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHECK_ALL_ASSOCIATED_OBJECTS_FOR_DIFFERENT_SHARDS

public static final String CHECK_ALL_ASSOCIATED_OBJECTS_FOR_DIFFERENT_SHARDS
Configuration property that determines whether or not we examine all associated objects for shard conflicts when we save or update. A shard conflict is when we attempt to associate one object that lives on shard X with an object that lives on shard Y. Turning this on will hurt performance but will prevent the programmer from ending up with the same entity on multiple shards, which is bad (at least in the current version).

See Also:
Constant Field Values

SHARD_ID_PROPERTY

public static final String SHARD_ID_PROPERTY
Unique identifier for a shard. Must be an Integer.

See Also:
Constant Field Values