Package ke.go.moh.oec.adt.data

Examples of ke.go.moh.oec.adt.data.Column


            }
        }
    }

    private void addPrimaryKey(Transaction transaction, RecordSource recordSource, String primaryKeyColumnName, String primaryKeyColumnValue) {
        Column column = recordSource.getPrimaryKeyColumnMap().get(primaryKeyColumnName);
        if (column != null) {
            if (transaction.getPrimaryKey() == null) {
                transaction.setPrimaryKey(new LinkedHashMap<Column, String>());
            }
            transaction.getPrimaryKey().put(column, primaryKeyColumnValue);
View Full Code Here


            recordList.add(linkedRecord.getRecord());
        } else if (linkedRecord.getRecordSource().getRelationship() == RecordSource.Relationship.MASTER) {
            if (linkedRecord.getLinkedRecordList() != null) {
                for (LinkedRecord lr : linkedRecord.getLinkedRecordList()) {
                    for (Column column : lr.getRecord().getOrdinaryCellMap().keySet()) {
                        Column newColumn = new Column(column.getName(), true);
                        String newData = lr.getRecord().getOrdinaryCellMap().get(column);
                        linkedRecord.getRecord().getOrdinaryCellMap().put(newColumn, newData);
                    }
                }
            }
View Full Code Here

        int length = nodeList.getLength();
        for (int i = 0; i < length; i++) {
            Element element = (Element) nodeList.item(0);
            String name = readTagValue(element, "name");
            boolean quote = Boolean.parseBoolean(readTagValue(element, "quote"));
            primaryKeyColumnSet.put(name, new Column(name, quote));
        }
        return primaryKeyColumnSet;
    }
View Full Code Here

                if (childNode != null && childNode.getNodeType() == Node.ELEMENT_NODE) {
                    Element childElement = (Element) childNode;
                    NodeList grandChildNodeList = childElement.getChildNodes();
                    Node grandChildNode = (Node) grandChildNodeList.item(0);
                    if (grandChildNode != null) {
                        columnList.add(new Column(grandChildNode.getNodeValue(), true));
                    }
                }
            }
        }
        return columnList;
View Full Code Here

TOP

Related Classes of ke.go.moh.oec.adt.data.Column

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.