tcf{tc}

Solutions for modern developers

Utilizing Triggers within DB2 Database

I have been recently challenged with implementing an enhancement to an existing Web application and a batch process. Similar to many applications that I encounter in my everyday professional life, this application is poorly written and lacks any basic documentation and source code comments. I have looked at the source code and tried to figure out where I should insert my code that satisfies the requirement. I also have attempted to review the batch processes that are written in Cobol. Then, it hit me-I should be using triggers. In this article, you will learn what triggers are, how they are defined, and when they are used.

Read the rest of this entry »

Build and Command objects - using Design Patterns

This article will deal with two often overlooked or underused design patterns: one creational Builder pattern and one a behavioral Command pattern. I will explore their application in the software architecture process, describe the purpose of these patterns, and show how they can be used in real-world Java projects.

Read the rest of this entry »

Manipulation of objects at the Model Layer in Java Swing before Data is put it the Model

In this article, I will show how to use Java Swing data models for components that accept user input, to automatically manipulate it before it is put in the model. In particular, I will cover the limitation of its input to predefined subsets of characters, memory management for large data sets, and filtering of the input data. All of the principles are based on the object inheritance and can be applied to any component that follows the MVC paradigm.

Read the rest of this entry »

Dynamic error message construction with Java Swing and Regex validation

Any type of Graphical User Interface (GUI) application, designed based on any functional requirement, will assume user interaction as part of its standard functionality. Therefore, almost all GUIs allow users to enter data and manipulate it. After the information is gathered from the user, it typically needs to be either stored, locally or remotely, or used in the application in real time. But, before doing something with the data, applications usually need to check it for correctness. In this article, I will concentrate on form validation and dynamic creation of notification messages in Java Swing GUI applications. I will also go over a few useful tips for GUI developers such as adding listeners to multiple components and using regular expressions for easy validations.

Read the rest of this entry »

Enterprise Web Services with Model-View-Controller (MVC) Architecture

In the previous article, "Developing Web Services with Borland JBuilder Enterprise and BEA WebLogic Server," I described how to create a simple Web service from an existing "legacy" code. I will build upon the simple project from that article and add MVC components to show my point. You should be familiar with how to create Web Services using some enterprise or free toolkit, such as Borland JBuilder and BEA WebLogic or Eclipse and Axis. Also, you should be familiar with MVC in general.

Read the rest of this entry »

10 Commandments for Java Developers

There are many standards and best practices for Java Developers out there. This article outlines ten most basic rules that every developer must adhere to and the disastrous outcomes that can follow if these rules are not followed.

Read the rest of this entry »

Developing Web Services with Borland JBuilder Enterprise and BEA WebLogic Server

In this article, I will explain how to create a simple Web service from an existing Java application using enterprise-level tools, such as JBuilder X or JBuilder 2005 Enterprise and BEA WebLogic Application Server. I will describe the structure, standards, and logic of a Web service and the platforms involved. To demonstrate a Web service in action, a project with a server and a client will be created. The client will initiate a real Web service session to the server. I will also briefly describe how to accomplish the same, by using freely available tools such as Eclipse IDE and Axis Toolkit.

Read the rest of this entry »

Creating interactive UI with Java Swing MVC architecture - part 2

In the first part of this article, I described fundamentals of how a Model-View-Controller design pattern is embedded within a Swing toolkit. In this article, I’ll show how to create a dynamically adjustable presentation of a corresponding model for a Swing Table UI component. The approach will also rely on inheritance, passing objects by reference, and event/listener mechanisms of the Java language. The final sample code will show a solution to the problem of real-time manipulation of a presentation without altering the model, or requesting data again on every user-invoked event. The technique can easily be adapted to any Swing component.

Read the rest of this entry »

mac picture software the