net.sourceforge.squirrel_sql.plugins.sqlscript.table_script
Class ScriptUtil

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.sqlscript.table_script.ScriptUtil

public class ScriptUtil
extends Object


Constructor Summary
ScriptUtil()
           
 
Method Summary
 String getColumnDef(String sColumnName, String sType, int columnSize, int decimalDigits)
          This method provides unique column names.
static String getStatementSeparator(ISession session)
           
static String getTableName(ITableInfo ti)
          Use specified preferences to decide whether or not to "qualify" the specified table with it's schema/catalog.
 String makeColumnNameUnique(String sColumnName)
          This method provides unique column names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptUtil

public ScriptUtil()
Method Detail

getColumnDef

public String getColumnDef(String sColumnName,
                           String sType,
                           int columnSize,
                           int decimalDigits)
This method provides unique column names. Use a new instance of this class for every meta data result set


makeColumnNameUnique

public String makeColumnNameUnique(String sColumnName)
This method provides unique column names. Use a new instance of this class for every meta data result set.


getStatementSeparator

public static String getStatementSeparator(ISession session)

getTableName

public static String getTableName(ITableInfo ti)
Use specified preferences to decide whether or not to "qualify" the specified table with it's schema/catalog. If schema is not available then catalog will be used. If neither is available, then only the table name will be used.

Parameters:
prefs -
ti -
Returns:


Copyright © 2001-2011. All Rights Reserved.