public abstract class PartitioningPolicy
extends java.lang.Object
implements java.io.Serializable
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 java.lang.String |
name
The persistent unit unique name for the policy.
|
Constructor and Description |
---|
PartitioningPolicy() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.persistence.internal.databaseaccess.Accessor |
acquireAccessor(java.lang.String poolName,
ServerSession session,
DatabaseQuery query,
boolean returnNullIfDead)
INTERNAL:
Return an accessor from the pool.
|
void |
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL:
Convert all the class-name-based settings to actual class-based
settings.
|
org.eclipse.persistence.internal.databaseaccess.Accessor |
getAccessor(java.lang.String poolName,
org.eclipse.persistence.internal.sessions.AbstractSession session,
DatabaseQuery query,
boolean returnNullIfDead)
INTERNAL:
Return an accessor from the pool for the session.
|
abstract java.util.List<org.eclipse.persistence.internal.databaseaccess.Accessor> |
getConnectionsForQuery(org.eclipse.persistence.internal.sessions.AbstractSession session,
DatabaseQuery query,
org.eclipse.persistence.internal.sessions.AbstractRecord arguments) |
java.lang.String |
getName()
PUBLIC:
Return the name of the policy.
|
void |
initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Initialize the policy.
|
void |
partitionPersist(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.Object object,
ClassDescriptor descriptor)
INTERNAL:
Allow for the persist call to assign the partition.
|
void |
setName(java.lang.String name)
PUBLIC:
Set the name of the policy.
|
public abstract java.util.List<org.eclipse.persistence.internal.databaseaccess.Accessor> getConnectionsForQuery(org.eclipse.persistence.internal.sessions.AbstractSession session, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractRecord arguments)
public void partitionPersist(org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.Object object, ClassDescriptor descriptor)
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
public org.eclipse.persistence.internal.databaseaccess.Accessor acquireAccessor(java.lang.String poolName, ServerSession session, DatabaseQuery query, boolean returnNullIfDead)
public org.eclipse.persistence.internal.databaseaccess.Accessor getAccessor(java.lang.String poolName, org.eclipse.persistence.internal.sessions.AbstractSession session, DatabaseQuery query, boolean returnNullIfDead)
public java.lang.String getName()
public void setName(java.lang.String name)