Package org.caffinitas.mapper.core.codec

Examples of org.caffinitas.mapper.core.codec.Binder.reset()


        Binder binder = new Binder(columns, true, primaryKeyColumns, PersistMode.INSERT, serializeDefault);

        int protocolVersion = persistenceSession.persistenceManager.protocolVersion;

        for (Map.Entry entry : instance.getCluster().entrySet()) {
            binder.reset();

            buildModifyBindColumns(instance, binder, partitionAttributes);
            if (clusteringColumn != null) {
                binder.setBytesUnsafe(clusteringColumn, clusteringPrimitive.serialize(entry.getKey(), protocolVersion));
            } else {
View Full Code Here


        if (!removed.isEmpty()) {
            int protocolVersion = persistenceSession.persistenceManager.protocolVersion;

            Binder binder = new Binder(null, true, primaryKeyColumns, PersistMode.DELETE, true);
            for (Object key : removed) {
                binder.reset();

                buildModifyBindColumns(instance, binder, partitionAttributes);
                if (clusteringColumn != null) {
                    binder.setBytesUnsafe(clusteringColumn, clusteringPrimitive.serialize(key, protocolVersion));
                } else {
View Full Code Here

        int protocolVersion = persistenceSession.persistenceManager.protocolVersion;

        CqlColumn[] columns = PersistOption.ColumnRestrictionOption.filter(persistOptions, writeDataColumns);
        Binder binder = new Binder(columns, true, primaryKeyColumns, PersistMode.UPDATE, true);
        for (Map.Entry entry : instance.getCluster().entrySet()) {
            binder.reset();

            buildModifyBindColumns(instance, binder, partitionAttributes);
            if (clusteringColumn != null) {
                binder.setBytesUnsafe(clusteringColumn, clusteringPrimitive.serialize(entry.getKey(), protocolVersion));
            } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.