Package com.taobao.tdhs.jdbc.exception

Examples of com.taobao.tdhs.jdbc.exception.TDHSSQLException


        private ParseSQL parseSQL(@NotNull String sql) throws SQLException {
            ParseSQL parseSQL = new ParseSQL(sql);
            parseSQL.sqlDispatch();
            if (StringUtils.isNotBlank(parseSQL.getErrmsg())) {
                throw new TDHSSQLException("message:" + parseSQL.getErrmsg(), sql);
            }
            if (StringUtils.isBlank(parseSQL.getTableName())) {
                throw new TDHSSQLException("don't have table!", sql);
            }
            return parseSQL;
        }
View Full Code Here


        }

        public PerprocessFilter invoke() throws TDHSSQLException {
            f = StringUtil.escapeField(o.getColumnName());
            if (f == null) {
                throw new TDHSSQLException("error column [" + o.getColumnName() + "]", parseSQL.getSql());
            }
            v = StringUtil.escapeValue(o.getValue());
            if (v == null) {
                throw new TDHSSQLException("error value [" + o.getValue() + "]", parseSQL.getSql());
            }
            return this;
        }
View Full Code Here

TOP

Related Classes of com.taobao.tdhs.jdbc.exception.TDHSSQLException

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.