// *******************************************************************
// Copyright 2006-2008 iAnywhere Solutions, Inc. All rights reserved.
// *******************************************************************
package ianywhere.ultralitej.demo;
//import java.io.*;
import ianywhere.ultralitej.*;
//import ianywhere.ultralitej.implementation.*;
/**
* Demonstration class.
*
* <p>This class is not part of the Database library. It is used
* only by the demonstration programs.
*
* @author ianywhere
* @version 1.0
*/
public class Demo
{
/** Display a message.
* @param msg message to be displayed
*/
public static void display( String msg )
{
System.out.println( msg );
}
/** Display a message.
* @param msg1 message(1) to be displayed
* @param msg2 message(2) to be displayed
*/
public static void display( String msg1, String msg2 )
{
display( msg1 + msg2 );
}
/** Display a message.
* @param msg1 message(1) to be displayed
* @param msg2 message(2) to be displayed
* @param msg3 message(3) to be displayed
*/
public static void display( String msg1, String msg2, String msg3 )
{
display( msg1 + msg2 + msg3 );
}
/** Display a message.
* @param msg1 message(1) to be displayed
* @param msg2 message(2) to be displayed
* @param msg3 message(3) to be displayed
* @param msg4 message(4) to be displayed
*/
public static void display( String msg1, String msg2, String msg3, String msg4 )
{
display( msg1 + msg2 + msg3 + msg4 );
}
/** Display message for an exception.
* @param exc ULjException containing message
*/
public static void displayException( ULjException exc )
{
display( exc.getMessage() );
}
/** Display message for an exception.
* @param exc ULjException containing message
*/
public static void displayExceptionFull( ULjException exc )
{
display( exc.getMessage() );
}
}
|
|