Click here to Skip to main content
16,006,006 members
Home / Discussions / Database
   

Database

 
QuestionPrecision and Scale ? Pin
0v3rloader8-Nov-04 4:32
0v3rloader8-Nov-04 4:32 
AnswerRe: Precision and Scale ? Pin
Richard Deeming8-Nov-04 4:45
mveRichard Deeming8-Nov-04 4:45 
GeneralSQLite Pin
Steve S8-Nov-04 0:46
Steve S8-Nov-04 0:46 
GeneralSQL Server Management API Pin
Its due when7-Nov-04 18:33
Its due when7-Nov-04 18:33 
GeneralTrouble in updating source in ADO Pin
wicked_guy7-Nov-04 2:13
wicked_guy7-Nov-04 2:13 
GeneralFrom one database to another (DataSets & .NET) Pin
Jon Rista5-Nov-04 9:28
Jon Rista5-Nov-04 9:28 
QuestionUrgent!!--Layer Isolation using ArrayList?? Pin
obymathew4-Nov-04 23:48
obymathew4-Nov-04 23:48 
AnswerRe: Urgent!!--Layer Isolation using ArrayList?? Pin
Daniel Turini9-Nov-04 0:47
Daniel Turini9-Nov-04 0:47 
obymathew wrote:
I want to know that whether this will help in anyway or will cause an overhead to the application
This is the wrong way of decoupling layers:
1. This will add both complexity and overhead - you'll need a lot of casting on the UI layer, as ArrayLists store only objects.
2. Probably your data is being put on specific positions (e.g, al[1] is the customer name, al[2] your customer address, etc. This makes the application hard to debug, and change impact analysis very hard to do.

What I suggest:
If you still want or need to keep a strong isolation between these layers (e.g., the data or the UI layer can be used with other implementations) you can:
Create a 3rd assembly, which will define the interfaces that'll be used by both the data layer and the UI layer. From the data layer, return those interfaces, or arrays of those interfaces. To allow incremental changes, and to not disrupt everything when changing a method, provide a method on each interface that converts that data to an arraylist.
Before doing any changes, plan ahead a bit: make a backup (actually, you should use source control), create some basic unit tests and only then start working.
Don't forget that you may need to maintain two versions while you're converting things if your users need changes/bug corrections.


Yes, even I am blogging now!
GeneralWorking with just time section of a datetime type Pin
Den2Fly4-Nov-04 21:56
Den2Fly4-Nov-04 21:56 
GeneralRe: Working with just time section of a datetime type Pin
Colin Angus Mackay4-Nov-04 22:14
Colin Angus Mackay4-Nov-04 22:14 
GeneralRe: Working with just time section of a datetime type Pin
Den2Fly7-Nov-04 1:45
Den2Fly7-Nov-04 1:45 
GeneralRe: Working with just time section of a datetime type Pin
Colin Angus Mackay7-Nov-04 1:53
Colin Angus Mackay7-Nov-04 1:53 
GeneralRe: Working with just time section of a datetime type Pin
Grimolfr5-Nov-04 9:39
Grimolfr5-Nov-04 9:39 
GeneralRe: Working with just time section of a datetime type Pin
Jon Rista5-Nov-04 10:53
Jon Rista5-Nov-04 10:53 
GeneralRe: Working with just time section of a datetime type Pin
Den2Fly7-Nov-04 1:48
Den2Fly7-Nov-04 1:48 
GeneralRe: Working with just time section of a datetime type Pin
Grimolfr7-Nov-04 4:51
Grimolfr7-Nov-04 4:51 
GeneralRe: Working with just time section of a datetime type Pin
Den2Fly7-Nov-04 20:02
Den2Fly7-Nov-04 20:02 
GeneralNsted SELECT statements Pin
Den2Fly4-Nov-04 12:02
Den2Fly4-Nov-04 12:02 
GeneralRe: Nsted SELECT statements Pin
Christian Graus4-Nov-04 12:17
protectorChristian Graus4-Nov-04 12:17 
GeneralRe: Nsted SELECT statements Pin
Den2Fly4-Nov-04 21:20
Den2Fly4-Nov-04 21:20 
GeneralRe: Nsted SELECT statements Pin
Christian Graus4-Nov-04 21:23
protectorChristian Graus4-Nov-04 21:23 
GeneralRe: Nsted SELECT statements Pin
Colin Angus Mackay4-Nov-04 22:11
Colin Angus Mackay4-Nov-04 22:11 
GeneralRe: Nsted SELECT statements Pin
Christian Graus4-Nov-04 22:16
protectorChristian Graus4-Nov-04 22:16 
GeneralRe: Nsted SELECT statements Pin
munawarhussain9-Nov-04 6:18
munawarhussain9-Nov-04 6:18 
GeneralRe: Nsted SELECT statements Pin
Christian Graus9-Nov-04 8:44
protectorChristian Graus9-Nov-04 8:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.