Package henplus.sqlmodel

Examples of henplus.sqlmodel.ColumnPkInfo


    private static String getPkDesc(final henplus.sqlmodel.Column col) {
        String pkDesc = "";

        if (col.isPartOfPk()) {
            final ColumnPkInfo pkInfo = col.getPkInfo();
            if (pkInfo.getColumnIndex() == 1) {
                pkDesc = pkInfo.getPkName() != null ? pkInfo.getPkName() : "*";
            } else { // the pk index is greater than 1
                pkDesc = pkInfo.getPkName() != null ? pkInfo.getPkName() : "*";
                pkDesc = new StringBuilder(pkDesc).append("{").append(pkInfo.getColumnIndex()).append("}").toString();
            }
        }

        return pkDesc;
    }
View Full Code Here

TOP

Related Classes of henplus.sqlmodel.ColumnPkInfo

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.