use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CoreData_NSBatchUpdateRequest")]
pub struct NSBatchUpdateRequest;
#[cfg(feature = "CoreData_NSBatchUpdateRequest")]
unsafe impl ClassType for NSBatchUpdateRequest {
#[inherits(NSObject)]
type Super = NSPersistentStoreRequest;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CoreData_NSBatchUpdateRequest")]
unsafe impl NSCopying for NSBatchUpdateRequest {}
#[cfg(feature = "CoreData_NSBatchUpdateRequest")]
unsafe impl NSObjectProtocol for NSBatchUpdateRequest {}
extern_methods!(
#[cfg(feature = "CoreData_NSBatchUpdateRequest")]
unsafe impl NSBatchUpdateRequest {
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other batchUpdateRequestWithEntityName:)]
pub unsafe fn batchUpdateRequestWithEntityName(entity_name: &NSString) -> Id<Self>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Init initWithEntityName:)]
pub unsafe fn initWithEntityName(this: Allocated<Self>, entity_name: &NSString)
-> Id<Self>;
#[cfg(feature = "CoreData_NSEntityDescription")]
#[method_id(@__retain_semantics Init initWithEntity:)]
pub unsafe fn initWithEntity(
this: Allocated<Self>,
entity: &NSEntityDescription,
) -> Id<Self>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other entityName)]
pub unsafe fn entityName(&self) -> Id<NSString>;
#[cfg(feature = "CoreData_NSEntityDescription")]
#[method_id(@__retain_semantics Other entity)]
pub unsafe fn entity(&self) -> Id<NSEntityDescription>;
#[cfg(feature = "Foundation_NSPredicate")]
#[method_id(@__retain_semantics Other predicate)]
pub unsafe fn predicate(&self) -> Option<Id<NSPredicate>>;
#[cfg(feature = "Foundation_NSPredicate")]
#[method(setPredicate:)]
pub unsafe fn setPredicate(&self, predicate: Option<&NSPredicate>);
#[method(includesSubentities)]
pub unsafe fn includesSubentities(&self) -> bool;
#[method(setIncludesSubentities:)]
pub unsafe fn setIncludesSubentities(&self, includes_subentities: bool);
#[method(resultType)]
pub unsafe fn resultType(&self) -> NSBatchUpdateRequestResultType;
#[method(setResultType:)]
pub unsafe fn setResultType(&self, result_type: NSBatchUpdateRequestResultType);
#[cfg(feature = "Foundation_NSDictionary")]
#[method_id(@__retain_semantics Other propertiesToUpdate)]
pub unsafe fn propertiesToUpdate(&self) -> Option<Id<NSDictionary>>;
#[cfg(feature = "Foundation_NSDictionary")]
#[method(setPropertiesToUpdate:)]
pub unsafe fn setPropertiesToUpdate(&self, properties_to_update: Option<&NSDictionary>);
}
);
extern_methods!(
#[cfg(feature = "CoreData_NSBatchUpdateRequest")]
unsafe impl NSBatchUpdateRequest {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);