author | Claus Gittinger <cg@exept.de> |
Wed, 15 May 2019 14:19:15 +0200 | |
changeset 4426 | a82374e79e97 |
parent 4222 | f861c45dd0fb |
permissions | -rw-r--r-- |
1530 | 1 |
" |
2 |
COPYRIGHT (c) 2006 eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
"{ Package: 'stx:libbasic3' }" |
|
13 |
||
4222 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
1530 | 16 |
AbstractSourceCodeManager subclass:#StoreSourceCodeManager |
17 |
instanceVariableNames:'' |
|
2734
85cf105b23ad
shownInSourceCodeManager from superclass
Claus Gittinger <cg@exept.de>
parents:
2705
diff
changeset
|
18 |
classVariableNames:'Verbose Connection DefaultDBInfo DBInfoPerModule' |
1530 | 19 |
poolDictionaries:'' |
20 |
category:'System-SourceCodeManagement' |
|
21 |
! |
|
22 |
||
1731 | 23 |
Object subclass:#DBInfo |
24 |
instanceVariableNames:'hostName dbName userName password' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
privateIn:StoreSourceCodeManager |
|
28 |
! |
|
29 |
||
1530 | 30 |
!StoreSourceCodeManager class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 2006 eXept Software AG |
|
35 |
All Rights Reserved |
|
36 |
||
37 |
This software is furnished under a license and may be used |
|
38 |
only in accordance with the terms of that license and with the |
|
39 |
inclusion of the above copyright notice. This software may not |
|
40 |
be provided or otherwise made available to, or used by, any |
|
41 |
other person. No title to or ownership of the software is |
|
42 |
hereby transferred. |
|
43 |
" |
|
44 |
! |
|
45 |
||
46 |
documentation |
|
47 |
" |
|
48 |
WARNING: |
|
49 |
this class is incomplete and provided as a sceletton |
|
50 |
if CVS is not to be used as a SourceCodeManager. |
|
51 |
We highly recommend to use CVS. |
|
52 |
||
53 |
SourceCodeManager which accesses sourcecode through a Store Database. |
|
54 |
This class is part of ongoing development and not yet released for public use. |
|
55 |
" |
|
56 |
! ! |
|
57 |
||
1731 | 58 |
!StoreSourceCodeManager class methodsFor:'initialization'! |
59 |
||
60 |
connectToDatabase |
|
1734 | 61 |
|session dbInfo| |
62 |
||
63 |
dbInfo := self defaultDBInfo. |
|
1731 | 64 |
|
65 |
SQL::SQLError handle:[:ex | |
|
66 |
self warn:('Failed to connect to Database:\\' withCRs,ex description). |
|
67 |
^ self. |
|
68 |
] do:[ |
|
1734 | 69 |
session := self tryToConnectToDatabase:dbInfo. |
1731 | 70 |
]. |
71 |
||
72 |
session isNil ifTrue:[ |
|
73 |
self warn:'OOPS - Failed to connect to Database'. |
|
74 |
^ self |
|
75 |
]. |
|
76 |
Connection := session. |
|
1734 | 77 |
Transcript showCR:('Connected to Store-DB: ',dbInfo hostAndDBName). |
1731 | 78 |
! |
79 |
||
80 |
tryToConnectToDatabase:dbInfo |
|
81 |
|session| |
|
82 |
||
83 |
session := SQL::ODBCSession new. |
|
84 |
session |
|
85 |
connectWithUsername:(dbInfo userName) |
|
86 |
password:(dbInfo password) |
|
87 |
dbname:(dbInfo dbName). |
|
88 |
||
89 |
(session isConnected) ifFalse:[ |
|
90 |
^ nil. |
|
91 |
]. |
|
92 |
^ session |
|
93 |
! ! |
|
94 |
||
1530 | 95 |
!StoreSourceCodeManager class methodsFor:'accessing'! |
96 |
||
1731 | 97 |
dbName |
98 |
^ self defaultDBInfo dbName |
|
99 |
! |
|
100 |
||
101 |
dbName:aString |
|
102 |
self defaultDBInfo dbName:aString. |
|
103 |
! |
|
104 |
||
105 |
defaultDBInfo |
|
106 |
DefaultDBInfo isNil ifTrue:[ |
|
107 |
DefaultDBInfo := DBInfo new |
|
108 |
]. |
|
109 |
^ DefaultDBInfo |
|
110 |
! |
|
111 |
||
112 |
hostAndDBName |
|
113 |
^ self defaultDBInfo hostAndDBName |
|
114 |
! |
|
115 |
||
116 |
hostAndDBName:aString |
|
117 |
self defaultDBInfo hostAndDBName:aString. |
|
118 |
! |
|
119 |
||
120 |
hostName |
|
121 |
^ self defaultDBInfo hostName |
|
122 |
! |
|
123 |
||
124 |
hostName:aString |
|
125 |
self defaultDBInfo hostName:aString. |
|
126 |
! |
|
127 |
||
128 |
newDBInfo |
|
129 |
^ DBInfo new |
|
130 |
! |
|
131 |
||
132 |
password |
|
133 |
^ self defaultDBInfo password |
|
134 |
! |
|
135 |
||
136 |
password:aString |
|
137 |
self defaultDBInfo password:aString. |
|
138 |
! |
|
139 |
||
140 |
repositoryInfoPerModule |
|
141 |
^ DBInfoPerModule ? #() |
|
142 |
||
143 |
"Created: / 16-08-2006 / 11:06:09 / cg" |
|
144 |
! |
|
145 |
||
146 |
repositoryInfoPerModule:aCollectionOfDBinfos |
|
147 |
DBInfoPerModule := aCollectionOfDBinfos |
|
148 |
||
149 |
"Created: / 16-08-2006 / 11:06:09 / cg" |
|
150 |
! |
|
151 |
||
2594 | 152 |
repositoryNameForPackage:packageId |
2566 | 153 |
"superclass AbstractSourceCodeManager class says that I am responsible to implement this method" |
2594 | 154 |
|
2566 | 155 |
^ self shouldImplement |
156 |
! |
|
157 |
||
1731 | 158 |
userName |
159 |
^ self defaultDBInfo userName |
|
160 |
! |
|
161 |
||
162 |
userName:aString |
|
163 |
self defaultDBInfo userName:aString. |
|
164 |
! ! |
|
165 |
||
2566 | 166 |
!StoreSourceCodeManager class methodsFor:'basic access'! |
167 |
||
168 |
checkinClass:aClass fileName:classFileName directory:packageDir module:moduleDir source:sourceFile logMessage:logMessage force:force |
|
169 |
"checkin of a class into the source repository. |
|
170 |
Return true if ok, false if not." |
|
171 |
||
172 |
^ self shouldImplement |
|
173 |
! |
|
174 |
||
175 |
checkoutModule:aModule directory:aPackage andDo:aBlock |
|
176 |
"check out everything from a package into a temporary directory. |
|
177 |
Then evaluate aBlock, passing the name of that temp-directory. |
|
178 |
Afterwards, the tempDir is removed. |
|
179 |
Return true, if OK, false if any error occurred." |
|
180 |
||
181 |
^ self shouldImplement |
|
182 |
! |
|
183 |
||
184 |
streamForClass:aClass fileName:classFileName revision:revision directory:packageDir module:moduleDir cache:doCache |
|
185 |
"extract a classes source code and return an open readStream on it. |
|
186 |
A revision of nil selects the current (in image) revision. |
|
187 |
The classes source code is extracted using the revision and the sourceCodeInfo, |
|
188 |
which itself is extracted from the classes packageString." |
|
189 |
||
190 |
^ self shouldImplement |
|
191 |
! ! |
|
192 |
||
193 |
!StoreSourceCodeManager class methodsFor:'basic administration'! |
|
194 |
||
4222 | 195 |
checkForExistingContainer:fileName inModule:moduleName directory:packageDirName |
196 |
"check for a container to exist. Return a boolean result." |
|
2566 | 197 |
|
198 |
^ self shouldImplement |
|
4222 | 199 |
|
200 |
"Modified (format): / 24-02-2017 / 11:32:13 / cg" |
|
2566 | 201 |
! |
202 |
||
203 |
checkForExistingModule:moduleName |
|
204 |
"check for a module directory to be present" |
|
205 |
||
206 |
^ self shouldImplement |
|
207 |
! |
|
208 |
||
209 |
createContainerFor:aClass inModule:moduleName directory:dirName container:fileName |
|
210 |
"create a new container & check into it an initial version of aClass" |
|
211 |
||
212 |
^ self shouldImplement |
|
213 |
! |
|
214 |
||
215 |
createModule:moduleName |
|
216 |
"create a new module directory" |
|
217 |
||
218 |
^ self shouldImplement |
|
219 |
! |
|
220 |
||
221 |
createModule:module directory:directory |
|
222 |
"create a new package directory" |
|
223 |
||
224 |
^ self shouldImplement |
|
225 |
! |
|
226 |
||
227 |
initialRevisionStringFor:aClass inModule:moduleDir directory:packageDir container:fileName |
|
228 |
"return a string usable as initial revision string" |
|
229 |
||
230 |
^ self shouldImplement |
|
231 |
! |
|
232 |
||
3604
c8372c31fa09
class: StoreSourceCodeManager
Claus Gittinger <cg@exept.de>
parents:
3109
diff
changeset
|
233 |
revisionLogOf:clsOrNil |
c8372c31fa09
class: StoreSourceCodeManager
Claus Gittinger <cg@exept.de>
parents:
3109
diff
changeset
|
234 |
fromRevision:rev1OrNil toRevision:rev2OrNil numberOfRevisions:limitOrNil |
c8372c31fa09
class: StoreSourceCodeManager
Claus Gittinger <cg@exept.de>
parents:
3109
diff
changeset
|
235 |
fileName:classFileName directory:packageDir module:moduleDir |
c8372c31fa09
class: StoreSourceCodeManager
Claus Gittinger <cg@exept.de>
parents:
3109
diff
changeset
|
236 |
|
2566 | 237 |
"actually do return a revisionLog. The main worker method. |
238 |
This must be implemented by a concrete source-code manager" |
|
239 |
||
240 |
^ self shouldImplement |
|
241 |
! ! |
|
242 |
||
1731 | 243 |
!StoreSourceCodeManager class methodsFor:'queries'! |
244 |
||
2198
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
245 |
isExperimental |
3109
d8243b5c34e1
class: StoreSourceCodeManager
Claus Gittinger <cg@exept.de>
parents:
2734
diff
changeset
|
246 |
(OperatingSystem getLoginName = 'cg') ifTrue:[^ false]. |
d8243b5c34e1
class: StoreSourceCodeManager
Claus Gittinger <cg@exept.de>
parents:
2734
diff
changeset
|
247 |
(OperatingSystem getLoginName = 'exept') ifTrue:[^ false]. |
2198
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
248 |
^ true |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
249 |
|
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
250 |
"Created: / 16-08-2006 / 11:23:09 / cg" |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
251 |
! |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
252 |
|
2566 | 253 |
isResponsibleForPackage:aStringOrSymbol |
254 |
"superclass AbstractSourceCodeManager class says that I am responsible to implement this method" |
|
255 |
||
256 |
^ self shouldImplement |
|
257 |
! |
|
258 |
||
1530 | 259 |
managerTypeName |
260 |
^ 'Store DB' |
|
261 |
||
262 |
"Created: / 16-08-2006 / 11:06:09 / cg" |
|
2139
00a8e5ffba8e
added nameOfVersionMethodInClasses
Claus Gittinger <cg@exept.de>
parents:
1900
diff
changeset
|
263 |
! |
00a8e5ffba8e
added nameOfVersionMethodInClasses
Claus Gittinger <cg@exept.de>
parents:
1900
diff
changeset
|
264 |
|
2553
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
265 |
managerTypeNameShort |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
266 |
"Answers short version manager name suitable for UI, |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
267 |
i,e., CVS, SVN, P4. Used in cases where sorter strings |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
268 |
are preferred. Defaults to #managerTypeName" |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
269 |
|
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
270 |
^'StORE' |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
271 |
|
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
272 |
"Created: / 03-10-2011 / 13:29:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2636
e64a277189eb
format in: #managerTypeNameShort
Claus Gittinger <cg@exept.de>
parents:
2594
diff
changeset
|
273 |
"Modified (format): / 04-12-2011 / 10:15:45 / cg" |
2553
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
274 |
! |
4c63ae4885b9
- more subclassReponsibilities to AbstractSourceCodeManager
vrany
parents:
2526
diff
changeset
|
275 |
|
2198
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
276 |
nameOfVersionMethodForExtensions |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
277 |
^ #'extensionsVersion_STORE' |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
278 |
! |
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
279 |
|
2139
00a8e5ffba8e
added nameOfVersionMethodInClasses
Claus Gittinger <cg@exept.de>
parents:
1900
diff
changeset
|
280 |
nameOfVersionMethodInClasses |
00a8e5ffba8e
added nameOfVersionMethodInClasses
Claus Gittinger <cg@exept.de>
parents:
1900
diff
changeset
|
281 |
^ #'version_STORE' |
2346 | 282 |
! |
283 |
||
284 |
settingsApplicationClass |
|
2352
28840a6d762f
added: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents:
2346
diff
changeset
|
285 |
"link to my settings application (needed for the settings dialog" |
28840a6d762f
added: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents:
2346
diff
changeset
|
286 |
|
2346 | 287 |
^ StoreSourceCodeManagementSettingsAppl |
288 |
||
289 |
"Created: / 19-04-2011 / 12:44:26 / cg" |
|
2352
28840a6d762f
added: #settingsApplicationClass
Claus Gittinger <cg@exept.de>
parents:
2346
diff
changeset
|
290 |
"Modified: / 19-04-2011 / 13:52:34 / cg" |
2526
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
291 |
! |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
292 |
|
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
293 |
versionMethodKeyword |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
294 |
|
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
295 |
"Answers the keyword used by the version management system to |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
296 |
expand a current version in a file (_without_ dollars). For |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
297 |
CVS it is 'Header', for SVN 'Id', others may use different |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
298 |
keywords. If nil is returned, then the version management does |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
299 |
not use any keyword." |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
300 |
|
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
301 |
^nil |
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
302 |
|
885e44dc1e4a
When rewriting #version method source, a keyword is also rewritten (CVS and SVN uses different keywords)
vrany
parents:
2381
diff
changeset
|
303 |
"Created: / 27-09-2011 / 16:47:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1530 | 304 |
! ! |
305 |
||
1892 | 306 |
!StoreSourceCodeManager class methodsFor:'saving'! |
307 |
||
308 |
savePreferencesOn:aStream |
|
1900 | 309 |
aStream nextPutLine:' StoreSourceCodeManager notNil ifTrue:['. |
310 |
aStream nextPutLine:' StoreSourceCodeManager repositoryInfoPerModule:' , self repositoryInfoPerModule storeString , '.'. |
|
2328
4620ff63e9b2
comment/format in: #savePreferencesOn:
Claus Gittinger <cg@exept.de>
parents:
2309
diff
changeset
|
311 |
|
1892 | 312 |
(Smalltalk at:#SourceCodeManager) == StoreSourceCodeManager ifTrue:[ |
1900 | 313 |
aStream nextPutLine:' Smalltalk at:#SourceCodeManager put: StoreSourceCodeManager.'. |
314 |
aStream nextPutLine:' StoreSourceCodeManager hostAndDBName:' , self hostAndDBName storeString , '.'. |
|
315 |
aStream nextPutLine:' StoreSourceCodeManager dbName:' , self dbName storeString , '.'. |
|
316 |
aStream nextPutLine:' StoreSourceCodeManager userName:' , self userName storeString , '.'. |
|
1892 | 317 |
]. |
1900 | 318 |
aStream nextPutLine:' ].'. |
1892 | 319 |
|
320 |
"Created: / 09-11-2006 / 15:10:25 / cg" |
|
2328
4620ff63e9b2
comment/format in: #savePreferencesOn:
Claus Gittinger <cg@exept.de>
parents:
2309
diff
changeset
|
321 |
"Modified: / 18-04-2011 / 17:15:12 / cg" |
1892 | 322 |
! ! |
323 |
||
2566 | 324 |
!StoreSourceCodeManager class methodsFor:'source code administration'! |
325 |
||
326 |
getExistingContainersInModule:aModule directory:aPackage |
|
327 |
"{ Pragma: +optSpace }" |
|
328 |
||
329 |
^ self shouldImplement |
|
330 |
! |
|
331 |
||
332 |
getExistingDirectoriesInModule:aModule |
|
333 |
"{ Pragma: +optSpace }" |
|
334 |
||
335 |
^ self shouldImplement |
|
336 |
! |
|
337 |
||
338 |
getExistingModules |
|
339 |
"{ Pragma: +optSpace }" |
|
340 |
||
341 |
^ self shouldImplement |
|
342 |
! |
|
343 |
||
344 |
revisionInfoFromString:aString |
|
345 |
"{ Pragma: +optSpace }" |
|
346 |
||
347 |
^ self shouldImplement |
|
348 |
! ! |
|
349 |
||
350 |
!StoreSourceCodeManager class methodsFor:'subclass responsibility'! |
|
351 |
||
352 |
reportHistoryLogSince:timeGoal filterSTSources:filter filterUser:userFilter filterRepository:repositoryFilter filterModules:moduleFilter inTo:aBlock |
|
353 |
"superclass AbstractSourceCodeManager class says that I am responsible to implement this method" |
|
354 |
||
355 |
^ self shouldImplement |
|
356 |
! ! |
|
357 |
||
1530 | 358 |
!StoreSourceCodeManager class methodsFor:'testing'! |
359 |
||
360 |
isStore |
|
361 |
^ true |
|
362 |
||
363 |
"Created: / 16-08-2006 / 10:59:06 / cg" |
|
364 |
! ! |
|
365 |
||
1731 | 366 |
!StoreSourceCodeManager::DBInfo methodsFor:'accessing'! |
367 |
||
368 |
dbName |
|
369 |
^ dbName |
|
370 |
! |
|
371 |
||
372 |
dbName:something |
|
373 |
dbName := something. |
|
374 |
! |
|
375 |
||
376 |
hostAndDBName |
|
377 |
hostName isEmptyOrNil ifTrue:[ ^ dbName ]. |
|
378 |
^ dbName,'@',hostName |
|
379 |
! |
|
380 |
||
381 |
hostAndDBName: aString |
|
382 |
|idx| |
|
383 |
||
384 |
idx := aString indexOf:$@. |
|
385 |
idx == 0 ifTrue:[ |
|
386 |
dbName := aString. |
|
387 |
hostName := nil. |
|
388 |
] ifFalse:[ |
|
389 |
dbName := aString copyTo:idx-1. |
|
390 |
hostName := (aString copyFrom:idx+1). |
|
391 |
] |
|
392 |
! |
|
393 |
||
1732 | 394 |
hostAndDBName:hostAndDBNameArg userName:userNameArg password:passwordArg |
395 |
self hostAndDBName:hostAndDBNameArg. |
|
396 |
userName := userNameArg. |
|
397 |
password := passwordArg. |
|
398 |
! |
|
399 |
||
1731 | 400 |
hostName |
401 |
^ hostName |
|
402 |
! |
|
403 |
||
404 |
hostName:something |
|
405 |
hostName := something. |
|
406 |
! |
|
407 |
||
408 |
hostName:hostNameArg dbName:dbNameArg userName:userNameArg password:passwordArg |
|
409 |
"set instance variables (automatically generated)" |
|
410 |
||
411 |
hostName := hostNameArg. |
|
412 |
dbName := dbNameArg. |
|
413 |
userName := userNameArg. |
|
414 |
password := passwordArg. |
|
415 |
! |
|
416 |
||
417 |
password |
|
418 |
^ password |
|
419 |
! |
|
420 |
||
421 |
password:something |
|
422 |
password := something. |
|
423 |
! |
|
424 |
||
425 |
userName |
|
426 |
^ userName |
|
427 |
! |
|
428 |
||
429 |
userName:something |
|
430 |
userName := something. |
|
431 |
! ! |
|
432 |
||
2309 | 433 |
!StoreSourceCodeManager::DBInfo methodsFor:'printing & storing'! |
1732 | 434 |
|
435 |
storeOn:aStream |
|
436 |
aStream |
|
437 |
nextPutAll:'('; |
|
438 |
nextPutAll:self class name; |
|
439 |
nextPutAll:' basicNew'; |
|
440 |
nextPutAll:' hostAndDBName:'; |
|
441 |
store: self hostAndDBName; |
|
442 |
nextPutAll:' userName:'; |
|
443 |
store: self userName; |
|
444 |
nextPutAll:' password:'; |
|
445 |
store: self password; |
|
446 |
nextPutAll:')'. |
|
447 |
||
448 |
" |
|
449 |
self readFrom:(self basicNew hostAndDBName:'a' userName:'b' password:'c') storeString |
|
450 |
self readFrom:(self basicNew hostAndDBName:'a@h' userName:'b' password:'c') storeString |
|
451 |
" |
|
452 |
! ! |
|
453 |
||
1530 | 454 |
!StoreSourceCodeManager class methodsFor:'documentation'! |
455 |
||
2198
24cbf780471b
added: #nameOfVersionMethodForExtensions
Claus Gittinger <cg@exept.de>
parents:
2139
diff
changeset
|
456 |
version_CVS |
4222 | 457 |
^ '$Header$' |
1530 | 458 |
! ! |
3109
d8243b5c34e1
class: StoreSourceCodeManager
Claus Gittinger <cg@exept.de>
parents:
2734
diff
changeset
|
459 |