User Tools

Site Tools


android_learning:headfirst_android_development_notes:chapter_11

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
android_learning:headfirst_android_development_notes:chapter_11 [2016/03/16 23:44] mithatandroid_learning:headfirst_android_development_notes:chapter_11 [2016/04/23 22:23] (current) – [p. 444: Code block] mithat
Line 1: Line 1:
 ====== Chapter 11 ====== ====== Chapter 11 ======
  
-You may hear the term "CRUD" used in relation to databases. And if you haven'tyou have now. CRUD is acronym for **C**reate (or Insert), **R**ead, **U**pdate, and **D**elete---the four main operations that are done on database records. It'also helpful to think in terms of database //schema//---the plan or layout of the database table(s).+===== Foreword ===== 
 +If you are not familiar with the term CRUD as applied to databases, it is an acronym for **C**reate (or Insert), **R**ead, **U**pdate, and **D**elete---the four main operations that are done on database records. It'often helpful to approach learning database stuff with these four primary operations in mind.
  
-The book consistently uses "a" as the indefinite article ahead of "SQLite"---most probably because they assume a pronunciation of "sequel lite." The primary author of "SQLite[[https://youtu.be/jN_YdMdjVpU?t=1m7s|sees things differently]], so the indefinite article should be "an".+It's also helpful to think in terms of database //schema//---the plan or layout of the database table(s). 
 + 
 +The book consistently uses "a" as the indefinite article ahead of "SQLite"---most probably because they assume a pronunciation of "sequel lite." The primary author of SQLite [[https://youtu.be/jN_YdMdjVpU?t=1m7s|sees things differently]], so the indefinite article should be "an".
  
 ===== p. 444: Code block ===== ===== p. 444: Code block =====
Line 29: Line 32:
 } }
 </file> </file>
-Note that the constructor in the above class definition creates compiler rage. It gets fixed on the following page.+The constructor in the above class definition will create compiler rage---which is fixed on the following page. But if you're impatient, the solution is to invoke to parent class' ctor:<code java> 
 +    StarbuzzDatabaseHelper(Context context) { 
 +        super(context, DB_NAME, null, DB_VERSION); 
 +    }</code> 
  
 ===== p. 447: Schema definition ===== ===== p. 447: Schema definition =====
Line 84: Line 91:
 </code> </code>
  
-<WRAP center round info 90%> +<WRAP center round important 90%> 
-Calling delete with null ''whereClause''and ''whereArgs'' arguments will delete all the records in the database.+Calling ''delete()'' with null ''whereClause'' and ''whereArgs'' arguments will delete all the records in the database.
 </WRAP> </WRAP>
- 
  
 ===== What about Read? ===== ===== What about Read? =====
android_learning/headfirst_android_development_notes/chapter_11.1458171844.txt.gz · Last modified: 2016/03/16 23:44 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki