Is there any free tools that can auto generate UML diagrams? I know there are tools to generate class diagrams, but what about other diagrams? Please let me know if you have any to recommand. Thanks.
365 byte By
MithunKa at 2007-10-3 8:11:24
Hi all,I want to define a generic interface with set of operations, and the the different implementations of this interface are having different operations signiture. i.e how to define a generic interface for which each of the implementation can have operations with different signitures?Waiting ...
2369 byte By
soulgoda at 2007-10-3 8:18:51
hi there, we are working on quite a big application and the implementation of the gui becomes a bit of a spaghetti and we decided to look at the patterns . Not so familiar with it and don't find anything good for design patterns in swing when using J2EE technology. So here is the situation for ...
Hi Team,I have added an small artcal on "Singleton pattern" at http://javatouch.googlepages.com/singletonpatternI have used some of wisdom from contents of this forum in creating the artical. Please feel free to visit the link and do not hesitate to comment or note any thing missing or incorrect ...
1524 byte By
fedetxfa at 2007-10-3 8:37:59
We have a telephone ticket pricing application. We designed an object model and we have objects that have logic to decide how to price each ticket according to its characteristics and information from a database.The customer wants to remove all the logic from the application and build up the ...
Hi GurusWhat is the Benefit of Using static synchronized void amethod(){}VSsynchronized void amethod(){}Help is deeply ...
Hi everybody I need your help. I am working on a Vehicle tracking project using Applet and Swing. I have a form named MapClient. This form contains a MapViewer object that stores and displays Map Image. And I have a Controller class named MapClientController . This class getting requests from ...
Can we use Hibernate and Entity beans together in any application?please help me.It is very urgent.
1586 byte By
dawuada at 2007-10-3 8:48:28
We currently have a J2EE project built on EJB3 and were hoping to get some help on the design. A little background: Our company sells several products for various companies. Each of these companies have different business rules, etc. Initially when we built our application we were unable to ...
2047 byte By
max1983a at 2007-10-3 8:50:05
I have two tables in the DB, Categories and ProductsCategory one-to-many ProductsBelow is the mapping def. and a sneak view of the Product bean:<hibernate-mapping><class name="com.fivestaroffice.databeans.Category" table="categories"><id name="id" type="int" ...
Hi Friends.......I know that use case is use for the purpose of requirment gatheringMy questios are1->How to Identify Classes through USE cases.2-->Is Use Case is High Level DesignThanks and Reagrd
2305 byte By
cedbxa at 2007-10-3 8:55:55
hi,i have a problem with my mysql database connection with struts. this is a part of my struts-config.xml: <data-sources><data-source key="domao" type="org.apache.commons.dbcp.BasicDataSource"><set-property property="driverClassName" value="com.mysql.jdbc.Driver" ...
678 byte By
cmangiaa at 2007-10-3 9:09:15
I am new to design patterns and have a question about the usage of the AbstractFactory Pattern. I want to allow the client program to specify the implementation details of my class. As an example, suppose I wanted to create a base class named Car and then allow client programs to implement ...
552 byte By
dzouzaa at 2007-10-3 9:12:18
I have an interface defined and I want few classes to implement this particular interface. All of these classes need to implement all the methods declared in the interface. The problem is few classes need same parameters and few classes need more parameters and few need less parameters. But the ...
Hi,What are the things that we have to consider when developing a software for different clients.For example if we have clients such as mobile phones, web and desktop.Should I make them call an ejb, web service or some other service.Can u plz guide me on the area's that I have to learn or are ...
2450 byte By
jdupreza at 2007-10-3 9:31:56
Hello,several questions in one, really. They assume familiarity with Swing's Model classes, but are hopefully more general.Swing's JTable widget displays data found in an instance of a class implementing TableModel. Swing provides a default implementation (a Vector of Vector), but I find it ...
520 byte By
Alex76a at 2007-10-3 9:45:01
The company I work for is about to design a system for a bank. This system will be used by office clerks to help their daily works. For example they can handle bank accounts, credit cards, credit products, loans, client data, stuffs like this. It's a kind of accountant system.As I don't want ...
Singleton PatternThe Singleton Pattern is one of the commonly used design templates when there needs to be a control on how an object can be created. This design pattern proposes that at any time there can only be one instance of a singleton (object) created by the JVM. The Singleton class抯 ...
Hi guys,I have the following info (db):department (dep_id, name, description)empl(empl_id, dep_id, name)invoice (inv_id, dep_id, description)....question is this: say I would like to delete the department (which include the empl as well). What is the best way to do that?obviously, I can do ...
Hi,We have a requirement and i am working towards a good implementation design. I appreciate your inputs.We are J2EE web application serving on https. We have a requirement to accept documents from our clients (file uploads). We expect some of our clients to have a low bandwidth connections but ...
2810 byte By
Meirya at 2007-10-3 9:51:05
Hello allim not sure if the topic is right but what im trying to do is goes like this :i have Custom Data Structure this custom data structure have basic methods and have no logic some thing like this : public class MyStruct {protected int i ;protected String j ; public MyStruct(){this.i = ...
Hi All,I'm looking to see if there is any literature of OO models for batch processing and optimising of batch java.Thoughts & comments welcome.........I have an existing batch process running on a mainframe which is very successful. We would like to leverage this by building a similar ...
I need to manipulate references to two subclasses (let's call them Guitar and Bass, derived from Instrument). I thought about coding Instrument as an interface, but I have a problem.I have fields in Guitar and Bass (lets call them brand and price) that I would like to access without having to ...
Dear all,Im not sure that I post this question in the right section.I would like to develope my own application to search pattern from DB2.Almost of this task is Thread Problem.I would like you comment on how can make search engine usefulladv thx
Hi there,help is very needed here as I don't know what pattern to use? (newbie)here's the deal: I have an empl that have the following information:1. account (id, first, name,...)2. projects (id, name of project, duration...)3. account_info (login_name, lastloged...)etcwhen the empl logs in, ...
1136 byte By
a3cchana at 2007-10-3 10:39:02
Hallo,how would you write function from example below using UML notation on implementation level, please:class Coin { public String[] getSideNames() {return new String{ "Odd", "Even" }; }}Multiplicity in return value is troubling me. I've tried +getSideNames( ) : String [ 2 ] but my tool just ...
I'm currently tasked with rewriting a legacy DB app in Java. The original was written in Delphi. It worked great for a number of years, but the powers that be have recently decided to redesign and rewrite it in Java. Basically I just have the same set of business requirements as the original ...
Hi, I am currently developing a online system that has front end and back end server. The front end server will send a request to back end thru web service. THe request header contains some critical Transfer objects like Bank Account, Customer Account....etc. ALl of them extends the super class ...
Hi all,I'd like to implement the Value List handler Pattern for displaying result of a search.Basically the Collection is made of 2 elementsTravelDepartures which holds a Collection of Itinerariesand TravelReturns which holds a Collection of Itineraries too.What is the correct way to implement ...
Hi,I have been struggling quite some time now with a certain DAO/DTO question.I have been looking all over the web but found no satisfying answer. What I did find was a forum post which formulates my question exactly:Where does your DAO/DTO implementation draw the line?For example:Let's say I ...
http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.htmlThe URL given is Sun's writeup on the Transfer Object pattern. If I understand it correctly, it recommends copying data from persistent entity objects to POJOs that can be passed to the presentation layer.It seems like ...
I have made a MVC system (front-end only); a link call the url: ?page=createSomething to the FrontController, that is implemented as a Servlet, and then dispatch to createSomething.jsp. That抯 all fine, but I need to retrieve 2-3 list to use in dropdowns, and that抯 here I give up!A simple ...
2921 byte By
sri1025a at 2007-10-3 11:08:02
I have a client/server application in which the client sends a request (in the form of xml) and the expects a response to come back from the server for that particular request.Let's say the client sends a "login" request to the server, then it expects a "login" response. This part is very ...
Do current J2EE best practices provide for complete separation of client data from the business model? Typically, any significant change to data used at or by the client will result in changes to the data model and vise versa. This necessitates changing all of the logic and beans that touch ...
1787 byte By
dave123a at 2007-10-3 11:20:55
Hi All,i'll directly come to the problem.i've one class name VoterListCallBack -class VoterListCallback implements ListFieldCallback {private Vector listElements = new Vector();public VoterListCallback(boolean show, String userType){}public void drawListRow(ListField list, Graphics g, int ...
791 byte By
Zjga at 2007-10-3 11:31:42
Hi,I have a design problem with two classes, just say class A and class B. The relationship of A and B is 1:n, which means one A object can hold many B objects. It is a aggregation not a composition, so one B object can be hold by different A objects. Both A and B are entity classes. Here is ...
Hi all !I'm modelling an application for selling tickets on-line.Tickets are booked on-line then the user navigates to the payment page and pays with credit card.The business analyst decided to allow a 30 minutes reservation time for people who booked the ticket to pay with credit card.If time ...
Hi,Under what circumstances should we provide physical separation of different layers such as presentation, business logic?Does it make sense to keep the presentation layer in a web server (tomcat) and the business logic layer in an application server (glassfish, jboss)?Or should everything ...
This is more of a "Look what I wrote and make any general comments" kind of post. I will reward thoughtful comments with Dukes (even though nobody cares about them).Let's say I have two entity classes, Person and Address. For the sake of this discussion, let's assume the relationship is ...
Hi,I always had this concern about accessing session beans located in a remote app server.EJB uses rmi-iiop for networking and as such the end user cannot have precise control over the ports opened to communicate with the remote beans.Yes, with patterns like business delegate and session ...
3089 byte By
sri1025a at 2007-11-26 12:41:57
Many good-programming-practice-related books say that the parameter to a method should be declared final.For ex, like this:public void foo(final int bar) {}The argument those books defend is that, what if you change the variable somewhere in the middle and you want the original value that ...
913 byte By
dave123a at 2007-11-26 12:47:26
Hi All,i'm accessing data from the server through HttpConnection to Blackberry mobile unit in the following format -| 123 | abc | newyork | xxxx | 111 | dfgr |....|....|....|...............| 234 | aaa | rock | gggg |... ....| ..... | .......each pipe separated data elements represents a ...
Hi All,I have the following scenario and wondering if Command design pattern would be a solution and looking for your valuable advice.The application I am working on is a three tier application with front end Swing, middile tier application server and back end RDBMS.As the user makes changes in ...
214 byte By
ashexa at 2007-11-26 13:01:59
Hi guys,I want to start learn j2ee design pattern , i browsed net but not got any significant point from where i can start. could anybody suggest me from where should i start .Thanks in advance
1332 byte By
jfreebsda at 2007-11-26 13:04:05
A singleton facade is built. Its init() method loads several "tree model configs", each of them referenced by a name.This singleton creates a Project instance for a given "tree model config" calling the facade method -> createProject(String pjrName, String modelConfigName)When the Project is ...
Hello All,I have a question as to the best design for some DAO objects that I need to decouple and I'm not sure the best way to do this. The problem is the objects are very tightly coupled together throughout the code and jsp's and I need to separate them out for easier maintenance.The data ...
I have a situation where several classes are of the same "type", but they each have different behavior. They don't really share enough of the same functionality to have a heirarchy, but I would like to be able to treat them as the same type as they will be stored together. Here's an analogy, ...
2633 byte By
a3cchana at 2007-11-26 13:17:00
Hallo pattern-lovers,I have troubles finding design pattern that covers relation between Televion and Doodle in following example. Example:Purpose: Offer only read only methods of given object.// Commonality between Doodle and Television// Not neccessary for example, but good practice ...
16970 byte By
gewittera at 2007-11-26 13:26:53
Hello everyone,Implementing an autofill feature for JTextField raised several design issues, and I would like some help.First, source code, demo and a diagram can be found on my JRoller entry: http://www.jroller.com/page/handcream?entry=refactoring_challenge_autocomplete_jtextfieldMost ...
3606 byte By
vj_makera at 2007-11-26 13:40:21
I have a situation where first we are fecthing some ids(list of say version ids using hibernate form database) then keeping those list of data in a Pager Object(Paging mechanism displays 100 rows per page out of complete sa 100 or so.)This pager class does two things one takes whole list of ids ...