Re: Re: [mdr-users] How are repositories supposed to be used by modules?
Brian Smith <[email protected]> Sun, 29 Sep 2002 23:51:17 -0500
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Organization | CollabNet Hosting |
| Message-ID | <[email protected]> |
Martin Matula wrote:
> Hi Brian,
> why don't you use:
> package Timestamps imports PrimitiveTypes {
> class Timestamp {
> extentName : String
> timestamp : Long
> }
> }
>
> Martin
That is basically what I did. I stopped trying to use the URL's as the
extent names and instead I just use an automatically-generated ID. So,
the model looks like:
package Directory imports PrimitiveTypes {
class DirectoryEntry {
extentId : Integer
lastModified : Long
sourceUrls : String [unique 0..*]
}
}
The package is naemd "Directory" as in "Extent Directory" (Telephone
Directory, etc.), probably not the best name. I created a wrapper class
"DirectoryManager" that the rest of my code now usees to access the
repository and manages the cache (deletes extents which are out of date
with respect to their files).
- Brian