A set of changes applied to the project

Description

org/hibernate/shards/Shard.java:

  • Support for executeUpdate - straight forward, just execute on all shards
    org/hibernate/shards/session/ShardedSessionImpl.java
    * Change implementation of is open (discussed already with Max
    * Add support for SQLQuery in the Shard object, at this time only the implementation that is identical to the regular hql Query
    org/hibernate/shards/criteria/ShardedCriteriaImpl.java
    * Support for PropertyProjection
    * Correct support for AggregateProjection (max, min) so they will be done in the database
    org/hibernate/shards/criteria/AggregateProjectionEvent.java
    * An event so the projection can be done in the database.
    org/hibernate/shards/criteria/ExitOperationsCriteriaCollector.java
    * Correct compilation of results for PropertyProjection including ordering with property projection which is a special case
    org/hibernate/shards/criteria/GeneralProjectionEvent.java
    * A general Projection event needed for lazily adding the property projection (specially for cases were there are also ordering in the criteria)
    org/hibernate/shards/criteria/CountProjectionEvent.java
    * A count projection event (including distinct count, so the count will be in the database) and the collector will only need to collect the numbers
    org/hibernate/shards/strategy/exit/AggregateExitOperation.java
    * add correct support for max and min
    * add support for count
    * add support for distinct count
    org/hibernate/shards/strategy/exit/OrderExitOperation.java
    * Make utility method public so can be used in other classes
    org/hibernate/shards/strategy/exit/PropertyProjectionOrderExitOperation.java
    * Support for ordering in cases of property projection
    org/hibernate/shards/strategy/exit/PropertyProjectionExitOperation.java
    * Support for property projection (return always the first element of the returned result set)
    org/hibernate/shards/ShardImpl.java
    * Support for SQLQuery
    * Support for execute update operation
    org/hibernate/shards/query/ShardedSQLQueryImpl.java
    * Implementation for SQLQuery using Shards, all the implemented operations are just the same as the hql query, the rest is not supported
    org/hibernate/shards/query/ShardedSQLQuery.java
    * An interface for SQLQuery using Shards
    org/hibernate/shards/query/ShardedQueryImpl.java
    * Support execute update operation
    org/hibernate/shards/query/AdHocQueryFactoryImpl.java
    * Support creation of SQLQuery

Environment

None

Status

Assignee

Max Ross

Reporter

Aviad Lichtenstadt

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Affects versions

Priority

Major
Configure