Cosmetics

This commit is contained in:
Michael Klishin 2014-03-02 14:35:43 +04:00
parent 84e76c1e30
commit b4472e7167

View file

@ -45,10 +45,12 @@
(for [[opt option-mask] cursor-options] (for [[opt option-mask] cursor-options]
[opt (< 0 (bit-and (.getOptions db-cur) option-mask))]))) [opt (< 0 (bit-and (.getOptions db-cur) option-mask))])))
(defn add-option! [^DBCursor db-cur, ^String opt] (defn add-option!
[^DBCursor db-cur ^String opt]
(.addOption db-cur (get cursor-options (keyword opt) 0))) (.addOption db-cur (get cursor-options (keyword opt) 0)))
(defn remove-option! [^DBCursor db-cur, ^String opt] (defn remove-option!
[^DBCursor db-cur ^String opt]
(.setOptions db-cur (bit-and-not (.getOptions db-cur) (.setOptions db-cur (bit-and-not (.getOptions db-cur)
(get cursor-options (keyword opt) 0)))) (get cursor-options (keyword opt) 0))))