Java Code Examples for net.sf.jsqlparser.statement.values.ValuesStatement

The following examples show how to use net.sf.jsqlparser.statement.values.ValuesStatement. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: sqlhelper   Source File: JSqlParsers.java    License: GNU Lesser General Public License v3.0 5 votes vote down vote up
public static PlainSelect extractPlainSelect(SelectBody selectBody) {
    if (selectBody == null) {
        return null;
    }
    if (selectBody instanceof PlainSelect) {
        return (PlainSelect) selectBody;
    }

    if (selectBody instanceof WithItem) {
        SelectBody subSelectBody = ((WithItem) selectBody).getSelectBody();
        if (subSelectBody != null) {
            return extractPlainSelect(subSelectBody);
        } else {
            return null;
        }
    }

    if (selectBody instanceof ValuesStatement) {
        return null;
    }

    if (selectBody instanceof SetOperationList) {
        SetOperationList setOperationList = (SetOperationList) selectBody;
        List<SelectBody> selectBodyList = setOperationList.getSelects();
        if (Emptys.isNotEmpty(selectBodyList)) {
            return extractPlainSelect(selectBodyList.get(selectBodyList.size() - 1));
        }
    }
    return null;

}
 
Example 2
Source Project: dynamic-add-date   Source File: AddDateInterceptor.java    License: MIT License 5 votes vote down vote up
@Override
public void visit(ValuesStatement valuesStatement) {
    if (index != -1) {
        valuesStatement.getExpressions().set(index, new QuotationTimestampValue(columnValue));
    } else {
        valuesStatement.getExpressions().add(index, new QuotationTimestampValue(columnValue));
    }

}
 
Example 3
Source Project: evosql   Source File: SqlSecurerVisitor.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void visit(ValuesStatement aThis) {
	aThis.getExpressions().forEach(x -> x.accept(this));
}
 
Example 4
Source Project: evosql   Source File: SeedVisitor.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void visit(ValuesStatement aThis) {

}
 
Example 5
Source Project: evosql   Source File: UsedColumnExtractorVisitor.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void visit(ValuesStatement aThis) {

}
 
Example 6
Source Project: evosql   Source File: TablesNamesFinder.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void visit(ValuesStatement aThis) {

}
 
Example 7
Source Project: evosql   Source File: ClassifierVisitor.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void visit(ValuesStatement aThis) {

}
 
Example 8
Source Project: evosql   Source File: DetailedClassifierVisitor.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void visit(ValuesStatement aThis) {

}
 
Example 9
Source Project: evosql   Source File: FunctionClassifierVisitor.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void visit(ValuesStatement aThis) {

}
 
Example 10
Source Project: evosql   Source File: QueryStripperVisitor.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void visit(ValuesStatement aThis) {

}
 
Example 11
Source Project: evosql   Source File: CryptoVisitor.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void visit(ValuesStatement aThis) {

}