| Modifier and Type | Field and Description |
|---|---|
| protected String | defaultConnectionPool
The default connection pool is used for any unmapped values. |
| protected List | orderedPartitions
Use to track order for compute UCP index. |
| protected Map | partitionNames
Store the value partitions by name. |
| protected Map | partitions
Store the value partitions. |
| protected Class | partitionValueType
The type of the partition values. |
| protected String | partitionValueTypeName
The type name of the partition value names. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addPartitionName(String valueName, String connectionPool)
INTERNAL: Add partition values by name (will be initialized at runtime with the real class loader). |
| public void | convertClassNamesToClasses(ClassLoader classLoader)
Overrides org. |
| public List | getConnectionsForQuery(AbstractSession session, DatabaseQuery query, AbstractRecord arguments)
Implements abstract org. |
| public String | |
| public List | |
| public Map | |
| private <T> T | |
| public void | partitionPersist(AbstractSession session, Object object, ClassDescriptor descriptor)
Overrides org. |
| public void | setDefaultConnectionPool(String defaultConnectionPool)
PUBLIC: Set the default connection pool used for any unmapped values. |
| public void | |
| public void | |
| public void |
| defaultConnectionPool | back to summary |
|---|---|
| protected String defaultConnectionPool The default connection pool is used for any unmapped values. | |
| orderedPartitions | back to summary |
|---|---|
| protected List<String> orderedPartitions Use to track order for compute UCP index. | |
| partitionNames | back to summary |
|---|---|
| protected Map<String, String> partitionNames Store the value partitions by name. Initialized at runtime. | |
| partitions | back to summary |
|---|---|
| protected Map<Object, String> partitions Store the value partitions. Each partition maps a value to a connectionPool. | |
| partitionValueType | back to summary |
|---|---|
| protected Class<?> partitionValueType The type of the partition values. Initialized from the type name at runtime. | |
| partitionValueTypeName | back to summary |
|---|---|
| protected String partitionValueTypeName The type name of the partition value names. Initialized at runtime | |
| ValuePartitioningPolicy | back to summary |
|---|---|
| public ValuePartitioningPolicy() | |
| ValuePartitioningPolicy | back to summary |
|---|---|
| public ValuePartitioningPolicy(String partitionField) | |
| ValuePartitioningPolicy | back to summary |
|---|---|
| public ValuePartitioningPolicy(String partitionField, boolean unionUnpartitionableQueries) | |
| addPartition | back to summary |
|---|---|
| public void addPartition(Object value, String connectionPool) PUBLIC: Add the value partition. | |
| addPartitionName | back to summary |
|---|---|
| public void addPartitionName(String valueName, String connectionPool) INTERNAL: Add partition values by name (will be initialized at runtime with the real class loader). | |
| convertClassNamesToClasses | back to summary |
|---|---|
| public void convertClassNamesToClasses(ClassLoader classLoader) Overrides org. 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.
| |
| getConnectionsForQuery | back to summary |
|---|---|
| public List Implements abstract org. INTERNAL: Get a connection from one of the pools in a round robin rotation fashion.
| |
| getDefaultConnectionPool | back to summary |
|---|---|
| public String getDefaultConnectionPool() PUBLIC: Return the default connection pool used for any unmapped values. | |
| getOrderedPartitions | back to summary |
|---|---|
| public List | |
| getPartitions | back to summary |
|---|---|
| public Map PUBLIC: Return the value partitions. Each partition maps a value to a connectionPool. | |
| initObject | back to summary |
|---|---|
| private <T> T initObject(Class<T> type, String value) Convert the string value to the class type. This will handle numbers, string, dates, and most other classes. | |
| partitionPersist | back to summary |
|---|---|
| public void partitionPersist(AbstractSession session, Object object, ClassDescriptor descriptor) Overrides org. INTERNAL: Allow for the persist call to assign the partition.
| |
| setDefaultConnectionPool | back to summary |
|---|---|
| public void setDefaultConnectionPool(String defaultConnectionPool) PUBLIC: Set the default connection pool used for any unmapped values. | |
| setOrderedPartitions | back to summary |
|---|---|
| public void setOrderedPartitions(List<String> orderedPartitions) | |
| setPartitions | back to summary |
|---|---|
| public void setPartitions(Map<Object, String> partitions) PUBLIC: Set the value partitions. Each partition maps a value to a connectionPool. | |
| setPartitionValueTypeName | back to summary |
|---|---|
| public void setPartitionValueTypeName(String partitionValueTypeName) INTERNAL: | |