Hi,
I have a question about the instance of databases:
for example, If I have two db files,
Data d1=new Data(file1);
Data d2=new Data(file2);
so, there should be no static member inside the Data class, right?
for example the lock?
A solution is to use multiton design pattern with the file name as the key.
please comment on my design.
thanks
I have a question about the instance of databases:
for example, If I have two db files,
Data d1=new Data(file1);
Data d2=new Data(file2);
so, there should be no static member inside the Data class, right?
for example the lock?
A solution is to use multiton design pattern with the file name as the key.
please comment on my design.
thanks