public class PgqlCreatePgTranslator
extends java.lang.Object
Constructor and Description |
---|
PgqlCreatePgTranslator() |
Modifier and Type | Method and Description |
---|---|
static int |
getPGSchemaType(java.lang.String columnType)
Returns the PG schema type that corresponds to given column type
|
static int |
getPGSchemaTypeForNumber(java.lang.String columnType)
Returns the PG schema type that corresponds to the NUMBER column with the given scale and precision
|
static int |
getPGSchemaTypeForNumber(java.lang.String dataPrecision, java.lang.String dataScale)
Returns the PG schema type that corresponds to a NUMBER column with the given scale and precision
|
static java.lang.String |
getPGSchemaValueExpression(java.lang.String columnType)
Returns the PG schema expression that can be used to populate v, vn or vt column according to the given column type
|
static java.lang.StringBuilder |
getValueColumnsTranslation(java.lang.String columnType)
Returns a SQL select expression to populate v, vn and vt columns depending on the column type
|
static java.lang.String |
getVColumnTranslation(java.lang.String columnType)
Returns a SQL select expression to populate V column from V, VN and VT columns depending on the column type
|
static PgqlSqlCreateTrans |
translateCreatePropertyGraph(oracle.pgql.lang.ddl.propertygraph.CreatePropertyGraph cpg, QueryContext ctx)
Main translation method for PGQL CREATE PROPERTY GRAPH.
|
public static int getPGSchemaType(java.lang.String columnType)
columnType
- the column typepublic static int getPGSchemaTypeForNumber(java.lang.String columnType)
columnType
- the NUMBER column typepublic static int getPGSchemaTypeForNumber(java.lang.String dataPrecision, java.lang.String dataScale)
dataPrecision
- the precision of the columndataScale
- the scale of the columnpublic static java.lang.String getPGSchemaValueExpression(java.lang.String columnType)
columnType
- the column typepublic static java.lang.StringBuilder getValueColumnsTranslation(java.lang.String columnType)
columnType
- the column typepublic static java.lang.String getVColumnTranslation(java.lang.String columnType)
columnType
- the column typepublic static PgqlSqlCreateTrans translateCreatePropertyGraph(oracle.pgql.lang.ddl.propertygraph.CreatePropertyGraph cpg, QueryContext ctx)
cpg
- the create property graph that should be translatedctx
- the Query context