org.aris.hldb
Class Common

java.lang.Object
  extended by org.aris.hldb.Common

public class Common
extends java.lang.Object

Common stuff for this package.

Version:
1.0
Author:
Konstantine Kougios

Constructor Summary
Common()
           
 
Method Summary
static java.lang.String getSP_Prefix()
          returns the prefix used to create stored procedures
static java.lang.String gline(java.io.BufferedReader f)
          Utility function.
static boolean isCreateSPs()
           
static boolean isDebug()
           
static void setCreateSPs(boolean createSPs)
          Defines if stored procedures will be created when parsing .sql files.
static void setDebug(boolean debug)
           
static void setSP_Prefix(java.lang.String prefix)
          Sets the prefix with which stored procedure names will be created.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Common

public Common()
Method Detail

isDebug

public static boolean isDebug()

setDebug

public static void setDebug(boolean debug)

getSP_Prefix

public static java.lang.String getSP_Prefix()
returns the prefix used to create stored procedures

Returns:
SP prefix

setSP_Prefix

public static void setSP_Prefix(java.lang.String prefix)
Sets the prefix with which stored procedure names will be created.

Parameters:
prefix - The prefix.

gline

public static java.lang.String gline(java.io.BufferedReader f)
                              throws java.io.IOException
Utility function. Reads a "usefull" line from a file ( # comments are ignored)

Parameters:
f - The stream
Returns:
The usefull line
Throws:
java.io.IOException - -

isCreateSPs

public static boolean isCreateSPs()
Returns:
true if stored procedures will be created when parsing .sql files.

setCreateSPs

public static void setCreateSPs(boolean createSPs)
Defines if stored procedures will be created when parsing .sql files.

Parameters:
createSPs - Set to true in order to create stored procedures.