Rename SL3Statement -> SL3PreparedStatement

FossilOrigin-Name: 4fc7a99ac98531e4bc6252a53c4a08277e32c62c01fa7593c1d0f24001d974fe
This commit is contained in:
Jonathan Schleifer 2020-10-01 21:16:18 +00:00
parent b5c94b74db
commit b1edabd532
13 changed files with 38 additions and 37 deletions

View file

@ -22,7 +22,7 @@
#import "SL3Exception.h"
#import "SL3Statement.h"
#import "SL3PreparedStatement.h"
OF_ASSUME_NONNULL_BEGIN
@ -30,24 +30,24 @@ OF_ASSUME_NONNULL_BEGIN
{
id _object;
int _column;
SL3Statement *_statement;
SL3PreparedStatement *_statement;
}
@property (readonly, nonatomic) id object;
@property (readonly, nonatomic) int column;
@property (readonly, nonatomic) SL3Statement *statement;
@property (readonly, nonatomic) SL3PreparedStatement *statement;
+ (instancetype)exceptionWithConnection: (nullable SL3Connection *)connection
errorCode: (int)errorCode OF_UNAVAILABLE;
+ (instancetype)exceptionWithObject: (id)object
column: (int)column
statement: (SL3Statement *)statement
statement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode;
- (instancetype)initWithConnection: (nullable SL3Connection *)connection
errorCode: (int)errorCode OF_UNAVAILABLE;
- (instancetype)initWithObject: (id)object
column: (int)column
statement: (SL3Statement *)statement
statement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode OF_DESIGNATED_INITIALIZER;
@end

View file

@ -33,7 +33,7 @@
+ (instancetype)exceptionWithObject: (id)object
column: (int)column
statement: (SL3Statement *)statement
statement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode
{
return [[[self alloc] initWithObject: object
@ -50,7 +50,7 @@
- (instancetype)initWithObject: (id)object
column: (int)column
statement: (SL3Statement *)statement
statement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode
{
self = [super initWithConnection: statement->_connection

View file

@ -22,24 +22,24 @@
#import "SL3Exception.h"
#import "SL3Statement.h"
#import "SL3PreparedStatement.h"
OF_ASSUME_NONNULL_BEGIN
@interface SL3ClearBindingsFailedException: SL3Exception
{
SL3Statement *_statement;
SL3PreparedStatement *_statement;
}
@property (readonly, nonatomic) SL3Statement *statement;
@property (readonly, nonatomic) SL3PreparedStatement *statement;
+ (instancetype)exceptionWithConnection: (nullable SL3Connection *)connection
errorCode: (int)errorCode OF_UNAVAILABLE;
+ (instancetype)exceptionWithStatement: (SL3Statement *)statement
+ (instancetype)exceptionWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode;
- (instancetype)initWithConnection: (nullable SL3Connection *)connection
errorCode: (int)errorCode OF_UNAVAILABLE;
- (instancetype)initWithStatement: (SL3Statement *)statement
- (instancetype)initWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode OF_DESIGNATED_INITIALIZER;
@end

View file

@ -31,7 +31,7 @@
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithStatement: (SL3Statement *)statement
+ (instancetype)exceptionWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode
{
return [[[self alloc] initWithStatement: statement
@ -44,7 +44,7 @@
OF_INVALID_INIT_METHOD
}
- (instancetype)initWithStatement: (SL3Statement *)statement
- (instancetype)initWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode
{
self = [super initWithConnection: statement->_connection

View file

@ -22,24 +22,24 @@
#import "SL3Exception.h"
#import "SL3Statement.h"
#import "SL3PreparedStatement.h"
OF_ASSUME_NONNULL_BEGIN
@interface SL3ExecuteStatementFailedException: SL3Exception
{
SL3Statement *_statement;
SL3PreparedStatement *_statement;
}
@property (readonly, nonatomic) SL3Statement *statement;
@property (readonly, nonatomic) SL3PreparedStatement *statement;
+ (instancetype)exceptionWithConnection: (nullable SL3Connection *)connection
errorCode: (int)errorCode OF_UNAVAILABLE;
+ (instancetype)exceptionWithStatement: (SL3Statement *)statement
+ (instancetype)exceptionWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode;
- (instancetype)initWithConnection: (nullable SL3Connection *)connection
errorCode: (int)errorCode OF_UNAVAILABLE;
- (instancetype)initWithStatement: (SL3Statement *)statement
- (instancetype)initWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode OF_DESIGNATED_INITIALIZER;
@end

View file

@ -31,7 +31,7 @@
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithStatement: (SL3Statement *)statement
+ (instancetype)exceptionWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode
{
return [[[self alloc] initWithStatement: statement
@ -44,7 +44,7 @@
OF_INVALID_INIT_METHOD
}
- (instancetype)initWithStatement: (SL3Statement *)statement
- (instancetype)initWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode
{
self = [super initWithConnection: statement->_connection

View file

@ -22,24 +22,24 @@
#import "SL3Exception.h"
#import "SL3Statement.h"
#import "SL3PreparedStatement.h"
OF_ASSUME_NONNULL_BEGIN
@interface SL3ResetStatementFailedException: SL3Exception
{
SL3Statement *_statement;
SL3PreparedStatement *_statement;
}
@property (readonly, nonatomic) SL3Statement *statement;
@property (readonly, nonatomic) SL3PreparedStatement *statement;
+ (instancetype)exceptionWithConnection: (nullable SL3Connection *)connection
errorCode: (int)errorCode OF_UNAVAILABLE;
+ (instancetype)exceptionWithStatement: (SL3Statement *)statement
+ (instancetype)exceptionWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode;
- (instancetype)initWithConnection: (nullable SL3Connection *)connection
errorCode: (int)errorCode OF_UNAVAILABLE;
- (instancetype)initWithStatement: (SL3Statement *)statement
- (instancetype)initWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode OF_DESIGNATED_INITIALIZER;
@end

View file

@ -31,7 +31,7 @@
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithStatement: (SL3Statement *)statement
+ (instancetype)exceptionWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode
{
return [[[self alloc] initWithStatement: statement
@ -44,7 +44,7 @@
OF_INVALID_INIT_METHOD
}
- (instancetype)initWithStatement: (SL3Statement *)statement
- (instancetype)initWithStatement: (SL3PreparedStatement *)statement
errorCode: (int)errorCode
{
self = [super initWithConnection: statement->_connection