ArcGIS Runtime SDK for iOS: AGSGeodatabase.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSGeodatabase.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18 
19 #import <ArcGIS/AGSLoadableBase.h>
20 #import <ArcGIS/AGSGeodatabaseTaskTypes.h>
21 
23 @class AGSEnvelope;
24 @class AGSGeometry;
25  //Required for Globals API doc
27 
37 
38 
39 #pragma mark -
40 #pragma mark initializers
41 
42 
43 
49 -(instancetype)initWithFileURL:(NSURL *)fileURL;
50 
57 -(instancetype)initWithName:(NSString *)name;
58 
64 +(instancetype)geodatabaseWithFileURL:(NSURL *)fileURL;
65 
72 +(instancetype)geodatabaseWithName:(NSString *)name;
73 
74 #pragma mark -
75 #pragma mark properties
76 
82 @property (nonatomic, copy, readonly) NSArray<AGSGeodatabaseFeatureTable *> *geodatabaseAnnotationTables;
83 
88 @property (nonatomic, copy, readonly) NSArray<AGSGeodatabaseFeatureTable*> *geodatabaseFeatureTables;
89 
93 @property (nonatomic, assign, readonly) BOOL inTransaction;
94 
98 @property (nonatomic, strong, readonly) NSURL *fileURL;
99 
114 @property (nullable, nonatomic, strong, readonly) AGSGeometry *generateGeodatabaseGeometry;
115 
119 @property (nullable, nonatomic, strong, readonly) NSURL *serviceURL;
120 
124 @property (nonatomic, assign, readonly) AGSSyncModel syncModel;
125 
130 @property (nonatomic, assign, readonly, getter=isSyncEnabled) BOOL syncEnabled;
131 
136 @property (nullable, nonatomic, strong, readonly) NSUUID *syncID;
137 
153 @property (nonatomic, assign, readonly) NSInteger minServerGeneration;
154 
155 #pragma mark -
156 #pragma mark methods
157 
163 -(nullable AGSGeodatabaseFeatureTable *)geodatabaseAnnotationTableWithServiceLayerID:(NSInteger)serviceLayerID;
164 
170 -(nullable AGSGeodatabaseFeatureTable *)geodatabaseAnnotationTableWithTableName:(NSString *)tableName;
171 
178 -(nullable AGSGeodatabaseFeatureTable *)geodatabaseFeatureTableWithName:(NSString *)tableName;
179 
186 -(nullable AGSGeodatabaseFeatureTable *)geodatabaseFeatureTableByServiceLayerID:(NSInteger)serviceLayerID;
187 
193 -(BOOL)hasLocalEdits;
194 
199 -(void)close;
200 
205 -(BOOL)beginTransaction:(NSError **)error;
206 
210 -(BOOL)commitTransaction:(NSError **)error;
211 
215 -(BOOL)rollbackTransaction:(NSError **)error;
216 
217 
218 @end
219 
221 
226 @property (nullable, nonatomic, strong, readonly) AGSEnvelope *generateGeodatabaseExtent ;
227 
228 @end
AGSGeometry * generateGeodatabaseGeometry
Definition: AGSGeodatabase.h:114
A base class for loadables.
Definition: AGSLoadableBase.h:37
Defines common members for all specific types of geometry.
Definition: AGSGeometry.h:106
NSURL * serviceURL
Definition: AGSGeodatabase.h:119
AGSSyncModel
Definition: AGSGeodatabaseTaskTypes.h:51
AGSSyncModel syncModel
Definition: AGSGeodatabase.h:124
NSArray< AGSGeodatabaseFeatureTable * > * geodatabaseAnnotationTables
Definition: AGSGeodatabase.h:82
A Geodatabase dataset containing geographic features or non-spatial records.
Definition: AGSGeodatabaseFeatureTable.h:32
BOOL inTransaction
Definition: AGSGeodatabase.h:93
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:47
BOOL syncEnabled
Definition: AGSGeodatabase.h:130
NSUUID * syncID
Definition: AGSGeodatabase.h:136
NSURL * fileURL
Definition: AGSGeodatabase.h:98
Definition: AGSGeodatabase.h:220
A geodatabase on disk.
Definition: AGSGeodatabase.h:36
NSArray< AGSGeodatabaseFeatureTable * > * geodatabaseFeatureTables
Definition: AGSGeodatabase.h:88
NSInteger minServerGeneration
Definition: AGSGeodatabase.h:153