-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathSimpleAddressItem.java
More file actions
72 lines (55 loc) · 1.53 KB
/
SimpleAddressItem.java
File metadata and controls
72 lines (55 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package com.raizlabs.android.databasecomparison.dbflow;
import com.raizlabs.android.databasecomparison.MainActivity;
import com.raizlabs.android.databasecomparison.interfaces.IAddressItem;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;
/**
* Description:
*/
@Table(database = DBFlowDatabase.class,
cachingEnabled = true,
cacheSize = MainActivity.LOOP_COUNT,
orderedCursorLookUp = true)
public class SimpleAddressItem extends BaseModel implements IAddressItem<AddressBook> {
@PrimaryKey(autoincrement = true)
long id;
@Column(name = "name")
String name;
@Column(name = "address")
String address;
@Column(name = "city")
String city;
@Column(name = "state")
String state;
@Column(name = "phone")
long phone;
@Override
public void setName(String name) {
this.name = name;
}
@Override
public void setAddress(String address) {
this.address = address;
}
@Override
public void setCity(String city) {
this.city = city;
}
@Override
public void setState(String state) {
this.state = state;
}
@Override
public void setPhone(long phone) {
this.phone = phone;
}
@Override
public void setAddressBook(AddressBook addressBook) {
}
@Override
public void saveAll() {
super.insert();
}
}