Commit graph

230 commits

Author SHA1 Message Date
Albert Shift
28b2186854 refactor tuples and mappers 2015-04-16 17:18:20 -07:00
Albert Shift
862804a225 rename types namespace from T to Types 2015-04-16 16:54:30 -07:00
Albert Shift
8230b574f4 refactor types 2015-04-16 16:52:07 -07:00
Albert Shift
71ecc85cfd rename column annotations name to volume 2015-04-16 16:14:42 -07:00
Albert Shift
d32416a905 continue refactoring for simple data types 2015-04-14 23:10:39 -07:00
Albert Shift
f4222cc3a6 java type mapping to DataType refactoring 2015-04-14 23:01:27 -07:00
Albert Shift
6fe8080db8 prepare code for javatype mapping refactoring 2015-04-14 21:39:33 -07:00
Albert Shift
8b6c201ef1 ordinal in columns became optional for cases where it is not important 2015-04-14 20:04:17 -07:00
Albert Shift
a9d9a7fa8c annotation per cassandra type 2015-04-14 12:47:32 -07:00
Albert Shift
84f04f9951 remove comments 2015-04-14 12:18:24 -07:00
Albert Shift
9f1b2bfe7c make ordinal optional only for Column, add validations 2015-04-14 11:58:46 -07:00
Albert Shift
49736b594e ordinal is required for each column 2015-04-14 11:35:57 -07:00
Albert Shift
182afb6619 refactoring 2015-04-14 10:34:05 -07:00
Albert Shift
7b2065c59a columns ordering refactoring 2015-04-14 10:32:47 -07:00
Albert Shift
e03bfeeb50 repackaging 2015-04-14 09:54:15 -07:00
Albert Shift
73733fdb06 add annotation StaticColumn 2015-04-14 09:49:05 -07:00
Albert Shift
88bacf02e0 fix build on Windows 2015-04-14 09:44:59 -07:00
Albert Shift
90e860a118 refactoring, remove dublicates 2015-04-13 22:08:09 -07:00
Albert Shift
3e91401d4a tuple mapping implementation 2015-04-13 22:00:38 -07:00
Albert Shift
018f9c3cf9 start tuple implementation 2015-04-13 18:24:00 -07:00
Albert Shift
bb3fe691ae Merge branch 'master' of https://github.com/noorq/casser.git
Conflicts:
	src/main/java/com/noorq/casser/mapping/ColumnInformation.java
2015-04-13 17:34:12 -07:00
Albert Shift
14bda7af4e internal refactoring 2015-04-13 17:33:03 -07:00
Albert Shift
7c37545f66 internal refactoring 2015-04-13 17:21:58 -07:00
Albert Shift
f5125c02f8 UDT collections schema support 2015-04-13 16:02:06 -07:00
Albert Shift
129562e4a8 Merge branch 'master' of https://github.com/noorq/casser.git
Conflicts:
	src/main/java/com/noorq/casser/mapping/CasserMappingProperty.java
	src/test/java/com/noorq/casser/test/integration/core/udtcollection/UDTCollectionTest.java
