本文整理汇总了Java中net.sf.jsqlparser.expression.CastExpression类的典型用法代码示例。如果您正苦于以下问题:Java CastExpression类的具体用法?Java CastExpression怎么用?Java CastExpression使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CastExpression类属于net.sf.jsqlparser.expression包,在下文中一共展示了CastExpression类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
@Override
public void visit(CastExpression cast) {
if (cast.isUseCastKeyword()) {
buffer.append("CAST(");
buffer.append(cast.getLeftExpression());
buffer.append(" AS ");
buffer.append(cast.getType());
buffer.append(")");
} else {
buffer.append(cast.getLeftExpression());
buffer.append("::");
buffer.append(cast.getType());
}
}
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:15,代码来源:ExpressionDeParser.java
示例2: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
@Override
public void visit(CastExpression expr)
{
invalid = true;
super.visit(expr);
}
开发者ID:olavloite,项目名称:spanner-jdbc,代码行数:7,代码来源:DMLWhereClauseVisitorAdapter.java
示例3: CastExpression
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
final public CastExpression CastExpression() throws ParseException {
/* @bgen(jjtree) CastExpression */
SimpleNode jjtn000 = new SimpleNode(JJTCASTEXPRESSION);
boolean jjtc000 = true;
jjtree.openNodeScope(jjtn000);
CastExpression retval = new CastExpression();
ColDataType type = null;
Expression expression = null;
boolean useCastKeyword;
try {
jj_consume_token(K_CAST);
jj_consume_token(166);
expression = SimpleExpression();
jj_consume_token(K_AS);
type = ColDataType();
jj_consume_token(167);
retval.setUseCastKeyword(true);
jjtree.closeNodeScope(jjtn000, true);
jjtc000 = false;
retval.setLeftExpression(expression);
retval.setType(type);
{
if (true)
return retval;
}
} catch (Throwable jjte000) {
if (jjtc000) {
jjtree.clearNodeScope(jjtn000);
jjtc000 = false;
} else {
jjtree.popNode();
}
if (jjte000 instanceof RuntimeException) {
{
if (true)
throw (RuntimeException) jjte000;
}
}
if (jjte000 instanceof ParseException) {
{
if (true)
throw (ParseException) jjte000;
}
}
{
if (true)
throw (Error) jjte000;
}
} finally {
if (jjtc000) {
jjtree.closeNodeScope(jjtn000, true);
}
}
throw new Error("Missing return statement in function");
}
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:56,代码来源:CCJSqlParser.java
示例4: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
@Override
public void visit(CastExpression cast) {
cast.getLeftExpression().accept(this);
}
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:TablesNamesFinder.java
示例5: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
@Override
public void visit(CastExpression cast) {
// TODO Auto-generated method stub
}
开发者ID:devpage,项目名称:sharding-quickstart,代码行数:6,代码来源:TablesNamesFinder.java
示例6: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
@Override
public void visit(CastExpression ce
) {
throw new UnsupportedOperationException();
}
开发者ID:diennea,项目名称:herddb,代码行数:6,代码来源:ColumnReferencesDiscovery.java
示例7: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
public void visit(CastExpression cast) {
}
开发者ID:scouter-project,项目名称:scouter,代码行数:3,代码来源:TableFinder.java
示例8: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
@Override
public void visit(CastExpression arg0) {
isSimple = false;
}
开发者ID:coastland,项目名称:gsp-dba-maven-plugin,代码行数:5,代码来源:ViewAnalyzer.java
示例9: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
@Override
public void visit(CastExpression cast)
{
throw new UnsupportedSqlExpressionException("CAST"); //$NON-NLS-1$
}
开发者ID:obidea,项目名称:semantika,代码行数:6,代码来源:SelectItemHandler.java
示例10: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
@Override
public void visit(CastExpression cast)
{
throw new IllegalOperationException("Illegal SQL ON expression: " + cast); //$NON-NLS-1$
}
开发者ID:obidea,项目名称:semantika,代码行数:6,代码来源:JoinConditionHandler.java
示例11: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
@Override
public void visit(CastExpression arg0) {
// TODO Auto-generated method stub
}
开发者ID:mulesoft-labs,项目名称:mongo-sql-console,代码行数:6,代码来源:MongoWhereExpressionVisitor.java
示例12: visit
import net.sf.jsqlparser.expression.CastExpression; //导入依赖的package包/类
@Override
public void visit(CastExpression cast) {
}
开发者ID:ormanli,项目名称:SQL2NoSQL,代码行数:5,代码来源:SQLVisitor.java
注:本文中的net.sf.jsqlparser.expression.CastExpression类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论