/api/org/positronicnet/content/ContentRepository.html
HTML | 408 lines | 363 code | 45 blank | 0 comment | 0 complexity | b4391ae831bf324f8193f77d9e017fe8 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.ContentRepository</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">
- <img src="../../../lib/trait_big.png" />
- <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>ContentRepository</h1>
- </div>
- <h4 class="signature" id="signature">
- <span class="kind">trait</span>
- <span class="symbol">
- <span class="name">ContentRepository</span>
- <span class="tparams">[<span name="SourceType">SourceType</span>, <span name="IdType">IdType</span>]</span>
- <span class="result"> extends AnyRef</span>
- </span>
- </h4>
-
- <div class="fullcommenttop" id="comment"><div class="comment cmt"><p>Generic interface to "content repositories", including databases
- and ContentResolvers. Each repository can host multiple "sources"
- (tables in a database, ContentProviders for the content resolver,
- etc.). Ordinarily these methods aren't invoked directly, but instead
- by means of a <a name="org.positronicnet.content.ContentQuery" class="extype" href="ContentQuery.html">ContentQuery</a> object, which
- provides a shorthand fluid interface to adding conditions, etc.</p><p>This trait, and the associated <a name="org.positronicnet.content.ContentQuery" class="extype" href="ContentQuery.html">ContentQuery</a>
- class, are intended as a shorthand, along the lines of the Positronic Net
- <a name="org.positronicnet.ui" class="extype" href="../ui/package.html">ui</a> shorthand, which allows easier use of the APIs,
- with less boilerplate code, but without changing any of the underlying
- semantics much.</p><p>The type parameters are the type of the handle to the underlying Android
- objects (e.g., a <code>SQLiteDatabase</code>) and the type of the row IDs returned
- by <code>insert</code>. (Note that most of the
- <a name="org.positronicnet.content.ContentRepository" class="extype" href="">ContentRepository</a> calls allow the
- specification of a String <code>where</code> argument which can name a source with
- more specificity, e.g., a table within a database.)</p><p>For use with the ORM, the latter must be <code>Long</code>; thus, for
- instance, the ORM can handle a
- <a name="org.positronicnet.content.LongIdContentResolverRepository" class="extype" href="LongIdContentResolverRepository.html">LongIdContentResolverRepository</a> (which
- assumes that the URIs returned by the underlying ContentResolver encode
- an ID according to the usual assumptions), but not a
- <a name="org.positronicnet.content.UriIdContentResolverRepository" class="extype" href="UriIdContentResolverRepository.html">UriIdContentResolverRepository</a> (which
- assumes nothing). See
- org.positronicnet.content.PositronicContentResolver for more.
- </p></div><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.LongIdContentResolverRepository" class="extype" href="LongIdContentResolverRepository.html">LongIdContentResolverRepository</a>, <a name="org.positronicnet.content.UriIdContentResolverRepository" class="extype" href="UriIdContentResolverRepository.html">UriIdContentResolverRepository</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.ContentRepository" class="in"><span>ContentRepository</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="values members" id="values">
- <h3>Abstract Value Members</h3>
- <ol><li visbl="pub" name="org.positronicnet.content.ContentRepository#delete" data-isabs="true">
- <a id="delete(SourceType,String,Array[String]):Int"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">delete</span>
-
- <span class="params">(<span name="whence">whence: SourceType</span>, <span name="where">where: String</span>, <span name="whereArgs">whereArgs: <span name="scala.Array" class="extype">Array</span>[String]</span>)</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>abstract </dd></dl></div>
- </li><li visbl="pub" name="org.positronicnet.content.ContentRepository#getLogTag" data-isabs="true">
- <a id="getLogTag:String"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">getLogTag</span>
-
- <span class="result">: String</span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>abstract </dd></dl></div>
- </li><li visbl="pub" name="org.positronicnet.content.ContentRepository#insert" data-isabs="true">
- <a id="insert(SourceType,ContentValues):IdType"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">insert</span>
-
- <span class="params">(<span name="where">where: SourceType</span>, <span name="vals">vals: <span name="android.content.ContentValues" class="extype">ContentValues</span></span>)</span><span class="result">: IdType</span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>abstract </dd></dl></div>
- </li><li visbl="pub" name="org.positronicnet.content.ContentRepository#query" data-isabs="true">
- <a id="query(SourceType,Array[String],String,Array[String],String,String,String,String):Cursor"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">query</span>
-
- <span class="params">(<span name="whence">whence: SourceType</span>, <span name="cols">cols: <span name="scala.Array" class="extype">Array</span>[String]</span>, <span name="where">where: String</span>, <span name="whereArgs">whereArgs: <span name="scala.Array" class="extype">Array</span>[String]</span>, <span name="groupBy">groupBy: String</span>, <span name="having">having: String</span>, <span name="order">order: String</span>, <span name="limit">limit: String</span>)</span><span class="result">: <span name="android.database.Cursor" class="extype">Cursor</span></span>
- </span>
- </h4>
- <div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>abstract </dd></dl></div>
- </li><li visbl="pub" name="org.positronicnet.content.ContentRepository#update" data-isabs="true">
- <a id="update(SourceType,ContentValues,String,Array[String]):Int"></a>
- <h4 class="signature">
- <span class="kind">def</span>
- <span class="symbol">
- <span class="name">update</span>
-
- <span class="params">(<span name="whence">whence: SourceType</span>, <span name="vals">vals: <span name="android.content.ContentValues" class="extype">ContentValues</span></span>, <span name="where">where: String</span>, <span name="whereArgs">whereArgs: <span name="scala.Array" class="extype">Array</span>[String]</span>)</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>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>