For Data.java which implement DBMain.java,
Can I use a javabean to store data info instead using
string[]?
Example:
// Method Signature require by Sun instruction
public String[] read(int recNo) throws RecordNotFoundException {
return read(recNo).toStringArray();
}
// Method singaure use through out the program
public Subcontractor read(int recNo) throws RecordNotFoundException {
return database.getSubcontractor(recNo);
}
Same to other methods like delete, update... where method implement DBMain.java will call a similar method but using object instead string[].
Understand from other post in this forum, we are allow to add in extra methods for Data.java right? Bcoz I prefer using JavaBean to store record info and manupulate it instead using string[]...
Any concern if I do like that?