-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename classes from Gemstone to GemStone
- Loading branch information
Showing
4 changed files
with
47 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
...epositoryMatchingCriteriaBuilder.class.st → ...epositoryMatchingCriteriaBuilder.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,66 @@ | ||
" | ||
I'm an implementation for Gemstone Repositories. | ||
I'm an implementation for GemStone Repositories. | ||
I will try to solve everything using plain messages without any DSL. | ||
" | ||
Class { | ||
#name : 'GemstoneRepositoryMatchingCriteriaBuilder', | ||
#name : 'GemStoneRepositoryMatchingCriteriaBuilder', | ||
#superclass : 'RepositoryMatchingCriteriaBuilder', | ||
#category : 'Sagan-GemStone', | ||
#package : 'Sagan-GemStone' | ||
} | ||
|
||
{ #category : 'identity operations' } | ||
GemstoneRepositoryMatchingCriteriaBuilder >> does: anObjectInRepository equal: anObject [ | ||
GemStoneRepositoryMatchingCriteriaBuilder >> does: anObjectInRepository equal: anObject [ | ||
|
||
^ anObjectInRepository = anObject | ||
] | ||
|
||
{ #category : 'string matching' } | ||
GemstoneRepositoryMatchingCriteriaBuilder >> does: aStringInRepository includeSubstring: aString [ | ||
GemStoneRepositoryMatchingCriteriaBuilder >> does: aStringInRepository includeSubstring: aString [ | ||
|
||
^ aStringInRepository includesSubstring: aString | ||
] | ||
|
||
{ #category : 'identity operations' } | ||
GemstoneRepositoryMatchingCriteriaBuilder >> does: objectInRepository notEqual: objectInMemory [ | ||
GemStoneRepositoryMatchingCriteriaBuilder >> does: objectInRepository notEqual: objectInMemory [ | ||
|
||
^ objectInRepository ~= objectInMemory | ||
] | ||
|
||
{ #category : 'testing' } | ||
GemstoneRepositoryMatchingCriteriaBuilder >> is: anObject includedIn: aCollection [ | ||
GemStoneRepositoryMatchingCriteriaBuilder >> is: anObject includedIn: aCollection [ | ||
|
||
^ aCollection includes: anObject | ||
] | ||
|
||
{ #category : 'testing' } | ||
GemstoneRepositoryMatchingCriteriaBuilder >> isUndefined: anObject otherwiseSatisfy: aBooleanExpression [ | ||
GemStoneRepositoryMatchingCriteriaBuilder >> isUndefined: anObject otherwiseSatisfy: aBooleanExpression [ | ||
"It is assumed anObject will always be defined when in memory. | ||
By defined we refer to any object except nil." | ||
|
||
^ aBooleanExpression | ||
] | ||
|
||
{ #category : 'boolean operations' } | ||
GemstoneRepositoryMatchingCriteriaBuilder >> satisfying: aBoolean and: aBlock [ | ||
GemStoneRepositoryMatchingCriteriaBuilder >> satisfying: aBoolean and: aBlock [ | ||
|
||
^ aBoolean and: aBlock | ||
] | ||
|
||
{ #category : 'boolean operations' } | ||
GemstoneRepositoryMatchingCriteriaBuilder >> satisfying: aBoolean or: aBlock [ | ||
GemStoneRepositoryMatchingCriteriaBuilder >> satisfying: aBoolean or: aBlock [ | ||
|
||
^ aBoolean or: aBlock | ||
] | ||
|
||
{ #category : 'boolean operations' } | ||
GemstoneRepositoryMatchingCriteriaBuilder >> satisfyingAll: aBooleanCollection [ | ||
GemStoneRepositoryMatchingCriteriaBuilder >> satisfyingAll: aBooleanCollection [ | ||
|
||
^ aBooleanCollection allSatisfy: [ :each | each ] | ||
] | ||
|
||
{ #category : 'boolean operations' } | ||
GemstoneRepositoryMatchingCriteriaBuilder >> satisfyingAny: aBooleanCollection [ | ||
GemStoneRepositoryMatchingCriteriaBuilder >> satisfyingAny: aBooleanCollection [ | ||
|
||
^ aBooleanCollection anySatisfy: [ :each | each ] | ||
] |
14 changes: 7 additions & 7 deletions
14
...Stone/GemstoneRepositoryProvider.class.st → ...Stone/GemStoneRepositoryProvider.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
Class { | ||
#name : 'GemstoneRepositoryProvider', | ||
#name : 'GemStoneRepositoryProvider', | ||
#superclass : 'RepositoryProvider', | ||
#category : 'Sagan-GemStone', | ||
#package : 'Sagan-GemStone' | ||
} | ||
|
||
{ #category : 'building' } | ||
GemstoneRepositoryProvider >> createRepositoryStoringObjectsOfType: aBusinessObjectClass | ||
GemStoneRepositoryProvider >> createRepositoryStoringObjectsOfType: aBusinessObjectClass | ||
checkingConflictsAccordingTo: aConflictCheckingStrategy [ | ||
|
||
^ GemstoneRepository checkingConflictsAccordingTo: aConflictCheckingStrategy | ||
^ GemStoneRepository checkingConflictsAccordingTo: aConflictCheckingStrategy | ||
] | ||
|
||
{ #category : 'controlling' } | ||
GemstoneRepositoryProvider >> destroyRepositories [ | ||
GemStoneRepositoryProvider >> destroyRepositories [ | ||
|
||
" In memory all repositories are destroyed once the system is shut down " | ||
] | ||
|
||
{ #category : 'controlling' } | ||
GemstoneRepositoryProvider >> prepareForInitialPersistence [ | ||
GemStoneRepositoryProvider >> prepareForInitialPersistence [ | ||
|
||
|
||
] | ||
|
||
{ #category : 'controlling' } | ||
GemstoneRepositoryProvider >> prepareForShutDown [ | ||
GemStoneRepositoryProvider >> prepareForShutDown [ | ||
|
||
|
||
] | ||
|
||
{ #category : 'initialization' } | ||
GemstoneRepositoryProvider >> reset [ | ||
GemStoneRepositoryProvider >> reset [ | ||
|
||
|
||
] |