Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

info about where the project has moved to

  • Loading branch information...
commit 54af9d7b1793325bbd74e365cb92a271f7f7a741 1 parent 8f19a04
Graeme Rocher authored
Showing with 1 addition and 22,848 deletions.
  1. +1 −39 README.txt
  2. +0 −273 build.gradle
  3. +0 −94 clover.gradle
  4. +0 −5 clover.license
  5. +0 −4 gradle.properties
  6. BIN  gradle/wrapper/gradle-wrapper.jar
  7. +0 −9 gradle/wrapper/gradle-wrapper.properties
  8. +0 −142 gradlew
  9. +0 −126 gradlew.bat
  10. +0 −7 grails-datastore-gorm-gemfire/build.gradle
  11. +0 −38 grails-datastore-gorm-gemfire/grails-datastore-gorm-gemfire.iml
  12. +0 −98 grails-datastore-gorm-gemfire/src/main/groovy/org/grails/datastore/gorm/gemfire/ContinuousQueryApi.groovy
  13. +0 −264 grails-datastore-gorm-gemfire/src/main/groovy/org/grails/datastore/gorm/gemfire/GemfireGormEnhancer.groovy
  14. +0 −49 ...ore-gorm-gemfire/src/main/groovy/org/grails/datastore/gorm/gemfire/config/CacheServerConfigGenerator.groovy
  15. +0 −20 grails-datastore-gorm-gemfire/src/main/groovy/org/grails/datastore/gorm/gemfire/config/PoolFactoryBean.groovy
  16. +0 −63 grails-datastore-gorm-gemfire/src/test/groovy/org/grails/datastore/gorm/Setup.groovy
  17. +0 −31 grails-datastore-gorm-gemfire/src/test/groovy/org/grails/datastore/gorm/gemfire/ContinuousQuerySpec.groovy
  18. +0 −47 grails-datastore-gorm-gemfire/src/test/groovy/org/grails/datastore/gorm/gemfire/FunctionExecutionSpec.groovy
  19. +0 −41 ...ls-datastore-gorm-gemfire/src/test/groovy/org/grails/datastore/gorm/gemfire/GemfireMappingConfigSpec.groovy
  20. +0 −44 grails-datastore-gorm-gemfire/src/test/groovy/org/grails/datastore/gorm/gemfire/GemfireSuite.groovy
  21. +0 −134 grails-datastore-gorm-gemfire/src/test/groovy/org/grails/datastore/gorm/gemfire/OqlQuerySpec.groovy
  22. +0 −47 grails-datastore-gorm-hibernate/build.gradle
  23. +0 −60 grails-datastore-gorm-hibernate/src/main/groovy/org/grails/datastore/gorm/hibernate/HibernateDatastore.java
  24. +0 −834 ...s-datastore-gorm-hibernate/src/main/groovy/org/grails/datastore/gorm/hibernate/HibernateGormEnhancer.groovy
  25. +0 −267 grails-datastore-gorm-hibernate/src/main/groovy/org/grails/datastore/gorm/hibernate/HibernateSession.java
  26. +0 −456 grails-datastore-gorm-hibernate/src/main/groovy/org/grails/datastore/gorm/hibernate/query/HibernateQuery.java
  27. +0 −85 grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/tests/CommonTypesPersistenceSpec.groovy
  28. +0 −41 grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/tests/GroovyProxySpec.groovy
  29. +0 −87 grails-datastore-gorm-hibernate/src/test/groovy/grails/gorm/tests/ValidationSpec.groovy
  30. +0 −57 grails-datastore-gorm-hibernate/src/test/groovy/org/grails/datastore/gorm/HibernateSuite.groovy
  31. +0 −97 grails-datastore-gorm-hibernate/src/test/groovy/org/grails/datastore/gorm/Setup.groovy
  32. +0 −7 grails-datastore-gorm-jcr/build.gradle
  33. +0 −30 grails-datastore-gorm-jcr/grails-datastore-gorm-jcr.iml
  34. +0 −15 grails-datastore-gorm-jcr/src/main/groovy/grails/persistence/Entity.java
  35. +0 −97 grails-datastore-gorm-jcr/src/main/groovy/org/grails/datastore/gorm/jcr/JcrGormEnhancer.groovy
  36. +0 −13 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/Book.groovy
  37. +0 −18 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/ChildEntity.groovy
  38. +0 −19 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/CommonTypes.groovy
  39. +0 −77 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/CommonTypesPersistenceSpec.groovy
  40. +0 −277 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/CriteriaBuilderSpec.groovy
  41. +0 −84 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/CrudOperationsSpec.groovy
  42. +0 −217 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/DomainEventsSpec.groovy
  43. +0 −199 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/FindByMethodSpec.groovy
  44. +0 −224 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/GormEnhancerSpec.groovy
  45. +0 −11 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/Highway.groovy
  46. +0 −103 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/InheritanceSpec.groovy
  47. +0 −15 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/Location.groovy
  48. +0 −11 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/ModifyPerson.groovy
  49. +0 −1,088 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/NamedQuerySpec.groovy
  50. +0 −76 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/NegationSpec.groovy
  51. +0 −80 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/OrderBySpec.groovy
  52. +0 −15 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/Person.groovy
  53. +0 −24 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/PersonEvent.groovy
  54. +0 −12 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/Pet.groovy
  55. +0 −5 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/PetType.groovy
  56. +0 −9 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/Plant.groovy
  57. +0 −66 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/Publication.groovy
  58. +0 −49 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/SaveAllSpec.groovy
  59. +0 −12 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/Task.groovy
  60. +0 −22 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/TestEntity.groovy
  61. +0 −64 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/UpdateWithProxyPresentSpec.groovy
  62. +0 −96 grails-datastore-gorm-jcr/src/test/groovy/grails/gorm/tests/ValidationSpec.groovy
  63. +0 −57 grails-datastore-gorm-jcr/src/test/groovy/org/grails/datastore/gorm/Setup.groovy
  64. +0 −63 grails-datastore-gorm-jcr/src/test/groovy/org/grails/datastore/gorm/jcr/JcrTestSuite.groovy
  65. +0 −28 grails-datastore-gorm-jpa/build.gradle
  66. +0 −22 grails-datastore-gorm-jpa/src/main/groovy/grails/gorm/JpaEntity.java
  67. +0 −120 ...tastore-gorm-jpa/src/main/groovy/org/grails/datastore/gorm/jpa/EntityInterceptorInvokingEntityListener.java
  68. +0 −627 grails-datastore-gorm-jpa/src/main/groovy/org/grails/datastore/gorm/jpa/GormToJpaTransform.java
  69. +0 −314 grails-datastore-gorm-jpa/src/main/groovy/org/grails/datastore/gorm/jpa/JpaGormEnhancer.groovy
  70. +0 −52 ...atastore-gorm-jpa/src/main/groovy/org/grails/datastore/gorm/jpa/bean/factory/JpaDatastoreFactoryBean.groovy
  71. +0 −37 ...ore-gorm-jpa/src/main/groovy/org/grails/datastore/gorm/jpa/bean/factory/JpaMappingContextFactoryBean.groovy
  72. +0 −106 ...tastore-gorm-jpa/src/main/groovy/org/grails/datastore/gorm/jpa/support/JpaOpenSessionInViewInterceptor.java
  73. +0 −67 ...astore-gorm-jpa/src/main/groovy/org/grails/datastore/gorm/jpa/support/JpaPersistenceContextInterceptor.java
  74. +0 −8 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/AttachMethodSpec.groovy
  75. +0 −18 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/Book.groovy
  76. +0 −14 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/ChildEntity.groovy
  77. +0 −11 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/City.groovy
  78. +0 −31 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/CommonTypes.groovy
  79. +0 −12 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/Country.groovy
  80. +0 −45 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/EmbeddedAssociationSpec.groovy
  81. +0 −9 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/GroovyProxySpec.groovy
  82. +0 −15 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/Highway.groovy
  83. +0 −22 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/Location.groovy
  84. +0 −15 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/ModifyPerson.groovy
  85. +0 −70 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/NotNullQuerySpec.groovy
  86. +0 −37 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/OneToManySpec.groovy
  87. +0 −16 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/Person.groovy
  88. +0 −28 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/PersonEvent.groovy
  89. +0 −15 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/Pet.groovy
  90. +0 −10 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/PetType.groovy
  91. +0 −16 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/Plant.groovy
  92. +0 −28 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/PlantCategory.groovy
  93. +0 −71 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/Publication.groovy
  94. +0 −322 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/QueryAssociationSpec.groovy
  95. +0 −66 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/StringBasedQuerySpec.groovy
  96. +0 −16 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/Task.groovy
  97. +0 −24 grails-datastore-gorm-jpa/src/test/groovy/grails/gorm/tests/TestEntity.groovy
  98. +0 −61 grails-datastore-gorm-jpa/src/test/groovy/org/grails/datastore/gorm/JpaMappingConfigurationSpec.groovy
  99. +0 −56 grails-datastore-gorm-jpa/src/test/groovy/org/grails/datastore/gorm/JpaSuite.groovy
  100. +0 −329 grails-datastore-gorm-jpa/src/test/groovy/org/grails/datastore/gorm/JpaTransformTest.groovy
  101. +0 −75 grails-datastore-gorm-jpa/src/test/groovy/org/grails/datastore/gorm/Setup.groovy
  102. +0 −23 grails-datastore-gorm-mongo/build.gradle
  103. +0 −25 grails-datastore-gorm-mongo/grails-datastore-gorm-mongo.iml
  104. +0 −86 grails-datastore-gorm-mongo/src/main/groovy/org/grails/datastore/gorm/mongo/MongoCriteriaBuilder.java
  105. +0 −166 grails-datastore-gorm-mongo/src/main/groovy/org/grails/datastore/gorm/mongo/MongoGormEnhancer.groovy
  106. +0 −48 grails-datastore-gorm-mongo/src/main/groovy/org/grails/datastore/gorm/mongo/Near.java
  107. +0 −55 grails-datastore-gorm-mongo/src/main/groovy/org/grails/datastore/gorm/mongo/WithinBox.java
  108. +0 −57 grails-datastore-gorm-mongo/src/main/groovy/org/grails/datastore/gorm/mongo/WithinCircle.java
  109. +0 −134 ...ls-datastore-gorm-mongo/src/main/groovy/org/grails/datastore/gorm/mongo/bean/factory/GMongoFactoryBean.java
  110. +0 −60 ...re-gorm-mongo/src/main/groovy/org/grails/datastore/gorm/mongo/bean/factory/MongoDatastoreFactoryBean.groovy
  111. +0 −41 ...rm-mongo/src/main/groovy/org/grails/datastore/gorm/mongo/bean/factory/MongoMappingContextFactoryBean.groovy
  112. +0 −60 grails-datastore-gorm-mongo/src/test/groovy/org/grails/datastore/gorm/Setup.groovy
  113. +0 −32 grails-datastore-gorm-mongo/src/test/groovy/org/grails/datastore/gorm/mongo/BasicCollectionTypeSpec.groovy
  114. +0 −45 grails-datastore-gorm-mongo/src/test/groovy/org/grails/datastore/gorm/mongo/EmbeddedAssociationSpec.groovy
  115. +0 −52 grails-datastore-gorm-mongo/src/test/groovy/org/grails/datastore/gorm/mongo/GMongoSpec.groovy
  116. +0 −128 grails-datastore-gorm-mongo/src/test/groovy/org/grails/datastore/gorm/mongo/GeospacialQuerySpec.groovy
  117. +0 −78 grails-datastore-gorm-mongo/src/test/groovy/org/grails/datastore/gorm/mongo/MongoEntityConfigSpec.groovy
  118. +0 −32 grails-datastore-gorm-mongo/src/test/groovy/org/grails/datastore/gorm/mongo/MongoGormEnhancerSpec.groovy
  119. +0 −39 grails-datastore-gorm-mongo/src/test/groovy/org/grails/datastore/gorm/mongo/MongoSuite.groovy
  120. +0 −26 grails-datastore-gorm-mongo/src/test/groovy/org/grails/datastore/gorm/mongo/ObjectIdPersistenceSpec.groovy
  121. +0 −36 grails-datastore-gorm-mongo/src/test/groovy/org/grails/datastore/gorm/mongo/SchemalessSpec.groovy
  122. +0 −7 grails-datastore-gorm-redis/build.gradle
  123. +0 −28 grails-datastore-gorm-redis/grails-datastore-gorm-redis.iml
  124. +0 −107 grails-datastore-gorm-redis/src/main/groovy/grails/datastore/Redis.groovy
  125. +0 −95 grails-datastore-gorm-redis/src/main/groovy/org/grails/datastore/gorm/redis/RedisGormEnhancer.groovy
  126. +0 −62 grails-datastore-gorm-redis/src/test/groovy/grails/datastore/RedisSpec.groovy
  127. +0 −56 grails-datastore-gorm-redis/src/test/groovy/org/grails/datastore/gorm/Setup.groovy
  128. +0 −66 grails-datastore-gorm-redis/src/test/groovy/org/grails/datastore/gorm/redis/RedisSpecificMethodsSpec.groovy
  129. +0 −58 grails-datastore-gorm-redis/src/test/groovy/org/grails/datastore/gorm/redis/RedisSuite.groovy
  130. +0 −33 grails-datastore-gorm-riak/build.gradle
  131. +0 −29 grails-datastore-gorm-riak/grails-datastore-gorm-riak.iml
  132. +0 −48 grails-datastore-gorm-riak/src/main/groovy/org/grails/datastore/gorm/riak/RiakDatastoreFactoryBean.groovy
  133. +0 −140 grails-datastore-gorm-riak/src/main/groovy/org/grails/datastore/gorm/riak/RiakGormEnhancer.groovy
  134. +0 −32 grails-datastore-gorm-riak/src/main/groovy/org/grails/datastore/gorm/riak/RiakMappingContextFactoryBean.groovy
  135. +0 −101 grails-datastore-gorm-riak/src/test/groovy/org/grails/datastore/gorm/Setup.groovy
  136. +0 −38 grails-datastore-gorm-riak/src/test/groovy/org/grails/datastore/gorm/riak/RiakSuite.groovy
  137. +0 −5 grails-datastore-gorm-tck/build.gradle
  138. +0 −23 grails-datastore-gorm-tck/grails-datastore-gorm-tck.iml
  139. +0 −46 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/AttachMethodSpec.groovy
  140. +0 −20 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/ChildEntity.groovy
  141. +0 −44 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/CircularOneToManySpec.groovy
  142. +0 −78 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/CommonTypesPersistenceSpec.groovy
  143. +0 −260 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/CriteriaBuilderSpec.groovy
  144. +0 −70 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/CrudOperationsSpec.groovy
  145. +0 −193 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/DomainEventsSpec.groovy
  146. +0 −54 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/FindByExampleSpec.groovy
  147. +0 −181 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/FindByMethodSpec.groovy
  148. +0 −62 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/GormDatastoreSpec.groovy
  149. +0 −212 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/GormEnhancerSpec.groovy
  150. +0 −38 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/GroovyProxySpec.groovy
  151. +0 −111 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/InheritanceSpec.groovy
  152. +0 −29 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/ListOrderBySpec.groovy
  153. +0 −1,091 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/NamedQuerySpec.groovy
  154. +0 −69 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/NegationSpec.groovy
  155. +0 −106 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/OneToManySpec.groovy
  156. +0 −64 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/OrderBySpec.groovy
  157. +0 −37 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/ProxyLoadingSpec.groovy
  158. +0 −35 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/QueryAfterPropertyChangeSpec.groovy
  159. +0 −31 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/QueryByAssociationSpec.groovy
  160. +0 −65 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/RangeQuerySpec.groovy
  161. +0 −36 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/SaveAllSpec.groovy
  162. +0 −29 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/TestEntity.groovy
  163. +0 −76 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/UpdateWithProxyPresentSpec.groovy
  164. +0 −84 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/ValidationSpec.groovy
  165. +0 −66 grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/WithTransactionSpec.groovy
  166. +0 −15 grails-datastore-gorm-tck/src/main/groovy/grails/persistence/Entity.java
  167. +0 −19 grails-datastore-gorm-test/build.gradle
  168. +0 −33 grails-datastore-gorm-test/grails-datastore-gorm-test.iml
  169. +0 −98 grails-datastore-gorm-test/src/main/groovy/grails/datastore/test/DatastoreUnitTestMixin.groovy
  170. +0 −45 grails-datastore-gorm-test/src/test/groovy/org/grails/datastore/gorm/EmbeddedAssociationSpec.groovy
  171. +0 −70 grails-datastore-gorm-test/src/test/groovy/org/grails/datastore/gorm/NotNullQuerySpec.groovy
  172. +0 −327 grails-datastore-gorm-test/src/test/groovy/org/grails/datastore/gorm/QueryAssociationSpec.groovy
  173. +0 −51 grails-datastore-gorm-test/src/test/groovy/org/grails/datastore/gorm/Setup.groovy
  174. +0 −45 grails-datastore-gorm-test/src/test/groovy/org/grails/datastore/gorm/SimpleMapTestSuite.groovy
  175. +0 −77 grails-datastore-gorm-test/src/test/groovy/org/grails/datastore/test/DatastoreUnitTestCaseSpec.groovy
  176. +0 −17 grails-datastore-gorm/build.gradle
  177. +0 −25 grails-datastore-gorm/grails-datastore-gorm.iml
  178. +0 −637 grails-datastore-gorm/src/main/groovy/grails/gorm/CriteriaBuilder.java
  179. +0 −35 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/AbstractGormApi.groovy
  180. +0 −235 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/GormEnhancer.groovy
  181. +0 −200 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/GormInstanceApi.groovy
  182. +0 −457 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/GormStaticApi.groovy
  183. +0 −168 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/GormValidationApi.groovy
  184. +0 −79 ...astore-gorm/src/main/groovy/org/grails/datastore/gorm/bean/factory/AbstractMappingContextFactoryBean.groovy
  185. +0 −69 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/config/GrailsDomainClassMappingContext.java
  186. +0 −313 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/config/GrailsDomainClassPersistentEntity.java
  187. +0 −74 ...ls-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/config/GrailsDomainClassPersistentProperty.java
  188. +0 −95 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/events/AutoTimestampInterceptor.java
  189. +0 −105 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/events/DomainEventInterceptor.java
  190. +0 −79 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/CountByFinder.java
  191. +0 −359 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/DynamicFinder.java
  192. +0 −56 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/DynamicFinderInvocation.java
  193. +0 −40 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/FindAllByBooleanFinder.java
  194. +0 −86 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/FindAllByFinder.java
  195. +0 −44 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/FindByBooleanFinder.java
  196. +0 −91 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/FindByFinder.java
  197. +0 −42 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/FinderMethod.java
  198. +0 −73 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/ListOrderByFinder.java
  199. +0 −237 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/MethodExpression.java
  200. +0 −34 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/finders/QueryBuildingFinder.java
  201. +0 −85 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/proxy/GroovyProxyFactory.groovy
  202. +0 −236 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/query/NamedQueriesBuilder.groovy
  203. +0 −108 ...atastore-gorm/src/main/groovy/org/grails/datastore/gorm/support/DatastorePersistenceContextInterceptor.java
  204. +0 −47 grails-datastore-gorm/src/main/groovy/org/grails/datastore/gorm/utils/InstanceProxy.groovy
  205. +0 −27 grails-datastore-gorm/src/test/resources/cassandra-conf/log4j.properties
  206. +0 −395 grails-datastore-gorm/src/test/resources/cassandra-conf/storage-conf.xml
  207. +0 −25 grails-documentation-mongo/build.gradle
  208. +0 −3  grails-documentation-mongo/src/docs/doc.properties
  209. +0 −11 grails-documentation-mongo/src/docs/guide/1. Introduction.gdoc
  210. +0 −22 grails-documentation-mongo/src/docs/guide/1.1 Compatibility with GORM for Hibernate.gdoc
  211. +0 −20 grails-documentation-mongo/src/docs/guide/1.2 Release Notes.gdoc
  212. +0 −38 grails-documentation-mongo/src/docs/guide/2. Getting Started.gdoc
  213. +0 −13 grails-documentation-mongo/src/docs/guide/2.1 Using Mongo Standalone.gdoc
  214. +0 −16 grails-documentation-mongo/src/docs/guide/2.2 Combining Mongo and Hibernate.gdoc
  215. +0 −52 grails-documentation-mongo/src/docs/guide/2.3 Advanced Configuration.gdoc
  216. +0 −63 grails-documentation-mongo/src/docs/guide/3. Mapping Domain Classes to Mongo Collections.gdoc
  217. +0 −27 grails-documentation-mongo/src/docs/guide/3.1 Identity Generation.gdoc
  218. +0 −23 grails-documentation-mongo/src/docs/guide/3.2 Indexing Queries.gdoc
  219. +0 −14 grails-documentation-mongo/src/docs/guide/3.3 Customizing the WriteConcern.gdoc
  220. +0 −24 grails-documentation-mongo/src/docs/guide/3.4 Dynamic Attributes.gdoc
  221. +0 −76 grails-documentation-mongo/src/docs/guide/3.5 Geospacial Querying.gdoc
  222. +0 −62 grails-documentation-mongo/src/docs/guide/4. Low-level API.gdoc
  223. +0 −13 grails-documentation-mongo/src/docs/guide/5. Transactions.gdoc
  224. +0 −35 grails-documentation-mongo/src/docs/guide/6. Unit Testing.gdoc
  225. +0 −23 grails-documentation-mongo/src/docs/ref/Beans/mongo.gdoc
  226. +0 −36 grails-documentation-mongo/src/docs/ref/Testing/DatastoreUnitTestMixin.gdoc
  227. +0 −43 grails-documentation-redis/build.gradle
  228. +0 −3  grails-documentation-redis/src/docs/doc.properties
  229. +0 −9 grails-documentation-redis/src/docs/guide/1. Introduction.gdoc
  230. +0 −21 grails-documentation-redis/src/docs/guide/1.1 Compatibility with GORM for Hibernate.gdoc
  231. +0 −33 grails-documentation-redis/src/docs/guide/2. Getting Started.gdoc
  232. +0 −13 grails-documentation-redis/src/docs/guide/2.1 Using Redis Standalone.gdoc
  233. +0 −24 grails-documentation-redis/src/docs/guide/2.2 Combining Redis and Hibernate.gdoc
  234. +0 −32 grails-documentation-redis/src/docs/guide/3. Object Mapping.gdoc
  235. +0 −17 grails-documentation-redis/src/docs/guide/4. Querying.gdoc
  236. +0 −4 grails-documentation-redis/src/docs/guide/4.1 Query Limitations.gdoc
  237. +0 −27 grails-documentation-redis/src/docs/guide/5. Transactions.gdoc
  238. +0 −14 grails-documentation-redis/src/docs/guide/6. Redis Specific Extensions.gdoc
  239. +0 −69 grails-documentation-redis/src/docs/guide/7. The Low-level API.gdoc
  240. +0 −35 grails-documentation-redis/src/docs/guide/8. Testing.gdoc
  241. +0 −23 grails-documentation-redis/src/docs/ref/Beans/redis.gdoc
  242. +0 −24 grails-documentation-redis/src/docs/ref/Domain Classes/expire.gdoc
  243. +0 −15 grails-documentation-redis/src/docs/ref/Domain Classes/pop.gdoc
  244. +0 −15 grails-documentation-redis/src/docs/ref/Domain Classes/random.gdoc
  245. +0 −36 grails-documentation-redis/src/docs/ref/Testing/DatastoreUnitTestMixin.gdoc
  246. +0 −47 grails-documentation-riak/build.gradle
  247. +0 −3  grails-documentation-riak/src/docs/doc.properties
  248. +0 −7 grails-documentation-riak/src/docs/guide/1. Introduction.gdoc
  249. +0 −40 grails-documentation-riak/src/docs/guide/2. Getting Started.gdoc
  250. +0 −25 grails-documentation-riak/src/docs/guide/3. Object Mapping.gdoc
  251. +0 −11 grails-documentation-riak/src/docs/guide/3.1 Dealing with Eventual Consistency.gdoc
  252. +0 −7 grails-documentation-riak/src/docs/guide/4. Querying.gdoc
  253. +0 −40 grails-documentation-riak/src/docs/guide/5. Spring Data Support.gdoc
  254. +0 −21 grails-documentation-riak/src/docs/guide/5.1 RiakBuilder Support.gdoc
  255. +0 −16 grails-documentation-riak/src/docs/guide/6. Map Reduce Support.gdoc
  256. +0 −35 grails-documentation-riak/src/docs/guide/7. Testing.gdoc
  257. +0 −24 grails-documentation-riak/src/docs/ref/Beans/asyncRiakTemplate.gdoc
  258. +0 −20 grails-documentation-riak/src/docs/ref/Beans/riak.gdoc
  259. +0 −20 grails-documentation-riak/src/docs/ref/Beans/riakTemplate.gdoc
  260. +0 −24 grails-documentation-riak/src/docs/ref/Domain Classes/mapreduce.gdoc
  261. +0 −36 grails-documentation-riak/src/docs/ref/Testing/DatastoreUnitTestMixin.gdoc
  262. +0 −14 grails-plugins/mongodb/.classpath
  263. +0 −19 grails-plugins/mongodb/.project
  264. +0 −3  grails-plugins/mongodb/.settings/org.codehaus.groovy.eclipse.preferences.prefs
  265. +0 −14 grails-plugins/mongodb/LICENSE
  266. +0 −162 grails-plugins/mongodb/MongodbGrailsPlugin.groovy
  267. +0 −4 grails-plugins/mongodb/application.properties
  268. +0 −35 grails-plugins/mongodb/grails-app/conf/BuildConfig.groovy
  269. +0 −24 grails-plugins/mongodb/grails-app/conf/Config.groovy
  270. +0 −32 grails-plugins/mongodb/grails-app/conf/DataSource.groovy
  271. +0 −13 grails-plugins/mongodb/grails-app/conf/UrlMappings.groovy
  272. +0 −54 grails-plugins/mongodb/grails-app/views/error.gsp
  273. BIN  grails-plugins/mongodb/lib/spring-data-document-core-1.0.0.BUILD-SNAPSHOT.jar
  274. BIN  grails-plugins/mongodb/lib/spring-data-mongodb-1.0.0.BUILD-SNAPSHOT.jar
  275. +0 −10 grails-plugins/mongodb/scripts/_Install.groovy
  276. +0 −5 grails-plugins/mongodb/scripts/_Uninstall.groovy
  277. +0 −10 grails-plugins/mongodb/scripts/_Upgrade.groovy
  278. +0 −14 grails-plugins/redis/.classpath
  279. +0 −19 grails-plugins/redis/.project
  280. +0 −3  grails-plugins/redis/.settings/org.codehaus.groovy.eclipse.preferences.prefs
  281. +0 −14 grails-plugins/redis/LICENSE
  282. +0 −130 grails-plugins/redis/RedisGrailsPlugin.groovy
  283. +0 −4 grails-plugins/redis/application.properties
  284. +0 −43 grails-plugins/redis/build.gradle
  285. +0 −28 grails-plugins/redis/grails-app/conf/BuildConfig.groovy
  286. +0 −24 grails-plugins/redis/grails-app/conf/Config.groovy
  287. +0 −32 grails-plugins/redis/grails-app/conf/DataSource.groovy
  288. +0 −13 grails-plugins/redis/grails-app/conf/UrlMappings.groovy
  289. +0 −54 grails-plugins/redis/grails-app/views/error.gsp
  290. +0 −35 grails-plugins/redis/redis-grails-plugin.iml
  291. +0 −10 grails-plugins/redis/scripts/_Install.groovy
  292. +0 −5 grails-plugins/redis/scripts/_Uninstall.groovy
  293. +0 −10 grails-plugins/redis/scripts/_Upgrade.groovy
  294. +0 −49 grails-plugins/redis/src/groovy/org/grails/plugins/redis/RedisDatastoreFactoryBean.groovy
  295. +0 −28 grails-plugins/redis/src/groovy/org/grails/plugins/redis/RedisMappingContextFactoryBean.groovy
  296. +0 −180 grails-plugins/riak/RiakGrailsPlugin.groovy
  297. +0 −4 grails-plugins/riak/application.properties
  298. +0 −62 grails-plugins/riak/build.gradle
  299. +0 −42 grails-plugins/riak/grails-app/conf/BuildConfig.groovy
  300. +0 −24 grails-plugins/riak/grails-app/conf/Config.groovy
Sorry, we could not display the entire diff because too many files (568) changed.
View
40 README.txt
@@ -1,42 +1,4 @@
Grails Inconsequential
----------------------
-Building
---------
-
-To build the project use the Gradle build. You do not need Gradle installed to do this.
-
-Simply type:
-
-./gradlew assemble
-
-Requirements
-------------
-
-Cassandra
----------
-
-The Cassandra module requires Hector to be installed into your local Maven cache.
-
-Hector does not at this time exist in a public Maven repository.
-
-To do so execute the following commands:
-
-git clone git://github.com/rantav/hector.git
-cd hector
-mvn -DskipTests=true install
-
-
-Redis
------
-
-To run tests against the Redis module you need a running instance of Redis. To
-get started do the following:
-
-
-git clone git://github.com/antirez/redis.git
-cd redis
-make
-cd src
-./redis-server
-
+Project moved to https://github.com/SpringSource/grails-data-mapping
View
273 build.gradle
@@ -1,273 +0,0 @@
-
-def spockDependency = "org.spockframework:spock-core:0.5-groovy-1.7-SNAPSHOT"
-
-def groovyProjects() {
- subprojects.findAll { project -> isGroovyProject(project) }
-}
-
-def isGroovyProject(project) {
- def isGrailsPlugin = project.name.contains("grails-plugins")
- def isDocumentation = project.name.contains("documentation")
- !isGrailsPlugin && !isDocumentation
-}
-
-subprojects {
-
- releaseType = "BUILD-SNAPSHOT"
- version = "1.0.0.${releaseType}"
-
- def isSpringProject = project.name.contains("spring-datastore")
- def isStandardGroovyMavenProject = isGroovyProject(project)
-
- if(isStandardGroovyMavenProject) {
- apply plugin: 'groovy'
- apply plugin: 'eclipse'
- apply plugin: 'maven'
- apply from: "file:${rootDir}/clover.gradle"
- }
-
- def isGormDatasource = project.name.startsWith("grails-datastore-gorm-") && !project.name.endsWith("tck")
-
- repositories {
- mavenRepo name:'mavenLocal',
- urls:new File( System.getProperty("user.home" ), ".m2/repository" ).toURL().toString()
- mavenRepo name: "spock-snapshots", urls: ["http://m2repo.spockframework.org/snapshots"]
- mavenRepo name: "springAWS", urls: 'http://maven.springframework.org/release'
- mavenRepo name: "spring-milestone", urls: 'http://maven.springframework.org/milestone'
- mavenRepo name: "spring-snapshot", urls: 'http://maven.springframework.org/snapshot'
- mavenRepo name: "jboss", urls:'http://repository.jboss.org/maven2/'
- mavenRepo name: "java.net", urls:"http://download.java.net/maven/2/"
- mavenCentral()
- }
-
- dependencies {
- if(isStandardGroovyMavenProject) {
- groovy group: 'org.codehaus.groovy', name: 'groovy-all', version: '1.7.5'
-
- testCompile 'junit:junit:4.8.1'
- testCompile spockDependency
- }
-
- if (project.name == "grails-datastore-gorm-tck") {
- compile spockDependency
- }
- }
-
- if (isGormDatasource) {
- dependencies {
- testCompile project(":grails-datastore-gorm-tck")
- }
-
- // We need to test against the TCK. Gradle cannot find/run tests from jars
- // without a lot of plumbing, so here we copy the class files from the TCK
- // project into this project's test classes dir so Gradle can find the test
- // classes and run them. See grails.gorm.tests.GormDatastoreSpec for on the TCK.
-
- // helper, used below.
- def toBaseClassRelativePathWithoutExtension = { String base, String classFile ->
- if (classFile.startsWith(base)) {
- def sansClass = classFile[0 .. classFile.size() - ".class".size() - 1]
- def dollarIndex = sansClass.indexOf('$')
- def baseClass = dollarIndex > 0 ? sansClass[0..dollarIndex - 1] : sansClass
- def relative = baseClass - base - '/'
- relative
- } else {
- null
- }
- }
-
- test.doFirst {
- def tckClassesDir = project(":grails-datastore-gorm-tck").sourceSets.main.classesDir
- def thisProjectsTests = // surely there is a less hardcoded way to do this
- copy {
- from tckClassesDir
- into sourceSets.test.classesDir
- include "**/*.class"
- exclude { details ->
- // Do not copy across any TCK class (or nested classes of that class)
- // If there is a corresponding source file in the particular modules
- // test source tree. Allows a module to override a test/helper.
-
- def candidatePath = details.file.absolutePath
- def relativePath = toBaseClassRelativePathWithoutExtension(tckClassesDir.absolutePath, candidatePath)
-
- if (relativePath == null) {
- throw new IllegalStateException("$candidatePath does not appear to be in the TCK")
- }
-
- project.file("src/test/groovy/${relativePath}.groovy").exists()
- }
- }
- }
- }
-
- if(project.name.startsWith("grails-")) {
- group = "org.grails"
- archivesBaseName = "grails-datastore"
- }
- else {
- group = "org.springframework"
- archivesBaseName = 'spring-datastore'
- }
-
- if(isStandardGroovyMavenProject) {
- configure(install.repositories.mavenInstaller) {
- pom.whenConfigured { pom ->
- def dependency = pom.dependencies.find { dep -> dep.artifactId == 'slf4j-simple' }
- dependency?.optional = true
- }
- pom.project {
- licenses {
- license {
- name 'The Apache Software License, Version 2.0'
- url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
- distribution 'http://github.com/grails/inconsequential'
- }
- }
- }
- }
-
- uploadArchives {
- description = "Does a maven deploy of archives artifacts"
- def isDav = System.getProperty("deploy.protocol") == 'dav'
- def protocol = isDav ? 'dav:' : ''
-// def releaseRepositoryUrl = "https://dav.codehaus.org/repository/grails/"
-/* def milestoneRepositoryUrl = isSpringProject ? 's3://maven.springframework.org/milestone' :
- "${protocol}https://dav.codehaus.org/repository/grails/"
- def snapshotRepositoryUrl = isSpringProject ? 's3://maven.springframework.org/snapshot' :
- "${protocol}https://dav.codehaus.org/snapshots.repository/grails/"
-*/
- def milestoneRepositoryUrl = 's3://maven.springframework.org/milestone'
- def snapshotRepositoryUrl = 's3://maven.springframework.org/snapshot'
-
- // add a configuration with a classpath that includes our s3 maven deployer
- configurations { deployerJars }
- dependencies {
-
- deployerJars "org.springframework.build.aws:org.springframework.build.aws.maven:3.0.0.RELEASE"
-
- // NOTE!!!!!: Maven deployment over webdav is broken due to SHA1 checksum issues. To deploy
- // you first need to run ./gradlew -Ddeploy.protocol=dav uploadArchives
- // and then ./gradlew uploadArchives a second time to get a valid deployment
-
- if(isDav) {
- deployerJars "org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-6"
- }
- else {
- deployerJars "org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-6"
- }
-
-
-
- }
-
- repositories.mavenDeployer {
- switch (releaseType) {
- case 'RELEASE':
- // TODO: Will need to update this when doing a non-snapshot/milestone release
-// repository(url: releaseRepositoryUrl)
-// description += releaseRepositoryUrl
- break;
-
- case ~/M[0-9]+/:
- description += milestoneRepositoryUrl
- // fall through and pick up config below
-
- case 'BUILD-SNAPSHOT':
- description += snapshotRepositoryUrl
- def credentials
-/* if(isSpringProject) {
-*/ credentials = [userName: project.properties.s3AccessKey,
- passphrase: project.properties.s3SecretAccessKey]
-/* }
- else {
- credentials = [userName: project.properties['codehaus.username'],
- password: project.properties['codehaus.password']]
- }
-*/ configuration = configurations.deployerJars
- repository(url: milestoneRepositoryUrl) {
- authentication(credentials)
- }
- snapshotRepository(url: snapshotRepositoryUrl) {
- authentication(credentials)
- }
- break;
- }
-
- pom.project {
- licenses {
- license {
- name 'The Apache Software License, Version 2.0'
- url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
- distribution 'repo'
- }
- }
- }
- }
- }
-
- }
-}
-
-configurations {
- build
-}
-
-repositories {
- mavenCentral()
-}
-
-dependencies {
- build "com.cenqua.clover:clover:3.0.2"
- build "org.apache.ant:ant-junit:1.8.1"
- build "org.apache.ant:ant-nodeps:1.8.1"
-}
-
-task test(dependsOn: getTasksByName("test", true)) << {
- def reportsDir = "${buildDir}/reports"
-
- // Aggregate the test results
- ant.taskdef(
- name: 'junitreport2',
- classname: "org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator",
- classpath: configurations.build.asPath
- )
-
- def testReportsDir = new File("${reportsDir}/tests")
- if (testReportsDir.exists()) {
- testReportsDir.deleteDir()
- }
- testReportsDir.mkdirs()
-
- ant.junitreport2(todir: testReportsDir) {
- subprojects.each {
- def testResultsDir = "${it.buildDir}/test-results"
- if (new File(testResultsDir).exists()) {
- fileset(dir: testResultsDir) {
- include(name: "TEST-*.xml")
- }
- }
- }
- report(todir: testReportsDir)
- }
-
- // Aggregate the coverage results
- if (project.hasProperty("withClover")) {
- def db = "clover/clover.db"
- def mergedDb = "${buildDir}/${db}"
- def cloverReportsDir = "${reportsDir}/clover"
- ant.taskdef(resource: "cloverlib.xml", classpath: configurations.build.asPath)
- ant."clover-merge"(initstring: mergedDb) {
- subprojects.each {
- def projectCloverDb = "${it.buildDir}/${db}"
- if (new File(projectCloverDb).exists()) {
- cloverdb(initstring: projectCloverDb)
- }
- }
- }
- ant."clover-report"(initstring: mergedDb) {
- current(outfile:"${cloverReportsDir}/clover.xml")
- }
- ant."clover-html-report"(initstring: mergedDb, outdir:"${cloverReportsDir}/html")
- }
-}
View
94 clover.gradle
@@ -1,94 +0,0 @@
-apply plugin: "groovy"
-
-def cloverConvention = new CloverPluginConvention(project)
-project.convention.plugins.clover = cloverConvention
-
-class CloverPluginConvention {
- def classesBackupDir
- def licenseFile
-
- def clover(Closure close) {
- close.delegate = this
- close.run()
- }
-
- CloverPluginConvention(Project project) {
- classesBackupDir = "${project.sourceSets.main.classesDir}-bak"
- licenseFile = "/Developer/grails-dev/core/inconsequential/clover.license"
- }
-}
-
-dependencies {
- testRuntime "com.cenqua.clover:clover:3.0.2"
-}
-
-test.doFirst {
- if (project.hasProperty("withClover")) {
- ant.taskdef(name: 'groovyc', classname:"org.codehaus.groovy.ant.Groovyc", classpath:configurations.testRuntime.asPath)
- ant.taskdef(resource:"cloverlib.xml", classpath:configurations.testRuntime.asPath)
- ant.property(name:"clover.license.path", value:cloverConvention.licenseFile)
-
- ant."clover-clean"()
-
- ant.'clover-setup'(initString: "${buildDir}/clover/clover.db", tmpDir: "${buildDir}/clover/tmp") {
- ["java", "groovy"].each { source ->
- ["main", "test"].each { type ->
- sourceSets."$type"."$source".srcDirs.each {
- if (it.exists()) {
- ant.fileset(dir: it) {
- include(name: "**/*.groovy")
- include(name: "**/*.java")
- }
- }
- }
- }
- }
- }
-
- //move original classes
- ant.move(file:sourceSets.main.classesDir, tofile:cloverConvention.classesBackupDir)
-
- //compile instrumented classes
- sourceSets.main.classesDir.mkdirs()
- ant.groovyc(
- destdir:sourceSets.main.classesDir,
- fork: true,
- verbose: true
- ) {
- classpath {
- pathElement path:configurations.testCompile.asPath
- }
- javac(source:sourceCompatibility, target: targetCompatibility) {
- classpath {
- pathElement path:configurations.testRuntime.asPath
- }
- }
-
- ["java", "groovy"].each { source ->
- sourceSets.main."$source".srcDirs.each {
- if (it.exists()) {
- src(path: it)
- }
- }
- }
- }
-
- //copy resources
- ant.copy(todir:sourceSets.main.classesDir) {
- fileset(dir:cloverConvention.classesBackupDir, excludes:"**/*.class")
- }
- }
-}
-
-test.doLast {
- if (project.hasProperty("withClover") && new File(cloverConvention.classesBackupDir).exists()) {
- // restore original classes
- ant.delete(file: sourceSets.main.classesDir)
- ant.move(file:cloverConvention.classesBackupDir, tofile:sourceSets.main.classesDir)
-
- ant."clover-report" {
- current(outfile:"${reportsDir}/clover/clover.xml")
- }
- ant."clover-html-report"(outdir:"${reportsDir}/clover/html");
- }
-}
View
5 clover.license
@@ -1,5 +0,0 @@
-pmqOPPevJRxewUAoSwGTXaKrPNwRSFgqNRUUNwpFTlvnMC
-mi2KC0BWSj8iuzoLZUtK<49L2K70p6Dqxa0wTtoVPIQuB2
-rqRoTuoqpmNOnopnoOpTUOmonooOQQRnoRUUTvSwvxuvPP
-nmQnmqmUUnottnouummmmmUUnottnouummmmmUU7oXfipU
-Unmmmm
View
4 gradle.properties
@@ -1,4 +0,0 @@
-s3AccessKey=<YOUR S3 KEY>
-s3SecretAccessKey=<YOUR S3 ACCESS KEY>
-codehaus.username=<YOUR CODEHAUS USERNAME>
-codehaus.password=<YOUR CODEHAUS PASSWORD>
View
BIN  gradle/wrapper/gradle-wrapper.jar
Binary file not shown
View
9 gradle/wrapper/gradle-wrapper.properties
@@ -1,9 +0,0 @@
-#Wed Oct 27 06:30:22 EDT 2010
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-distributionVersion=0.9-build-daemon-20101027111821+1100
-zipStorePath=wrapper/dists
-urlRoot=http\://gradle.artifactoryonline.com/gradle/distributions/gradle-snapshots
-distributionName=gradle
-distributionClassifier=bin
View
142 gradlew
@@ -1,142 +0,0 @@
-#!/bin/bash
-
-##############################################################################
-## ##
-## Gradle wrapper script for UN*X ##
-## ##
-##############################################################################
-
-# Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together.
-GRADLE_OPTS="$GRADLE_OPTS -Xmx1024m"
-# JAVA_OPTS="$JAVA_OPTS -Xmx512"
-
-GRADLE_APP_NAME=Gradle
-
-warn ( ) {
- echo "${PROGNAME}: $*"
-}
-
-die ( ) {
- warn "$*"
- exit 1
-}
-
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-case "`uname`" in
- CYGWIN* )
- cygwin=true
- ;;
- Darwin* )
- darwin=true
- ;;
- MINGW* )
- msys=true
- ;;
-esac
-
-# Attempt to set JAVA_HOME if it's not already set.
-if [ -z "$JAVA_HOME" ] ; then
- if $darwin ; then
- [ -z "$JAVA_HOME" -a -d "/Library/Java/Home" ] && export JAVA_HOME="/Library/Java/Home"
- [ -z "$JAVA_HOME" -a -d "/System/Library/Frameworks/JavaVM.framework/Home" ] && export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
- else
- javaExecutable="`which javac`"
- [ -z "$javaExecutable" -o "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ] && die "JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME."
- # readlink(1) is not available as standard on Solaris 10.
- readLink=`which readlink`
- [ `expr "$readLink" : '\([^ ]*\)'` = "no" ] && die "JAVA_HOME not set and readlink not available, please set JAVA_HOME."
- javaExecutable="`readlink -f \"$javaExecutable\"`"
- javaHome="`dirname \"$javaExecutable\"`"
- javaHome=`expr "$javaHome" : '\(.*\)/bin'`
- export JAVA_HOME="$javaHome"
- fi
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched.
-if $cygwin ; then
- [ -n "$JAVACMD" ] && JAVACMD=`cygpath --unix "$JAVACMD"`
- [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-fi
-
-STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain
-CLASSPATH=`dirname "$0"`/gradle/wrapper/gradle-wrapper.jar
-WRAPPER_PROPERTIES=`dirname "$0"`/gradle/wrapper/gradle-wrapper.properties
-# Determine the Java command to use to start the JVM.
-if [ -z "$JAVACMD" ] ; then
- if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- else
- JAVACMD="java"
- fi
-fi
-if [ ! -x "$JAVACMD" ] ; then
- die "JAVA_HOME is not defined correctly, can not execute: $JAVACMD"
-fi
-if [ -z "$JAVA_HOME" ] ; then
- warn "JAVA_HOME environment variable is not set"
-fi
-
-# For Darwin, add GRADLE_APP_NAME to the JAVA_OPTS as -Xdock:name
-if $darwin; then
- JAVA_OPTS="$JAVA_OPTS -Xdock:name=$GRADLE_APP_NAME"
-# we may also want to set -Xdock:image
-fi
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
- JAVA_HOME=`cygpath --path --mixed "$JAVA_HOME"`
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
-
- # We build the pattern for arguments to be converted via cygpath
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
- SEP=""
- for dir in $ROOTDIRSRAW ; do
- ROOTDIRS="$ROOTDIRS$SEP$dir"
- SEP="|"
- done
- OURCYGPATTERN="(^($ROOTDIRS))"
- # Add a user-defined pattern to the cygpath arguments
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
- fi
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- i=0
- for arg in "$@" ; do
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
-
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
- else
- eval `echo args$i`="\"$arg\""
- fi
- i=$((i+1))
- done
- case $i in
- (0) set -- ;;
- (1) set -- "$args0" ;;
- (2) set -- "$args0" "$args1" ;;
- (3) set -- "$args0" "$args1" "$args2" ;;
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
- esac
-fi
-
-"$JAVACMD" $JAVA_OPTS $GRADLE_OPTS \
- -classpath "$CLASSPATH" \
- -Dorg.gradle.wrapper.properties="$WRAPPER_PROPERTIES" \
- $STARTER_MAIN_CLASS \
- "$@"
View
126 gradlew.bat
@@ -1,126 +0,0 @@
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem ##
-@rem Gradle startup script for Windows ##
-@rem ##
-@rem ##########################################################################
-
-@rem
-@rem $Revision: 10602 $ $Date: 2008-01-25 02:49:54 +0100 (ven., 25 janv. 2008) $
-@rem
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-@rem Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together.
-@rem set GRADLE_OPTS=%GRADLE_OPTS% -Xmx512
-@rem set JAVA_OPTS=%JAVA_OPTS% -Xmx512
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.\
-
-@rem Determine the command interpreter to execute the "CD" later
-set COMMAND_COM="cmd.exe"
-if exist "%SystemRoot%\system32\cmd.exe" set COMMAND_COM="%SystemRoot%\system32\cmd.exe"
-if exist "%SystemRoot%\command.com" set COMMAND_COM="%SystemRoot%\command.com"
-
-@rem Use explicit find.exe to prevent cygwin and others find.exe from being used
-set FIND_EXE="find.exe"
-if exist "%SystemRoot%\system32\find.exe" set FIND_EXE="%SystemRoot%\system32\find.exe"
-if exist "%SystemRoot%\command\find.exe" set FIND_EXE="%SystemRoot%\command\find.exe"
-
-:check_JAVA_HOME
-@rem Make sure we have a valid JAVA_HOME
-if not "%JAVA_HOME%" == "" goto have_JAVA_HOME
-
-echo.
-echo ERROR: Environment variable JAVA_HOME has not been set.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-echo.
-goto end
-
-:have_JAVA_HOME
-@rem Validate JAVA_HOME
-%COMMAND_COM% /C DIR "%JAVA_HOME%" 2>&1 | %FIND_EXE% /I /C "%JAVA_HOME%" >nul
-if not errorlevel 1 goto init
-
-echo.
-echo ERROR: JAVA_HOME might be set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation if there are problems.
-echo.
-
-:init
-@rem get name of script to launch with full path
-@rem Get command-line arguments, handling Windowz variants
-SET _marker=%JAVA_HOME: =%
-@rem IF NOT "%_marker%" == "%JAVA_HOME%" ECHO JAVA_HOME "%JAVA_HOME%" contains spaces. Please change to a location without spaces if this causes problems.
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-if "%eval[2+2]" == "4" goto 4NT_args
-
-IF "%_marker%" == "%JAVA_HOME%" goto :win9xME_args
-
-set _FIXPATH=
-call :fixpath "%JAVA_HOME%"
-set JAVA_HOME=%_FIXPATH:~1%
-
-goto win9xME_args
-
-:fixpath
-if not %1.==. (
-for /f "tokens=1* delims=;" %%a in (%1) do (
-call :shortfilename "%%a" & call :fixpath "%%b"
-)
-)
-goto :EOF
-:shortfilename
-for %%i in (%1) do set _FIXPATH=%_FIXPATH%;%%~fsi
-goto :EOF
-
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-goto execute
-
-:4NT_args
-@rem Get arguments from the 4NT Shell from JP Software
-set CMD_LINE_ARGS=%$
-
-:execute
-@rem Setup the command line
-
-set STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain
-set CLASSPATH=%DIRNAME%\gradle\wrapper\gradle-wrapper.jar
-set WRAPPER_PROPERTIES=%DIRNAME%\gradle\wrapper\gradle-wrapper.properties
-set JAVA_EXE=%JAVA_HOME%\bin\java.exe
-
-set GRADLE_OPTS=%JAVA_OPTS% %GRADLE_OPTS% -Dorg.gradle.wrapper.properties="%WRAPPER_PROPERTIES%"
-
-"%JAVA_EXE%" %GRADLE_OPTS% -classpath "%CLASSPATH%" %STARTER_MAIN_CLASS% %CMD_LINE_ARGS%
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1
-
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit "%ERRORLEVEL%"
-exit /b "%ERRORLEVEL%"
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
View
7 grails-datastore-gorm-gemfire/build.gradle
@@ -1,7 +0,0 @@
-dependencies {
- compile project(":grails-datastore-gorm"),
- project(":spring-datastore-gemfire"),
- project(":spring-datastore-core")
- testCompile project(":grails-datastore-gorm-test"),project(":grails-datastore-gorm-tck")
-}
-jar.appendix = 'gorm-gemfire'
View
38 grails-datastore-gorm-gemfire/grails-datastore-gorm-gemfire.iml
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="JAVA_MODULE" version="4">
- <component name="NewModuleRootManager" inherit-compiler-output="true">
- <exclude-output />
- <content url="file://$MODULE_DIR$">
- <sourceFolder url="file://$MODULE_DIR$/src/main/groovy" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/test/groovy" isTestSource="true" />
- <excludeFolder url="file://$MODULE_DIR$/build" />
- </content>
- <orderEntry type="inheritedJdk" />
- <orderEntry type="sourceFolder" forTests="false" />
- <orderEntry type="module" module-name="core" />
- <orderEntry type="module" module-name="grails-datastore-gorm" />
- <orderEntry type="module" module-name="grails-datastore-gorm-tck" />
- <orderEntry type="module" module-name="spring-datastore-gemfire" />
- <orderEntry type="library" name="Groovy" level="project" />
- <orderEntry type="library" name="Spring Beans" level="project" />
- <orderEntry type="library" name="SLF4J" level="project" />
- <orderEntry type="library" name="Spring Core" level="project" />
- <orderEntry type="library" name="Javassist" level="project" />
- <orderEntry type="library" name="Spring Context" level="project" />
- <orderEntry type="library" name="Spock" level="project" />
- <orderEntry type="library" name="JUnit" level="project" />
- <orderEntry type="library" name="Spring Gemfire" level="project" />
- <orderEntry type="library" name="Gemfire" level="project" />
- <orderEntry type="library" name="Spring Transaction" level="project" />
- <orderEntry type="module-library">
- <library name="ANTLR">
- <CLASSES>
- <root url="jar://$GRADLE_REPOSITORY$/antlr/antlr/jars/antlr-2.7.7.jar!/" />
- </CLASSES>
- <JAVADOC />
- <SOURCES />
- </library>
- </orderEntry>
- </component>
-</module>
-
View
98 ...-gorm-gemfire/src/main/groovy/org/grails/datastore/gorm/gemfire/ContinuousQueryApi.groovy
@@ -1,98 +0,0 @@
-/* Copyright (C) 2010 SpringSource
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.grails.datastore.gorm.gemfire
-
-import org.springframework.datastore.mapping.model.PersistentEntity
-import org.springframework.datastore.mapping.gemfire.GemfireDatastore
-import org.grails.datastore.gorm.finders.FinderMethod
-import org.grails.datastore.gorm.finders.DynamicFinder
-import org.springframework.datastore.mapping.gemfire.query.GemfireQuery
-import com.gemstone.gemfire.cache.query.CqAttributesFactory
-import com.gemstone.gemfire.cache.query.CqListener
-import com.gemstone.gemfire.cache.query.CqAttributes
-import com.gemstone.gemfire.cache.client.PoolManager
-import com.gemstone.gemfire.cache.client.Pool
-import com.gemstone.gemfire.cache.query.CqEvent
-
-/**
- * Extended API for doing Continous queries in Gemfire
- */
-class ContinuousQueryApi {
-
- final PersistentEntity entity
- final GemfireDatastore gemfire
-
- private dynamicFinders;
-
- ContinuousQueryApi(PersistentEntity entity, GemfireDatastore gemfire) {
- this.entity = entity
- this.gemfire = gemfire
- this.dynamicFinders = DynamicFinder.getAllDynamicFinders(gemfire)
- }
-
- def invokeMethod(String methodName, args) {
- FinderMethod method = dynamicFinders.find { FinderMethod f -> f.isMethodMatch(methodName) }
- def cls = entity.javaClass
- if (method && args && (args[-1] instanceof Closure) && (method instanceof DynamicFinder)) {
- DynamicFinder dynamicFinder = method
-
- def invocation = dynamicFinder.createFinderInvocation(entity.javaClass, methodName, null, args)
- GemfireQuery q = dynamicFinder.buildQuery(invocation)
- def queryString = q.getQueryString()
-
- def gemfirePool = gemfire.gemfirePool
- if(gemfirePool == null) {
- throw new IllegalStateException("Cannot invoke a continuous query without an appropriately initialized Gemfire Pool")
- }
- def queryService = gemfirePool.getQueryService()
-
-
- CqAttributesFactory cqf = new CqAttributesFactory()
- def listeners = [new ClosureInvokingCqListener(args[-1])] as CqListener[]
- cqf.initCqListeners(listeners)
- CqAttributes attrs = cqf.create()
-
- def cqName = "${entity.name}.${methodName}(${args[0..-2].join(',')})"
- def continuousQuery = queryService.newCq(cqName,queryString, attrs)
-
- continuousQuery.execute()
- gemfire.addContinuousQuery(continuousQuery)
- return continuousQuery
- }
- else {
- throw new MissingMethodException(methodName, cls, args)
- }
- }
-}
-class ClosureInvokingCqListener implements CqListener{
-
- Closure callable
-
- ClosureInvokingCqListener(callable) {
- this.callable = callable;
- }
-
- void onEvent(CqEvent cqEvent) {
- callable?.call(cqEvent)
- }
-
- void onError(CqEvent cqEvent) {
- callable?.call(cqEvent)
- }
-
- void close() {
- // do nothing
- }
-}
View
264 ...gorm-gemfire/src/main/groovy/org/grails/datastore/gorm/gemfire/GemfireGormEnhancer.groovy
@@ -1,264 +0,0 @@
-/* Copyright (C) 2010 SpringSource
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.grails.datastore.gorm.gemfire
-
-import org.grails.datastore.gorm.GormEnhancer
-import org.grails.datastore.gorm.GormStaticApi
-import org.springframework.datastore.mapping.gemfire.GemfireDatastore
-import org.springframework.datastore.mapping.core.Datastore
-import org.springframework.data.gemfire.GemfireTemplate
-import org.springframework.data.gemfire.GemfireCallback
-import com.gemstone.gemfire.cache.Region
-import org.springframework.datastore.mapping.query.order.ManualEntityOrdering
-import org.springframework.datastore.mapping.query.Query
-import com.gemstone.gemfire.cache.execute.FunctionService
-import com.gemstone.gemfire.cache.execute.FunctionAdapter
-import com.gemstone.gemfire.cache.execute.FunctionContext
-import com.gemstone.gemfire.cache.partition.PartitionRegionHelper
-import com.gemstone.gemfire.cache.execute.RegionFunctionContext
-import com.gemstone.gemfire.cache.execute.ResultSender
-import org.springframework.util.ReflectionUtils
-
-/**
- * Extends the default GORM capabilities adding Gemfire specific methods
- */
-class GemfireGormEnhancer extends GormEnhancer{
-
- GemfireGormEnhancer(GemfireDatastore datastore) {
- super(datastore);
- }
-
- GemfireGormEnhancer(GemfireDatastore datastore, transactionManager) {
- super(datastore, transactionManager);
- }
-
- protected GormStaticApi getStaticApi(Class cls) {
- return new GemfireStaticApi(cls, (GemfireDatastore)datastore)
- }
-
-
-}
-
-/**
- * Wrapper for invoking Gemfire functions
- */
-class ClosureInvokingFunction extends FunctionAdapter {
-
- def callable
- String id
-
- ClosureInvokingFunction(Closure callable, id) {
- this.callable = callable;
- this.id = id;
-
- disableOwner(callable)
- }
-
- protected disableOwner(Closure callable) {
- // disable owner to prevent the owner being serialized with the function
- nullifyField(callable, "owner")
- nullifyField(callable, "delegate")
- nullifyField(callable, "thisObject")
- }
-
- protected nullifyField(Closure callable, String fieldName) {
- def field = ReflectionUtils.findField(callable.getClass(), fieldName)
- ReflectionUtils.makeAccessible field
- field.set callable, null
- }
-
- ClosureInvokingFunction(callable) {
- this(callable, callable.getClass().name)
- }
-
- void execute(FunctionContext functionContext) {
- def helper = new FunctionContextHelper(functionContext)
- callable.resolveStrategy = Closure.DELEGATE_FIRST
- callable?.call(helper)
- }
-
-
-}
-
-class FunctionContextHelper implements RegionFunctionContext, ResultSender, Serializable {
- @Delegate RegionFunctionContext context
- @Delegate ResultSender resultSender
- FunctionContextHelper(RegionFunctionContext context) {
- this.context = context;
- this.resultSender = context.resultSender
- }
-
- def getLocalData() {
- PartitionRegionHelper.getLocalDataForContext(context)
- }
-
- Set<?> getFilter() {
- return context.filter
- }
-
- Region getDataSet() {
- return context.dataSet
- }
-
- Serializable getArguments() {
- return context.arguments
- }
-
- String getFunctionId() {
- return context.functionId
- }
-
- void sendResult(Serializable t) {
- resultSender.sendResult t
- }
-
- void lastResult(Serializable t) {
- resultSender.lastResult t
- }
-}
-/**
- * Adds support for String-based queries using OQL and continuous queries
- */
-class GemfireStaticApi extends GormStaticApi {
-
- ContinuousQueryApi cqApi
- GemfireStaticApi(Class persistentClass, GemfireDatastore datastore) {
- super(persistentClass, datastore);
- cqApi = new ContinuousQueryApi(persistentEntity, datastore)
- }
-
- ContinuousQueryApi getCq() { cqApi }
-
- def executeFunction(Collection keys, Closure callable) {
- GemfireDatastore gemfire = datastore
- GemfireTemplate template = gemfire.getTemplate(persistentClass)
- def resultCollector = FunctionService
- .onRegion(template.region)
- .withFilter(keys as Set)
- .execute(new ClosureInvokingFunction(callable))
-
- return resultCollector.getResult()
- }
-
- def executeFunction(Closure callable) {
- GemfireDatastore gemfire = datastore
- GemfireTemplate template = gemfire.getTemplate(persistentClass)
- def resultCollector = FunctionService
- .onRegion(template.region)
- .execute(new ClosureInvokingFunction(callable))
-
- return resultCollector.getResult()
- }
-
- def executeQuery(String query) {
- GemfireDatastore gemfire = datastore
- GemfireTemplate template = gemfire.getTemplate(persistentClass)
-
- template?.query(query)?.asList() ?: Collections.emptyList()
- }
-
- def executeQuery(String query, Collection params) {
- executeQuery(query, params, Collections.emptyMap())
- }
-
- def Object executeQuery(String query, Map args) {
- executeQuery(query, Collections.emptyList(), args)
- }
-
- def Object executeQuery(String query, Collection params, Map args) {
- GemfireDatastore gemfire = datastore
- GemfireTemplate template = gemfire.getTemplate(persistentClass)
-
- template.execute( { Region region ->
- def cache = gemfire.gemfireCache
- def queryService = cache.queryService
-
- def q = queryService.newQuery("SELECT DISTINCT * FROM /${persistentEntity.decapitalizedName} WHERE ${query}")
- def results = q.execute(params.toArray()).asList()
-
- if(args?.sort) {
- def prop = args.sort
- def ordering = new ManualEntityOrdering(persistentEntity)
- if(args?.order == 'desc')
- results = ordering.applyOrder(results, Query.Order.desc(prop))
- else
- results = ordering.applyOrder(results, Query.Order.asc(prop))
- }
-
- return results
- } as GemfireCallback)
- }
-
- def find(String query) {
- def results = executeQuery("$query LIMIT 1")
- if(results) {
- return results[0]
- }
- else {
- return null
- }
- }
-
- def find(String query, Collection params) {
- def results = executeQuery("$query LIMIT 1", params)
- if(results) {
- return results[0]
- }
- else {
- return null
- }
- }
-
- def find(String query, Map args) {
- def results = executeQuery("$query LIMIT 1", args)
- if(results) {
- return results[0]
- }
- else {
- return null
- }
- }
-
- def find(String query, Collection params, Map args) {
- def results = executeQuery("$query LIMIT 1", params, args)
- if(results) {
- return results[0]
- }
- else {
- return null
- }
- }
-
- List findAll(String query) {
- executeQuery(query)
- }
-
- List findAll(String query, Collection params) {
- executeQuery(query, params)
- }
-
- List findAll(String query, Collection params, Map args) {
- executeQuery(query, params, args)
- }
-
-
- List findAll(String query, Map args) {
- executeQuery(query, args)
- }
-
-
-
-
-}
View
49 ...rc/main/groovy/org/grails/datastore/gorm/gemfire/config/CacheServerConfigGenerator.groovy
@@ -1,49 +0,0 @@
-package org.grails.datastore.gorm.gemfire.config
-
-import org.springframework.datastore.mapping.gemfire.GemfireDatastore
-import org.springframework.datastore.mapping.model.PersistentEntity
-import org.springframework.datastore.mapping.gemfire.config.Region
-
-/**
- *
- * Generates a Gemfire cache.xml configuration for the Datastore
- *
- * @author Graeme Rocher
- * @since 1.0
- */
-class CacheServerConfigGenerator {
-
- GemfireDatastore datastore
-
- CacheServerConfigGenerator(GemfireDatastore datastore) {
- this.datastore = datastore;
- }
-
- void generate(File target) {
- def regions = []
- for(PersistentEntity entity in datastore.mappingContext.persistentEntities) {
- Region r = entity.mapping.mappedForm
- def regionName = r?.region ?: entity.decapitalizedName
- regions << """\
- <region name="${regionName}">
- <region-attributes>
- <partition-attributes redundant-copies="1" />
- </region-attributes>
- </region>
- """
- }
- target.withWriter { w ->
- w << """\
-<?xml version="1.0"?>
-<!DOCTYPE cache PUBLIC
- "-//GemStone Systems, Inc.//GemFire Declarative Caching 6.5//EN"
- "http://www.gemstone.com/dtd/cache6_5.dtd">
-
-<cache>
- ${regions.join(System.getProperty('line.separator'))}
-</cache>
- """
-
- }
- }
-}
View
20 ...m-gemfire/src/main/groovy/org/grails/datastore/gorm/gemfire/config/PoolFactoryBean.groovy
@@ -1,20 +0,0 @@
-package org.grails.datastore.gorm.gemfire.config
-
-/**
- * factory bean for constructing pools
- */
-import com.gemstone.gemfire.cache.client.*
-import org.springframework.beans.factory.*
-
-class PoolFactoryBean implements FactoryBean<Pool>,BeanNameAware {
- PoolFactory poolFactory
- String beanName
-
- Pool getObject() {
- poolFactory.create(beanName)
- }
-
- Class<?> getObjectType() { Pool }
-
- boolean isSingleton() { true }
-}
View
63 grails-datastore-gorm-gemfire/src/test/groovy/org/grails/datastore/gorm/Setup.groovy
@@ -1,63 +0,0 @@
-package org.grails.datastore.gorm
-
-import org.springframework.datastore.mapping.core.Session
-import org.springframework.datastore.mapping.keyvalue.mapping.config.KeyValueMappingContext;
-import org.springframework.datastore.mapping.gemfire.GemfireDatastore
-import org.springframework.datastore.mapping.model.PersistentEntity
-import org.springframework.validation.Errors
-import org.springframework.util.StringUtils
-import org.springframework.validation.Validator
-import org.springframework.datastore.mapping.transactions.DatastoreTransactionManager
-import org.springframework.datastore.mapping.model.MappingContext
-
-import org.grails.datastore.gorm.gemfire.GemfireGormEnhancer
-import org.springframework.datastore.mapping.gemfire.config.GormGemfireMappingFactory
-import com.gemstone.gemfire.cache.DataPolicy
-
-/**
- * Created by IntelliJ IDEA.
- * User: graemerocher
- * Date: Oct 5, 2010
- * Time: 3:33:34 PM
- * To change this template use File | Settings | File Templates.
- */
-class Setup {
- static gemfire
- static destroy() {
- gemfire?.destroy()
- }
- static Session setup(classes) {
- def context = new KeyValueMappingContext("")
- def factory = new GormGemfireMappingFactory()
- factory.defaultDataPolicy = DataPolicy.REPLICATE
- context.mappingFactory = factory
- gemfire = new GemfireDatastore(context)
- gemfire.afterPropertiesSet()
- for(cls in classes) {
- gemfire.mappingContext.addPersistentEntity(cls)
- }
-
- PersistentEntity entity = gemfire.mappingContext.persistentEntities.find { PersistentEntity e -> e.name.contains("TestEntity")}
-
- gemfire.mappingContext.addEntityValidator(entity, [
- supports: { Class c -> true },
- validate: { Object o, Errors errors ->
- if(!StringUtils.hasText(o.name)) {
- errors.rejectValue("name", "name.is.blank")
- }
- }
- ] as Validator)
-
- def enhancer = new GemfireGormEnhancer(gemfire, new DatastoreTransactionManager(datastore: gemfire))
- enhancer.enhance()
-
- gemfire.mappingContext.addMappingContextListener({ e ->
- enhancer.enhance e
- } as MappingContext.Listener)
-
-
- def con = gemfire.connect()
-
- return con
- }
-}
View
31 ...gorm-gemfire/src/test/groovy/org/grails/datastore/gorm/gemfire/ContinuousQuerySpec.groovy
@@ -1,31 +0,0 @@
-package org.grails.datastore.gorm.gemfire
-
-import grails.gorm.tests.GormDatastoreSpec
-import grails.gorm.tests.Plant
-import spock.lang.Ignore
-
-/**
- * Created by IntelliJ IDEA.
- * User: graemerocher
- * Date: Oct 8, 2010
- * Time: 10:22:33 AM
- * To change this template use File | Settings | File Templates.
- */
-class ContinuousQuerySpec extends GormDatastoreSpec{
-
-
- @Ignore
- void "Test that we receive insert events from a continuous query"() {
- given:
- Plant.cq.findAllByGoesInPatch(true) { event ->
- println "GOT EVENT ${event}"
- }
-
- when:
- sleep(1000)
- def p = new Plant(name:"cabbage", goesInPatch:true).save()
-
- then:
- 1 == Plant.count()
- }
-}
View
47 ...rm-gemfire/src/test/groovy/org/grails/datastore/gorm/gemfire/FunctionExecutionSpec.groovy
@@ -1,47 +0,0 @@
-package org.grails.datastore.gorm.gemfire
-
-import spock.lang.Ignore;
-import grails.gorm.tests.Plant
-import grails.gorm.tests.GormDatastoreSpec
-
-/**
- * Created by IntelliJ IDEA.
- * User: graemerocher
- * Date: Oct 15, 2010
- * Time: 2:13:04 PM
- * To change this template use File | Settings | File Templates.
- */
-class FunctionExecutionSpec extends GormDatastoreSpec {
-
- @Ignore
- void "Test a function can be invoked"() {
- given:
- def p = new Plant(name:"cabbage", goesInPatch:true).save()
- when:
- def results = Plant.executeFunction {
- it.lastResult it.localData[p.id]
- }
-
- then:
- p != null
- results != null
- results.size() == 1
-
- }
-
- @Ignore
- void "Test a function can be invoked with a filter"() {
- given:
- def p1 = new Plant(name:"cabbage", goesInPatch:true).save()
- def p2 = new Plant(name:"carrot", goesInPatch:true).save()
- when:
- def results = Plant.executeFunction([p1.id]) {
- it.lastResult it.localData[it.filter.iterator().next()]
- }
-
- then:
- results != null
- results.size() == 1
- results[0].name == 'cabbage'
- }
-}
View
41 ...gemfire/src/test/groovy/org/grails/datastore/gorm/gemfire/GemfireMappingConfigSpec.groovy
@@ -1,41 +0,0 @@
-package org.grails.datastore.gorm.gemfire
-
-import grails.gorm.tests.GormDatastoreSpec
-import com.gemstone.gemfire.cache.DataPolicy
-import org.springframework.datastore.mapping.gemfire.config.Region
-
-/**
- * Created by IntelliJ IDEA.
- * User: graemerocher
- * Date: Oct 13, 2010
- * Time: 2:12:35 PM
- * To change this template use File | Settings | File Templates.
- */
-class GemfireMappingConfigSpec extends GormDatastoreSpec{
-
- void "Test custom region configuration"() {
- given:
- session.mappingContext.addPersistentEntity(CustomConfig)
-
-
- when:
- def entity = session.mappingContext.getPersistentEntity(CustomConfig.name)
- Region region = entity.mapping.mappedForm
-
- then:
- region != null
- region.dataPolicy == DataPolicy.PARTITION
- region.region == "foo"
- }
-}
-
-class CustomConfig {
-
- Long id
- String name
-
- static mapping = {
- dataPolicy DataPolicy.PARTITION
- region "foo"
- }
-}
View
44 ...astore-gorm-gemfire/src/test/groovy/org/grails/datastore/gorm/gemfire/GemfireSuite.groovy
@@ -1,44 +0,0 @@
-package org.grails.datastore.gorm.gemfire
-
-import grails.gorm.tests.*
-import org.junit.runners.Suite.SuiteClasses
-import org.junit.runners.Suite
-import org.junit.runner.RunWith
-
-/**
- * Created by IntelliJ IDEA.
- * User: graemerocher
- * Date: Oct 5, 2010
- * Time: 3:34:07 PM
- * To change this template use File | Settings | File Templates.
- */
-@RunWith(Suite)
-@SuiteClasses([
-// RangeQuerySpec,
-// NamedQuerySpec,
- CriteriaBuilderSpec,
-// OrderBySpec,
-// CommonTypesPersistenceSpec,
-// QueryAfterPropertyChangeSpec,
-// QueryByAssociationSpec,
-// UpdateWithProxyPresentSpec,
-// DomainEventsSpec,
-// ProxyLoadingSpec,
-// QueryAfterPropertyChangeSpec,
-// CircularOneToManySpec,
-// InheritanceSpec,
-// FindByMethodSpec,
-// ListOrderBySpec,
-// GroovyProxySpec,
-// CommonTypesPersistenceSpec,
-// GormEnhancerSpec,
-// NegationSpec,
-//
-// ValidationSpec,
-// UpdateWithProxyPresentSpec,
-// AttachMethodSpec,
-// WithTransactionSpec,
- CrudOperationsSpec
-])
-class GemfireSuite {
-}
View
134 ...astore-gorm-gemfire/src/test/groovy/org/grails/datastore/gorm/gemfire/OqlQuerySpec.groovy
@@ -1,134 +0,0 @@
-package org.grails.datastore.gorm.gemfire
-
-import grails.gorm.tests.GormDatastoreSpec
-import grails.gorm.tests.Plant
-
-/**
- * Created by IntelliJ IDEA.
- * User: graemerocher
- * Date: Oct 7, 2010
- * Time: 2:40:43 PM
- * To change this template use File | Settings | File Templates.
- */
-class OqlQuerySpec extends GormDatastoreSpec{
-
- void "test executeQuery method"() {
- given:
- new Plant(name:"rose", goesInPatch:false).save()
- new Plant(name:"oak", goesInPatch:false).save()
- new Plant(name:"daisy", goesInPatch:true).save(flush:true)
-
- when:
- def results = Plant.executeQuery("goesInPatch = false")
-
- then:
- results.size() == 2
- }
-
- void "test executeQuery method with positional parameters"() {
- given:
- new Plant(name:"rose", goesInPatch:false).save()
- new Plant(name:"oak", goesInPatch:false).save()
- new Plant(name:"daisy", goesInPatch:true).save(flush:true)
-
- when:
- def results = Plant.executeQuery('goesInPatch = $1', [false])
-
- then:
- results.size() == 2
- }
-
- void "test findAll method"() {
- given:
- new Plant(name:"rose", goesInPatch:false).save()
- new Plant(name:"oak", goesInPatch:false).save()
- new Plant(name:"daisy", goesInPatch:true).save(flush:true)
-
- when:
- def results = Plant.findAll("goesInPatch = false")
-
- then:
- results.size() == 2
- }
-
- void "test findAll method with arguments"() {
- given:
- new Plant(name:"rose", goesInPatch:false).save()
- new Plant(name:"oak", goesInPatch:false).save()
- new Plant(name:"daisy", goesInPatch:true).save(flush:true)
-
- when:
- def results = Plant.findAll("goesInPatch = false", [sort:'name']).sort { it.name }
-
- then:
- results.size() == 2
- results[0].name == 'oak'
- results[1].name == 'rose'
-
- when:
- results = Plant.findAll("goesInPatch = false", [sort:'name', order:"desc"]).sort { it.name }.reverse()
-
- then:
- results.size() == 2
- results[0].name == 'rose'
- results[1].name == 'oak'
- }
-
- void "test findAll method with positional parameters"() {
- given:
- new Plant(name:"rose", goesInPatch:false).save()
- new Plant(name:"oak", goesInPatch:false).save()
- new Plant(name:"daisy", goesInPatch:true).save(flush:true)
-
- when:
- def results = Plant.findAll('goesInPatch = $1', [false])
-
- then:
- results.size() == 2
- }
-
-
- void "test findAll method with positional parameters and arguments"() {
- given:
- new Plant(name:"rose", goesInPatch:false).save()
- new Plant(name:"oak", goesInPatch:false).save()
- new Plant(name:"daisy", goesInPatch:true).save(flush:true)
-
- when:
- def results = Plant.findAll('goesInPatch = $1', [false], [sort:'name']).sort { it.name }
-
- then:
- results.size() == 2
- results[0].name == 'oak'
- results[1].name == 'rose'
-
- }
-
- void "test find method"() {
- given:
- new Plant(name:"rose", goesInPatch:false).save()
- new Plant(name:"oak", goesInPatch:false).save()
- new Plant(name:"daisy", goesInPatch:true).save(flush:true)
-
- when:
- def result = Plant.find("name = 'rose'")
-
- then:
- result != null
- result.name == 'rose'
- }
-
- void "test find method with positional parameters"() {
- given:
- new Plant(name:"rose", goesInPatch:false).save()
- new Plant(name:"oak", goesInPatch:false).save()
- new Plant(name:"daisy", goesInPatch:true).save(flush:true)
-
- when:
- def result = Plant.find('name = $1', ['rose'])
-
- then:
- result != null
- result.name == 'rose'
- }
-}
View
47 grails-datastore-gorm-hibernate/build.gradle
@@ -1,47 +0,0 @@
-repositories {
- mavenRepo urls:"http://snapshots.repository.codehaus.org/"
-}
-configurations {
- grails
-}
-dependencies {
- compile( "org.grails:grails-core:1.4.+" ) {
- transitive = false
- }
-
- compile( "org.grails:grails-bootstrap:1.4.+" ) {
- transitive = false
- }
- compile( "org.grails:grails-gorm:1.4.+" ) {
- transitive = false
- }
- compile "org.springframework:spring-orm:3.0.+"
- compile "org.springframework:spring-web:3.0.+"
- compile 'org.hibernate:hibernate-entitymanager:3.4.0.GA'
- compile project(":grails-datastore-gorm"),
- project(":spring-datastore-core")
-
- runtime( "org.grails:grails-docs:1.4.+" ) {
- transitive = false
- }
- runtime "commons-lang:commons-lang:2.4"
- runtime "commons-beanutils:commons-beanutils:1.8.0"
-
- testCompile 'hsqldb:hsqldb:1.8.0.10'
-
-
- testCompile project(":grails-datastore-gorm-tck")
-}
-test {
- jvmArgs "-Xmx1024m"
-}
-jar.appendix = 'gorm-hibernate'
-
-sourceSets {
- main {
- compileClasspath += configurations.grails
- }
- test {
- compileClasspath += configurations.grails
- }
-}
View
60 ...orm-hibernate/src/main/groovy/org/grails/datastore/gorm/hibernate/HibernateDatastore.java
@@ -1,60 +0,0 @@
-/* Copyright (C) 2011 SpringSource
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.grails.datastore.gorm.hibernate;
-
-import java.util.Map;
-
-import org.hibernate.SessionFactory;
-import org.springframework.datastore.mapping.core.AbstractDatastore;
-import org.springframework.datastore.mapping.core.Session;
-import org.springframework.datastore.mapping.model.MappingContext;
-
-/**
- * Datastore implementation that uses a Hibernate SessionFactory underneath
- *
- * @author Graeme Rocher
- * @since 1.0
- *
- */
-public class HibernateDatastore extends AbstractDatastore {
-
- private SessionFactory sessionFactory;
-
-
- public HibernateDatastore(MappingContext mappingContext,
- SessionFactory sessionFactory) {
- super(mappingContext);
- this.sessionFactory = sessionFactory;
- super.initializeConverters(mappingContext);
- }
-
-
-
- /**
- * @return The Hibernate {@link SessionFactory} being used by this datastore instance
- */
- public SessionFactory getSessionFactory() {
- return sessionFactory;
- }
-
-
-
-
- @Override
- protected Session createSession(Map<String, String> connectionDetails) {
- return new HibernateSession(this, this.sessionFactory);
- }
-
-}
View
834 ...ibernate/src/main/groovy/org/grails/datastore/gorm/hibernate/HibernateGormEnhancer.groovy
@@ -1,834 +0,0 @@
-/* Copyright (C) 2011 SpringSource
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-package org.grails.datastore.gorm.hibernate
-
-import grails.orm.HibernateCriteriaBuilder
-import groovy.lang.Closure
-
-import java.io.Serializable
-import java.util.Collection
-import java.util.List
-import java.util.Map
-
-import org.codehaus.groovy.grails.commons.DomainClassArtefactHandler
-import org.codehaus.groovy.grails.commons.GrailsApplication
-import org.codehaus.groovy.grails.commons.metaclass.StaticMethodInvocation
-import org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsHibernateUtil
-import org.codehaus.groovy.grails.orm.hibernate.cfg.HibernateNamedQueriesBuilder
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.CountByPersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.ExecuteQueryPersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.ExecuteUpdatePersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.FindAllByBooleanPropertyPersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.FindAllByPersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.FindAllPersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.FindByBooleanPropertyPersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.FindByPersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.FindPersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.ListOrderByPersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.ListPersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.MergePersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.SavePersistentMethod
-import org.codehaus.groovy.grails.orm.hibernate.metaclass.ValidatePersistentMethod
-import org.grails.datastore.gorm.GormEnhancer
-import org.grails.datastore.gorm.GormInstanceApi
-import org.grails.datastore.gorm.GormStaticApi
-import org.grails.datastore.gorm.GormValidationApi
-import org.grails.datastore.gorm.config.GrailsDomainClassMappingContext
-import org.hibernate.Criteria
-import org.hibernate.FlushMode
-import org.hibernate.LockMode
-import