@@ -301,10 +301,10 @@ public extension AdaptorChannel {
301301 * - qualifier: the qualifier used to select the rows to be locked
302302 * - snapshot: a set of keys/values specifying a row to be locked
303303 */
304- public func lockRowComparingAttributes( _ attrs : [ Attribute ] ? ,
305- _ entity : Entity ,
306- _ qualifier : Qualifier ? ,
307- _ snapshot : AdaptorRow ? ) throws
304+ func lockRowComparingAttributes( _ attrs : [ Attribute ] ? ,
305+ _ entity : Entity ,
306+ _ qualifier : Qualifier ? ,
307+ _ snapshot : AdaptorRow ? ) throws
308308 -> Bool
309309 {
310310 let q = snapshot != nil ? qualifierToMatchAllValues ( snapshot!) : nil
@@ -339,11 +339,11 @@ public extension AdaptorChannel {
339339 * - lock: whether the SELECT should include a HOLD LOCK
340340 * - e: the entity (usually the table) to be fetched
341341 */
342- public func selectAttributes( _ attrs : [ Attribute ] ? ,
343- _ fs : FetchSpecification ? ,
344- lock : Bool ,
345- _ e : Entity ? ,
346- result : ( AdaptorRecord ) throws -> Void ) throws
342+ func selectAttributes( _ attrs : [ Attribute ] ? ,
343+ _ fs : FetchSpecification ? ,
344+ lock : Bool ,
345+ _ e : Entity ? ,
346+ result : ( AdaptorRecord ) throws -> Void ) throws
347347 {
348348 /* This is called by the DatabaseChannel
349349 * selectObjectsWithFetchSpecification(fs)
@@ -444,7 +444,6 @@ public extension AdaptorChannel {
444444 * - entity: the entity which should be updated
445445 * - returns: number of affected rows or -1 on error
446446 */
447- public
448447 func updateValuesInRowsDescribedByQualifier( _ values : [ String : Any ? ] ,
449448 _ qualifier : Qualifier ,
450449 _ entity : Entity ) throws
@@ -455,8 +454,8 @@ public extension AdaptorChannel {
455454 return try evaluateUpdateExpression ( expr)
456455 }
457456
458- public func deleteRowsDescribedByQualifier( _ q: Qualifier , _ e: Entity ) throws
459- -> Int
457+ func deleteRowsDescribedByQualifier( _ q: Qualifier , _ e: Entity ) throws
458+ -> Int
460459 {
461460 let expr = expressionFactory. deleteStatementWithQualifier ( q, e)
462461 return try evaluateUpdateExpression ( expr)
@@ -471,9 +470,8 @@ public extension AdaptorChannel {
471470 * - entity: the entity which contains the row
472471 * - returns: true if exactly one row was deleted, false otherwise
473472 */
474- public func deleteRowDescribedByQualifier( _ qualifier : Qualifier ,
475- _ entity : Entity ) throws
476- -> Bool
473+ func deleteRowDescribedByQualifier( _ qualifier: Qualifier , _ entity: Entity )
474+ throws -> Bool
477475 {
478476 return try deleteRowsDescribedByQualifier ( qualifier, entity) == 1
479477 }
@@ -495,16 +493,14 @@ public extension AdaptorChannel {
495493 * entity are being refetched. Requires the entity!
496494 * - returns: the record, potentially refetched and updated
497495 */
498- public func insertRow( _ row: AdaptorRow , _ entity: Entity ? ,
499- refetchAll: Bool )
500- throws -> AdaptorRow
496+ func insertRow( _ row: AdaptorRow , _ entity: Entity ? , refetchAll: Bool )
497+ throws -> AdaptorRow
501498 {
502499 return try defaultInsertRow ( row, entity, refetchAll: refetchAll)
503500 }
504501
505- public func defaultInsertRow( _ row: AdaptorRow , _ entity: Entity ? ,
506- refetchAll: Bool )
507- throws -> AdaptorRow
502+ func defaultInsertRow( _ row: AdaptorRow , _ entity: Entity ? , refetchAll: Bool )
503+ throws -> AdaptorRow
508504 {
509505 // So that we can reuse the default implementation ...
510506 if refetchAll && entity == nil {
@@ -545,8 +541,8 @@ public extension AdaptorChannel {
545541 * - entity: optionally an entity representing the table
546542 * - returns: the record, potentially refetched and updated
547543 */
548- public func insertRow( _ row: AdaptorRow , _ entity: Entity ? = nil ) throws
549- -> AdaptorRow
544+ func insertRow( _ row: AdaptorRow , _ entity: Entity ? = nil )
545+ throws -> AdaptorRow
550546 {
551547 return try insertRow ( row, entity, refetchAll: entity != nil )
552548 }
0 commit comments