net.sf.saxon.option.sql

Class SQLConnect

public class SQLConnect extends ExtensionInstruction

An sql:connect element in the stylesheet.
Field Summary
Expressiondatabase
Expressiondriver
Expressionpassword
Expressionuser
Method Summary
Expressioncompile(Executable exec)
booleanmayContainSequenceConstructor()
voidprepareAttributes()
static StringquoteSqlName(String name)
Utility method to quote a SQL table or column name if it needs quoting.
voidvalidate()

Field Detail

database

Expression database

driver

Expression driver

password

Expression password

user

Expression user

Method Detail

compile

public Expression compile(Executable exec)

mayContainSequenceConstructor

public boolean mayContainSequenceConstructor()

prepareAttributes

public void prepareAttributes()

quoteSqlName

public static String quoteSqlName(String name)
Utility method to quote a SQL table or column name if it needs quoting.

Parameters: name the supplied name

Returns: the supplied name, enclosed in double quotes if it does not satisfy the pattern [A-Za-z_][A-Za-z0-9_]*, with any double quotes replaced by two double quotes

validate

public void validate()