public class SQLQuery
extends java.lang.Object
Constructor and Description |
---|
SQLQuery(java.lang.String query,
java.lang.Object[] args,
java.lang.Class<?> resultClass,
int expectedRows) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArgs() |
int |
getExpectedRows()
returns -1 if unknown, and a positive int otherwise
|
java.lang.String |
getQuery() |
java.lang.Class |
getResultClass() |
static SQLQuery |
ofOQL(SchemaI schema,
java.lang.String oqlQuery,
java.lang.Object[] parameters)
Creates a new SQLQuery object based on the provided CBOSchema, oql query and parameters.
|
public SQLQuery(java.lang.String query, java.lang.Object[] args, java.lang.Class<?> resultClass, int expectedRows)
public java.lang.String getQuery()
public java.lang.Object[] getArgs()
public java.lang.Class getResultClass()
public int getExpectedRows()
public static SQLQuery ofOQL(SchemaI schema, java.lang.String oqlQuery, java.lang.Object[] parameters) throws OQLException
schema
- the schema to use for determining attribute types in the oql query, nonnull.oqlQuery
- the oql query string, nonnullparameters
- a list of parameters for the oql queryOQLException
- if the oql query could not be parsed and contains errors.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.