Class StarQueryBinding
java.lang.Object
com.invirgance.convirgance.olap.web.StarQueryBinding
- All Implemented Interfaces:
com.invirgance.convirgance.web.binding.Binding
@Wiring
public class StarQueryBinding
extends Object
implements com.invirgance.convirgance.web.binding.Binding
- Author:
- jbanes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable
<com.invirgance.convirgance.json.JSONObject> getBinding
(com.invirgance.convirgance.json.JSONObject parameters) Get the JNDI path to the configured database connection. e.g. jdbc/mydatabaseGet the current classpath to the schema XML fileboolean
True if the underlying engine will quote the column and table names to ensure the correct object is queried.boolean
void
setCaseSensitive
(boolean caseSensitive) Set to true if the database is sensitive to the casing the names.void
setJndiName
(String jndiName) Set the JNDI path to the configured database connection. e.g. jdbc/mydatabasevoid
setLogQuery
(boolean logQuery) void
Sets the classpath to the Wiring XML file containing the database structure.
-
Constructor Details
-
StarQueryBinding
public StarQueryBinding()
-
-
Method Details
-
getJndiName
Get the JNDI path to the configured database connection. e.g. jdbc/mydatabase- Returns:
- path to jdbc datasource
-
setJndiName
Set the JNDI path to the configured database connection. e.g. jdbc/mydatabase- Parameters:
jndiName
- path to jdbc datasource
-
getSchema
Get the current classpath to the schema XML file- Returns:
- classpath to XML Wiring file
-
setSchema
Sets the classpath to the Wiring XML file containing the database structure. Under most circumstances, this path should start with a "/".- Parameters:
schema
- classpath to XML Wiring file
-
isCaseSensitive
public boolean isCaseSensitive()True if the underlying engine will quote the column and table names to ensure the correct object is queried.- Returns:
- true if quoting identifiers, false if relying on database match
-
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive) Set to true if the database is sensitive to the casing the names. The underlying engine will quote the column and table names to ensure the correct object is queried. Not necessary under most circumstances.- Parameters:
caseSensitive
- true to quote identifiers, false if allowed to let the database match
-
isLogQuery
public boolean isLogQuery() -
setLogQuery
public void setLogQuery(boolean logQuery) -
getBinding
public Iterable<com.invirgance.convirgance.json.JSONObject> getBinding(com.invirgance.convirgance.json.JSONObject parameters) - Specified by:
getBinding
in interfacecom.invirgance.convirgance.web.binding.Binding
-