General information
Category:
Object Oriented Programming
you have a businness object with SQL View for a data access, the bussiness object in the relation need see the father object and read the ID for run a view too. remember are you using SQL Backend and the business object are an abstraction way for change the Backend anytime.
you need construct a business object with the filter for the datasource and add methods for work with another business object too.
this is the way for using views with Business objects (i think)
regards
>Hi,
>I have my datasource and business class. Every Business class will create an instance of datasource class.
>
>I have question that, if I have sales business class. It will access sales and sales details table. Should I create an instance of datasource class, and an instance of sales datasource? Or any other ideas?
>
>If I wan to delete a cashier, the sales transaction done by the cashier should not be deleted. I know I can set integrity relationship for cascade delete or etc. But how about both of these tables are from different database? Therefore, I think I should implement the cascade delete in class either. WHere should I place this codes, deletestaff method or.. ? How do you do?
>
>Thank you
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only