Skip to content

Commit

Permalink
#65 adds super initialize to classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
lopezca committed Jun 26, 2023
1 parent 350d8b3 commit 3411640
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Glorp/CacheManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ CacheManager >> hasObjectExpiredOfClass: aClass withKey: key [
{ #category : #initialization }
CacheManager >> initialize [

super initialize.

subCaches := IdentityDictionary new: 100
]

Expand Down
1 change: 1 addition & 0 deletions src/Glorp/DatabaseCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ DatabaseCommand >> hasMultipleRows [
{ #category : #initialization }
DatabaseCommand >> initialize [

super initialize.
useBinding := true.
stream := WriteStream on: (String new: 100)
]
Expand Down
1 change: 1 addition & 0 deletions src/Glorp/DatabaseConverter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ DatabaseConverter >> convert: anObject toDatabaseRepresentationAs: aDatabaseType
{ #category : #initialization }
DatabaseConverter >> initialize [

super initialize.
name := #unnamed
]

Expand Down
1 change: 1 addition & 0 deletions src/Glorp/DatabaseIndex.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ DatabaseIndex >> indexesField: aField [
{ #category : #initialization }
DatabaseIndex >> initialize [

super initialize.
fields := OrderedCollection new: 2
]

Expand Down
3 changes: 2 additions & 1 deletion src/Glorp/ForeignKeyConstraint.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ ForeignKeyConstraint >> generateName [

{ #category : #initialization }
ForeignKeyConstraint >> initialize [


super initialize.
self sourceFields: (OrderedCollection new: 2).
targetFields := OrderedCollection new: 2
]
Expand Down
2 changes: 1 addition & 1 deletion src/Glorp/GlorpPreparedStatement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ GlorpPreparedStatement >> glorpNoticeOfExpiryIn: aSession [

{ #category : #initialization }
GlorpPreparedStatement >> initialize [

super initialize.

Check warning on line 49 in src/Glorp/GlorpPreparedStatement.class.st

View check run for this annotation

Codecov / codecov/patch

src/Glorp/GlorpPreparedStatement.class.st#L49

Added line #L49 was not covered by tests
busy := false
]

Expand Down
2 changes: 2 additions & 0 deletions src/Glorp/GlorpSession.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ GlorpSession >> inUnitOfWorkDo: aBlock [
{ #category : #initialization }
GlorpSession >> initialize [

super initialize.

self initializeCache
]

Expand Down

0 comments on commit 3411640

Please sign in to comment.