net.sourceforge.squirrel_sql.plugins.sqlscript.prefs
Class SQLScriptPreferenceBean

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.sqlscript.prefs.SQLScriptPreferenceBean
All Implemented Interfaces:
Serializable, Cloneable

public class SQLScriptPreferenceBean
extends Object
implements Cloneable, Serializable

A bean class to store preferences for the SQLScript plugin.

See Also:
Serialized Form

Field Summary
static int CASCADE_DELETE
           
static String ESCAPE_NEW_LINE_STRING_DEFAULT
           
static int NO_ACTION
           
static int SET_DEFAULT
           
static int SET_NULL
           
 
Constructor Summary
SQLScriptPreferenceBean()
           
 
Method Summary
 Object clone()
          Return a copy of this object.
 String getClientName()
          Retrieve the client to use.
 String getClientVersion()
          Retrieve the client version to use.
 int getDeleteAction()
           
 String getEscapeNewLineString()
           
 String getRefActionByType(int type)
           
 int getUpdateAction()
           
 boolean isDeleteRefAction()
           
 boolean isEscapeNewLine()
           
 boolean isQualifyTableNames()
          Returns a boolean value indicating whether or not to qualify table names with the schema when generating scripts
 boolean isUpdateRefAction()
           
 boolean isUseDoubleQuotes()
           
 void setClientName(String value)
          Set the client name.
 void setClientVersion(String value)
          Set the client version.
 void setDeleteAction(int action)
           
 void setDeleteRefAction(boolean deleteRefAction)
           
 void setEscapeNewLine(boolean escapeNewLine)
           
 void setEscapeNewLineString(String escapeNewLineString)
           
 void setQualifyTableNames(boolean qualifyTableNames)
          Sets whether or not to qualify table names with the schema when generating scripts
 void setUpdateAction(int updateAction)
           
 void setUpdateRefAction(boolean updateRefAction)
           
 void setUseDoubleQuotes(boolean b)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ACTION

public static final int NO_ACTION
See Also:
Constant Field Values

CASCADE_DELETE

public static final int CASCADE_DELETE
See Also:
Constant Field Values

SET_DEFAULT

public static final int SET_DEFAULT
See Also:
Constant Field Values

SET_NULL

public static final int SET_NULL
See Also:
Constant Field Values

ESCAPE_NEW_LINE_STRING_DEFAULT

public static final String ESCAPE_NEW_LINE_STRING_DEFAULT
See Also:
Constant Field Values
Constructor Detail

SQLScriptPreferenceBean

public SQLScriptPreferenceBean()
Method Detail

clone

public Object clone()
Return a copy of this object.

Overrides:
clone in class Object

getClientName

public String getClientName()
Retrieve the client to use. This is only used if useAnonymousClient is false.

Returns:
Client name.

setClientName

public void setClientName(String value)
Set the client name.

Parameters:
value - Client name

getClientVersion

public String getClientVersion()
Retrieve the client version to use. This is only used if useAnonymousLogon is false.

Returns:
Client version.

setClientVersion

public void setClientVersion(String value)
Set the client version.

Parameters:
value - Client version

setQualifyTableNames

public void setQualifyTableNames(boolean qualifyTableNames)
Sets whether or not to qualify table names with the schema when generating scripts

Parameters:
qualifyTableNames - a boolean value

isQualifyTableNames

public boolean isQualifyTableNames()
Returns a boolean value indicating whether or not to qualify table names with the schema when generating scripts

Returns:
Returns the value of qualifyTableNames.

setDeleteRefAction

public void setDeleteRefAction(boolean deleteRefAction)

isDeleteRefAction

public boolean isDeleteRefAction()

setDeleteAction

public void setDeleteAction(int action)

getDeleteAction

public int getDeleteAction()

setUpdateAction

public void setUpdateAction(int updateAction)

getUpdateAction

public int getUpdateAction()

setUpdateRefAction

public void setUpdateRefAction(boolean updateRefAction)

isUpdateRefAction

public boolean isUpdateRefAction()

getRefActionByType

public String getRefActionByType(int type)

isUseDoubleQuotes

public boolean isUseDoubleQuotes()

setUseDoubleQuotes

public void setUseDoubleQuotes(boolean b)

isEscapeNewLine

public boolean isEscapeNewLine()

setEscapeNewLine

public void setEscapeNewLine(boolean escapeNewLine)

setEscapeNewLineString

public void setEscapeNewLineString(String escapeNewLineString)

getEscapeNewLineString

public String getEscapeNewLineString()


Copyright © 2001-2011. All Rights Reserved.