public abstract class FieldPartitioningPolicy extends PartitioningPolicy
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.persistence.internal.helper.DatabaseField |
partitionField
The column to partition by.
|
protected boolean |
unionUnpartitionableQueries
If query does not have the partition field in it, should the query be sent to all databases.
|
name
Constructor and Description |
---|
FieldPartitioningPolicy() |
FieldPartitioningPolicy(java.lang.String partitionField) |
FieldPartitioningPolicy(java.lang.String partitionField,
boolean unionUnpartitionableQueries) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
extractPartitionValueForPersist(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.Object object,
ClassDescriptor descriptor)
INTERNAL:
If persist should be partitioned, extra value from object.
|
org.eclipse.persistence.internal.helper.DatabaseField |
getPartitionField()
PUBLIC:
Return the database column or query parameter to partition queries by.
|
java.lang.String |
getPartitionFieldName()
PUBLIC:
Return the database column or query parameter to partition queries by.
|
boolean |
getUnionUnpartitionableQueries()
PUBLIC:
Return if queries that do not contain the partition field should be sent
to every database and have the result unioned.
|
void |
setPartitionField(org.eclipse.persistence.internal.helper.DatabaseField partitionField)
PUBLIC:
Set the database column or query parameter to partition queries by.
|
void |
setPartitionField(java.lang.String partitionField)
PUBLIC:
Set the database column or query parameter to partition queries by.
|
void |
setUnionUnpartitionableQueries(boolean unionUnpartitionableQueries)
PUBLIC:
Set if queries that do not contain the partition field should be sent
to every database and have the result unioned.
|
acquireAccessor, convertClassNamesToClasses, getAccessor, getConnectionsForQuery, getName, initialize, partitionPersist, setName
protected org.eclipse.persistence.internal.helper.DatabaseField partitionField
protected boolean unionUnpartitionableQueries
public FieldPartitioningPolicy()
public FieldPartitioningPolicy(java.lang.String partitionField)
public FieldPartitioningPolicy(java.lang.String partitionField, boolean unionUnpartitionableQueries)
public org.eclipse.persistence.internal.helper.DatabaseField getPartitionField()
public void setPartitionField(org.eclipse.persistence.internal.helper.DatabaseField partitionField)
public java.lang.String getPartitionFieldName()
public void setPartitionField(java.lang.String partitionField)
public boolean getUnionUnpartitionableQueries()
public void setUnionUnpartitionableQueries(boolean unionUnpartitionableQueries)
protected java.lang.Object extractPartitionValueForPersist(org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.Object object, ClassDescriptor descriptor)