java - Serializing and deserializing prepared queries in ORMLite -


is there way serialize ormlite prepared query , deserialize restore original form?

in android passing parameters activities or fragments must done in serialized form. seems impossible pass prepared queries arguments in bundle.

serializing them not problem because there preparedstmt<t>.getstatement() have not found way reverse process.

there solution of putting query in map string key, passing key argument , retrieving query using key, searching simpler solution.

is there way serialize ormlite prepared query , deserialize restore original form?

right answer no , don't think there way code changed support it. prepared query contains points dao, internal connection source classes, etc. can perform duties. there no easy way serialize information @ time.

serializing them not problem because there preparedstmt.getstatement() have not found way reverse process.

by reverse process mean generate preparedstmt query string? should able do:

 genericrawresults<t> results = dao.queryraw(querystring, dao.getrawrowmapper()); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -