本文整理匯總了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");
}
示例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;
}
示例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);
}
}
}
}
}
}
示例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;
}
示例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");
}
}
示例6: setTypeMap
import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
throw new NotSupportException("");
}
示例7: getCatalog
import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public String getCatalog() throws SQLException {
throw new NotSupportException("");
}
示例8: getWarnings
import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public SQLWarning getWarnings() throws SQLException {
throw new NotSupportException("");
}
示例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)");
}
示例10: prepareCall
import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public CallableStatement prepareCall(String sql) throws SQLException {
throw new NotSupportException("");
}
示例11: compareTo
import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
public int compareTo(Object arg) {
throw new NotSupportException();
}
示例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)");
}
示例13: doMod
import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
@Override
public Object doMod(Object v1, Object v2) {
throw new NotSupportException("時間類型不支持算術符操作");
}
示例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)");
}
示例15: visit
import com.taobao.tddl.common.exception.NotSupportException; //導入依賴的package包/類
@Override
public void visit(ExistsPrimary node) {
throw new NotSupportException("ExistsPrimary");
}