Search in sources :

Example 1 with DocumentOrContent

use of org.jooq.impl.QOM.DocumentOrContent in project jOOQ by jOOQ.

the class DefaultParseContext method parseFieldXMLParseIf.

private final Field<?> parseFieldXMLParseIf() {
    if (parseFunctionNameIf("XMLPARSE")) {
        parse('(');
        DocumentOrContent documentOrContent;
        if (parseKeywordIf("DOCUMENT"))
            documentOrContent = DocumentOrContent.DOCUMENT;
        else if (parseKeywordIf("CONTENT"))
            documentOrContent = DocumentOrContent.CONTENT;
        else
            throw expected("CONTENT", "DOCUMENT");
        Field<String> xml = (Field<String>) parseField();
        parse(')');
        return documentOrContent == DocumentOrContent.DOCUMENT ? xmlparseDocument(xml) : xmlparseContent(xml);
    }
    return null;
}
Also used : GroupField(org.jooq.GroupField) TableField(org.jooq.TableField) Field(org.jooq.Field) SortField(org.jooq.SortField) SelectField(org.jooq.SelectField) DocumentOrContent(org.jooq.impl.QOM.DocumentOrContent)

Aggregations

Field (org.jooq.Field)1 GroupField (org.jooq.GroupField)1 SelectField (org.jooq.SelectField)1 SortField (org.jooq.SortField)1 TableField (org.jooq.TableField)1 DocumentOrContent (org.jooq.impl.QOM.DocumentOrContent)1