| Modifier and Type | Field and Description |
|---|---|
| protected 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. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | extractPartitionValueForPersist(AbstractSession session, Object object, ClassDescriptor descriptor)
INTERNAL: If persist should be partitioned, extra value from object. |
| public DatabaseField | |
| public String | getPartitionFieldName()
PUBLIC: Return the database column or query parameter to partition queries by. |
| public boolean | getUnionUnpartitionableQueries()
PUBLIC: Return if queries that do not contain the partition field should be sent to every database and have the result unioned. |
| public void | setPartitionField(DatabaseField partitionField)
PUBLIC: Set the database column or query parameter to partition queries by. |
| public void | setPartitionField(String partitionField)
PUBLIC: Set the database column or query parameter to partition queries by. |
| public 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. |
| partitionField | back to summary |
|---|---|
| protected DatabaseField partitionField The column to partition by. | |
| unionUnpartitionableQueries | back to summary |
|---|---|
| protected boolean unionUnpartitionableQueries If query does not have the partition field in it, should the query be sent to all databases. | |
| FieldPartitioningPolicy | back to summary |
|---|---|
| protected FieldPartitioningPolicy() | |
| FieldPartitioningPolicy | back to summary |
|---|---|
| protected FieldPartitioningPolicy(String partitionField) | |
| FieldPartitioningPolicy | back to summary |
|---|---|
| protected FieldPartitioningPolicy(String partitionField, boolean unionUnpartitionableQueries) | |
| extractPartitionValueForPersist | back to summary |
|---|---|
| protected Object extractPartitionValueForPersist(AbstractSession session, Object object, ClassDescriptor descriptor) INTERNAL: If persist should be partitioned, extra value from object. | |
| getPartitionField | back to summary |
|---|---|
| public DatabaseField getPartitionField() PUBLIC: Return the database column or query parameter to partition queries by. This is the table column name, not the class attribute name. The column value must be included in the query and should normally be part of the object's Id. This can also be the name of a query parameter. If a query does not contain the field the query will not be partitioned. | |
| getPartitionFieldName | back to summary |
|---|---|
| public String getPartitionFieldName() PUBLIC: Return the database column or query parameter to partition queries by. This is the table column name, not the class attribute name. The column value must be included in the query and should normally be part of the object's Id. This can also be the name of a query parameter. If a query does not contain the field the query will not be partitioned. | |
| getUnionUnpartitionableQueries | back to summary |
|---|---|
| public boolean getUnionUnpartitionableQueries() PUBLIC: Return if queries that do not contain the partition field should be sent to every database and have the result unioned. | |
| setPartitionField | back to summary |
|---|---|
| public void setPartitionField(DatabaseField partitionField) PUBLIC: Set the database column or query parameter to partition queries by. This is the table column name, not the class attribute name. The column value must be included in the query and should normally be part of the object's Id. This can also be the name of a query parameter. If a query does not contain the field the query will not be partitioned. | |
| setPartitionField | back to summary |
|---|---|
| public void setPartitionField(String partitionField) PUBLIC: Set the database column or query parameter to partition queries by. This is the table column name, not the class attribute name. The column value must be included in the query and should normally be part of the object's Id. This can also be the name of a query parameter. If a query does not contain the field the query will not be partitioned. | |
| setUnionUnpartitionableQueries | back to summary |
|---|---|
| public 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. | |