Package com.aneeshpu.dpdeppop.schema

Examples of com.aneeshpu.dpdeppop.schema.NameValue


            final Column column = stringColumnEntry.getValue();
            if (column.isAutoIncrement()) {
                continue;
            }

            final NameValue nameValue = column.nameValue(preassignedValues);

            //TODO:Push the formattedName and formattedValue method into Column
            columnNamesPartOfQuery.append(nameValue.formattedName());
            valuesPartOfQuery.append(nameValue.formattedValue());
        }

        columnNamesPartOfQuery.deleteCharAt(columnNamesPartOfQuery.length() - 1);
        valuesPartOfQuery.deleteCharAt(valuesPartOfQuery.length() - 1);
View Full Code Here


        if (LOG.isDebugEnabled()) {
            LOG.debug("deleting record id " + primaryKeyColumn.value() + " from table " + record);
        }

        //TODO:push formattedName and formattedValue into Column
        final NameValue nameValue = primaryKeyColumn.nameValue(preassignedValues);
        final String deleteQuery = String.format(DELETE_QUERY_TEMPLATE, record.tableName(), nameValue.formattedNameWithoutTrailingComma(), nameValue.formattedValueWithoutTrailingComma());

        if (LOG.isInfoEnabled()) {
            LOG.info("delete query for table, " + record + ": " + deleteQuery);
        }
        return deleteQuery;
View Full Code Here

        if (LOG.isDebugEnabled()) {
            LOG.debug("deleting record id " + primaryKeyColumn.value() + " from table " + record);
        }

        //TODO:push formattedName and formattedValue into Column
        final NameValue nameValue = primaryKeyColumn.nameValue(preassignedValues);
        final String deleteQuery = String.format(DELETE_QUERY_TEMPLATE, record.tableName(), nameValue.formattedNameWithoutTrailingComma(), nameValue.formattedValueWithoutTrailingComma());

        if (QUERYLOG.isInfoEnabled()) {
            QUERYLOG.info("delete query:" + deleteQuery);
        }
        return deleteQuery;
View Full Code Here

            final Column column = stringColumnEntry.getValue();
            if (column.isAutoIncrement()) {
                continue;
            }

            final NameValue nameValue = column.nameValue(preassignedValues);

            //TODO:Push the formattedName and formattedValue method into Column
            columnNamesPartOfQuery.append(nameValue.formattedName());
            valuesPartOfQuery.append(nameValue.formattedValue());
        }

        columnNamesPartOfQuery.deleteCharAt(columnNamesPartOfQuery.length() - 1);
        valuesPartOfQuery.deleteCharAt(valuesPartOfQuery.length() - 1);
View Full Code Here

        if (Record.LOG.isDebugEnabled()) {
            Record.LOG.debug("deleting record id " + this.primaryKeyColumn.value() + " from table " + this.record);
        }

        //TODO:push formattedName and formattedValue into Column
        final NameValue nameValue = this.primaryKeyColumn.nameValue(this.preassignedValues);
        final String deleteQuery = String.format("delete from \"%s\" where %s=%s", this.record.tableName(), nameValue.formattedNameWithoutTrailingComma(), nameValue.formattedValueWithoutTrailingComma());

        if (Record.LOG.isInfoEnabled()) {
            Record.LOG.info("delete query: " + deleteQuery);
        }
        return deleteQuery;
View Full Code Here

TOP

Related Classes of com.aneeshpu.dpdeppop.schema.NameValue

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.