asposecells.api

Class SqlScriptSaveOptions

Represents the options of saving sql.

Constructor Summary
SqlScriptSaveOptions()
Creates options for saving sql file.
 
Property Getters/Setters Summary
methodgetAddBlankLineBetweenRows()
method
           Insert blank line between each data.
methodgetCachedFileFolder()
method
           The cached file folder is used to store some large data.
methodgetCheckAllDataForColumnType()
method
           Check all data to find columns' data type.
methodgetCheckIfTableExists()
method
           Check if the table name exists before creating
methodgetClearData()
method
           Make the workbook empty after saving the file.
methodgetColumnTypeMap()
method
           Gets and sets the map of column type for different database.
methodgetCreateDirectory()
method
           If true and the directory does not exist, the directory will be automatically created before saving the file.
methodgetCreateTable()
method
           Indicates whether exporting sql of creating table.
methodgetExportArea()
method
           Gets or sets the exporting range.
methodgetExportAsString()
method
           Indicates whether exporting all data as string value.
methodhasHeaderRow()
method
           Indicates whether the range contains header row.
methodgetIdName()
method
setIdName(value)
           Gets and sets the name of id column.
methodgetMergeAreas()
method
           Indicates whether merge the areas of conditional formatting and validation before saving the file.
methodgetOperatorType()
method
           Gets and sets the operator type of sql. The value of the property is SqlScriptOperatorType integer constant.
methodgetPrimaryKey()
method
           Represents which column is primary key of the data table.
methodgetRefreshChartCache()
method
           Indicates whether refreshing chart cache data
methodgetSaveFormat()
Gets the save file format. The value of the property is SaveFormat integer constant.
methodgetSeparator()
method
           Gets and sets character separator of sql script.
methodgetSheetIndexes()
method
           Represents the indexes of exported sheets.
methodgetSortExternalNames()
method
           Indicates whether sorting external defined names before saving file.
methodgetSortNames()
method
           Indicates whether sorting defined names before saving file.
methodgetStartId()
method
setStartId(value)
           Gets and sets the start id.
methodgetTableName()
method
           Gets and sets the table name.
methodgetUpdateSmartArt()
method
           Indicates whether updating smart art setting. The default value is false.
methodgetValidateMergedAreas()
method
           Indicates whether validate merged cells before saving the file.
methodgetWarningCallback()
method
           Gets or sets warning callback.
 

    • Constructor Detail

      • SqlScriptSaveOptions

        SqlScriptSaveOptions()
        Creates options for saving sql file.
    • Property Getters/Setters Detail

      • getCheckIfTableExists/setCheckIfTableExists : boolean 

        boolean getCheckIfTableExists() / setCheckIfTableExists(value)
        
        Check if the table name exists before creating
      • getCheckAllDataForColumnType/setCheckAllDataForColumnType : boolean 

        boolean getCheckAllDataForColumnType() / setCheckAllDataForColumnType(value)
        
        Check all data to find columns' data type. The default value is false, we only check the first row for performance. If this property is true and the columns contains mixed value type, the columns' type will be text.
      • getAddBlankLineBetweenRows/setAddBlankLineBetweenRows : boolean 

        boolean getAddBlankLineBetweenRows() / setAddBlankLineBetweenRows(value)
        
        Insert blank line between each data. If Separator is '\n' , it's better to set this property as true to increase readability.
      • getSeparator/setSeparator : char 

        char getSeparator() / setSeparator(value)
        
        Gets and sets character separator of sql script. Only can be ' ' or '\n'. If the
      • getOperatorType/setOperatorType : int 

        int getOperatorType() / setOperatorType(value)
        
        Gets and sets the operator type of sql. The value of the property is SqlScriptOperatorType integer constant.
      • getPrimaryKey/setPrimaryKey : int 

        int getPrimaryKey() / setPrimaryKey(value)
        
        Represents which column is primary key of the data table.
      • getCreateTable/setCreateTable : boolean 

        boolean getCreateTable() / setCreateTable(value)
        
        Indicates whether exporting sql of creating table.
      • getIdName/setIdName : String 

        String getIdName() / setIdName(value)
        
        Gets and sets the name of id column. If this property is set , a column will be inserted with automatical increment int value.
      • getStartId/setStartId : int 

        int getStartId() / setStartId(value)
        
        Gets and sets the start id. Only works when IdName is set.
      • getTableName/setTableName : String 

        String getTableName() / setTableName(value)
        
        Gets and sets the table name.
      • getExportAsString/setExportAsString : boolean 

        boolean getExportAsString() / setExportAsString(value)
        
        Indicates whether exporting all data as string value.
      • getSheetIndexes/setSheetIndexes : int[] 

        int[] getSheetIndexes() / setSheetIndexes(value)
        
        Represents the indexes of exported sheets.
      • getExportArea/setExportArea : CellArea 

        CellArea getExportArea() / setExportArea(value)
        
        Gets or sets the exporting range.
      • hasHeaderRow/setHasHeaderRow : boolean 

        boolean hasHeaderRow() / setHasHeaderRow(value)
        
        Indicates whether the range contains header row.
      • getSaveFormat : int 

        int getSaveFormat()
        
        Gets the save file format. The value of the property is SaveFormat integer constant.
      • getClearData/setClearData : boolean 

        boolean getClearData() / setClearData(value)
        
        Make the workbook empty after saving the file.
      • getCachedFileFolder/setCachedFileFolder : String 

        String getCachedFileFolder() / setCachedFileFolder(value)
        
        The cached file folder is used to store some large data.
      • getValidateMergedAreas/setValidateMergedAreas : boolean 

        boolean getValidateMergedAreas() / setValidateMergedAreas(value)
        
        Indicates whether validate merged cells before saving the file. The default value is false.
      • getMergeAreas/setMergeAreas : boolean 

        boolean getMergeAreas() / setMergeAreas(value)
        
        Indicates whether merge the areas of conditional formatting and validation before saving the file. The default value is false.
      • getCreateDirectory/setCreateDirectory : boolean 

        boolean getCreateDirectory() / setCreateDirectory(value)
        
        If true and the directory does not exist, the directory will be automatically created before saving the file. The default value is false.
      • getSortNames/setSortNames : boolean 

        boolean getSortNames() / setSortNames(value)
        
        Indicates whether sorting defined names before saving file.
      • getSortExternalNames/setSortExternalNames : boolean 

        boolean getSortExternalNames() / setSortExternalNames(value)
        
        Indicates whether sorting external defined names before saving file.
      • getRefreshChartCache/setRefreshChartCache : boolean 

        boolean getRefreshChartCache() / setRefreshChartCache(value)
        
        Indicates whether refreshing chart cache data
      • getWarningCallback/setWarningCallback : IWarningCallback 

        IWarningCallback getWarningCallback() / setWarningCallback(value)
        
        Gets or sets warning callback.
      • getUpdateSmartArt/setUpdateSmartArt : boolean 

        boolean getUpdateSmartArt() / setUpdateSmartArt(value)
        
        Indicates whether updating smart art setting. The default value is false. Only effects after calling Shape.GetResultOfSmartArt() method and the cached shapes exist in the template file.