本文整理汇总了Java中net.sf.jsqlparser.expression.TimeValue类的典型用法代码示例。如果您正苦于以下问题:Java TimeValue类的具体用法?Java TimeValue怎么用?Java TimeValue使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TimeValue类属于net.sf.jsqlparser.expression包,在下文中一共展示了TimeValue类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testTime
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Test
public void testTime() throws JSQLParserException {
String statement = "SELECT * FROM tab1 WHERE a > {t '04:05:34'}";
PlainSelect plainSelect = (PlainSelect) ((Select) parserManager.parse(new StringReader(statement))).getSelectBody();
assertEquals("04:05:34", (((TimeValue) ((GreaterThan) plainSelect.getWhere()).getRightExpression()).getValue()).toString());
assertEquals(statement, "" + plainSelect);
}
示例2: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue value)
{
setValue(value.getValue());
}
示例3: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue value)
{
visitExpression(col, value);
}
示例4: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue timeValue) {
buffer.append("{t '").append(timeValue.getValue().toString()).append("'}");
}
示例5: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue timeValue) {
}
示例6: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue timeValue) {
// TODO Auto-generated method stub
}
示例7: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue timeValue) {
this.getBuffer().append("?");
values.add(timeValue.getValue());
}
示例8: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue arg0) {
log.debug("sql Time value expression = " + arg0.toString());
value = arg0.getValue();
}
示例9: testTime
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
public void testTime() throws JSQLParserException {
String statement = "SELECT * FROM tab1 WHERE a > {t '04:05:34'}";
PlainSelect plainSelect = (PlainSelect) ((Select) parserManager.parse(new StringReader(statement))).getSelectBody();
assertEquals("04:05:34", (((TimeValue)((GreaterThan) plainSelect.getWhere()).getRightExpression()).getValue()).toString());
assertEquals(statement, ""+plainSelect);
}
示例10: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
public void visit(TimeValue timeValue) {
}
示例11: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue arg0) {
isSimple = false;
}
示例12: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
public void visit(TimeValue timeValue) {
buffer.append(timeValue.getComment() != null ? timeValue.getComment() + " " + ExpressionDeParser.LINE_SEPARATOR : "").append("{t '").append(timeValue.getValue().toString()).append("'}");
}
示例13: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue timeValue)
{
Time value = timeValue.getValue();
mExpression = sSqlFactory.createDateTimeValueExpression(value);
}
示例14: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue timeValue)
{
throw new IllegalOperationException("Illegal SQL ON expression: " + timeValue); //$NON-NLS-1$
}
示例15: visit
import net.sf.jsqlparser.expression.TimeValue; //导入依赖的package包/类
@Override
public void visit(TimeValue tv) { }