public class PgqlConnection
extends java.lang.Object
PgqlStatement
and PgqlPreparedStatement
objects for executing PGQL queries against graphs stored in Oracle Database.Modifier and Type | Method and Description |
---|---|
PgqlStatement |
createStatement()
Creates a new PgqlStatement object, which is used to execute PGQL queries
|
static PgqlConnection |
getConnection(java.sql.Connection conn)
Factory method to get
PgqlConnection instance. |
java.lang.String |
getGraph()
Get the graph name on which PGQL queries will be executed for this connection.
|
java.sql.Connection |
getJdbcConnection()
Get the JDBC connection that is used to execute PGQL queries
|
java.lang.String |
getSchema()
Get the schema name that will be used to execute PGQL queries with this connection.
|
PgqlPreparedStatement |
prepareStatement(java.lang.String pgql)
Creates a new PgqlPreparedStatement object, which represents a pre-compiled PGQL statement.
|
void |
setGraph(java.lang.String graph)
Sets the graph name on which PGQL queries will be executed for this connection.
|
void |
setSchema(java.lang.String schema)
Sets the schema name that will be used to execute PGQL queries with this connection.
|
public PgqlStatement createStatement()
PgqlStatement
object that can be used to perform PGQL queriespublic static PgqlConnection getConnection(java.sql.Connection conn)
PgqlConnection
instance.conn
- a JDBC connectionpublic java.lang.String getGraph()
public java.sql.Connection getJdbcConnection()
public java.lang.String getSchema() throws PgqlToSqlException
PgqlToSqlException
- if a database access error occurs or this method is called on a closed connectionpublic PgqlPreparedStatement prepareStatement(java.lang.String pgql)
pgql
- the PGQL query to compilePgqlPreparedStatement
object that can be used to efficiently execute the same query multiple timespublic void setGraph(java.lang.String graph)
graph
- the name of the graphpublic void setSchema(java.lang.String schema)
schema
- the name of the schema