icrate/generated/CoreData/
NSBatchUpdateRequest.rs1use crate::common::*;
4use crate::CoreData::*;
5use crate::Foundation::*;
6
7extern_class!(
8 #[derive(Debug, PartialEq, Eq, Hash)]
9 #[cfg(feature = "CoreData_NSBatchUpdateRequest")]
10 pub struct NSBatchUpdateRequest;
11
12 #[cfg(feature = "CoreData_NSBatchUpdateRequest")]
13 unsafe impl ClassType for NSBatchUpdateRequest {
14 #[inherits(NSObject)]
15 type Super = NSPersistentStoreRequest;
16 type Mutability = InteriorMutable;
17 }
18);
19
20#[cfg(feature = "CoreData_NSBatchUpdateRequest")]
21unsafe impl NSCopying for NSBatchUpdateRequest {}
22
23#[cfg(feature = "CoreData_NSBatchUpdateRequest")]
24unsafe impl NSObjectProtocol for NSBatchUpdateRequest {}
25
26extern_methods!(
27 #[cfg(feature = "CoreData_NSBatchUpdateRequest")]
28 unsafe impl NSBatchUpdateRequest {
29 #[cfg(feature = "Foundation_NSString")]
30 #[method_id(@__retain_semantics Other batchUpdateRequestWithEntityName:)]
31 pub unsafe fn batchUpdateRequestWithEntityName(entity_name: &NSString) -> Id<Self>;
32
33 #[cfg(feature = "Foundation_NSString")]
34 #[method_id(@__retain_semantics Init initWithEntityName:)]
35 pub unsafe fn initWithEntityName(this: Allocated<Self>, entity_name: &NSString)
36 -> Id<Self>;
37
38 #[cfg(feature = "CoreData_NSEntityDescription")]
39 #[method_id(@__retain_semantics Init initWithEntity:)]
40 pub unsafe fn initWithEntity(
41 this: Allocated<Self>,
42 entity: &NSEntityDescription,
43 ) -> Id<Self>;
44
45 #[cfg(feature = "Foundation_NSString")]
46 #[method_id(@__retain_semantics Other entityName)]
47 pub unsafe fn entityName(&self) -> Id<NSString>;
48
49 #[cfg(feature = "CoreData_NSEntityDescription")]
50 #[method_id(@__retain_semantics Other entity)]
51 pub unsafe fn entity(&self) -> Id<NSEntityDescription>;
52
53 #[cfg(feature = "Foundation_NSPredicate")]
54 #[method_id(@__retain_semantics Other predicate)]
55 pub unsafe fn predicate(&self) -> Option<Id<NSPredicate>>;
56
57 #[cfg(feature = "Foundation_NSPredicate")]
58 #[method(setPredicate:)]
59 pub unsafe fn setPredicate(&self, predicate: Option<&NSPredicate>);
60
61 #[method(includesSubentities)]
62 pub unsafe fn includesSubentities(&self) -> bool;
63
64 #[method(setIncludesSubentities:)]
65 pub unsafe fn setIncludesSubentities(&self, includes_subentities: bool);
66
67 #[method(resultType)]
68 pub unsafe fn resultType(&self) -> NSBatchUpdateRequestResultType;
69
70 #[method(setResultType:)]
71 pub unsafe fn setResultType(&self, result_type: NSBatchUpdateRequestResultType);
72
73 #[cfg(feature = "Foundation_NSDictionary")]
74 #[method_id(@__retain_semantics Other propertiesToUpdate)]
75 pub unsafe fn propertiesToUpdate(&self) -> Option<Id<NSDictionary>>;
76
77 #[cfg(feature = "Foundation_NSDictionary")]
78 #[method(setPropertiesToUpdate:)]
79 pub unsafe fn setPropertiesToUpdate(&self, properties_to_update: Option<&NSDictionary>);
80 }
81);
82
83extern_methods!(
84 #[cfg(feature = "CoreData_NSBatchUpdateRequest")]
86 unsafe impl NSBatchUpdateRequest {
87 #[method_id(@__retain_semantics Init init)]
88 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
89
90 #[method_id(@__retain_semantics New new)]
91 pub unsafe fn new() -> Id<Self>;
92 }
93);