2015-04-13 13:04:03 -07:00
Albert Shift
3c7a06024a prepare for UDT collections implementation task 2015-04-13 13:00:25 -07:00
Albert Shift
b30d3f1b92 prepare for UDT collections implementation task 2015-04-09 23:30:56 -07:00
Albert Shift
00d309121f refactoring 2015-04-09 22:59:12 -07:00
Albert Shift
1af2c8c875 refactoring 2015-04-09 22:53:54 -07:00
Albert Shift
6a192499f8 refactoring 2015-04-09 22:32:49 -07:00
Albert Shift
402b086337 refactoring 2015-04-09 22:30:45 -07:00
Albert Shift
b5690bb843 refactoring 2015-04-09 22:27:42 -07:00
Albert Shift
6b50e86dde make casser as a central entity cache 2015-04-09 22:18:50 -07:00
Albert Shift
00a3e20a98 more flexible initialization of the mappingRepository 2015-04-09 20:56:22 -07:00
Albert Shift
4a309b10d0 singletons for all dsl support 2015-04-09 19:14:29 -07:00
Albert Shift
6e59ccdb29 integration test for CRUD operations for UDT values 2015-04-09 18:50:12 -07:00
Albert Shift
fce170d723 UserDefinedType creation in recursion 2015-04-09 17:35:03 -07:00
Albert Shift
e2e8bcabf3 initialize cassandra-unit only in static methods in integration tests 2015-04-09 14:45:51 -07:00
Albert Shift
bde9ffd7a0 support no mapping for UDTValue type 2015-04-09 14:28:54 -07:00
Albert Shift
05dc642c41 flexiable mapping with UDTValue 2015-04-09 13:57:23 -07:00
Albert Shift
b36875c2ab add other operations in UpdateOperation 2015-04-08 22:41:24 -07:00
Albert Shift
5e680701ab map put operation implementation 2015-04-08 22:01:51 -07:00
Albert Shift
c2a093ed97 start implementing collections 2015-04-08 18:10:45 -07:00
Albert Shift
6ec448f1cd implement entity mapping on select 2015-04-07 23:18:45 -07:00
Albert Shift
030f6e0be6 prepare for hierarchy intergration test 2015-04-04 20:29:35 -07:00
Albert Shift
113bd3cb07 support onlyIf conditions 2015-04-04 20:13:16 -07:00
Albert Shift
b70e8a348e added more options to staements 2015-04-04 19:49:55 -07:00
Albert Shift
a32d5609ba add options for common statement 2015-04-04 19:24:14 -07:00
Albert Shift
c69ef2b19c add synchronized protection in SessionInitializer in building 2015-04-03 17:06:04 -07:00
Albert Shift
e67bb3cd85 make CasserMappingRepository immutable for multi-threading env 2015-04-03 17:04:57 -07:00
Albert Shift
f5c990d18f make mapping entity and property multi-threading 2015-04-01 22:44:09 -07:00
Albert Shift
5e91f069ca update licenses in headers 2015-04-01 00:12:02 -07:00
Albert Shift
14d82ac475 prepared statements test 2015-04-01 00:10:33 -07:00
Albert Shift
cbec10d5f0 implement prepared statements 2015-03-31 23:33:09 -07:00
Albert Shift
fcaeb8fe8d add SecondaryIndexTest and classical insert operation support 2015-03-31 22:04:17 -07:00
Albert Shift
c585bc76d2 update and verify index support 2015-03-31 21:15:10 -07:00
Albert Shift
626c732a91 use IdentityName for column and index names 2015-03-30 22:52:33 -07:00
Albert Shift
7a87482546 use IdentityName for entities 2015-03-30 22:33:08 -07:00
Albert Shift
e40c40b49c refactor existing classes 2015-03-30 22:06:40 -07:00
Albert Shift
e7cd42577a add index annotation 2015-03-30 19:52:31 -07:00
Albert Shift
af811228d9 add a little sugar in code 2015-03-30 17:18:33 -07:00
Albert Shift
427cf4ab7a unification of tuple names and variables 2015-03-30 13:47:51 -07:00
Albert Shift
2abd7a9e10 rename packages 2015-03-30 12:49:44 -07:00
Albert Shift
6a9c07de8d implement selects for User Defined Types 2015-03-27 20:15:42 -07:00
Albert Shift
476dc4887c revert back dsl cache 2015-03-27 20:15:42 -07:00
Albert Shift
9e4377b9c0 implement user defined type reader and writer 2015-03-27 20:15:42 -07:00
Albert Shift
f74c0a106b create special package mapping.value for all column value
readers/writers
2015-03-27 20:15:42 -07:00
Albert Shift
454f33a82e fix simple user test 2015-03-27 20:15:42 -07:00
Albert Shift
e6dae633f7 remove dsl caching in Casser, no need it 2015-03-27 20:15:42 -07:00
Albert Shift
9afca8a957 refactoring and update readme document 2015-03-27 20:15:42 -07:00
Albert Shift
647cc9b4ea removed setter, keep only getters 2015-03-27 20:15:42 -07:00
Albert Shift
5c88f2d4e4 implement wrapper to replace Casser.pojo 2015-03-27 20:15:42 -07:00
Albert Shift
64d2d6fdd9 remove Setter class 2015-03-27 20:15:42 -07:00
Albert Shift
3a2daf2722 move getter to core package 2015-03-27 20:15:42 -07:00
Albert Shift
99ead051f0 add collections test 2015-03-27 20:15:42 -07:00
Albert Shift
82bbb6cde7 add instantiator interface set default reflection instantiators 2015-03-26 21:02:48 -07:00
Albert Shift
e59f98fb3d UDTValue converter for properties 2015-03-26 20:46:29 -07:00
Albert Shift
1812823e52 row column value provider optimization 2015-03-26 20:04:43 -07:00
Albert Shift
0543370b64 remove generics from CasserEntity and CasserProperty 2015-03-26 19:42:04 -07:00
Albert Shift
a6129ac239 fix the build 2015-03-25 23:09:52 -07:00
Albert Shift
e31f22ac2c async ListenableFuture for operations 2015-03-25 23:04:50 -07:00
Albert Shift
59b45ca06b create tables with user defined types 2015-03-25 22:58:36 -07:00
Albert Shift
f8bbcd1cd3 add casser entity type to differ table and user type entities 2015-03-25 19:24:03 -07:00
Albert Shift
9eeee7d119 refactoring before implementing UDT operations 2015-03-24 22:21:04 -07:00
Albert Shift
3100cce682 begin user types implementation 2015-03-24 21:58:58 -07:00
Albert Shift
5242b0ce75 add using keyspace 2015-03-24 18:10:34 -07:00
Albert Shift
034ca8feda start UDT test and some minor changes 2015-03-23 21:33:30 -07:00
Albert Shift
d97e67b420 rename asc/desc functions to orderBy in SelectOperation 2015-03-23 00:39:18 -07:00
Albert Shift
1924b72031 implement async operations with executor 2015-03-23 00:05:00 -07:00
Albert Shift
3cd3823f63 add license headers 2015-03-22 22:57:02 -07:00
Albert Shift
ac36c44fea added compound key test 2015-03-22 22:56:06 -07:00
Albert Shift
400d9f3b5a add select transforming operation 2015-03-22 22:25:24 -07:00
Albert Shift
25a8cd7eea implement count operation 2015-03-22 21:45:29 -07:00
Albert Shift
06f9d59cfe implement update operation 2015-03-22 21:22:57 -07:00
Albert Shift
016f828c4f add more mappers in tuples 2015-03-22 20:56:30 -07:00
Albert Shift
762c252855 small fix of the name 2015-03-22 20:11:05 -07:00
Albert Shift
617f67bce7 add Apache 2.0 license header 2015-03-22 18:51:06 -07:00
Albert Shift
74a30a618d add Either class 2015-03-22 18:41:35 -07:00
Albert Shift
905831b5e0 implement Filter and add Where conditions to Select and Delete 2015-03-18 23:15:26 -07:00
Albert Shift
38092fcc74 rename property in Column annotation isStatic 2015-03-18 22:15:17 -07:00
Albert Shift
26a1d434a8 ContextInitTest fix 2015-03-18 18:14:14 -07:00
Albert Shift
4e17520372 add entity cache and dsl cache 2015-03-18 17:02:10 -07:00
Albert Shift
0adda4f6c1 add MappingEntityFactory to cache in memory all known entities 2015-03-18 16:53:26 -07:00
Albert Shift
8956a2b55c implementation of select and delete operation w/o where 2015-03-18 16:39:57 -07:00
Albert Shift
67718723da add TupleX Mapper for reading Row from ResultSet 2015-03-18 11:41:42 -07:00
Albert Shift
a7ea1ae47b upsert operation implementation 2015-03-17 21:52:06 -07:00
Albert Shift
e151b82aff rename package coverter to convert 2015-03-17 20:18:34 -07:00
Albert Shift
68176c3bc5 add more fields converters 2015-03-17 19:39:26 -07:00
Albert Shift
482f137f1f dropTableCql and CasserMappingException 2015-03-17 17:16:29 -07:00
Albert Shift
ead9866e5a SchemaUtil class to build create/alter cqls 2015-03-17 17:13:17 -07:00
Albert Shift
c05d3e2737 add show cql parameter 2015-03-17 12:41:14 -07:00
Albert Shift
496cf2c34b create table implementation 2015-03-17 12:34:57 -07:00
Albert Shift
912f58653f mapping classes for reflection 2015-03-16 22:41:01 -07:00
Albert Shift
2faac5fe29 add field annotations and to the dsl processing system 2015-03-16 19:08:01 -07:00
Albert Shift
dc8f58bb7b better logging for cassandra-unit 2015-03-16 17:55:21 -07:00
Albert Shift
a4e8121b89 embedded cassandra integration tests infra 2015-03-16 15:57:46 -07:00
Albert Shift
59375ed0d3 add cassandra unit and abstract test 2015-03-16 13:27:13 -07:00
Albert Shift
ac7b2d9b40 organize packages 2015-03-15 23:43:32 -07:00
Albert Shift
8a0e7babd3 add java proxy reflection implementation for dsl 2015-03-15 23:12:56 -07:00
Albert Shift
bba170723c add cql() method to abstract operations 2015-03-15 20:51:37 -07:00
Albert Shift
96bdc01c3e Filter example 2015-03-15 20:45:11 -07:00
Alex Shvid
58cd95cdc0 prepare project for maven 2015-03-14 10:02:45 -07:00
Alex Shvid
a43e28ba06 refactor prepared statements 2015-03-14 10:00:27 -07:00
Alex Shvid
726f9d84cc add Filter 2015-03-14 09:45:03 -07:00
Alex Shvid
de8e6891c3 small fix 2015-03-12 01:28:20 -07:00
Alex Shvid
39a463e4a6 add prepared statements and counters 2015-03-12 01:27:12 -07:00
Alex Shvid
019dafbf79 make universal where operator 2015-03-12 01:08:42 -07:00
Alex Shvid
0297778d05 small change 2015-03-11 20:18:20 -07:00
Alex Shvid
4e6b320fc3 add more operations 2015-03-11 20:17:10 -07:00
Alex Shvid
398b9f8b65 casser concept 2015-03-11 20:01:14 -07:00