Class QDLDB

    • Constructor Detail

      • QDLDB

        public QDLDB()
    • Method Detail

      • checkArg

        protected void checkArg​(boolean condition,
                                String message)
        If the condition is true, do nothing, if false, throw and exception with the given message
        Parameters:
        condition -
        message -
      • sqlToQDL

        protected QDLValue sqlToQDL​(Object obj,
                                    int qdlType,
                                    State state)
                             throws Throwable
        Converts a generic object to a QDL object. If it is a known supported type, that is just used otherwise only basic conversions are done.
        Parameters:
        obj -
        qdlType - The QDL type of the object to convert to, for in the qdl_types. stem.
        Returns:
        Throws:
        Throwable
      • releaseConnection

        public void releaseConnection​(edu.uiuc.ncsa.security.storage.sql.ConnectionRecord c)
      • destroyConnection

        protected void destroyConnection​(edu.uiuc.ncsa.security.storage.sql.ConnectionRecord c)
      • addQDLTypesBlurb

        protected void addQDLTypesBlurb​(List<String> docs)
      • getDataTypes

        public QDLStem getDataTypes()
      • creatQDLTypeMap

        protected Map<Long,​int[]> creatQDLTypeMap​(QDLStem qdlTypes)
        Takes the QDLStem of QDL types and returns a map of int[sql_type,qdl_type], indexed by the position in the list.
        Parameters:
        qdlTypes -
        Returns:
      • getPreparedArgStatement

        protected List<String> getPreparedArgStatement()
      • serializeToJSON

        public org.kordamp.json.JSONObject serializeToJSON()
        Description copied from interface: QDLMetaModule
        Send back a serialization of internal state for this object. This allows for the state you choose to be serialized and then reloaded.

        NOTE

        There is no canonical form for this. Set it how you will and deserialize it accordingly.
        Specified by:
        serializeToJSON in interface QDLMetaModule
        Returns:
      • getParameterCount

        protected long getParameterCount​(String rawStatement)
        Given the raw SQL statement, count the parameters (i.e. the '?' instances) in it. Not terribly clever -- just a regex -- but should work in most cases.
        Parameters:
        rawStatement -
        Returns: