本文整理汇总了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");
}