Saving Data on Android



Download 19,28 Mb.
Pdf ko'rish
bet132/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   128   129   130   131   132   133   134   135   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

records objects
, as 
rows
 with one or more 
fields
 defined as 
columns
.
• The 
@Entity
 annotation declares that the annotated class is a Room entity, and 
you will need to generate a table.
• The 
@PrimaryKey
 annotation allows you to define a primary key for your table to 
uniquely differentiate data
.
Saving Data on Android
Chapter 6: Entity Definitions
raywenderlich.com
117


• The 
@ColumnInfo
 annotation lets you change the names for your columns, so you 
can use 
different naming conventions
 in Kotlin and in SQL.
• The 
@Ignore
 annotation tells Room to ignore a certain property from your class so 
it does not get converted into a column in the database.
• The 
@Embedded
 annotation can be used on an entity's field to tell Room that the 
properties on the annotated object should be represented as columns on the same 
entity. This way you can 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   128   129   130   131   132   133   134   135   ...   292




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish