Package com.meidusa.amoeba.parser.dbobject

Examples of com.meidusa.amoeba.parser.dbobject.Column


        // String forwardDbPattern = null;

        if (routingInfo.getTableRouter() != null) {

            // 用语句信息的常量进行散表。
            Column column = routingInfo.getTableRouterColumn();
            Object columnValue = null;

            if (column != null) {
                columnValue = findShardParamValue(runtime, column);
                if (columnValue == null) {
View Full Code Here


            String columnName = dbRouter.getColumn();

            if (columnName != null) {

                // 保存匹配的数据列
                Column columnForDBPartition = new Column();
                columnForDBPartition.setName(columnName.toUpperCase());
                columnForDBPartition.setTable(byTable);
                this.dbRouterColumn = columnForDBPartition;
            }
            return dbRouterColumn;
        }
View Full Code Here

            String columnName = tableRouter.getColumn();

            if (columnName != null) {

                // 保存匹配的数据列
                Column tableRouterColumn = new Column();
                tableRouterColumn.setName(columnName.toUpperCase());
                tableRouterColumn.setTable(byTable);
                this.tableRouterColumn = tableRouterColumn;
            }
            return tableRouterColumn;
        }
View Full Code Here

    /**
     * 创建一个 {@link Column} 对象。
     */
    public static Column newColumn(String tableName, String columnName) {
        Column column = new Column();
        column.setTable(newTable(tableName));
        column.setName(columnName.toUpperCase());
        return column;
    }
View Full Code Here

    /**
     * 创建一个 {@link Column} 对象。
     */
    public static Column newColumn(Table table, String columnName) {
        Column column = new Column();
        column.setTable(table);
        column.setName(columnName.toUpperCase());
        return column;
    }
View Full Code Here

TOP

Related Classes of com.meidusa.amoeba.parser.dbobject.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.