public class ExcelOdbcDriver extends SimpleDriver
Modifier and Type | Field and Description |
---|---|
static String |
EXCEL_DATE_FORMAT
The EXCEL DATE FORMAT.
|
static String |
EXCEL_TIME_FORMAT
The EXCEL TIME FORMAT.
|
static String |
EXCEL_TIMESTAMP_FORMAT
The EXCEL TIMESTAMP FORMAT.
|
static int |
MAX_STRING_LITERAL_SIZE
The maximum string literal size.
|
DEF_FUNCTION_CLASS, END_ON_EXCEPTION, ON_EXCEPTION
ALLOWED_IDENT_CHARS
BASE_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_TYPE
APP, COMMAND, ETL_DRIVER, FORMATTER, IDE_NODE, NO_RANK, WIDGET
Constructor and Description |
---|
ExcelOdbcDriver() |
Modifier and Type | Method and Description |
---|---|
String |
convertValueForStorage(Object fieldValue,
int fieldType,
boolean isFromTable)
Converts value to string depending on
fieldType so it can be used as s part of 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.
|
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 |
getIconPath()
Gets the full path to the icon file.
|
String |
getJdbcDriverClassName()
Gets the jdbc driver class name.
|
int |
getMaxStringLiteralSize()
Gets the maximum string literal size.
|
String |
getMetadataClassName()
Gets the metadata driver class name.
|
String |
getName()
Gets the name of the driver.
|
String |
getPropsWizardResource(String connectionDriver)
Gets the name of the xml file used to create a wizard for editing properties.
|
String |
getSqlForExternalTool(Alias alias,
String sql,
SqlParser parser)
Gets the sql for external tool.
|
String |
getTableName(String name)
Gets the table name.
|
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.
|
String[] |
supportedJoinTypes()
Returns supported join types, such as inner join, left outer join etc.
|
String[] |
supportedSetOperations()
Returns names of the supported set operations, such as union, union all, etc.
|
boolean |
supportsNotNullable()
Checks is driver supports not nullable collumns.
|
boolean |
supportsParallelExtract()
"Supports parallel extract" flag.
|
boolean |
supportsParallelLoad()
"Supports parallel load" flag.
|
boolean |
supportsScripts()
If true the database supports extended sql, such as PLSQL, Transact SQL, etc.
|
String |
tableName2Name(String name)
Converts table name to name.
|
Object |
value2StorageValue(int fieldType,
Object value,
Map<String,String> params)
Converts value for storage.
|
convertStringForStorage, deleteStagingBinary, filter, getBegin, getBeginSplited, getBlob, getCallSql, getCharUsedForColumnsWithSpaces, getClob, getCursorLoopEndSql, getCursorLoopStartSql, getCursorRecAccessSql, getDeclare, getDeclareCursorEndSql, getDeclareCursorSql, getDeclareCursorVarSql, getDefaultFunctionClass, getDefaultType, getDelimiter, getDestinationInfo, getDropSql, getEnd, getEndSplited, getIf, getIfBegin, getIfElse, getIfEnd, getInitSql, getLinesLimit, getMaxCharSize, getMaxPrecision, getMaxScale, getMaxVarcharSize, getMergeStatement, getMetadataSelectClause, getMetadataWhereClause, getObject, getOnException, getOnExceptionBegin, getOnExceptionEnd, getParamType, getParentDriverName, getSafeDelimiter, getTempTableName, getTopSelectClause, getTopTrailClause, getTopWhereClause, getType, getVarDeclare, getVarName, getWrongScale, ignoreExceptionsDuringInit, isMergeInNonCallableSupported, needSeparateConnectionForDdl, replaceOnException, requiresRollbackAfterSqlError, setBlob, setClob, setInitSql, setLinesLimit, setMaxCharSize, setMaxPrecision, setMaxScale, setMaxStringLiteralSize, setMaxVarcharSize, setParentDriverName, supportsAnonymousBlocks, supportsBinaryInProc, supportsCallableStatement, supportsExplainPlan, supportsExternalTool, supportsInnerFunctions, supportsParamsInAnonymousBlocks, supportsRollbackAfterDDL, updateStagingBlob, updateStagingClob
alwaysEncloseTableAndColumnsInQuotes, captureLog, compareTo, externalToolRequiresRedirect, getAllowedIdentifierChars, getAutotrace, getCaseSensitive, getCmdOptions, getConfigFileName, getConnectionFile, getDefaultNull, getDeleteStatement, getDisplayName, getErrorLinePattern, getExtensionRank, getHome, getIdentifierName, getIdentifierName, getInsertStatement, getLicensePropertyName, getLocalUnitClassPath, getNativeType, getObjectCheckSql, getPostDeclareSql, getProperties, getSafeSql, getSelectStatement, getSqlForAutotrace, getSqlForExplainPlan, getSqlKeywordsFileName, getStartTransactionSql, getTablePrefixWhenAddingTable, getType, getUpdateStatement, isEqualDriver, requiresExecuteQuery, requiresSeparateConnectionForIndexes, setAlwaysEncloseTableAndColumnsInQuotes, setCaseSensitive, setUpConnection, supportColonInFormatter, supportsAutotrace, supportsLogging, supportsParentDriver, supportsPreparedStatementInParallelThreads, supportsPreparedStatementInTransaction, typeHasSize
public static final String EXCEL_TIMESTAMP_FORMAT
public static final String EXCEL_DATE_FORMAT
public static final String EXCEL_TIME_FORMAT
public static int MAX_STRING_LITERAL_SIZE
public String convertValueForStorage(Object fieldValue, int fieldType, boolean isFromTable)
Driver
fieldType
so it can be used as s part of sql.convertValueForStorage
in interface Driver
convertValueForStorage
in class SimpleDriver
fieldValue
- the field valuefieldType
- the field type Types
}isFromTable
- if true the value is coming from result set, otherwise - from the database cursorpublic String getCmdForExternalTool(ObjectStorage storage, Alias alias, String sqlFile)
Driver
storage
- the object storagealias
- the aliassqlFile
- the sql fileObjectStorage
public String getCreateTableSql(String name, DataSet dataSet, boolean isTemporary, String key, FieldsRepository fieldsRepository)
Driver
getCreateTableSql
in interface Driver
getCreateTableSql
in class SimpleDriver
name
- the table namedataSet
- the data setisTemporary
- if true the table is temporarykey
- the key field(s)fieldsRepository
- the fields repositoryFieldsRepository
public Object getExplainPlan(ObjectStorage storage, Connection connection, Alias alias, String sql)
Driver
storage
- the object storageconnection
- the connectionalias
- the aliassql
- the sqlObjectStorage
public String getExternalToolName()
Driver
public String getIconPath()
ExtensionModule
public String getJdbcDriverClassName()
Driver
public int getMaxStringLiteralSize()
Driver
getMaxStringLiteralSize
in interface Driver
getMaxStringLiteralSize
in class SimpleDriver
public String getMetadataClassName()
Driver
public String getName()
Driver
public String getPropsWizardResource(String connectionDriver)
Driver
connectionDriver
- the connection driverpublic String getSqlForExternalTool(Alias alias, String sql, SqlParser parser)
Driver
alias
- the aliassql
- the original sqlparser
- the sql parserpublic String getTableName(String name)
Driver
getTableName
in interface Driver
getTableName
in class AbstractDriver
name
- the namepublic String getUrlPattern()
Driver
public String getVendor()
ExtensionModule
public String getVersion()
ExtensionModule
public String getXmlConfigFileName()
ExtensionModule
public String[] supportedJoinTypes()
Driver
public String[] supportedSetOperations()
Driver
public boolean supportsNotNullable()
Driver
supportsNotNullable
in interface Driver
supportsNotNullable
in class AbstractDriver
public boolean supportsParallelExtract()
Driver
supportsParallelExtract
in interface Driver
supportsParallelExtract
in class AbstractDriver
public boolean supportsParallelLoad()
Driver
supportsParallelLoad
in interface Driver
supportsParallelLoad
in class AbstractDriver
public boolean supportsScripts()
Driver
public String tableName2Name(String name)
Driver
tableName2Name
in interface Driver
tableName2Name
in class AbstractDriver
name
- the table namepublic Object value2StorageValue(int fieldType, Object value, Map<String,String> params)
Driver
value2StorageValue
in interface Driver
value2StorageValue
in class SimpleDriver
fieldType
- the field type Types
value
- the valueparams
- the parametersCopyright © 2010-2019 Toolsverse. All Rights Reserved.