public class PgqlTranslator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static PgqlTranslator |
getPgqlTranslator(QueryContext ctx)
factory method for generating a PgqlTranslator instance
|
static PgqlTranslator |
getPgqlTranslator(QueryContext ctx,
TraversalStruct parentTStruct,
java.util.Map<java.lang.String,oracle.pgql.lang.ir.QueryExpression> parentExprAliasMap)
factory method for generating a PgqlTranslator instance
|
PgqlSqlTrans |
translatePgql(java.lang.String pgqlStr,
oracle.pgql.lang.ir.Statement stmt,
BindValueInfo bvInfo)
Translates the given PGQL into a class containing SQL queries
that can be used to perform query, insert/update/delete,
create/drop on PG vertex and edge tables.
|
PgqlSqlTrans |
translatePgql(java.lang.String pgqlStr,
oracle.pgql.lang.ir.Statement stmt,
BindValueInfo bvInfo,
boolean forExecute)
Translates the given PGQL into a class containing SQL queries
that can be used to perform query, insert/update/delete,
create/drop on PG vertex and edge tables.
|
PgqlSqlQueryTrans |
translateQuery(java.lang.String pgqlStr)
main query translation method
|
PgqlSqlQueryTrans |
translateQuery(java.lang.String pgqlStr,
BindValueInfo bvInfo)
main query translation method
|
public static PgqlTranslator getPgqlTranslator(QueryContext ctx)
ctx
- the QueryContext for this overall querypublic static PgqlTranslator getPgqlTranslator(QueryContext ctx, TraversalStruct parentTStruct, java.util.Map<java.lang.String,oracle.pgql.lang.ir.QueryExpression> parentExprAliasMap)
ctx
- the QueryContext for this overall queryparentTStruct
- the traversal structures for this query block's parentparentExprAliasMap
- alias to expression mapping for this query block's parentpublic PgqlSqlTrans translatePgql(java.lang.String pgqlStr, oracle.pgql.lang.ir.Statement stmt, BindValueInfo bvInfo) throws oracle.pgql.lang.PgqlException, PgqlToSqlException
pgqlStr
- the PGQL string to translatestmt
- Statement IR object for a DML or DDLbvInfo
- bind variable information for this overall PGQLoracle.pgql.lang.PgqlException
- when an error occurs in the translationPgqlToSqlException
- when receiving an unexpected statementpublic PgqlSqlTrans translatePgql(java.lang.String pgqlStr, oracle.pgql.lang.ir.Statement stmt, BindValueInfo bvInfo, boolean forExecute) throws oracle.pgql.lang.PgqlException, PgqlToSqlException
pgqlStr
- the PGQL string to translatestmt
- Statement IR object for a DML or DDLbvInfo
- bind variable information for this overall PGQLforExecute
- true if this translation is called from execute()oracle.pgql.lang.PgqlException
- when an error occurs in the translationPgqlToSqlException
- when receiving an unexpected statementpublic PgqlSqlQueryTrans translateQuery(java.lang.String pgqlStr) throws oracle.pgql.lang.PgqlException, PgqlToSqlException
pgqlStr
- the PGQL query string to translateoracle.pgql.lang.PgqlException
- when an error occurs in the translationPgqlToSqlException
- when an error occurs in the translationpublic PgqlSqlQueryTrans translateQuery(java.lang.String pgqlStr, BindValueInfo bvInfo) throws oracle.pgql.lang.PgqlException, PgqlToSqlException
pgqlStr
- the PGQL query string to translatebvInfo
- bind variable information for this overall queryoracle.pgql.lang.PgqlException
- when an error occurs in the translationPgqlToSqlException
- when an error occurs in the translationCopyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.