The Latest

DevX - Software Development Resource

How are transactions handled in OPO?

Question: How are transactions handled in OPO? Answer: Transactions are the core of multi-user data processing integrity. A transaction defines an all-or-none unit of work. The classic example of a

DevX - Software Development Resource

Column lengths

Question: Data field objects in OPO can accept any amount of data, but if I send too many characters to the server, I get an error “flushing the row to

DevX - Software Development Resource

Normalized Database: When to Split?

Question: We have several heavily-used tables with lots of columns (average around 30 columns), and the users are getting locked out frequently. We’ve thought about splitting the tables, but didn’t

DevX - Software Development Resource

Lock Conflicts

Question: Our system is experiencing several lock conflicts. We’ve got a consultantlooking at the details, but I was hoping you could explain what’s going onbehind the scenes when records are

DevX - Software Development Resource

Differences Between Join Types

Question: What are the differences between LEFT, RIGHT, INNER and OUTER JOINS? Answer: An INNER JOIN is the most common type: It combines all the data from the tables specified

DevX - Software Development Resource

Data Replication as a WAN Solution

Question: I have nine offices. I want each office to connect across aWAN and run client/server applications with all datacontained on one central server. However, we are finding the delays

DevX - Software Development Resource

BLOB Data Storage

Question: What are the advantages/disadvantages of putting large binary files (1+ MB) in BLOB columns versus storing them on a file server with a reference such as a directory/file spec

DevX - Software Development Resource

Checking for a lost connection

Question: I want to periodically check to see if a user’s database connection has been lost. How can I? Answer: First of all, a solution. You can implement periodic ‘polling’

DevX - Software Development Resource

Improving performance

Question: The repeater in my application seems to be very slow in populating. Is there anything I can do to improve its performance? Answer: Poor performance can be the result

DevX - Software Development Resource

Data Replication

Question: I’ve heard several of the arguments in favor of a server that supports datareplication. What are the potential problems? Answer: For our readers, the advantages of data replication [creating

DevX - Software Development Resource

repaint() and Consecutive Lines

Question: My applet draws lines. I click at the place where I want my line to start and then I click at the end of it. It draws a line

DevX - Software Development Resource

Writing a Factorial Method

Question: Can you help me complete the enclosed program? A “Factorial Method”must be written. /////// File: Factorial.java /////// class Factorial { /* put factorial method here */ public static void

DevX - Software Development Resource

Scanning for Words in a String

Question: I am currently writing an application to scan a text file for certain text keywords, and then copy the text (in between the kewords) into a new textfile. Could

DevX - Software Development Resource

‘Smart’ Painting

Question: It isn’t clear to me how to do ‘smart’ painting. For example, ifI want to paint only a portion of something, what should I do?There are paint/repaint methods that

DevX - Software Development Resource

Sending E-mail from Java Applet

Question: How do I send e-mail from Java? Do I have to open a socket to a specific port on my server (and if so, which port and what should

DevX - Software Development Resource

Button no longer closes a form. Is this a bug?

Question: I have a cancel pushbutton with the IsDismissBtn property set toTrue. When I first created the form, the push button dismissed theform. I added some code to prompt the

DevX - Software Development Resource

Converting from String to Integer or Float

Question: How can I convert a String type value to an integer or float?For example,String str=”155.230″;float real;real = str.HowCanIConvert???????; I’ve tried it like this:Integer aValue = new Integer(String.valueOf(“1”)); But this

DevX - Software Development Resource

Is this an Example of a Semantic Gap?

Question: I posted this question to Java newsgroups, but the response from experts avoids the real issue. Simple applet: import java.applet.*; import java.awt.*; public class FirstApplet extends Applet { public

DevX - Software Development Resource

Setting Cursor in Applet Code in Browser Window

Question: The AWT’s Frame class provides a setCursor method that allows me to set the cursor to one of the standard images (arrow, watch, etc.). The problem is I’m implementing

DevX - Software Development Resource

How Can Java Applet Display HTML?

Question: I believe there is a JavaScript function: ‘ShowDocument(URL,targetFrame)’ Is there a way to replicate this in Java? I realize that in the future the solution may materialize when a

DevX - Software Development Resource

Creating a Message Window

Question: I have a note section on my Web page. I would like to be ableto click a radio button, and a small window with the note inside it wouldpop