If multiple partitions are used to process a single transaction, JTA should be used for proper XA transaction support.
| Modifier and Type | Field and Description |
|---|---|
| protected String | name
The persistent unit unique name for the policy. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Accessor | acquireAccessor(String poolName, ServerSession session, DatabaseQuery query, boolean returnNullIfDead)
INTERNAL: Return an accessor from the pool. |
| public void | convertClassNamesToClasses(ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings to actual class-based settings. |
| public Accessor | getAccessor(String poolName, AbstractSession session, DatabaseQuery query, boolean returnNullIfDead)
INTERNAL: Return an accessor from the pool for the session. |
| public abstract List | |
| public String | |
| public void | |
| public void | partitionPersist(AbstractSession session, Object object, ClassDescriptor descriptor)
INTERNAL: Allow for the persist call to assign the partition. |
| public void |
| name | back to summary |
|---|---|
| protected String name The persistent unit unique name for the policy. | |
| PartitioningPolicy | back to summary |
|---|---|
| protected PartitioningPolicy() Default constructor. | |
| acquireAccessor | back to summary |
|---|---|
| public Accessor acquireAccessor(String poolName, ServerSession session, DatabaseQuery query, boolean returnNullIfDead) INTERNAL: Return an accessor from the pool. | |
| convertClassNamesToClasses | back to summary |
|---|---|
| public void convertClassNamesToClasses(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes. | |
| getAccessor | back to summary |
|---|---|
| public Accessor getAccessor(String poolName, AbstractSession session, DatabaseQuery query, boolean returnNullIfDead) INTERNAL: Return an accessor from the pool for the session. For a client session the accessor is stored for the duration of the transaction. | |
| getConnectionsForQuery | back to summary |
|---|---|
| public abstract List | |
| getName | back to summary |
|---|---|
| public String getName() PUBLIC: Return the name of the policy. The name must be unique for the persistence unit. The name allows the policy to be shared among multiple descriptors, queries. | |
| initialize | back to summary |
|---|---|
| public void initialize(AbstractSession session) INTERNAL: Initialize the policy. | |
| partitionPersist | back to summary |
|---|---|
| public void partitionPersist(AbstractSession session, Object object, ClassDescriptor descriptor) INTERNAL: Allow for the persist call to assign the partition. | |
| setName | back to summary |
|---|---|
| public void setName(String name) PUBLIC: Set the name of the policy. The name must be unique for the persistence unit. The name allows the policy to be shared among multiple descriptors, queries. | |