Examples of forOperations()


Examples of info.archinnov.achilles.internal.metadata.holder.EntityMeta.forOperations()

        Function<Row, T> rowToEntity = new Function<Row, T>() {
            @Override
            public T apply(Row row) {
                T entity = null;
                if (row != null) {
                    entity = entityMeta.forOperations().instanciate();
                    entityMeta.getIdMeta().forValues().setValueToField(entity, primaryKey);

                    for (PropertyMeta counterMeta : context.getAllCountersMeta()) {
                        mapper.setCounterToEntity(counterMeta, entity, row);
                    }
View Full Code Here

Examples of info.archinnov.achilles.internal.metadata.holder.EntityMeta.forOperations()

        EntityMeta entityMeta = sliceQueryProperties.getEntityMeta();
        final EntityMetaConfig metaConfig = entityMeta.config();

        Selection select = select();

        for (PropertyMeta pm : entityMeta.forOperations().getColumnsMetaToLoad()) {
            select = pm.forStatementGeneration().prepareSelectField(select);
        }

        Select from = select.from(metaConfig.getKeyspaceName(), metaConfig.getTableName());
View Full Code Here

Examples of info.archinnov.achilles.internal.metadata.holder.EntityMeta.forOperations()

        Function<List<Row>, List<T>> rowsToEntities = new Function<List<Row>, List<T>>() {
            @Override
            public List<T> apply(List<Row> rows) {
                List<T> clusteredEntities = new ArrayList<>();
                for (Row row : rows) {
                    T clusteredEntity = meta.forOperations().instanciate();
                    mapper.setNonCounterPropertiesToEntity(row, meta, clusteredEntity);
                    meta.forInterception().intercept(clusteredEntity, Event.POST_LOAD);
                    clusteredEntities.add(clusteredEntity);
                }
                return clusteredEntities;
View Full Code Here

Examples of info.archinnov.achilles.internal.metadata.holder.EntityMeta.forOperations()

            Function<Row, T> rowToEntity = new Function<Row, T>() {
                @Override
                public T apply(Row row) {
                    T entity = null;
                    if (row != null) {
                        entity = entityMeta.forOperations().instanciate();
                        mapper.setNonCounterPropertiesToEntity(row, entityMeta, entity);
                    }
                    return entity;
                }
            };
View Full Code Here

Examples of info.archinnov.achilles.internal.metadata.holder.EntityMeta.forOperations()

        Validator.validateNotNull(entityClass, "Entity class should not be null");
        Validator.validateNotNull(primaryKey, "Entity '%s' key should not be null", entityClass.getCanonicalName());
        Validator.validateNotNull(entityMeta, "Entity meta for '%s' should not be null", entityClass.getCanonicalName());

        T entity = entityMeta.forOperations().instanciate();
        entityMeta.getIdMeta().forValues().setValueToField(entity, primaryKey);

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