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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Iterable<com.invirgance.convirgance.json.JSONObject>
    getBinding(com.invirgance.convirgance.json.JSONObject parameters)
     
    Get the JNDI path to the configured database connection. e.g. jdbc/mydatabase
    Get the current classpath to the schema XML file
    boolean
    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/mydatabase
    void
    setLogQuery(boolean logQuery)
     
    void
    setSchema(String schema)
    Sets the classpath to the Wiring XML file containing the database structure.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StarQueryBinding

      public StarQueryBinding()
  • Method Details

    • getJndiName

      public String getJndiName()
      Get the JNDI path to the configured database connection. e.g. jdbc/mydatabase
      Returns:
      path to jdbc datasource
    • setJndiName

      public void setJndiName(String jndiName)
      Set the JNDI path to the configured database connection. e.g. jdbc/mydatabase
      Parameters:
      jndiName - path to jdbc datasource
    • getSchema

      public String getSchema()
      Get the current classpath to the schema XML file
      Returns:
      classpath to XML Wiring file
    • setSchema

      public void setSchema(String schema)
      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 interface com.invirgance.convirgance.web.binding.Binding