public class SybaseDriver extends MsSqlDriver
| Modifier and Type | Field and Description |
|---|---|
static String |
BEGIN
The BEGIN sql.
|
static String |
BEGIN_SPLITED
The BEGIN_SPLITED sql.
|
static String |
DECLARE
The DECLARE sql.
|
static String |
END
The END sql.
|
static String |
END_SPLITED
The END_SPLITED sql.
|
static String |
INIT_SQL
The Constant INIT sql.
|
static int |
LINES_LIMIT
The maximum number of lines allowed in the sql block.
|
static int |
MAX_CHAR_SIZE
The maximum char size.
|
static int |
MAX_NUMBER_PREC_SIZE
The maximum precision.
|
static int |
MAX_NUMBER_SCALE_SIZE
The maximum scale.
|
static int |
MAX_STRING_LITERAL_SIZE
The maximum string literal size.
|
static int |
MAX_VARCHAR_SIZE
The maximum varchar size.
|
static String |
SYBASE_HOME_PROP
The SYBASE client HOME property.
|
static String |
SYBASE_HOME_VAR
The SYBASE client HOME variable.
|
EXCEPTIONS, IF, IF_BEGIN, IF_ELSE, IF_END, MSSQL_HOME_PROP, MSSQL_HOME_VAR, ON_EXCEPTION, ON_EXCEPTION_BEGIN, ON_EXCEPTION_ENDALLOWED_IDENT_CHARSBASE_CLASS_PATH, CASE_SENSITIVE_LOWER, CASE_SENSITIVE_LOWER_STR, CASE_SENSITIVE_UNDEFINED, CASE_SENSITIVE_UPPER, CASE_SENSITIVE_UPPER_STR, CMD_OPTIONS_PARAM, DB_PARAM, DDL_TYPE, ETL_CODE, FUNC_TYPE, PROC_TYPE, SERVER_PARAM, TABLE_TYPEAPP, COMMAND, ETL_DRIVER, FORMATTER, IDE_NODE, NO_RANK, WIDGET| Constructor and Description |
|---|
SybaseDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
_getInitSql()
Gets init sql.
|
protected int |
_getLinesLimit()
Gets lines limit.
|
protected int |
_getMaxCharSize()
Gets max char size.
|
protected int |
_getMaxPrecision()
Gets max precision.
|
protected int |
_getMaxScale()
Gets the max scale.
|
protected int |
_getMaxStringLiteralSize()
Gets the max string literal size.
|
protected int |
_getMaxVarcharSize()
Gets the max varchar size.
|
String |
getBegin()
Gets the "begin" sql statement.
|
String |
getBeginSplited()
Gets the "begin" token for splited sql.
|
String |
getCallSql(String name)
Gets the "call" sql.
|
String |
getCmdForExternalTool(ObjectStorage storage,
Alias alias,
String sqlFile)
Gets the command line for the external tool.
|
String |
getCreateTableSql(String name,
DataSet dataSet,
boolean isTemporary,
String key,
FieldsRepository fieldsRepository)
Gets the "create table" sql.
|
String |
getCursorLoopEndSql(String name,
DataSet dataSet)
Gets the "loop end" sql for the cursor.
|
String |
getCursorLoopStartSql(String name,
String cursorSql,
DataSet dataSet)
Gets the "loop start" sql for the cursor.
|
protected String |
getDateTimeStyle()
Gets the date+time style.
|
static String |
getDbName(Alias alias)
Gets the database name.
|
String |
getDeclare()
Gets the "declare" sql.
|
String |
getDeclareCursorSql(String sql,
String name,
String cursorSql,
DataSet dataSet)
Gets the "declare cursor" sql.
|
String |
getDefaultFunctionClass()
Gets the default function class name.
|
String |
getDefaultNull()
Gets the "default null" value.
|
String |
getDelimiter()
Gets the default delimiter.
|
String |
getEnd()
Gets the "end" sql.
|
String |
getEndSplited()
Gets the "end" token for the splited sql statement.
|
Object |
getExplainPlan(ObjectStorage storage,
Connection connection,
Alias alias,
String sql)
Gets the explain plan for the sql.
|
String |
getExternalToolName()
Gets the external tool name.
|
String |
getHome(ObjectStorage storage)
Gets the home folder for the native database client.
|
String |
getIconPath()
Gets the full path to the icon file.
|
String |
getJdbcDriverClassName()
Gets the jdbc driver class name.
|
String |
getLicensePropertyName()
Gets the name of the license property.
|
String |
getMetadataClassName()
Gets the metadata driver class name.
|
String |
getName()
Gets the name of the driver.
|
String |
getObjectCheckSql(String name)
Gets the sql used to check if object exists.
|
String |
getOnException(OnException onException)
Gets the "on exception" sql.
|
String |
getOnExceptionBegin(OnException onException,
long row)
Gets the "on exception begin" sql.
|
String |
getOnExceptionEnd()
Gets the "on exception end" sql.
|
String[] |
getProperties()
Gets the properties.
|
String |
getPropsWizardResource(String connectionDriver)
Gets the name of the xml file used to create a wizard for editing
properties.
|
String |
getSafeSql(String sql)
Gets the safe sql.
|
static String |
getServer(Alias alias)
Gets the server name.
|
String |
getSqlForExternalTool(Alias alias,
String sql,
SqlParser parser)
Gets the sql for external tool.
|
String |
getSqlKeywordsFileName()
Gets the sql keywords file name.
|
String |
getTempTableName(String name)
Gets the temporary table name.
|
String |
getType(FieldDef fieldDef,
String key,
FieldsRepository fieldsRepository)
Gets the native field type.
|
String |
getUrlPattern()
Gets the jdbc driver url pattern.
|
String |
getVendor()
Gets the vendor.
|
String |
getVersion()
Gets the version of the extension module.
|
String |
getXmlConfigFileName()
Gets the path to the xml configuration file for the module.
|
boolean |
needSeparateConnectionForDdl()
Check if driver requires separate connection for ddl statements.
|
boolean |
requiresExecuteQuery()
Checks if driver requires to run as st.executeQuery() in some cases.
|
boolean |
requiresSeparateConnectionForIndexes()
Checks if driver requires separate connection for indexes.
|
boolean |
supportsAnonymousBlocks()
"Supports anonymous blocks" flag.
|
boolean |
supportsRollbackAfterDDL()
"Supports rollback after ddl" flag.
|
boolean |
typeHasSize(int type,
String nativeDataType)
Returns
true if type has size. |
convertStringForStorage, convertValueForStorage, getAddColumnSql, getAutotrace, getCursorRecAccessSql, getCursorVarName, getDeclareCursorEndSql, getDeclareCursorVarSql, getDefaultType, getDropSql, getFetchNextSql, getIf, getIfBegin, getIfElse, getIfEnd, getMergeStatement, getMetadataSelectClause, getMetadataWhereClause, getObject, getParamType, getSafeDelimiter, getServer, getTopSelectClause, getTopTrailClause, getTopWhereClause, getVarDeclare, getVarName, ignoreExceptionsDuringInit, isMergeInNonCallableSupported, supportedJoinTypes, supportedSetOperations, supportsAutotrace, supportsBinaryInProc, supportsCallableStatement, supportsExplainPlan, supportsExternalTool, supportsInnerFunctions, supportsParamsInAnonymousBlocksdeleteStagingBinary, getBlob, getCharUsedForColumnsWithSpaces, getClob, getDestinationInfo, getInitSql, getLinesLimit, getMaxCharSize, getMaxPrecision, getMaxScale, getMaxStringLiteralSize, getMaxVarcharSize, getParentDriverName, getWrongScale, replaceOnException, setBlob, setClob, setInitSql, setLinesLimit, setMaxCharSize, setMaxPrecision, setMaxScale, setMaxStringLiteralSize, setMaxVarcharSize, setParentDriverName, supportsIndexes, supportsScripts, updateStagingBlob, updateStagingClob, value2StorageValuealwaysEncloseTableAndColumnsInQuotes, captureLog, compareTo, externalToolRequiresRedirect, filter, getAllowedIdentifierChars, getAlterTableAddColumnSql, getAlterTableAddColumnSql, getCaseSensitive, getCmdOptions, getColumns, getConfigFileName, getConnectionFile, getDeleteStatement, getDisplayName, getErrorLinePattern, getExtensionRank, getIdentifierName, getIdentifierName, getInsertStatement, getLocalUnitClassPath, getNativeType, getParentDriver, getPostDeclareSql, getSelectStatement, getSqlForAutotrace, getSqlForExplainPlan, getStartTransactionSql, getStringFieldSizeMultiplier, getTableName, getTablePrefixWhenAddingTable, getType, getUpdateStatement, isEqualDriver, requiresRollbackAfterSqlError, setAlwaysEncloseTableAndColumnsInQuotes, setCaseSensitive, setStringFieldSizeMultiplier, setUpConnection, supportColonInFormatter, supportsLogging, supportsNotNullable, supportsParallelExtract, supportsParallelLoad, supportsParentDriver, supportsPreparedStatement, supportsPreparedStatementInParallelThreads, supportsPreparedStatementInTransaction, tableName2Nameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisableMetadataOnWrite, getIoProcessorClassName, getPrecision, ifDoesNotExistSql, ifExistsSql, openCloseConnectionOnDdl, requiresSemicolonInMergepublic static final String SYBASE_HOME_VAR
public static final String SYBASE_HOME_PROP
public static int MAX_STRING_LITERAL_SIZE
public static int MAX_VARCHAR_SIZE
public static int LINES_LIMIT
public static int MAX_CHAR_SIZE
public static int MAX_NUMBER_PREC_SIZE
public static int MAX_NUMBER_SCALE_SIZE
public static final String INIT_SQL
public static final String DECLARE
public static final String BEGIN
public static final String BEGIN_SPLITED
public static final String END
public static final String END_SPLITED
public static String getDbName(Alias alias)
alias - the aliaspublic static String getServer(Alias alias)
alias - the aliasprotected String _getInitSql()
CallableDriver_getInitSql in class MsSqlDriverprotected int _getLinesLimit()
CallableDriver_getLinesLimit in class MsSqlDriverprotected int _getMaxCharSize()
CallableDriver_getMaxCharSize in class MsSqlDriverprotected int _getMaxPrecision()
CallableDriver_getMaxPrecision in class MsSqlDriverprotected int _getMaxScale()
CallableDriver_getMaxScale in class MsSqlDriverprotected int _getMaxStringLiteralSize()
CallableDriver_getMaxStringLiteralSize in class MsSqlDriverprotected int _getMaxVarcharSize()
CallableDriver_getMaxVarcharSize in class MsSqlDriverpublic String getBegin()
DrivergetBegin in interface DrivergetBegin in class MsSqlDriverpublic String getBeginSplited()
DrivergetBeginSplited in interface DrivergetBeginSplited in class MsSqlDriverpublic String getCallSql(String name)
DrivergetCallSql in interface DrivergetCallSql in class MsSqlDrivername - the name of the procedurepublic String getCmdForExternalTool(ObjectStorage storage, Alias alias, String sqlFile)
DrivergetCmdForExternalTool in interface DrivergetCmdForExternalTool in class MsSqlDriverstorage - the object storagealias - the aliassqlFile - the sql fileObjectStoragepublic String getCreateTableSql(String name,
DataSet dataSet,
boolean isTemporary,
String key,
FieldsRepository fieldsRepository)
DrivergetCreateTableSql in interface DrivergetCreateTableSql in class MsSqlDrivername - the table namedataSet - the data setisTemporary - if true the table is temporarykey - the key field(s)fieldsRepository - the fields repositoryFieldsRepositorypublic String getCursorLoopEndSql(String name,
DataSet dataSet)
DrivergetCursorLoopEndSql in interface DrivergetCursorLoopEndSql in class MsSqlDrivername - the name of the cusrordataSet - the data setpublic String getCursorLoopStartSql(String name,
String cursorSql,
DataSet dataSet)
DrivergetCursorLoopStartSql in interface DrivergetCursorLoopStartSql in class MsSqlDrivername - the name of the cursorcursorSql - the cursor sqldataSet - the data setprotected String getDateTimeStyle()
MsSqlDrivergetDateTimeStyle in class MsSqlDriverpublic String getDeclare()
DrivergetDeclare in interface DrivergetDeclare in class MsSqlDriverpublic String getDeclareCursorSql(String sql,
String name,
String cursorSql,
DataSet dataSet)
DrivergetDeclareCursorSql in interface DrivergetDeclareCursorSql in class MsSqlDriversql - the sqlname - the name of the cursorcursorSql - the cursor sqldataSet - the data setpublic String getDefaultFunctionClass()
DrivergetDefaultFunctionClass in interface DrivergetDefaultFunctionClass in class MsSqlDriverFunctionpublic String getDefaultNull()
DrivergetDefaultNull in interface DrivergetDefaultNull in class AbstractDriverpublic String getDelimiter()
DrivergetDelimiter in interface DrivergetDelimiter in class AbstractDriverpublic String getEnd()
DrivergetEnd in interface DrivergetEnd in class MsSqlDriverpublic String getEndSplited()
DrivergetEndSplited in interface DrivergetEndSplited in class MsSqlDriverpublic Object getExplainPlan(ObjectStorage storage, Connection connection, Alias alias, String sql)
DrivergetExplainPlan in interface DrivergetExplainPlan in class MsSqlDriverstorage - the object storageconnection - the connectionalias - the aliassql - the sqlObjectStoragepublic String getExternalToolName()
DrivergetExternalToolName in interface DrivergetExternalToolName in class MsSqlDriverpublic String getHome(ObjectStorage storage)
DrivergetHome in interface DrivergetHome in class MsSqlDriverstorage - the object storageObjectStoragepublic String getIconPath()
ExtensionModulegetIconPath in interface ExtensionModulegetIconPath in class MsSqlDriverpublic String getJdbcDriverClassName()
DrivergetJdbcDriverClassName in interface DrivergetJdbcDriverClassName in class MsSqlDriverpublic String getLicensePropertyName()
ExtensionModulegetLicensePropertyName in interface ExtensionModulegetLicensePropertyName in class MsSqlDriverpublic String getMetadataClassName()
DrivergetMetadataClassName in interface DrivergetMetadataClassName in class MsSqlDriverpublic String getName()
DrivergetName in interface DrivergetName in class MsSqlDriverpublic String getObjectCheckSql(String name)
DrivergetObjectCheckSql in interface DrivergetObjectCheckSql in class AbstractDrivername - the namepublic String getOnException(OnException onException)
DrivergetOnException in interface DrivergetOnException in class MsSqlDriveronException - the OnExceptionOnExceptionpublic String getOnExceptionBegin(OnException onException, long row)
DrivergetOnExceptionBegin in interface DrivergetOnExceptionBegin in class MsSqlDriveronException - the OnExceptionrow - the rowOnExceptionpublic String getOnExceptionEnd()
DrivergetOnExceptionEnd in interface DrivergetOnExceptionEnd in class MsSqlDriverpublic String[] getProperties()
DrivergetProperties in interface DrivergetProperties in class MsSqlDriverpublic String getPropsWizardResource(String connectionDriver)
DrivergetPropsWizardResource in interface DrivergetPropsWizardResource in class MsSqlDriverconnectionDriver - the connection driverpublic String getSafeSql(String sql)
DriverFor example table abc does not exist delete from abc -- not safe EXECUTE IMMEDIATE 'delete from abc' -- safe
getSafeSql in interface DrivergetSafeSql in class MsSqlDriversql - the namepublic String getSqlForExternalTool(Alias alias, String sql, SqlParser parser)
DrivergetSqlForExternalTool in interface DrivergetSqlForExternalTool in class MsSqlDriveralias - the aliassql - the original sqlparser - the sql parserpublic String getSqlKeywordsFileName()
DrivergetSqlKeywordsFileName in interface DrivergetSqlKeywordsFileName in class MsSqlDriverpublic String getTempTableName(String name)
DrivergetTempTableName in interface DrivergetTempTableName in class MsSqlDrivername - the namepublic String getType(FieldDef fieldDef, String key, FieldsRepository fieldsRepository)
DrivergetType in interface DrivergetType in class MsSqlDriverfieldDef - the field definitionkey - the key field(s)fieldsRepository - the fields repositorypublic String getUrlPattern()
DrivergetUrlPattern in interface DrivergetUrlPattern in class MsSqlDriverpublic String getVendor()
ExtensionModulegetVendor in interface ExtensionModulegetVendor in class MsSqlDriverpublic String getVersion()
ExtensionModulegetVersion in interface ExtensionModulegetVersion in class MsSqlDriverpublic String getXmlConfigFileName()
ExtensionModulegetXmlConfigFileName in interface ExtensionModulegetXmlConfigFileName in class MsSqlDriverpublic boolean needSeparateConnectionForDdl()
DriverneedSeparateConnectionForDdl in interface DriverneedSeparateConnectionForDdl in class AbstractDriverpublic boolean requiresExecuteQuery()
DriverrequiresExecuteQuery in interface DriverrequiresExecuteQuery in class AbstractDriverpublic boolean requiresSeparateConnectionForIndexes()
DriverrequiresSeparateConnectionForIndexes in interface DriverrequiresSeparateConnectionForIndexes in class AbstractDriverpublic boolean supportsAnonymousBlocks()
DriversupportsAnonymousBlocks in interface DriversupportsAnonymousBlocks in class MsSqlDriverpublic boolean supportsRollbackAfterDDL()
DriversupportsRollbackAfterDDL in interface DriversupportsRollbackAfterDDL in class MsSqlDriverpublic boolean typeHasSize(int type,
String nativeDataType)
Drivertrue if type has size. For example:
Types.VARCHAR has size, Types.INTEGER - doesn't.typeHasSize in interface DrivertypeHasSize in class AbstractDrivertype - the type TypesnativeDataType - the natice data typeCopyright © 2010-2020 Toolsverse. All Rights Reserved.