rename packages
This commit is contained in:
parent
ae483bb3a1
commit
2abd7a9e10
107 changed files with 346 additions and 373 deletions
11
README.md
11
README.md
|
@ -17,6 +17,17 @@ Current status: Active development
|
|||
* Latest Cassandra
|
||||
* Maven
|
||||
|
||||
### Maven
|
||||
|
||||
Active development dependency:
|
||||
```
|
||||
<dependency>
|
||||
<groupId>com.noorq.casser</groupId>
|
||||
<artifactId>casser-core</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
### Example
|
||||
|
||||
Entity definition:
|
||||
|
|
|
@ -13,17 +13,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser;
|
||||
|
||||
import casser.core.Casser;
|
||||
import casser.core.CasserSession;
|
||||
import casser.core.Filter;
|
||||
import casser.core.Prepared;
|
||||
import casser.core.operation.SelectOperation;
|
||||
import casser.core.tuple.Tuple1;
|
||||
import casser.core.tuple.Tuple2;
|
||||
package com.noorq.casser;
|
||||
|
||||
import com.datastax.driver.core.Cluster;
|
||||
import com.noorq.casser.core.Casser;
|
||||
import com.noorq.casser.core.CasserSession;
|
||||
import com.noorq.casser.core.Filter;
|
||||
import com.noorq.casser.core.Prepared;
|
||||
import com.noorq.casser.core.operation.SelectOperation;
|
||||
import com.noorq.casser.core.tuple.Tuple1;
|
||||
import com.noorq.casser.core.tuple.Tuple2;
|
||||
|
||||
public class Example {
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser;
|
||||
package com.noorq.casser;
|
||||
|
||||
import casser.mapping.Table;
|
||||
import com.noorq.casser.mapping.Table;
|
||||
|
||||
@Table("user")
|
||||
public interface User {
|
|
@ -13,13 +13,13 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.config;
|
||||
package com.noorq.casser.config;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.core.DslInstantiator;
|
||||
import casser.core.WrapperInstantiator;
|
||||
import com.noorq.casser.core.DslInstantiator;
|
||||
import com.noorq.casser.core.WrapperInstantiator;
|
||||
|
||||
public interface CasserSettings {
|
||||
|
|
@ -13,16 +13,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.config;
|
||||
package com.noorq.casser.config;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.core.DslInstantiator;
|
||||
import casser.core.WrapperInstantiator;
|
||||
import casser.core.reflect.ReflectionDslInstantiator;
|
||||
import casser.core.reflect.ReflectionWrapperInstantiator;
|
||||
import casser.mapping.convert.CamelCaseToUnderscoreConverter;
|
||||
import com.noorq.casser.core.DslInstantiator;
|
||||
import com.noorq.casser.core.WrapperInstantiator;
|
||||
import com.noorq.casser.core.reflect.ReflectionDslInstantiator;
|
||||
import com.noorq.casser.core.reflect.ReflectionWrapperInstantiator;
|
||||
import com.noorq.casser.mapping.convert.CamelCaseToUnderscoreConverter;
|
||||
|
||||
public class DefaultCasserSettings implements CasserSettings {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.config;
|
||||
package com.noorq.casser.config;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.function.Function;
|
|
@ -13,23 +13,22 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import casser.mapping.value.ColumnValuePreparer;
|
||||
import casser.mapping.value.ColumnValueProvider;
|
||||
import casser.support.CasserException;
|
||||
|
||||
import com.datastax.driver.core.RegularStatement;
|
||||
import com.datastax.driver.core.ResultSet;
|
||||
import com.datastax.driver.core.ResultSetFuture;
|
||||
import com.datastax.driver.core.Session;
|
||||
import com.datastax.driver.core.Statement;
|
||||
import com.datastax.driver.core.querybuilder.BuiltStatement;
|
||||
import com.noorq.casser.mapping.value.ColumnValuePreparer;
|
||||
import com.noorq.casser.mapping.value.ColumnValueProvider;
|
||||
import com.noorq.casser.support.CasserException;
|
||||
|
||||
public abstract class AbstractSessionOperations {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
public enum AutoDsl {
|
||||
VALIDATE,
|
|
@ -13,19 +13,18 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
|
||||
import casser.config.CasserSettings;
|
||||
import casser.config.DefaultCasserSettings;
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
|
||||
import com.datastax.driver.core.Cluster;
|
||||
import com.datastax.driver.core.Session;
|
||||
import com.noorq.casser.config.CasserSettings;
|
||||
import com.noorq.casser.config.DefaultCasserSettings;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
|
||||
|
||||
|
|
@ -13,36 +13,35 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
import casser.core.operation.CountOperation;
|
||||
import casser.core.operation.DeleteOperation;
|
||||
import casser.core.operation.SelectOperation;
|
||||
import casser.core.operation.UpdateOperation;
|
||||
import casser.core.operation.UpsertOperation;
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.core.tuple.Tuple1;
|
||||
import casser.core.tuple.Tuple2;
|
||||
import casser.core.tuple.Tuple3;
|
||||
import casser.core.tuple.Tuple4;
|
||||
import casser.core.tuple.Tuple5;
|
||||
import casser.core.tuple.Tuple6;
|
||||
import casser.core.tuple.Tuple7;
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.CasserMappingRepository;
|
||||
import casser.mapping.MappingUtil;
|
||||
import casser.mapping.value.ColumnValuePreparer;
|
||||
import casser.mapping.value.ColumnValueProvider;
|
||||
import casser.mapping.value.RowColumnValueProvider;
|
||||
import casser.mapping.value.StatementColumnValuePreparer;
|
||||
|
||||
import com.datastax.driver.core.CloseFuture;
|
||||
import com.datastax.driver.core.Session;
|
||||
import com.noorq.casser.core.operation.CountOperation;
|
||||
import com.noorq.casser.core.operation.DeleteOperation;
|
||||
import com.noorq.casser.core.operation.SelectOperation;
|
||||
import com.noorq.casser.core.operation.UpdateOperation;
|
||||
import com.noorq.casser.core.operation.UpsertOperation;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.core.tuple.Tuple1;
|
||||
import com.noorq.casser.core.tuple.Tuple2;
|
||||
import com.noorq.casser.core.tuple.Tuple3;
|
||||
import com.noorq.casser.core.tuple.Tuple4;
|
||||
import com.noorq.casser.core.tuple.Tuple5;
|
||||
import com.noorq.casser.core.tuple.Tuple6;
|
||||
import com.noorq.casser.core.tuple.Tuple7;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CasserMappingRepository;
|
||||
import com.noorq.casser.mapping.MappingUtil;
|
||||
import com.noorq.casser.mapping.value.ColumnValuePreparer;
|
||||
import com.noorq.casser.mapping.value.ColumnValueProvider;
|
||||
import com.noorq.casser.mapping.value.RowColumnValueProvider;
|
||||
import com.noorq.casser.mapping.value.StatementColumnValuePreparer;
|
||||
|
||||
public class CasserSession extends AbstractSessionOperations implements Closeable {
|
||||
|
|
@ -13,11 +13,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
|
||||
public interface DslInstantiator {
|
||||
|
|
@ -13,18 +13,17 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.MappingUtil;
|
||||
import casser.mapping.value.ColumnValuePreparer;
|
||||
import casser.support.CasserMappingException;
|
||||
|
||||
import com.datastax.driver.core.querybuilder.Clause;
|
||||
import com.datastax.driver.core.querybuilder.QueryBuilder;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.MappingUtil;
|
||||
import com.noorq.casser.mapping.value.ColumnValuePreparer;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public final class Filter<V> {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
public interface Getter<V> {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
|
@ -13,11 +13,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
|
||||
public enum OrdinalBasedPropertyComparator implements Comparator<CasserMappingProperty> {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
|
||||
public class Prepared<O> {
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
@ -21,13 +21,6 @@ import java.util.HashSet;
|
|||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import casser.mapping.CasserEntityType;
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.CqlUtil;
|
||||
import casser.mapping.OrderingDirection;
|
||||
import casser.support.CasserMappingException;
|
||||
|
||||
import com.datastax.driver.core.ColumnMetadata;
|
||||
import com.datastax.driver.core.DataType;
|
||||
import com.datastax.driver.core.RegularStatement;
|
||||
|
@ -39,6 +32,12 @@ import com.datastax.driver.core.schemabuilder.Create.Options;
|
|||
import com.datastax.driver.core.schemabuilder.CreateType;
|
||||
import com.datastax.driver.core.schemabuilder.SchemaBuilder;
|
||||
import com.datastax.driver.core.schemabuilder.SchemaStatement;
|
||||
import com.noorq.casser.mapping.CasserEntityType;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CqlUtil;
|
||||
import com.noorq.casser.mapping.OrderingDirection;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public final class SchemaUtil {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -21,19 +21,18 @@ import java.util.Objects;
|
|||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
import casser.mapping.CasserEntityType;
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.CasserMappingRepository;
|
||||
import casser.mapping.value.ColumnValuePreparer;
|
||||
import casser.mapping.value.ColumnValueProvider;
|
||||
import casser.mapping.value.RowColumnValueProvider;
|
||||
import casser.mapping.value.StatementColumnValuePreparer;
|
||||
|
||||
import com.datastax.driver.core.KeyspaceMetadata;
|
||||
import com.datastax.driver.core.Session;
|
||||
import com.datastax.driver.core.TableMetadata;
|
||||
import com.datastax.driver.core.UserType;
|
||||
import com.google.common.util.concurrent.MoreExecutors;
|
||||
import com.noorq.casser.mapping.CasserEntityType;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.CasserMappingRepository;
|
||||
import com.noorq.casser.mapping.value.ColumnValuePreparer;
|
||||
import com.noorq.casser.mapping.value.ColumnValueProvider;
|
||||
import com.noorq.casser.mapping.value.RowColumnValueProvider;
|
||||
import com.noorq.casser.mapping.value.StatementColumnValuePreparer;
|
||||
|
||||
|
||||
public class SessionInitializer extends AbstractSessionOperations {
|
|
@ -13,18 +13,17 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.support.CasserException;
|
||||
|
||||
import com.datastax.driver.core.RegularStatement;
|
||||
import com.datastax.driver.core.TableMetadata;
|
||||
import com.datastax.driver.core.querybuilder.Batch;
|
||||
import com.datastax.driver.core.querybuilder.QueryBuilder;
|
||||
import com.datastax.driver.core.schemabuilder.SchemaStatement;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.support.CasserException;
|
||||
|
||||
public final class TableOperations {
|
||||
|
|
@ -13,12 +13,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.CasserMappingRepository;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import com.datastax.driver.core.UserType;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.CasserMappingRepository;
|
||||
|
||||
public final class UserTypeOperations {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core;
|
||||
package com.noorq.casser.core;
|
||||
|
||||
import java.util.Map;
|
||||
|
|
@ -13,11 +13,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.collection;
|
||||
package com.noorq.casser.core.collection;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import casser.core.Getter;
|
||||
import com.noorq.casser.core.Getter;
|
||||
|
||||
public final class CList {
|
||||
|
|
@ -13,11 +13,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.collection;
|
||||
package com.noorq.casser.core.collection;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import casser.core.Getter;
|
||||
import com.noorq.casser.core.Getter;
|
||||
|
||||
public final class CMap {
|
||||
|
|
@ -13,11 +13,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.collection;
|
||||
package com.noorq.casser.core.collection;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import casser.core.Getter;
|
||||
import com.noorq.casser.core.Getter;
|
||||
|
||||
public final class CSet {
|
||||
|
|
@ -13,9 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.operation;
|
||||
|
||||
import casser.core.AbstractSessionOperations;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import com.datastax.driver.core.ResultSet;
|
||||
import com.datastax.driver.core.ResultSetFuture;
|
||||
|
@ -23,6 +21,7 @@ import com.datastax.driver.core.querybuilder.BuiltStatement;
|
|||
import com.google.common.base.Function;
|
||||
import com.google.common.util.concurrent.Futures;
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
import com.noorq.casser.core.AbstractSessionOperations;
|
||||
|
||||
public abstract class AbstractEntityOperation<E, O extends AbstractEntityOperation<E, O>> extends AbstractOperation<E, O> {
|
||||
|
|
@ -13,15 +13,15 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.operation;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import casser.core.AbstractSessionOperations;
|
||||
import casser.core.Filter;
|
||||
import casser.core.Operator;
|
||||
import casser.core.Getter;
|
||||
import com.noorq.casser.core.AbstractSessionOperations;
|
||||
import com.noorq.casser.core.Filter;
|
||||
import com.noorq.casser.core.Getter;
|
||||
import com.noorq.casser.core.Operator;
|
||||
|
||||
public abstract class AbstractFilterOperation<E, O extends AbstractFilterOperation<E, O>> extends AbstractEntityOperation<E, O> {
|
||||
|
|
@ -13,15 +13,15 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.operation;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import casser.core.AbstractSessionOperations;
|
||||
import casser.core.Filter;
|
||||
import casser.core.Operator;
|
||||
import casser.core.Getter;
|
||||
import com.noorq.casser.core.AbstractSessionOperations;
|
||||
import com.noorq.casser.core.Filter;
|
||||
import com.noorq.casser.core.Getter;
|
||||
import com.noorq.casser.core.Operator;
|
||||
|
||||
public abstract class AbstractFilterStreamOperation<E, O extends AbstractFilterStreamOperation<E, O>> extends AbstractStreamOperation<E, O> {
|
||||
|
|
@ -13,12 +13,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.operation;
|
||||
|
||||
import casser.core.AbstractSessionOperations;
|
||||
import casser.core.Prepared;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import com.datastax.driver.core.querybuilder.BuiltStatement;
|
||||
import com.noorq.casser.core.AbstractSessionOperations;
|
||||
import com.noorq.casser.core.Prepared;
|
||||
|
||||
public abstract class AbstractOperation<E, O extends AbstractOperation<E, O>> {
|
||||
|
|
@ -13,17 +13,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.operation;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import casser.core.AbstractSessionOperations;
|
||||
|
||||
import com.datastax.driver.core.ResultSet;
|
||||
import com.datastax.driver.core.ResultSetFuture;
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.util.concurrent.Futures;
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
import com.noorq.casser.core.AbstractSessionOperations;
|
||||
|
||||
public abstract class AbstractStreamOperation<E, O extends AbstractStreamOperation<E, O>> extends AbstractOperation<E, O> {
|
||||
|
|
@ -13,17 +13,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.operation;
|
||||
|
||||
import casser.core.AbstractSessionOperations;
|
||||
import casser.core.Filter;
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import com.datastax.driver.core.ResultSet;
|
||||
import com.datastax.driver.core.querybuilder.BuiltStatement;
|
||||
import com.datastax.driver.core.querybuilder.QueryBuilder;
|
||||
import com.datastax.driver.core.querybuilder.Select;
|
||||
import com.datastax.driver.core.querybuilder.Select.Where;
|
||||
import com.noorq.casser.core.AbstractSessionOperations;
|
||||
import com.noorq.casser.core.Filter;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
|
||||
public final class CountOperation extends AbstractFilterOperation<Long, CountOperation> {
|
||||
|
|
@ -13,17 +13,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.operation;
|
||||
|
||||
import casser.core.AbstractSessionOperations;
|
||||
import casser.core.Filter;
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import com.datastax.driver.core.ResultSet;
|
||||
import com.datastax.driver.core.querybuilder.BuiltStatement;
|
||||
import com.datastax.driver.core.querybuilder.Delete;
|
||||
import com.datastax.driver.core.querybuilder.Delete.Where;
|
||||
import com.datastax.driver.core.querybuilder.QueryBuilder;
|
||||
import com.noorq.casser.core.AbstractSessionOperations;
|
||||
import com.noorq.casser.core.Filter;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
|
||||
|
||||
public final class DeleteOperation extends AbstractFilterOperation<ResultSet, DeleteOperation> {
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.operation;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -24,16 +24,6 @@ import java.util.function.Function;
|
|||
import java.util.stream.Stream;
|
||||
import java.util.stream.StreamSupport;
|
||||
|
||||
import casser.core.AbstractSessionOperations;
|
||||
import casser.core.Filter;
|
||||
import casser.core.Getter;
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.MappingUtil;
|
||||
import casser.mapping.OrderingDirection;
|
||||
import casser.support.CasserMappingException;
|
||||
|
||||
import com.datastax.driver.core.ResultSet;
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.datastax.driver.core.querybuilder.BuiltStatement;
|
||||
|
@ -42,6 +32,15 @@ import com.datastax.driver.core.querybuilder.QueryBuilder;
|
|||
import com.datastax.driver.core.querybuilder.Select;
|
||||
import com.datastax.driver.core.querybuilder.Select.Selection;
|
||||
import com.datastax.driver.core.querybuilder.Select.Where;
|
||||
import com.noorq.casser.core.AbstractSessionOperations;
|
||||
import com.noorq.casser.core.Filter;
|
||||
import com.noorq.casser.core.Getter;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.MappingUtil;
|
||||
import com.noorq.casser.mapping.OrderingDirection;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
|
||||
public final class SelectOperation<E> extends AbstractFilterStreamOperation<E, SelectOperation<E>> {
|
|
@ -1,4 +1,4 @@
|
|||
package casser.core.operation;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Stream;
|
|
@ -13,23 +13,22 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.operation;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Objects;
|
||||
|
||||
import casser.core.AbstractSessionOperations;
|
||||
import casser.core.Filter;
|
||||
import casser.core.Getter;
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.MappingUtil;
|
||||
import casser.support.CasserMappingException;
|
||||
|
||||
import com.datastax.driver.core.ResultSet;
|
||||
import com.datastax.driver.core.querybuilder.BuiltStatement;
|
||||
import com.datastax.driver.core.querybuilder.QueryBuilder;
|
||||
import com.datastax.driver.core.querybuilder.Update;
|
||||
import com.noorq.casser.core.AbstractSessionOperations;
|
||||
import com.noorq.casser.core.Filter;
|
||||
import com.noorq.casser.core.Getter;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.MappingUtil;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
|
||||
public final class UpdateOperation extends AbstractFilterOperation<ResultSet, UpdateOperation> {
|
|
@ -13,17 +13,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.operation;
|
||||
|
||||
import casser.core.AbstractSessionOperations;
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.value.BeanColumnValueProvider;
|
||||
package com.noorq.casser.core.operation;
|
||||
|
||||
import com.datastax.driver.core.ResultSet;
|
||||
import com.datastax.driver.core.querybuilder.BuiltStatement;
|
||||
import com.datastax.driver.core.querybuilder.Insert;
|
||||
import com.datastax.driver.core.querybuilder.QueryBuilder;
|
||||
import com.noorq.casser.core.AbstractSessionOperations;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.value.BeanColumnValueProvider;
|
||||
|
||||
public final class UpsertOperation extends AbstractEntityOperation<ResultSet, UpsertOperation> {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.reflect;
|
||||
package com.noorq.casser.core.reflect;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
@ -22,9 +22,9 @@ import java.util.List;
|
|||
import java.util.Optional;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.CqlUtil;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CqlUtil;
|
||||
|
||||
public final class CasserPropertyNode implements Iterable<CasserMappingProperty> {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.reflect;
|
||||
package com.noorq.casser.core.reflect;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.reflect;
|
||||
package com.noorq.casser.core.reflect;
|
||||
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Method;
|
||||
|
@ -21,12 +21,12 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
import casser.core.Casser;
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.support.CasserException;
|
||||
import casser.support.CasserMappingException;
|
||||
import casser.support.DslPropertyException;
|
||||
import com.noorq.casser.core.Casser;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.support.CasserException;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
import com.noorq.casser.support.DslPropertyException;
|
||||
|
||||
public class DslInvocationHandler<E> implements InvocationHandler {
|
||||
|
|
@ -13,12 +13,12 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.reflect;
|
||||
package com.noorq.casser.core.reflect;
|
||||
|
||||
import java.lang.reflect.Proxy;
|
||||
import java.util.Optional;
|
||||
|
||||
import casser.core.DslInstantiator;
|
||||
import com.noorq.casser.core.DslInstantiator;
|
||||
|
||||
public enum ReflectionDslInstantiator implements DslInstantiator {
|
||||
|
|
@ -13,13 +13,13 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.reflect;
|
||||
package com.noorq.casser.core.reflect;
|
||||
|
||||
import java.lang.reflect.Proxy;
|
||||
import java.util.Map;
|
||||
|
||||
import casser.core.WrapperInstantiator;
|
||||
import casser.mapping.MapExportable;
|
||||
import com.noorq.casser.core.WrapperInstantiator;
|
||||
import com.noorq.casser.mapping.MapExportable;
|
||||
|
||||
public enum ReflectionWrapperInstantiator implements WrapperInstantiator {
|
||||
|
|
@ -13,15 +13,15 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.reflect;
|
||||
package com.noorq.casser.core.reflect;
|
||||
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
import casser.mapping.MapExportable;
|
||||
import casser.support.CasserException;
|
||||
import com.noorq.casser.mapping.MapExportable;
|
||||
import com.noorq.casser.support.CasserException;
|
||||
|
||||
public class WrapperInvocationHandler<E> implements InvocationHandler {
|
||||
|
|
@ -13,15 +13,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.tuple;
|
||||
package com.noorq.casser.core.tuple;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
public final class Tuple1<V1> {
|
||||
|
|
@ -13,15 +13,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.tuple;
|
||||
package com.noorq.casser.core.tuple;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
public final class Tuple2<V1, V2> {
|
||||
|
|
@ -13,15 +13,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.tuple;
|
||||
package com.noorq.casser.core.tuple;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
public final class Tuple3<V1, V2, V3> {
|
||||
|
|
@ -13,15 +13,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.tuple;
|
||||
package com.noorq.casser.core.tuple;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
public final class Tuple4<V1, V2, V3, V4> {
|
||||
|
|
@ -13,15 +13,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.tuple;
|
||||
package com.noorq.casser.core.tuple;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
public final class Tuple5<V1, V2, V3, V4, V5> {
|
||||
|
|
@ -13,15 +13,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.tuple;
|
||||
package com.noorq.casser.core.tuple;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
public final class Tuple6<V1, V2, V3, V4, V5, V6> {
|
||||
|
|
@ -13,15 +13,14 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.core.tuple;
|
||||
package com.noorq.casser.core.tuple;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.value.ColumnValueProvider;
|
||||
|
||||
public final class Tuple7<V1, V2, V3, V4, V5, V6, V7> {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.util.Collection;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
public enum CasserEntityType {
|
||||
TABLE, USER_DEFINED_TYPE;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Collection;
|
||||
|
@ -22,9 +22,9 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
import casser.config.CasserSettings;
|
||||
import casser.core.Casser;
|
||||
import casser.support.CasserMappingException;
|
||||
import com.noorq.casser.config.CasserSettings;
|
||||
import com.noorq.casser.core.Casser;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public class CasserMappingEntity implements CasserEntity {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.ParameterizedType;
|
||||
|
@ -27,19 +27,18 @@ import java.util.Set;
|
|||
import java.util.UUID;
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.mapping.convert.DateToTimeUUIDConverter;
|
||||
import casser.mapping.convert.EntityToUDTValueConverter;
|
||||
import casser.mapping.convert.EnumToStringConverter;
|
||||
import casser.mapping.convert.StringToEnumConverter;
|
||||
import casser.mapping.convert.TimeUUIDToDateConverter;
|
||||
import casser.mapping.convert.TypedConverter;
|
||||
import casser.mapping.convert.UDTValueToEntityConverter;
|
||||
import casser.support.CasserMappingException;
|
||||
|
||||
import com.datastax.driver.core.DataType;
|
||||
import com.datastax.driver.core.UDTValue;
|
||||
import com.datastax.driver.core.schemabuilder.SchemaBuilder;
|
||||
import com.datastax.driver.core.schemabuilder.UDTType;
|
||||
import com.noorq.casser.mapping.convert.DateToTimeUUIDConverter;
|
||||
import com.noorq.casser.mapping.convert.EntityToUDTValueConverter;
|
||||
import com.noorq.casser.mapping.convert.EnumToStringConverter;
|
||||
import com.noorq.casser.mapping.convert.StringToEnumConverter;
|
||||
import com.noorq.casser.mapping.convert.TimeUUIDToDateConverter;
|
||||
import com.noorq.casser.mapping.convert.TypedConverter;
|
||||
import com.noorq.casser.mapping.convert.UDTValueToEntityConverter;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public class CasserMappingProperty implements CasserProperty {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
@ -21,11 +21,10 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
import casser.support.CasserException;
|
||||
import casser.support.CasserMappingException;
|
||||
|
||||
import com.datastax.driver.core.UserType;
|
||||
import com.datastax.driver.core.schemabuilder.UDTType;
|
||||
import com.noorq.casser.support.CasserException;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public class CasserMappingRepository {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
public final class CqlUtil {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.Retention;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.util.Map;
|
||||
|
|
@ -13,15 +13,15 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import casser.core.Casser;
|
||||
import casser.core.Getter;
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import casser.support.CasserMappingException;
|
||||
import casser.support.DslPropertyException;
|
||||
import com.noorq.casser.core.Casser;
|
||||
import com.noorq.casser.core.Getter;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
import com.noorq.casser.support.DslPropertyException;
|
||||
|
||||
public final class MappingUtil {
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import casser.support.CasserMappingException;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public enum OrderingDirection {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.HashMap;
|
||||
|
@ -21,9 +21,8 @@ import java.util.HashSet;
|
|||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import casser.support.CasserException;
|
||||
|
||||
import com.datastax.driver.core.DataType;
|
||||
import com.noorq.casser.support.CasserException;
|
||||
|
||||
public class SimpleDataTypes {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
|
@ -13,16 +13,15 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import casser.mapping.value.UDTColumnValueProvider;
|
||||
import casser.support.CasserMappingException;
|
||||
|
||||
import com.datastax.driver.core.UDTValue;
|
||||
import com.noorq.casser.mapping.value.UDTColumnValueProvider;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public final class UDTValueMap implements Map<String, Object> {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping;
|
||||
package com.noorq.casser.mapping;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.convert;
|
||||
package com.noorq.casser.mapping.convert;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.convert;
|
||||
package com.noorq.casser.mapping.convert;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
|
@ -13,22 +13,21 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.convert;
|
||||
package com.noorq.casser.mapping.convert;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.CasserMappingRepository;
|
||||
import casser.mapping.MapExportable;
|
||||
import casser.mapping.value.BeanColumnValueProvider;
|
||||
import casser.mapping.value.UDTColumnValuePreparer;
|
||||
import casser.support.CasserMappingException;
|
||||
|
||||
import com.datastax.driver.core.UDTValue;
|
||||
import com.datastax.driver.core.UserType;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CasserMappingRepository;
|
||||
import com.noorq.casser.mapping.MapExportable;
|
||||
import com.noorq.casser.mapping.value.BeanColumnValueProvider;
|
||||
import com.noorq.casser.mapping.value.UDTColumnValuePreparer;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public final class EntityToUDTValueConverter implements Function<Object, UDTValue> {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.convert;
|
||||
package com.noorq.casser.mapping.convert;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.convert;
|
||||
package com.noorq.casser.mapping.convert;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.convert;
|
||||
package com.noorq.casser.mapping.convert;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.convert;
|
||||
package com.noorq.casser.mapping.convert;
|
||||
|
||||
import java.security.SecureRandom;
|
||||
import java.util.Date;
|
|
@ -13,11 +13,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.convert;
|
||||
package com.noorq.casser.mapping.convert;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.support.CasserMappingException;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public class TypedConverter<I, O> implements Function<Object, Object> {
|
||||
|
|
@ -13,19 +13,18 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.convert;
|
||||
package com.noorq.casser.mapping.convert;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.core.Casser;
|
||||
import casser.mapping.CasserMappingEntity;
|
||||
import casser.mapping.CasserMappingRepository;
|
||||
import casser.mapping.UDTValueMap;
|
||||
import casser.mapping.value.UDTColumnValueProvider;
|
||||
import casser.support.CasserMappingException;
|
||||
|
||||
import com.datastax.driver.core.UDTValue;
|
||||
import com.noorq.casser.core.Casser;
|
||||
import com.noorq.casser.mapping.CasserMappingEntity;
|
||||
import com.noorq.casser.mapping.CasserMappingRepository;
|
||||
import com.noorq.casser.mapping.UDTValueMap;
|
||||
import com.noorq.casser.mapping.value.UDTColumnValueProvider;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public final class UDTValueToEntityConverter implements Function<UDTValue, Object> {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.convert;
|
||||
package com.noorq.casser.mapping.convert;
|
||||
|
||||
import java.util.UUID;
|
||||
|
|
@ -13,12 +13,12 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.value;
|
||||
package com.noorq.casser.mapping.value;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.support.CasserMappingException;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.support.CasserMappingException;
|
||||
|
||||
public enum BeanColumnValueProvider implements ColumnValueProvider {
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.value;
|
||||
package com.noorq.casser.mapping.value;
|
||||
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
|
||||
public interface ColumnValuePreparer {
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.value;
|
||||
package com.noorq.casser.mapping.value;
|
||||
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
|
||||
|
||||
public interface ColumnValueProvider {
|
|
@ -13,20 +13,19 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.value;
|
||||
package com.noorq.casser.mapping.value;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.CasserMappingRepository;
|
||||
|
||||
import com.datastax.driver.core.ColumnDefinitions;
|
||||
import com.datastax.driver.core.DataType;
|
||||
import com.datastax.driver.core.ProtocolVersion;
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CasserMappingRepository;
|
||||
|
||||
public final class RowColumnValueProvider implements ColumnValueProvider {
|
||||
|
|
@ -13,13 +13,13 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.value;
|
||||
package com.noorq.casser.mapping.value;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.CasserMappingRepository;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CasserMappingRepository;
|
||||
|
||||
|
||||
public final class StatementColumnValuePreparer implements ColumnValuePreparer {
|
|
@ -13,17 +13,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.value;
|
||||
package com.noorq.casser.mapping.value;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.CasserMappingRepository;
|
||||
|
||||
import com.datastax.driver.core.DataType;
|
||||
import com.datastax.driver.core.ProtocolVersion;
|
||||
import com.datastax.driver.core.UserType;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CasserMappingRepository;
|
||||
|
||||
public final class UDTColumnValuePreparer implements ColumnValuePreparer {
|
||||
|
|
@ -13,19 +13,18 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.mapping.value;
|
||||
package com.noorq.casser.mapping.value;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
|
||||
import casser.mapping.CasserMappingProperty;
|
||||
import casser.mapping.CasserMappingRepository;
|
||||
|
||||
import com.datastax.driver.core.DataType;
|
||||
import com.datastax.driver.core.ProtocolVersion;
|
||||
import com.datastax.driver.core.UDTValue;
|
||||
import com.datastax.driver.core.UserType;
|
||||
import com.noorq.casser.mapping.CasserMappingProperty;
|
||||
import com.noorq.casser.mapping.CasserMappingRepository;
|
||||
|
||||
public final class UDTColumnValueProvider implements ColumnValueProvider {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.support;
|
||||
package com.noorq.casser.support;
|
||||
|
||||
public class CasserException extends RuntimeException {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.support;
|
||||
package com.noorq.casser.support;
|
||||
|
||||
public class CasserMappingException extends CasserException {
|
||||
|
|
@ -13,9 +13,9 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.support;
|
||||
package com.noorq.casser.support;
|
||||
|
||||
import casser.core.reflect.CasserPropertyNode;
|
||||
import com.noorq.casser.core.reflect.CasserPropertyNode;
|
||||
|
||||
public class DslPropertyException extends CasserException {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.support;
|
||||
package com.noorq.casser.support;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.support;
|
||||
package com.noorq.casser.support;
|
||||
|
||||
public enum EitherCase {
|
||||
LEFT, RIGHT;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.support;
|
||||
package com.noorq.casser.support;
|
||||
|
||||
public final class Mutable<T> {
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.support;
|
||||
package com.noorq.casser.support;
|
||||
|
||||
import java.lang.reflect.Array;
|
||||
import java.util.Objects;
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.test.integration.build;
|
||||
package com.noorq.casser.test.integration.build;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.test.integration.build;
|
||||
package com.noorq.casser.test.integration.build;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.Properties;
|
|
@ -13,13 +13,13 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.test.integration.core;
|
||||
package com.noorq.casser.test.integration.core;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import casser.core.Casser;
|
||||
import casser.core.CasserSession;
|
||||
import casser.test.integration.build.AbstractEmbeddedCassandraTest;
|
||||
import com.noorq.casser.core.Casser;
|
||||
import com.noorq.casser.core.CasserSession;
|
||||
import com.noorq.casser.test.integration.build.AbstractEmbeddedCassandraTest;
|
||||
|
||||
public class ContextInitTest extends AbstractEmbeddedCassandraTest {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package casser.test.integration.core.collection;
|
||||
package com.noorq.casser.test.integration.core.collection;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
@ -7,10 +7,6 @@ import java.util.UUID;
|
|||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import casser.core.Casser;
|
||||
import casser.core.CasserSession;
|
||||
import casser.test.integration.build.AbstractEmbeddedCassandraTest;
|
||||
|
||||
import com.datastax.driver.core.DataType;
|
||||
import com.datastax.driver.core.ResultSet;
|
||||
import com.datastax.driver.core.Row;
|
||||
|
@ -19,6 +15,9 @@ import com.datastax.driver.core.querybuilder.Insert;
|
|||
import com.datastax.driver.core.querybuilder.QueryBuilder;
|
||||
import com.datastax.driver.core.schemabuilder.Create;
|
||||
import com.datastax.driver.core.schemabuilder.SchemaBuilder;
|
||||
import com.noorq.casser.core.Casser;
|
||||
import com.noorq.casser.core.CasserSession;
|
||||
import com.noorq.casser.test.integration.build.AbstractEmbeddedCassandraTest;
|
||||
|
||||
public class CollectionTest extends AbstractEmbeddedCassandraTest {
|
||||
|
|
@ -1,14 +1,13 @@
|
|||
package casser.test.integration.core.collection;
|
||||
package com.noorq.casser.test.integration.core.collection;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import casser.mapping.DataTypeName;
|
||||
import casser.mapping.PartitionKey;
|
||||
import casser.mapping.Table;
|
||||
|
||||
import com.datastax.driver.core.DataType.Name;
|
||||
import com.noorq.casser.mapping.DataTypeName;
|
||||
import com.noorq.casser.mapping.PartitionKey;
|
||||
import com.noorq.casser.mapping.Table;
|
||||
|
||||
@Table
|
||||
public interface Customer {
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.test.integration.core.compound;
|
||||
package com.noorq.casser.test.integration.core.compound;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
||||
|
@ -22,10 +22,10 @@ import org.junit.Assert;
|
|||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import casser.core.Casser;
|
||||
import casser.core.CasserSession;
|
||||
import casser.support.Mutable;
|
||||
import casser.test.integration.build.AbstractEmbeddedCassandraTest;
|
||||
import com.noorq.casser.core.Casser;
|
||||
import com.noorq.casser.core.CasserSession;
|
||||
import com.noorq.casser.support.Mutable;
|
||||
import com.noorq.casser.test.integration.build.AbstractEmbeddedCassandraTest;
|
||||
|
||||
public class CompondKeyTest extends AbstractEmbeddedCassandraTest {
|
||||
|
|
@ -13,19 +13,18 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.test.integration.core.compound;
|
||||
package com.noorq.casser.test.integration.core.compound;
|
||||
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.UUID;
|
||||
|
||||
import casser.mapping.ClusteringColumn;
|
||||
import casser.mapping.Column;
|
||||
import casser.mapping.DataTypeName;
|
||||
import casser.mapping.PartitionKey;
|
||||
import casser.mapping.Table;
|
||||
|
||||
import com.datastax.driver.core.DataType.Name;
|
||||
import com.noorq.casser.mapping.ClusteringColumn;
|
||||
import com.noorq.casser.mapping.Column;
|
||||
import com.noorq.casser.mapping.DataTypeName;
|
||||
import com.noorq.casser.mapping.PartitionKey;
|
||||
import com.noorq.casser.mapping.Table;
|
||||
|
||||
@Table
|
||||
public interface Timeline {
|
|
@ -13,20 +13,19 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.test.integration.core.simple;
|
||||
package com.noorq.casser.test.integration.core.simple;
|
||||
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import casser.core.Casser;
|
||||
import casser.core.CasserSession;
|
||||
import casser.core.Operator;
|
||||
import casser.test.integration.build.AbstractEmbeddedCassandraTest;
|
||||
|
||||
import com.datastax.driver.core.ResultSet;
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.noorq.casser.core.Casser;
|
||||
import com.noorq.casser.core.CasserSession;
|
||||
import com.noorq.casser.core.Operator;
|
||||
import com.noorq.casser.test.integration.build.AbstractEmbeddedCassandraTest;
|
||||
|
||||
public class SimpleUserTest extends AbstractEmbeddedCassandraTest {
|
||||
|
|
@ -13,11 +13,11 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package casser.test.integration.core.simple;
|
||||
package com.noorq.casser.test.integration.core.simple;
|
||||
|
||||
import casser.mapping.Column;
|
||||
import casser.mapping.PartitionKey;
|
||||
import casser.mapping.Table;
|
||||
import com.noorq.casser.mapping.Column;
|
||||
import com.noorq.casser.mapping.PartitionKey;
|
||||
import com.noorq.casser.mapping.Table;
|
||||
|
||||
@Table("simple_users")
|
||||
public interface User {
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue