|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
org.eclipse.persistence.descriptors.partitioning.FieldPartitioningPolicy
public abstract class FieldPartitioningPolicy
PUBLIC: FieldPartitioningPolicy partitions access to a database cluster by a field value from the object, such as the object's id, location, or tenant. All write or read request for object's with that value are sent to the server. If a query does not include the field as a parameter, then it can either be sent to all server's and unioned, or left to the sesion's default behavior.
| Field Summary | |
|---|---|
protected org.eclipse.persistence.internal.helper.DatabaseField |
partitionFieldThe column to partition by. |
protected boolean |
unionUnpartitionableQueriesIf query does not have the partition field in it, should the query be sent to all databases. |
| Fields inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy |
|---|
name |
| Constructor Summary | |
|---|---|
FieldPartitioningPolicy() |
|
FieldPartitioningPolicy(java.lang.String partitionField) |
|
FieldPartitioningPolicy(java.lang.String partitionField, boolean unionUnpartitionableQueries) |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy |
|---|
acquireAccessor, convertClassNamesToClasses, getAccessor, getConnectionsForQuery, getName, initialize, partitionPersist, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.eclipse.persistence.internal.helper.DatabaseField partitionField
protected boolean unionUnpartitionableQueries
| Constructor Detail |
|---|
public FieldPartitioningPolicy()
public FieldPartitioningPolicy(java.lang.String partitionField)
public FieldPartitioningPolicy(java.lang.String partitionField,
boolean unionUnpartitionableQueries)
| Method Detail |
|---|
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)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||