當前位置: 首頁>>代碼示例>>Java>>正文


Java NotSupportException類代碼示例

本文整理匯總了Java中com.taobao.tddl.common.exception.NotSupportException的典型用法代碼示例。如果您正苦於以下問題:Java NotSupportException類的具體用法?Java NotSupportException怎麽用?Java NotSupportException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


NotSupportException類屬於com.taobao.tddl.common.exception包,在下文中一共展示了NotSupportException類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: visit

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
@Override
public void visit(LiteralBitField node) {
    if (node.getIntroducer() != null) {
        throw new NotSupportException("bit value not support introducer:" + node.getIntroducer());
    }
    this.columnOrValue = new LobVal(node.getText(), "b");
}
 
開發者ID:loye168,項目名稱:tddl5,代碼行數:8,代碼來源:MySqlExprVisitor.java

示例2: setOperation

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public IGroupFilter setOperation(OPERATION operation) {
    if (operation != OPERATION.GROUP_OR) {
        throw new NotSupportException();
    }

    return this;
}
 
開發者ID:loye168,項目名稱:tddl5,代碼行數:8,代碼來源:GroupFilter.java

示例3: buildLimit

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public void buildLimit() {
    if (this.getNode().getLimitFrom() == null && this.getNode().getLimitTo() == null) {

        // 將子節點的limit條件轉移到父節點
        // 不能出現多級的merge節點都帶著limit
        Comparable from = ((QueryTreeNode) this.getNode().getChild()).getLimitFrom();
        Comparable to = ((QueryTreeNode) this.getNode().getChild()).getLimitTo();

        if ((from instanceof IBindVal && ((IBindVal) from).getValue() != null)
            || (to instanceof IBindVal && ((IBindVal) to).getValue() != null)) {
            // 說明是batch中針對limit使用綁定變量,暫時不支持
            throw new NotSupportException("batch中不支持對分庫分表limit的綁定變量");
        }

        this.getNode().setLimitFrom(from);
        this.getNode().setLimitTo(to);

        if (from instanceof Long && to instanceof Long) {
            if ((from != null && (Long) from != -1) || (to != null && (Long) to != -1)) {
                for (ASTNode s : this.getNode().getChildren()) {
                    if (node.isExistAggregate()) {
                        // 如果節點存在聚合函數,limit不能下推,幹掉子節點的limit,由父節點進行計算
                        ((QueryTreeNode) s).setLimitFrom(null);
                        ((QueryTreeNode) s).setLimitTo(null);
                    } else {
                        // 底下采取limit 0,from+to邏輯,上層來過濾
                        ((QueryTreeNode) s).setLimitFrom(0L);
                        ((QueryTreeNode) s).setLimitTo((Long) from + (Long) to);
                    }
                }
            }
        }
    }

}
 
開發者ID:loye168,項目名稱:tddl5,代碼行數:36,代碼來源:MergeNodeBuilder.java

示例4: getTableNode

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
private QueryTreeNode getTableNode(DMLUpdateStatement node) {
    TableReferences trs = node.getTableRefs();
    List<TableReference> tbls = trs.getTableReferenceList();
    QueryTreeNode table = null;
    if (tbls != null && tbls.size() == 1) {
        MySqlExprVisitor tv = new MySqlExprVisitor();
        tbls.get(0).accept(tv);
        table = tv.getTableNode();
    } else {
        throw new NotSupportException("not support more than one table update!");
    }

    return table;
}
 
開發者ID:beebeandwer,項目名稱:TDDL,代碼行數:15,代碼來源:MySqlUpdateVisitor.java

示例5: getFilterColumn

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public static Object getFilterColumn(IFilter filter) {
    if (filter instanceof IBooleanFilter) {
        return ((IBooleanFilter) filter).getColumn();
    } else if (filter instanceof IGroupFilter) {
        return ((IGroupFilter) filter).getColumn();
    } else {
        throw new NotSupportException("LogicFilter.getColumn");
    }

}
 
開發者ID:loye168,項目名稱:tddl5,代碼行數:11,代碼來源:FilterUtils.java

示例6: setTypeMap

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
    throw new NotSupportException("");
}
 
開發者ID:beebeandwer,項目名稱:TDDL,代碼行數:4,代碼來源:MockConnection.java

示例7: getCatalog

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public String getCatalog() throws SQLException {
    throw new NotSupportException("");
}
 
開發者ID:loye168,項目名稱:tddl5,代碼行數:4,代碼來源:MockConnection.java

示例8: getWarnings

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public SQLWarning getWarnings() throws SQLException {
    throw new NotSupportException("");
}
 
開發者ID:loye168,項目名稱:tddl5,代碼行數:4,代碼來源:MockConnection.java

示例9: updateCharacterStream

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public void updateCharacterStream(String columnName, Reader reader, int length) throws SQLException {
    throw new NotSupportException("updateCharacterStream(String columnName, Reader reader, int length)");
}
 
開發者ID:loye168,項目名稱:tddl5,代碼行數:4,代碼來源:MockResultSet.java

示例10: prepareCall

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public CallableStatement prepareCall(String sql) throws SQLException {
    throw new NotSupportException("");
}
 
開發者ID:loye168,項目名稱:tddl5,代碼行數:4,代碼來源:MockConnection.java

示例11: compareTo

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public int compareTo(Object arg) {
    throw new NotSupportException();
}
 
開發者ID:beebeandwer,項目名稱:TDDL,代碼行數:4,代碼來源:Cost.java

示例12: updateCharacterStream

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
    throw new NotSupportException("updateCharacterStream(int columnIndex, Reader x, int length)");
}
 
開發者ID:beebeandwer,項目名稱:TDDL,代碼行數:4,代碼來源:MockResultSet.java

示例13: doMod

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
@Override
public Object doMod(Object v1, Object v2) {
    throw new NotSupportException("時間類型不支持算術符操作");
}
 
開發者ID:loye168,項目名稱:tddl5,代碼行數:5,代碼來源:TimeType.java

示例14: updateTime

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public void updateTime(String columnName, Time x) throws SQLException {
    throw new NotSupportException("updateTime(String columnName, Time x)");
}
 
開發者ID:loye168,項目名稱:tddl5,代碼行數:4,代碼來源:MockResultSet.java

示例15: visit

import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
@Override
public void visit(ExistsPrimary node) {
    throw new NotSupportException("ExistsPrimary");
}
 
開發者ID:beebeandwer,項目名稱:TDDL,代碼行數:5,代碼來源:MySqlExprVisitor.java


注:本文中的com.taobao.tddl.common.exception.NotSupportException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。