/api/org/positronicnet/content/ContentValue.html
HTML | 393 lines | 349 code | 44 blank | 0 comment | 0 complexity | 2ea0bfefc6a5facdf24d7c401ac971b6 MD5 | raw file
- <?xml version='1.0' encoding='UTF-8'?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
- <html>
- <head>
- <title>org.positronicnet.content.ContentValue</title>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-
- <link type="text/css" media="screen" rel="stylesheet" href="../../../lib/template.css" />
- <script type="text/javascript" src="../../../lib/jquery.js"></script>
- <script type="text/javascript" src="../../../lib/jquery-ui.js"></script>
- <script type="text/javascript" src="../../../lib/template.js"></script>
- <script type="text/javascript" src="../../../lib/tools.tooltip.js"></script>
-
- </head>
- <body class="type">
- <div id="definition">
- <a title="Go to companion" href="ContentValue$.html"><img src="../../../lib/class_to_object_big.png" /></a>
- <p id="owner"><a name="org" class="extype" href="../../package.html">org</a>.<a name="org.positronicnet" class="extype" href="../package.html">positronicnet</a>.<a name="org.positronicnet.content" class="extype" href="package.html">content</a></p>
- <h1><a title="Go to companion" href="ContentValue$.html">ContentValue</a></h1>
- </div>
- <h4 class="signature" id="signature">
- <span class="kind">class</span>
- <span class="symbol">
- <span class="name">ContentValue</span>
-
- <span class="result"> extends AnyRef</span>
- </span>
- </h4>
-
- <div class="fullcommenttop" id="comment"><div class="comment cmt"><p>Abstract wrapper for any value that can be stored in a field
- of a data source in a <a name="org.positronicnet.content.ContentRepository" class="extype" href="ContentRepository.html">ContentRepository</a> ---
- currently, a SQLite database or Android ContentProvider.</p><p>NB that there are implicit conversions in the ContentValue
- companion object that coerce various primitive types to a
- <a name="org.positronicnet.content.ContentValue" class="extype" href="">ContentValue</a>, to facilitate
- their use with the org.postronicnet.content.ContentQuery
- API, etc. In addition to handling the usual primitives, this
- also allows use of Booleans, adhering to the recommended
- SQLite convention of converting them to an integer 0 (false)
- or 1 (true).</p><p>A further implementation note:</p><p>Android's Database API has two forms of binding: in a lot
- of places, you can stuff things into a contentValues, which
- holds typed objects --- but for bound variables in where
- clauses (the various selectionArgs arguments), you can supply
- only strings. Fortunately, it matters less than one might
- think, since the SQLite engine does conversions if you ask
- it to compare a number to a string. But it does mean that
- if you're implementing conversions of your own --- as we
- do with Booleans here, to implement the standard SQLite
- convention of representing them as 0 or 1 --- you have to
- specify the conversions both ways to keep it consistent.
- </p></div><dl class="attributes block"> <dt>Attributes</dt><dd>abstract </dd></dl><div class="toggleContainer block">
- <span class="toggle">Linear Supertypes</span>
- <div class="superTypes hiddenContent">AnyRef, <span name="scala.Any" class="extype">Any</span></div>
- </div><div class="toggleContainer block">
- <span class="toggle">Known Subclasses</span>
- <div class="subClasses hiddenContent"><a name="org.positronicnet.content.CvBoolean" class="extype" href="CvBoolean.html">CvBoolean</a>, <a name="org.positronicnet.content.CvDouble" class="extype" href="CvDouble.html">CvDouble</a>, <a name="org.positronicnet.content.CvFloat" class="extype" href="CvFloat.html">CvFloat</a>, <a name="org.positronicnet.content.CvInt" class="extype" href="CvInt.html">CvInt</a>, <a name="org.positronicnet.content.CvLong" class="extype" href="CvLong.html">CvLong</a>, <a name="org.positronicnet.content.CvString" class="extype" href="CvString.html">CvString</a></div>
- </div></div>
-
- <div id="template">
- <div id="mbrsel">
- <div id="textfilter"><span class="pre"></span><span class="input"><input accesskey="/" type="text" /></span><span class="post"></span></div>
- <div id="order">
- <span class="filtertype">Ordering</span>
- <ol><li class="alpha in"><span>Alphabetic</span></li><li class="inherit out"><span>By inheritance</span></li></ol>
- </div>
- <div id="ancestors">
- <span class="filtertype">Inherited</span>
- <ol><li class="hideall out"><span>Hide All</span></li>
- <li class="showall in"><span>Show all</span></li></ol>
- <ol id="linearization"><li name="org.positronicnet.content.ContentValue" class="in"><span>ContentValue</span></li><li name="scala.AnyRef" class="in"><span>AnyRef</span></li><li name="scala.Any" class="in"><span>Any</span></li></ol>
- </div>
- <div id="visbl">
- <span class="filtertype">Visibility</span>
- <ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
- </div>
- </div>
- <div class="members" id="constructors">
- <h3>Instance Constructors</h3>
- <ol><li visbl="pub" name="org.positronicnet.content.ContentValue#this" data-isabs="false">
- <a id="this:ContentValue"></a>
- <h4 class="signature">
- <span class="kind">new</span>
- <span class="symbol">
- <span class="name">ContentValue</span>
-
- <span class="params">()</span>
- </span>
- </h4>
-
- </li></ol>
- </div>
-
-
- <div class="values members" id="values">
- <h3>Abstract Value Members</h3>
- <ol><li visbl="pub" name="org.positronicnet.content.ContentValue#asConditionString" data-isabs="true">
- <a id="asConditionString:String"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">asConditionString</span>
-
- <span class="result">: String</span>
- </span>
- </h4>
- <p class="shortcomment cmt">Represent this ContentValue as a string, for use in the
- <code>whereArgs</code> of various Android API calls.</p><div class="fullcomment"><div class="comment cmt"><p>Represent this ContentValue as a string, for use in the
- <code>whereArgs</code> of various Android API calls.
- </p></div><dl class="attributes block"> <dt>Attributes</dt><dd>abstract </dd></dl></div>
- </li><li visbl="pub" name="org.positronicnet.content.ContentValue#putContentValues" data-isabs="true">
- <a id="putContentValues(ContentValues,String):Unit"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">putContentValues</span>
-
- <span class="params">(<span name="cv">cv: <span name="android.content.ContentValues" class="extype">ContentValues</span></span>, <span name="key">key: String</span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
- </span>
- </h4>
- <p class="shortcomment cmt">Put this contentValue into an Android ContentValues object,
- as the value of the given key.</p><div class="fullcomment"><div class="comment cmt"><p>Put this contentValue into an Android ContentValues object,
- as the value of the given key.
- </p></div><dl class="attributes block"> <dt>Attributes</dt><dd>abstract </dd></dl></div>
- </li></ol>
- </div>
- <div class="values members" id="values">
- <h3>Concrete Value Members</h3>
- <ol><li visbl="pub" name="scala.AnyRef#!=" data-isabs="false">
- <a id="!=(AnyRef):Boolean"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">!=</span>
-
- <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
- </li><li visbl="pub" name="scala.Any#!=" data-isabs="false">
- <a id="!=(Any):Boolean"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">!=</span>
-
- <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef###" data-isabs="false">
- <a id="##():Int"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">##</span>
-
- <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#==" data-isabs="false">
- <a id="==(AnyRef):Boolean"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">==</span>
-
- <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
- </li><li visbl="pub" name="scala.Any#==" data-isabs="false">
- <a id="==(Any):Boolean"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">==</span>
-
- <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
- </li><li visbl="pub" name="scala.Any#asInstanceOf" data-isabs="false">
- <a id="asInstanceOf[T0]:T0"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">asInstanceOf</span>
- <span class="tparams">[<span name="T0">T0</span>]</span>
- <span class="result">: T0</span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
- </li><li visbl="prt" name="scala.AnyRef#clone" data-isabs="false">
- <a id="clone():AnyRef"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">clone</span>
-
- <span class="params">()</span><span class="result">: AnyRef</span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
- <span class="name">@throws</span><span class="args">()</span>
-
- </dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#eq" data-isabs="false">
- <a id="eq(AnyRef):Boolean"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">eq</span>
-
- <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#equals" data-isabs="false">
- <a id="equals(Any):Boolean"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">equals</span>
-
- <span class="params">(<span name="arg0">arg0: <span name="scala.Any" class="extype">Any</span></span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
- </li><li visbl="prt" name="scala.AnyRef#finalize" data-isabs="false">
- <a id="finalize():Unit"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">finalize</span>
-
- <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a name="java.lang" class="extype" href="../../../java/lang/package.html">lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
- <span class="name">@throws</span><span class="args">()</span>
-
- </dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#getClass" data-isabs="false">
- <a id="getClass():java.lang.Class[_]"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">getClass</span>
-
- <span class="params">()</span><span class="result">: java.lang.Class[_]</span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#hashCode" data-isabs="false">
- <a id="hashCode():Int"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">hashCode</span>
-
- <span class="params">()</span><span class="result">: <span name="scala.Int" class="extype">Int</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
- </li><li visbl="pub" name="scala.Any#isInstanceOf" data-isabs="false">
- <a id="isInstanceOf[T0]:Boolean"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">isInstanceOf</span>
- <span class="tparams">[<span name="T0">T0</span>]</span>
- <span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>Any</dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#ne" data-isabs="false">
- <a id="ne(AnyRef):Boolean"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">ne</span>
-
- <span class="params">(<span name="arg0">arg0: AnyRef</span>)</span><span class="result">: <span name="scala.Boolean" class="extype">Boolean</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#notify" data-isabs="false">
- <a id="notify():Unit"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">notify</span>
-
- <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#notifyAll" data-isabs="false">
- <a id="notifyAll():Unit"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">notifyAll</span>
-
- <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#synchronized" data-isabs="false">
- <a id="synchronized[T0](⇒ T0):T0"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">synchronized</span>
- <span class="tparams">[<span name="T0">T0</span>]</span>
- <span class="params">(<span name="arg0">arg0: ⇒ T0</span>)</span><span class="result">: T0</span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#toString" data-isabs="false">
- <a id="toString():String"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">toString</span>
-
- <span class="params">()</span><span class="result">: <span name="java.lang.String" class="extype">String</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
- <a id="wait():Unit"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">wait</span>
-
- <span class="params">()</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
- <span class="name">@throws</span><span class="args">()</span>
-
- </dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
- <a id="wait(Long,Int):Unit"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">wait</span>
-
- <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>, <span name="arg1">arg1: <span name="scala.Int" class="extype">Int</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
- <span class="name">@throws</span><span class="args">()</span>
-
- </dd></dl></div>
- </li><li visbl="pub" name="scala.AnyRef#wait" data-isabs="false">
- <a id="wait(Long):Unit"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">wait</span>
-
- <span class="params">(<span name="arg0">arg0: <span name="scala.Long" class="extype">Long</span></span>)</span><span class="result">: <span name="scala.Unit" class="extype">Unit</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>final </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
- <span class="name">@throws</span><span class="args">()</span>
-
- </dd></dl></div>
- </li></ol>
- </div>
- <div name="scala.AnyRef" class="parent">
- <h3>Inherited from AnyRef</h3>
- </div><div name="scala.Any" class="parent">
- <h3>Inherited from <span name="scala.Any" class="extype">Any</span></h3>
- </div>
- </div>
-
- <div id="tooltip"></div>
-
- </body>
- </html>