ArcGIS Runtime SDK for iOS: AGSGeodatabase.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSGeodatabase.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSLoadableBase.h>
27 #import <ArcGIS/AGSGeodatabaseTaskTypes.h>
28 
30 @class AGSEnvelope;
31 @class AGSGeometry;
32 @class AGSUtilityNetwork;
33  //Required for Globals API doc
35 
45 
46 
47 #pragma mark -
48 #pragma mark initializers
49 
50 
51 
56 -(instancetype)initWithFileURL:(NSURL *)fileURL;
57 
63 -(instancetype)initWithName:(NSString *)name;
64 
70 +(instancetype)geodatabaseWithFileURL:(NSURL *)fileURL;
71 
78 +(instancetype)geodatabaseWithName:(NSString *)name;
79 
80 #pragma mark -
81 #pragma mark properties
82 
88 @property (nonatomic, copy, readonly) NSArray<AGSGeodatabaseFeatureTable *> *geodatabaseAnnotationTables;
89 
94 @property (nonatomic, copy, readonly) NSArray<AGSGeodatabaseFeatureTable*> *geodatabaseFeatureTables;
95 
99 @property (nonatomic, assign, readonly) BOOL inTransaction;
100 
104 @property (nonatomic, strong, readonly) NSURL *fileURL;
105 
120 @property (nullable, nonatomic, strong, readonly) AGSGeometry *generateGeodatabaseGeometry;
121 
125 @property (nullable, nonatomic, strong, readonly) NSURL *serviceURL;
126 
130 @property (nonatomic, assign, readonly) AGSSyncModel syncModel;
131 
135 @property (nonatomic, assign, readonly, getter=isSyncEnabled) BOOL syncEnabled;
136 
141 @property (nullable, nonatomic, strong, readonly) NSUUID *syncID;
142 
158 @property (nonatomic, assign, readonly) NSInteger minServerGeneration;
159 
165 @property (nonatomic, copy, readonly) NSArray<AGSUtilityNetwork *> *utilityNetworks;
166 
167 #pragma mark -
168 #pragma mark methods
169 
175 -(nullable AGSGeodatabaseFeatureTable *)geodatabaseAnnotationTableWithServiceLayerID:(NSInteger)serviceLayerID;
176 
182 -(nullable AGSGeodatabaseFeatureTable *)geodatabaseAnnotationTableWithTableName:(NSString *)tableName;
183 
190 -(nullable AGSGeodatabaseFeatureTable *)geodatabaseFeatureTableWithName:(NSString *)tableName;
191 
198 -(nullable AGSGeodatabaseFeatureTable *)geodatabaseFeatureTableByServiceLayerID:(NSInteger)serviceLayerID;
199 
205 -(BOOL)hasLocalEdits;
206 
211 -(void)close;
212 
217 -(BOOL)beginTransaction:(NSError **)error;
218 
222 -(BOOL)commitTransaction:(NSError **)error;
223 
227 -(BOOL)rollbackTransaction:(NSError **)error;
228 
235 - (nullable AGSUtilityNetwork *)utilityNetworkWithName:(NSString *)name;
236 
237 
238 @end
239 
241 
246 @property (nullable, nonatomic, strong, readonly) AGSEnvelope *generateGeodatabaseExtent ;
247 
248 @end
AGSSyncModel
Definition: AGSGeodatabaseTaskTypes.h:57
Definition: AGSGeodatabase.h:240
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:55
A Geodatabase dataset containing geographic features or non-spatial records.
Definition: AGSGeodatabaseFeatureTable.h:40
A geodatabase on disk.
Definition: AGSGeodatabase.h:45
NSURL * fileURL
Definition: AGSGeodatabase.h:104
BOOL syncEnabled
Definition: AGSGeodatabase.h:135
NSArray< AGSGeodatabaseFeatureTable * > * geodatabaseAnnotationTables
Definition: AGSGeodatabase.h:88
NSArray< AGSGeodatabaseFeatureTable * > * geodatabaseFeatureTables
Definition: AGSGeodatabase.h:94
NSURL * serviceURL
Definition: AGSGeodatabase.h:125
NSUUID * syncID
Definition: AGSGeodatabase.h:141
AGSGeometry * generateGeodatabaseGeometry
Definition: AGSGeodatabase.h:120
AGSSyncModel syncModel
Definition: AGSGeodatabase.h:130
NSArray< AGSUtilityNetwork * > * utilityNetworks
Definition: AGSGeodatabase.h:165
NSInteger minServerGeneration
Definition: AGSGeodatabase.h:158
BOOL inTransaction
Definition: AGSGeodatabase.h:99
Base class for all classes that represent geometric shapes.
Definition: AGSGeometry.h:121
A base class for loadables.
Definition: AGSLoadableBase.h:45
A utility network.
Definition: AGSUtilityNetwork.h:58