@josuelmm/capacitor-background-geolocation 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/JosuelmmCapacitorBackgroundGeolocation.podspec +34 -0
- package/LICENSE +17 -0
- package/NOTICE.md +32 -0
- package/Package.swift +45 -0
- package/README.md +402 -0
- package/android/build.gradle +79 -0
- package/android/proguard-rules.pro +1 -0
- package/android/src/main/AndroidManifest.xml +83 -0
- package/android/src/main/java/com/evgenii/jsevaluator/HandlerWrapper.java +18 -0
- package/android/src/main/java/com/evgenii/jsevaluator/JavaScriptInterface.java +22 -0
- package/android/src/main/java/com/evgenii/jsevaluator/JsEvaluator.java +133 -0
- package/android/src/main/java/com/evgenii/jsevaluator/JsFunctionCallFormatter.java +37 -0
- package/android/src/main/java/com/evgenii/jsevaluator/WebViewWrapper.java +71 -0
- package/android/src/main/java/com/evgenii/jsevaluator/interfaces/CallJavaResultInterface.java +8 -0
- package/android/src/main/java/com/evgenii/jsevaluator/interfaces/HandlerWrapperInterface.java +5 -0
- package/android/src/main/java/com/evgenii/jsevaluator/interfaces/JsCallback.java +10 -0
- package/android/src/main/java/com/evgenii/jsevaluator/interfaces/JsEvaluatorInterface.java +18 -0
- package/android/src/main/java/com/evgenii/jsevaluator/interfaces/WebViewWrapperInterface.java +14 -0
- package/android/src/main/java/com/josuelmm/capacitor/backgroundgeolocation/BackgroundGeolocationPlugin.java +898 -0
- package/android/src/main/java/com/josuelmm/capacitor/backgroundgeolocation/ConfigMapper.java +303 -0
- package/android/src/main/java/com/josuelmm/capacitor/backgroundgeolocation/HeadlessTaskRegistry.java +34 -0
- package/android/src/main/java/com/josuelmm/capacitor/backgroundgeolocation/JsEvaluatorTaskRunner.java +63 -0
- package/android/src/main/java/com/marianhello/bgloc/BackgroundGeolocationFacade.java +699 -0
- package/android/src/main/java/com/marianhello/bgloc/BootCompletedReceiver.java +103 -0
- package/android/src/main/java/com/marianhello/bgloc/Config.java +1155 -0
- package/android/src/main/java/com/marianhello/bgloc/ConnectivityListener.java +5 -0
- package/android/src/main/java/com/marianhello/bgloc/HttpPostService.java +362 -0
- package/android/src/main/java/com/marianhello/bgloc/LocationManager.java +138 -0
- package/android/src/main/java/com/marianhello/bgloc/PluginDelegate.java +45 -0
- package/android/src/main/java/com/marianhello/bgloc/PluginException.java +38 -0
- package/android/src/main/java/com/marianhello/bgloc/PostLocationTask.java +238 -0
- package/android/src/main/java/com/marianhello/bgloc/ResourceResolver.java +55 -0
- package/android/src/main/java/com/marianhello/bgloc/data/AbstractLocationTemplate.java +69 -0
- package/android/src/main/java/com/marianhello/bgloc/data/ArrayListLocationTemplate.java +88 -0
- package/android/src/main/java/com/marianhello/bgloc/data/BackgroundActivity.java +108 -0
- package/android/src/main/java/com/marianhello/bgloc/data/BackgroundLocation.java +1088 -0
- package/android/src/main/java/com/marianhello/bgloc/data/ConfigJsonMapper.java +211 -0
- package/android/src/main/java/com/marianhello/bgloc/data/ConfigurationDAO.java +13 -0
- package/android/src/main/java/com/marianhello/bgloc/data/DAOFactory.java +17 -0
- package/android/src/main/java/com/marianhello/bgloc/data/HashMapLocationTemplate.java +82 -0
- package/android/src/main/java/com/marianhello/bgloc/data/LocationDAO.java +27 -0
- package/android/src/main/java/com/marianhello/bgloc/data/LocationTemplate.java +12 -0
- package/android/src/main/java/com/marianhello/bgloc/data/LocationTemplateFactory.java +71 -0
- package/android/src/main/java/com/marianhello/bgloc/data/LocationTransform.java +19 -0
- package/android/src/main/java/com/marianhello/bgloc/data/SessionLocationDAO.java +18 -0
- package/android/src/main/java/com/marianhello/bgloc/data/provider/ContentProviderLocationDAO.java +406 -0
- package/android/src/main/java/com/marianhello/bgloc/data/provider/LocationContentProvider.java +321 -0
- package/android/src/main/java/com/marianhello/bgloc/data/sqlite/SQLiteConfigurationContract.java +94 -0
- package/android/src/main/java/com/marianhello/bgloc/data/sqlite/SQLiteConfigurationDAO.java +227 -0
- package/android/src/main/java/com/marianhello/bgloc/data/sqlite/SQLiteLocationContract.java +122 -0
- package/android/src/main/java/com/marianhello/bgloc/data/sqlite/SQLiteLocationDAO.java +550 -0
- package/android/src/main/java/com/marianhello/bgloc/data/sqlite/SQLiteOpenHelper.java +189 -0
- package/android/src/main/java/com/marianhello/bgloc/data/sqlite/SQLiteSessionContract.java +74 -0
- package/android/src/main/java/com/marianhello/bgloc/data/sqlite/SQLiteSessionLocationDAO.java +169 -0
- package/android/src/main/java/com/marianhello/bgloc/driving/DrivingEventsDetector.java +265 -0
- package/android/src/main/java/com/marianhello/bgloc/headless/AbstractTaskRunner.java +15 -0
- package/android/src/main/java/com/marianhello/bgloc/headless/ActivityTask.java +48 -0
- package/android/src/main/java/com/marianhello/bgloc/headless/JsCallback.java +10 -0
- package/android/src/main/java/com/marianhello/bgloc/headless/LocationTask.java +60 -0
- package/android/src/main/java/com/marianhello/bgloc/headless/StationaryTask.java +25 -0
- package/android/src/main/java/com/marianhello/bgloc/headless/Task.java +8 -0
- package/android/src/main/java/com/marianhello/bgloc/headless/TaskRunner.java +5 -0
- package/android/src/main/java/com/marianhello/bgloc/headless/TaskRunnerFactory.java +8 -0
- package/android/src/main/java/com/marianhello/bgloc/http/UrlTemplateResolver.java +115 -0
- package/android/src/main/java/com/marianhello/bgloc/oem/BatteryOemHelper.java +214 -0
- package/android/src/main/java/com/marianhello/bgloc/provider/AbstractLocationProvider.java +218 -0
- package/android/src/main/java/com/marianhello/bgloc/provider/ActivityRecognitionLocationProvider.java +385 -0
- package/android/src/main/java/com/marianhello/bgloc/provider/DistanceFilterLocationProvider.java +685 -0
- package/android/src/main/java/com/marianhello/bgloc/provider/LocationProvider.java +32 -0
- package/android/src/main/java/com/marianhello/bgloc/provider/LocationProviderFactory.java +47 -0
- package/android/src/main/java/com/marianhello/bgloc/provider/ProviderDelegate.java +12 -0
- package/android/src/main/java/com/marianhello/bgloc/provider/RawLocationProvider.java +175 -0
- package/android/src/main/java/com/marianhello/bgloc/sensor/SensorFusionDetector.java +199 -0
- package/android/src/main/java/com/marianhello/bgloc/service/LocationService.java +16 -0
- package/android/src/main/java/com/marianhello/bgloc/service/LocationServiceImpl.java +1531 -0
- package/android/src/main/java/com/marianhello/bgloc/service/LocationServiceInfo.java +6 -0
- package/android/src/main/java/com/marianhello/bgloc/service/LocationServiceInfoImpl.java +41 -0
- package/android/src/main/java/com/marianhello/bgloc/service/LocationServiceIntentBuilder.java +203 -0
- package/android/src/main/java/com/marianhello/bgloc/service/LocationServiceProxy.java +156 -0
- package/android/src/main/java/com/marianhello/bgloc/sync/AccountHelper.java +39 -0
- package/android/src/main/java/com/marianhello/bgloc/sync/Authenticator.java +68 -0
- package/android/src/main/java/com/marianhello/bgloc/sync/AuthenticatorService.java +28 -0
- package/android/src/main/java/com/marianhello/bgloc/sync/BatchManager.java +311 -0
- package/android/src/main/java/com/marianhello/bgloc/sync/NotificationHelper.java +148 -0
- package/android/src/main/java/com/marianhello/bgloc/sync/SyncAdapter.java +301 -0
- package/android/src/main/java/com/marianhello/bgloc/sync/SyncService.java +68 -0
- package/android/src/main/java/com/marianhello/logging/DBLogReader.java +208 -0
- package/android/src/main/java/com/marianhello/logging/LogEntry.java +99 -0
- package/android/src/main/java/com/marianhello/logging/LoggerManager.java +70 -0
- package/android/src/main/java/com/marianhello/logging/UncaughtExceptionLogger.java +36 -0
- package/android/src/main/java/com/marianhello/utils/CloneHelper.java +22 -0
- package/android/src/main/java/com/marianhello/utils/Convert.java +56 -0
- package/android/src/main/java/com/marianhello/utils/TextUtils.java +72 -0
- package/android/src/main/java/com/marianhello/utils/ToneGenerator.java +68 -0
- package/android/src/main/java/org/apache/commons/io/Charsets.java +153 -0
- package/android/src/main/java/org/apache/commons/io/input/ReversedLinesFileReader.java +344 -0
- package/android/src/main/java/org/chromium/content/browser/ThreadUtils.java +134 -0
- package/android/src/main/java/ru/andremoniy/sqlbuilder/SqlExpression.java +398 -0
- package/android/src/main/java/ru/andremoniy/sqlbuilder/SqlSelectStatement.java +671 -0
- package/android/src/main/java/ru/andremoniy/sqlbuilder/SqlStatement.java +29 -0
- package/android/src/main/java/ru/andremoniy/utils/TextUtils.java +61 -0
- package/android/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/android/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/android/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/android/src/main/res/values/strings.xml +15 -0
- package/android/src/main/res/xml/authenticator.xml +7 -0
- package/android/src/main/res/xml/syncadapter.xml +9 -0
- package/dist/esm/definitions.d.ts +1052 -0
- package/dist/esm/definitions.js +142 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.js +23 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +92 -0
- package/dist/esm/web.js +242 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +415 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +418 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/BackgroundGeolocationPlugin/BackgroundGeolocationPlugin-Bridging-Header.h +18 -0
- package/ios/Sources/BackgroundGeolocationPlugin/BackgroundGeolocationPlugin.m +52 -0
- package/ios/Sources/BackgroundGeolocationPlugin/BackgroundGeolocationPlugin.swift +750 -0
- package/ios/Tests/BackgroundGeolocationPluginTests/BackgroundGeolocationPluginTests.swift +12 -0
- package/ios/common/BackgroundGeolocation/CocoaLumberjack.h +1945 -0
- package/ios/common/BackgroundGeolocation/CocoaLumberjack.m +5255 -0
- package/ios/common/BackgroundGeolocation/FMDB.h +2357 -0
- package/ios/common/BackgroundGeolocation/FMDB.m +2672 -0
- package/ios/common/BackgroundGeolocation/FMDBLogger.h +42 -0
- package/ios/common/BackgroundGeolocation/FMDBLogger.m +264 -0
- package/ios/common/BackgroundGeolocation/INTULocationManager/INTUHeadingRequest.h +41 -0
- package/ios/common/BackgroundGeolocation/INTULocationManager/INTUHeadingRequest.m +68 -0
- package/ios/common/BackgroundGeolocation/INTULocationManager/INTULocationManager+Internal.h +33 -0
- package/ios/common/BackgroundGeolocation/INTULocationManager/INTULocationManager.h +178 -0
- package/ios/common/BackgroundGeolocation/INTULocationManager/INTULocationManager.m +1025 -0
- package/ios/common/BackgroundGeolocation/INTULocationManager/INTULocationRequest.h +103 -0
- package/ios/common/BackgroundGeolocation/INTULocationManager/INTULocationRequest.m +238 -0
- package/ios/common/BackgroundGeolocation/INTULocationManager/INTULocationRequestDefines.h +163 -0
- package/ios/common/BackgroundGeolocation/INTULocationManager/INTURequestIDGenerator.h +39 -0
- package/ios/common/BackgroundGeolocation/INTULocationManager/INTURequestIDGenerator.m +37 -0
- package/ios/common/BackgroundGeolocation/MAURAbstractLocationProvider.h +51 -0
- package/ios/common/BackgroundGeolocation/MAURAbstractLocationProvider.m +53 -0
- package/ios/common/BackgroundGeolocation/MAURActivity.h +23 -0
- package/ios/common/BackgroundGeolocation/MAURActivity.m +52 -0
- package/ios/common/BackgroundGeolocation/MAURActivityLocationProvider.h +18 -0
- package/ios/common/BackgroundGeolocation/MAURActivityLocationProvider.m +340 -0
- package/ios/common/BackgroundGeolocation/MAURBackgroundGeolocationFacade.h +88 -0
- package/ios/common/BackgroundGeolocation/MAURBackgroundGeolocationFacade.m +1193 -0
- package/ios/common/BackgroundGeolocation/MAURBackgroundSync.h +46 -0
- package/ios/common/BackgroundGeolocation/MAURBackgroundSync.m +283 -0
- package/ios/common/BackgroundGeolocation/MAURBackgroundTaskManager.h +25 -0
- package/ios/common/BackgroundGeolocation/MAURBackgroundTaskManager.m +105 -0
- package/ios/common/BackgroundGeolocation/MAURConfig.h +99 -0
- package/ios/common/BackgroundGeolocation/MAURConfig.m +636 -0
- package/ios/common/BackgroundGeolocation/MAURConfigurationContract.h +53 -0
- package/ios/common/BackgroundGeolocation/MAURConfigurationContract.m +54 -0
- package/ios/common/BackgroundGeolocation/MAURDistanceFilterLocationProvider.h +20 -0
- package/ios/common/BackgroundGeolocation/MAURDistanceFilterLocationProvider.m +550 -0
- package/ios/common/BackgroundGeolocation/MAURGeolocationOpenHelper.h +17 -0
- package/ios/common/BackgroundGeolocation/MAURGeolocationOpenHelper.m +124 -0
- package/ios/common/BackgroundGeolocation/MAURLocation.h +73 -0
- package/ios/common/BackgroundGeolocation/MAURLocation.m +392 -0
- package/ios/common/BackgroundGeolocation/MAURLocationContract.h +38 -0
- package/ios/common/BackgroundGeolocation/MAURLocationContract.m +39 -0
- package/ios/common/BackgroundGeolocation/MAURLocationManager.h +53 -0
- package/ios/common/BackgroundGeolocation/MAURLocationManager.m +305 -0
- package/ios/common/BackgroundGeolocation/MAURLogReader.h +26 -0
- package/ios/common/BackgroundGeolocation/MAURLogReader.m +122 -0
- package/ios/common/BackgroundGeolocation/MAURLogging.h +19 -0
- package/ios/common/BackgroundGeolocation/MAURPostLocationTask.h +53 -0
- package/ios/common/BackgroundGeolocation/MAURPostLocationTask.m +367 -0
- package/ios/common/BackgroundGeolocation/MAURProviderDelegate.h +52 -0
- package/ios/common/BackgroundGeolocation/MAURRawLocationProvider.h +18 -0
- package/ios/common/BackgroundGeolocation/MAURRawLocationProvider.m +138 -0
- package/ios/common/BackgroundGeolocation/MAURSQLiteConfigurationDAO.h +26 -0
- package/ios/common/BackgroundGeolocation/MAURSQLiteConfigurationDAO.m +335 -0
- package/ios/common/BackgroundGeolocation/MAURSQLiteHelper.h +57 -0
- package/ios/common/BackgroundGeolocation/MAURSQLiteHelper.m +93 -0
- package/ios/common/BackgroundGeolocation/MAURSQLiteLocationDAO.h +52 -0
- package/ios/common/BackgroundGeolocation/MAURSQLiteLocationDAO.m +520 -0
- package/ios/common/BackgroundGeolocation/MAURSQLiteOpenHelper.h +32 -0
- package/ios/common/BackgroundGeolocation/MAURSQLiteOpenHelper.m +276 -0
- package/ios/common/BackgroundGeolocation/MAURSensorFusionDetector.h +41 -0
- package/ios/common/BackgroundGeolocation/MAURSensorFusionDetector.m +137 -0
- package/ios/common/BackgroundGeolocation/MAURSessionLocationContract.h +29 -0
- package/ios/common/BackgroundGeolocation/MAURSessionLocationContract.m +31 -0
- package/ios/common/BackgroundGeolocation/MAURSessionLocationDAO.h +25 -0
- package/ios/common/BackgroundGeolocation/MAURSessionLocationDAO.m +153 -0
- package/ios/common/BackgroundGeolocation/MAURUncaughtExceptionLogger.h +20 -0
- package/ios/common/BackgroundGeolocation/MAURUncaughtExceptionLogger.m +62 -0
- package/ios/common/BackgroundGeolocation/MAURUrlTemplateResolver.h +31 -0
- package/ios/common/BackgroundGeolocation/MAURUrlTemplateResolver.m +107 -0
- package/ios/common/BackgroundGeolocation/Reachability.h +102 -0
- package/ios/common/BackgroundGeolocation/Reachability.m +475 -0
- package/ios/common/BackgroundGeolocation/SQLQueryBuilder/README.md +170 -0
- package/ios/common/BackgroundGeolocation/SQLQueryBuilder/ext/NSString+ZIMString.h +55 -0
- package/ios/common/BackgroundGeolocation/SQLQueryBuilder/ext/NSString+ZIMString.m +47 -0
- package/ios/common/BackgroundGeolocation/SQLQueryBuilder/sql/ZIMSqlDataManipulationCommand.h +27 -0
- package/ios/common/BackgroundGeolocation/SQLQueryBuilder/sql/ZIMSqlExpression.h +250 -0
- package/ios/common/BackgroundGeolocation/SQLQueryBuilder/sql/ZIMSqlExpression.m +259 -0
- package/ios/common/BackgroundGeolocation/SQLQueryBuilder/sql/ZIMSqlSelectStatement.h +360 -0
- package/ios/common/BackgroundGeolocation/SQLQueryBuilder/sql/ZIMSqlSelectStatement.m +427 -0
- package/ios/common/BackgroundGeolocation/SQLQueryBuilder/sql/ZIMSqlStatement.h +37 -0
- package/ios/common/BackgroundGeolocation/module.modulemap +16 -0
- package/package.json +82 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2011-2015 Ziminji
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at:
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
#import "ZIMSqlStatement.h"
|
|
18
|
+
#import "ZIMSqlDataManipulationCommand.h"
|
|
19
|
+
|
|
20
|
+
/*!
|
|
21
|
+
@class ZIMSqlSelectStatement
|
|
22
|
+
@discussion This class represents an SQL select statement.
|
|
23
|
+
@updated 2012-04-10
|
|
24
|
+
@see http://www.sqlite.org/lang_select.html
|
|
25
|
+
*/
|
|
26
|
+
@interface ZIMSqlSelectStatement : NSObject <ZIMSqlStatement, ZIMSqlDataManipulationCommand> {
|
|
27
|
+
|
|
28
|
+
@protected
|
|
29
|
+
BOOL _distinct;
|
|
30
|
+
NSString *_all;
|
|
31
|
+
NSMutableArray *_column;
|
|
32
|
+
NSMutableArray *_table;
|
|
33
|
+
NSMutableArray *_join;
|
|
34
|
+
NSMutableArray *_where;
|
|
35
|
+
NSMutableArray *_groupBy;
|
|
36
|
+
NSMutableArray *_having;
|
|
37
|
+
NSMutableArray *_orderBy;
|
|
38
|
+
NSUInteger _limit;
|
|
39
|
+
NSUInteger _offset;
|
|
40
|
+
NSMutableArray *_combine;
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
/*!
|
|
44
|
+
@method distinct:
|
|
45
|
+
@discussion This method will add the "DISTINCT" keyword to the SQL statement.
|
|
46
|
+
@param distinct This will determine whether the "DISTINCT" keyword should added.
|
|
47
|
+
@updated 2011-03-17
|
|
48
|
+
*/
|
|
49
|
+
- (void) distinct: (BOOL)distinct;
|
|
50
|
+
/*!
|
|
51
|
+
@method all:
|
|
52
|
+
@discussion This method will set the wildcard to be used in the SQL statement.
|
|
53
|
+
@param column The column to be selected.
|
|
54
|
+
@updated 2012-04-10
|
|
55
|
+
*/
|
|
56
|
+
- (void) all: (NSString *)all;
|
|
57
|
+
/*!
|
|
58
|
+
@method column:
|
|
59
|
+
@discussion This method will add a column to the SQL statement.
|
|
60
|
+
@param column The column to be selected.
|
|
61
|
+
@updated 2012-03-24
|
|
62
|
+
*/
|
|
63
|
+
- (void) column: (id)column;
|
|
64
|
+
/*!
|
|
65
|
+
@method column:alias:
|
|
66
|
+
@discussion This method will add a column to the SQL statement.
|
|
67
|
+
@param column The column to be selected.
|
|
68
|
+
@param alias The alias to be used.
|
|
69
|
+
@updated 2012-03-24
|
|
70
|
+
*/
|
|
71
|
+
- (void) column: (id)column alias: (NSString *)alias;
|
|
72
|
+
/*!
|
|
73
|
+
@method columns:
|
|
74
|
+
@discussion This method will add the columns to the SQL statement.
|
|
75
|
+
@param column The columns to be selected.
|
|
76
|
+
@updated 2012-04-10
|
|
77
|
+
*/
|
|
78
|
+
- (void) columns: (NSArray *)columns;
|
|
79
|
+
/*!
|
|
80
|
+
@method from:
|
|
81
|
+
@discussion This method will add a from clause to the SQL statement.
|
|
82
|
+
@param table The table to used in the clause.
|
|
83
|
+
@updated 2012-03-24
|
|
84
|
+
*/
|
|
85
|
+
- (void) from: (id)table;
|
|
86
|
+
/*!
|
|
87
|
+
@method from:alias:
|
|
88
|
+
@discussion This method will add a from clause to the SQL statement.
|
|
89
|
+
@param table The table to used in the clause.
|
|
90
|
+
@param alias The alias to be used.
|
|
91
|
+
@updated 2012-03-24
|
|
92
|
+
*/
|
|
93
|
+
- (void) from: (id)table alias: (NSString *)alias;
|
|
94
|
+
/*!
|
|
95
|
+
@method join:
|
|
96
|
+
@discussion This method will add a join clause to the SQL statement.
|
|
97
|
+
@param table The table to used in the clause.
|
|
98
|
+
@updated 2012-03-24
|
|
99
|
+
*/
|
|
100
|
+
- (void) join: (id)table;
|
|
101
|
+
/*!
|
|
102
|
+
@method join:alias:
|
|
103
|
+
@discussion This method will add a join clause to the SQL statement.
|
|
104
|
+
@param table The table to used in the clause.
|
|
105
|
+
@param alias The alias to be used.
|
|
106
|
+
@updated 2012-03-24
|
|
107
|
+
*/
|
|
108
|
+
- (void) join: (id)table alias: (NSString *)alias;
|
|
109
|
+
/*!
|
|
110
|
+
@method join:type:
|
|
111
|
+
@discussion This method will add a join clause to the SQL statement.
|
|
112
|
+
@param table The table to used in the clause.
|
|
113
|
+
@param type The type of join clause.
|
|
114
|
+
@updated 2012-03-24
|
|
115
|
+
*/
|
|
116
|
+
- (void) join: (id)table type: (NSString *)type;
|
|
117
|
+
/*!
|
|
118
|
+
@method join:alias:type:
|
|
119
|
+
@discussion This method will add a join clause to the SQL statement.
|
|
120
|
+
@param table The table to used in the clause.
|
|
121
|
+
@param alias The alias to be used.
|
|
122
|
+
@param type The type of join clause.
|
|
123
|
+
@updated 2012-03-24
|
|
124
|
+
*/
|
|
125
|
+
- (void) join: (id)table alias: (NSString *)alias type: (NSString *)type;
|
|
126
|
+
/*!
|
|
127
|
+
@method joinOn:operator:column:
|
|
128
|
+
@discussion This method will add a join condition to the last defined join clause.
|
|
129
|
+
@param column1 The column to be tested.
|
|
130
|
+
@param operator The operator to be used.
|
|
131
|
+
@param column2 The column to be tested on.
|
|
132
|
+
@updated 2012-03-24
|
|
133
|
+
*/
|
|
134
|
+
- (void) joinOn: (id)column1 operator: (NSString *)operator column: (id)column2;
|
|
135
|
+
/*!
|
|
136
|
+
@method joinOn:operator:column:connector:
|
|
137
|
+
@discussion This method will add a join condition to the last defined join clause.
|
|
138
|
+
@param column1 The column to be tested.
|
|
139
|
+
@param operator The operator to be used.
|
|
140
|
+
@param column2 The column to be tested on.
|
|
141
|
+
@param connector The connector to be used.
|
|
142
|
+
@updated 2012-03-24
|
|
143
|
+
*/
|
|
144
|
+
- (void) joinOn: (id)column1 operator: (NSString *)operator column: (id)column2 connector: (NSString *)connector;
|
|
145
|
+
/*!
|
|
146
|
+
@method joinOn:operator:value:
|
|
147
|
+
@discussion This method will add a join condition to the last defined join clause.
|
|
148
|
+
@param column The column to be tested.
|
|
149
|
+
@param operator The operator to be used.
|
|
150
|
+
@param value The value to be compared.
|
|
151
|
+
@updated 2012-03-24
|
|
152
|
+
*/
|
|
153
|
+
- (void) joinOn: (id)column operator: (NSString *)operator value: (id)value;
|
|
154
|
+
/*!
|
|
155
|
+
@method joinOn:operator:value:connector:
|
|
156
|
+
@discussion This method will add a join condition to the last defined join clause.
|
|
157
|
+
@param column The column to be tested.
|
|
158
|
+
@param operator The operator to be used.
|
|
159
|
+
@param value The value to be compared.
|
|
160
|
+
@param connector The connector to be used.
|
|
161
|
+
@updated 2012-03-24
|
|
162
|
+
*/
|
|
163
|
+
- (void) joinOn: (id)column operator: (NSString *)operator value: (id)value connector: (NSString *)connector;
|
|
164
|
+
/*!
|
|
165
|
+
@method joinUsing:
|
|
166
|
+
@discussion This method will add a join condition to the last defined join clause.
|
|
167
|
+
@param column The column to be tested.
|
|
168
|
+
@updated 2011-07-15
|
|
169
|
+
*/
|
|
170
|
+
- (void) joinUsing: (NSString *)column;
|
|
171
|
+
/*!
|
|
172
|
+
@method whereBlock:
|
|
173
|
+
@discussion This method will start or end a block.
|
|
174
|
+
@param brace The brace to be used; it is either an opening or closing brace.
|
|
175
|
+
@updated 2011-03-13
|
|
176
|
+
*/
|
|
177
|
+
- (void) whereBlock: (NSString *)brace;
|
|
178
|
+
/*!
|
|
179
|
+
@method whereBlock:connector:
|
|
180
|
+
@discussion This method will start or end a block.
|
|
181
|
+
@param brace The brace to be used; it is either an opening or closing brace.
|
|
182
|
+
@param connector The connector to be used.
|
|
183
|
+
@updated 2011-04-01
|
|
184
|
+
*/
|
|
185
|
+
- (void) whereBlock: (NSString *)brace connector: (NSString *)connector;
|
|
186
|
+
/*!
|
|
187
|
+
@method where:operator:column:
|
|
188
|
+
@discussion This method will add a where clause to the SQL statement.
|
|
189
|
+
@param column1 The column to be tested.
|
|
190
|
+
@param operator The operator to be used.
|
|
191
|
+
@param column2 The column to be compared.
|
|
192
|
+
@updated 2012-03-24
|
|
193
|
+
*/
|
|
194
|
+
- (void) where: (id)column1 operator: (NSString *)operator column: (id)column2;
|
|
195
|
+
/*!
|
|
196
|
+
@method where:operator:column:connector:
|
|
197
|
+
@discussion This method will add a where clause to the SQL statement.
|
|
198
|
+
@param column1 The column to be tested.
|
|
199
|
+
@param operator The operator to be used.
|
|
200
|
+
@param column2 The column to be compared.
|
|
201
|
+
@param connector The connector to be used.
|
|
202
|
+
@updated 2012-03-24
|
|
203
|
+
*/
|
|
204
|
+
- (void) where: (id)column1 operator: (NSString *)operator column: (id)column2 connector: (NSString *)connector;
|
|
205
|
+
/*!
|
|
206
|
+
@method where:operator:value:
|
|
207
|
+
@discussion This method will add a where clause to the SQL statement.
|
|
208
|
+
@param column The column to be tested.
|
|
209
|
+
@param operator The operator to be used.
|
|
210
|
+
@param value The value to be compared.
|
|
211
|
+
@updated 2012-03-24
|
|
212
|
+
*/
|
|
213
|
+
- (void) where: (id)column operator: (NSString *)operator value: (id)value; // wrap primitives with NSNumber
|
|
214
|
+
/*!
|
|
215
|
+
@method where:operator:value:connector:
|
|
216
|
+
@discussion This method will add a where clause to the SQL statement.
|
|
217
|
+
@param column The column to be tested.
|
|
218
|
+
@param operator The operator to be used.
|
|
219
|
+
@param value The value to be compared.
|
|
220
|
+
@param connector The connector to be used.
|
|
221
|
+
@updated 2012-03-24
|
|
222
|
+
*/
|
|
223
|
+
- (void) where: (id)column operator: (NSString *)operator value: (id)value connector: (NSString *)connector; // wrap primitives with NSNumber
|
|
224
|
+
/*!
|
|
225
|
+
@method groupBy:
|
|
226
|
+
@discussion This method will add a group by clause to the SQL statement.
|
|
227
|
+
@param column The column to be grouped.
|
|
228
|
+
@updated 2011-04-01
|
|
229
|
+
*/
|
|
230
|
+
- (void) groupBy: (NSString *)column;
|
|
231
|
+
/*!
|
|
232
|
+
@method groupByHavingBlock:
|
|
233
|
+
@discussion This method will start or end a block.
|
|
234
|
+
@param brace The brace to be used; it is either an opening or closing brace.
|
|
235
|
+
@updated 2011-03-18
|
|
236
|
+
*/
|
|
237
|
+
- (void) groupByHavingBlock: (NSString *)brace;
|
|
238
|
+
/*!
|
|
239
|
+
@method groupByHavingBlock:connector:
|
|
240
|
+
@discussion This method will start or end a block.
|
|
241
|
+
@param brace The brace to be used; it is either an opening or closing brace.
|
|
242
|
+
@param connector The connector to be used.
|
|
243
|
+
@updated 2011-03-18
|
|
244
|
+
*/
|
|
245
|
+
- (void) groupByHavingBlock: (NSString *)brace connector: (NSString *)connector;
|
|
246
|
+
/*!
|
|
247
|
+
@method groupByHaving:operator:column:
|
|
248
|
+
@discussion This method will add a having clause to the SQL statement.
|
|
249
|
+
@param column1 The column to be tested.
|
|
250
|
+
@param operator The operator to be used.
|
|
251
|
+
@param column2 The column to be compared.
|
|
252
|
+
@updated 2012-03-24
|
|
253
|
+
*/
|
|
254
|
+
- (void) groupByHaving: (id)column1 operator: (NSString *)operator column: (id)column2;
|
|
255
|
+
/*!
|
|
256
|
+
@method groupByHaving:operator:column:connector:
|
|
257
|
+
@discussion This method will add a having clause to the SQL statement.
|
|
258
|
+
@param column1 The column to be tested.
|
|
259
|
+
@param operator The operator to be used.
|
|
260
|
+
@param column2 The column to be compared.
|
|
261
|
+
@param connector The connector to be used.
|
|
262
|
+
@updated 2012-03-24
|
|
263
|
+
*/
|
|
264
|
+
- (void) groupByHaving: (id)column1 operator: (NSString *)operator column: (id)column2 connector: (NSString *)connector;
|
|
265
|
+
/*!
|
|
266
|
+
@method groupByHaving:operator:value:
|
|
267
|
+
@discussion This method will add a having clause to the SQL statement.
|
|
268
|
+
@param column The column to be tested.
|
|
269
|
+
@param operator The operator to be used.
|
|
270
|
+
@param value The value to be compared.
|
|
271
|
+
@updated 2012-03-24
|
|
272
|
+
*/
|
|
273
|
+
- (void) groupByHaving: (id)column operator: (NSString *)operator value: (id)value; // wrap primitives with NSNumber
|
|
274
|
+
/*!
|
|
275
|
+
@method groupByHaving:operator:value:connector:
|
|
276
|
+
@discussion This method will add a having clause to the SQL statement.
|
|
277
|
+
@param column The column to be tested.
|
|
278
|
+
@param operator The operator to be used.
|
|
279
|
+
@param value The value to be compared.
|
|
280
|
+
@param connector The connector to be used.
|
|
281
|
+
@updated 2012-03-24
|
|
282
|
+
*/
|
|
283
|
+
- (void) groupByHaving: (id)column operator: (NSString *)operator value: (id)value connector: (NSString *)connector; // wrap primitives with NSNumber
|
|
284
|
+
/*!
|
|
285
|
+
@method orderBy:
|
|
286
|
+
@discussion This method will add an order by clause to the SQL statement.
|
|
287
|
+
@param column The column to be ordered.
|
|
288
|
+
@updated 2012-03-19
|
|
289
|
+
*/
|
|
290
|
+
- (void) orderBy: (NSString *)column; // ORDER BY [COLUMN] ASC
|
|
291
|
+
/*!
|
|
292
|
+
@method orderBy:descending:
|
|
293
|
+
@discussion This method will add an order by clause to the SQL statement.
|
|
294
|
+
@param column The column to be ordered.
|
|
295
|
+
@param descending This will determine whether the column should be ordered in descending order.
|
|
296
|
+
@updated 2012-03-19
|
|
297
|
+
*/
|
|
298
|
+
- (void) orderBy: (NSString *)column descending: (BOOL)descending; // ORDER BY [COLUMN] [ASC | DESC]
|
|
299
|
+
/*!
|
|
300
|
+
@method orderBy:nulls:
|
|
301
|
+
@discussion This method will add an order by clause to the SQL statement.
|
|
302
|
+
@param column The column to be ordered.
|
|
303
|
+
@param weight This indicates how nulls are to be weighed when comparing with non-nulls.
|
|
304
|
+
@updated 2012-03-19
|
|
305
|
+
@see http://sqlite.org/cvstrac/wiki?p=UnsupportedSql
|
|
306
|
+
@see https://hibernate.onjira.com/browse/HHH-465
|
|
307
|
+
@see http://sqlblog.com/blogs/denis_gobo/archive/2007/10/19/3048.aspx
|
|
308
|
+
*/
|
|
309
|
+
- (void) orderBy: (NSString *)column nulls: (NSString *)weight; // ORDER BY [COLUMN] ASC [NULLS FIRST | NULLS LAST]
|
|
310
|
+
/*!
|
|
311
|
+
@method orderBy:descending:nulls:
|
|
312
|
+
@discussion This method will add an order by clause to the SQL statement.
|
|
313
|
+
@param column The column to be ordered.
|
|
314
|
+
@param descending This will determine whether the column should be ordered in descending order.
|
|
315
|
+
@param weight This indicates how nulls are to be weighed when comparing with non-nulls.
|
|
316
|
+
@updated 2012-03-19
|
|
317
|
+
@see http://sqlite.org/cvstrac/wiki?p=UnsupportedSql
|
|
318
|
+
@see https://hibernate.onjira.com/browse/HHH-465
|
|
319
|
+
@see http://sqlblog.com/blogs/denis_gobo/archive/2007/10/19/3048.aspx
|
|
320
|
+
*/
|
|
321
|
+
- (void) orderBy: (NSString *)column descending: (BOOL)descending nulls: (NSString *)weight; // ORDER BY [COLUMN] [ASC | DESC] [NULLS FIRST | NULLS LAST]
|
|
322
|
+
/*!
|
|
323
|
+
@method limit:
|
|
324
|
+
@discussion This method will add a limit clause to the SQL statement.
|
|
325
|
+
@param limit The number of records to be returned.
|
|
326
|
+
@updated 2012-03-18
|
|
327
|
+
*/
|
|
328
|
+
- (void) limit: (NSUInteger)limit;
|
|
329
|
+
/*!
|
|
330
|
+
@method limit:offset:
|
|
331
|
+
@discussion This method will add a limit clause and an offset clause to the SQL statement.
|
|
332
|
+
@param limit The number of records to be returned.
|
|
333
|
+
@param offset The starting point to start evaluating.
|
|
334
|
+
@updated 2012-03-18
|
|
335
|
+
*/
|
|
336
|
+
- (void) limit: (NSUInteger)limit offset: (NSUInteger)offset;
|
|
337
|
+
/*!
|
|
338
|
+
@method offset:
|
|
339
|
+
@discussion This method will add an offset clause to the SQL statement.
|
|
340
|
+
@param offset The starting point to start evaluating.
|
|
341
|
+
@updated 2012-03-18
|
|
342
|
+
*/
|
|
343
|
+
- (void) offset: (NSUInteger)offset;
|
|
344
|
+
/*!
|
|
345
|
+
@method combine:operator:
|
|
346
|
+
@discussion This method will combine a select statement using the specified operator.
|
|
347
|
+
@param statement The select statement that will be appended.
|
|
348
|
+
@param operator The operator to be used. Must use UNION, UNION ALL, INTERSECT, or EXCEPT.
|
|
349
|
+
@updated 2012-03-18
|
|
350
|
+
*/
|
|
351
|
+
- (void) combine: (NSString *)statement operator: (NSString *)operator;
|
|
352
|
+
/*!
|
|
353
|
+
@method statement
|
|
354
|
+
@discussion This method will return the SQL statement.
|
|
355
|
+
@return The SQL statement that was constructed.
|
|
356
|
+
@updated 2012-04-10
|
|
357
|
+
*/
|
|
358
|
+
- (NSString *) statement;
|
|
359
|
+
|
|
360
|
+
@end
|