use of com.dangdang.ddframe.rdb.sharding.parser.result.router.RouteContext in project sharding-jdbc by dangdangdotcom.
the class SQLRouteEngine method buildHintParsedResult.
private SQLParsedResult buildHintParsedResult(final String logicSql) {
SQLParsedResult result = new SQLParsedResult();
RouteContext routeContext = result.getRouteContext();
routeContext.setSqlStatementType(SQLUtil.getTypeByStart(logicSql));
log.trace("Get {} SQL Statement", routeContext.getSqlStatementType());
SQLBuilder sqlBuilder = new SQLBuilder();
try {
sqlBuilder.append(logicSql);
} catch (final IOException ignored) {
}
routeContext.setSqlBuilder(sqlBuilder);
result.getConditionContexts().add(new ConditionContext());
return result;
}
Aggregations