Package org.easycassandra.persistence.cassandra.AddColumnUtil

Examples of org.easycassandra.persistence.cassandra.AddColumnUtil.AddColumn


    private void executeAlterTableAdd(ClassInformation classInformation, Session session,
            FieldInformation field) {
        StringBuilder cqlAlterTable = new StringBuilder();
        cqlAlterTable.append("ALTER TABLE ").append(classInformation.getNameSchema());
        cqlAlterTable.append(" ADD ");
        AddColumn addColumn = AddColumnUtil.INSTANCE.factory(field);
        cqlAlterTable.append(addColumn.addRow(field, RelationShipJavaCassandra.INSTANCE));
        cqlAlterTable.deleteCharAt(cqlAlterTable.length() - 1);
        cqlAlterTable.append(";");
        session.execute(cqlAlterTable.toString());
    }
View Full Code Here


                createQueryCreateTable(field.getSubFields(), cqlCreateTable);
                continue;
            }

            AddColumn addColumn = AddColumnUtil.INSTANCE.factory(field);
            cqlCreateTable.append(addColumn.addRow(field,
                    RelationShipJavaCassandra.INSTANCE));
        }
    }
View Full Code Here

TOP

Related Classes of org.easycassandra.persistence.cassandra.AddColumnUtil.AddColumn

Copyright © 2018 www.massapicom. 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.