Examples of CUDTValue


Examples of org.caffinitas.mapper.core.codec.CUDTValue

            return;
        }

        Object denormInstance = accessor.getObject(instance);
        if (denormInstance != null) {
            CUDTValue udtValue = (CUDTValue) composite.serializeAny(denormInstance);
            binder.setUDTValue(col, udtValue, composite.codec);
        } else {
            binder.setBytesUnsafe(col, null);
        }
    }
View Full Code Here

Examples of org.caffinitas.mapper.core.codec.CUDTValue

        CqlColumn col = singleColumn();
        if (!retriever.contains(col)) {
            return true;
        }

        CUDTValue udtValue = retriever.getUDTValue(col, composite.codec);
        if (udtValue == null) {
            return true;
        }
        Object denormInstance = composite.deserializeAny(udtValue, rootInstance, session, type);
        accessor.setObject(instance, denormInstance);
View Full Code Here

Examples of org.caffinitas.mapper.core.codec.CUDTValue

    Object deserializeAny(Object o, Object rootInstance, PersistenceSessionImpl session, Class<?> javaType) {
        if (o == null) {
            return null;
        }

        CUDTValue udtValue = (CUDTValue) o;

        Retriever udtRetriever = new CUDTRetriever(udtValue, allColumns);

        Object inst = session.persistenceManager.objectFactory.newInstance(javaType);
        for (MappedAttribute attribute : allAttributes) {
View Full Code Here

Examples of org.caffinitas.mapper.core.codec.CUDTValue

        for (MappedAttribute attribute : allAttributes) {
            attribute.bindToStatement(o, udtBinder);
        }

        CUDTValue udtValue = udtDefinition.newValue();
        udtBinder.bindUDT(0, udtValue);

        return udtValue;
    }
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.