public class TDriverUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONF_REGISTRY_PATH_PREFIX |
static String |
GOV_REGISTRY_PATH_PREFIX |
Constructor and Description |
---|
TDriverUtil() |
Modifier and Type | Method and Description |
---|---|
static com.google.gdata.client.spreadsheet.SpreadsheetQuery |
createSpreadSheetQuery(String spreadSheetName,
URL spreadSheetFeedUrl) |
static com.google.gdata.client.spreadsheet.WorksheetQuery |
createWorkSheetQuery(URL workSheetFeedUrl) |
static ParamInfo |
findParam(ColumnInfo columnInfo,
ParamInfo[] params) |
static List<String> |
getAvailableDriverProperties() |
static String |
getCellPosition(String id) |
static int |
getColumnIndex(String id) |
static int |
getCurrentTenantId()
Returns the best effort way of finding the current tenant id,
even if this is not in a current message request, i.e.
|
static com.google.gdata.data.spreadsheet.WorksheetEntry |
getCurrentWorkSheetEntry(TGSpreadConnection connection,
String sheetName) |
static com.google.gdata.data.spreadsheet.CellFeed |
getGSpreadCellFeed(TGSpreadConnection connection,
com.google.gdata.data.spreadsheet.WorksheetEntry currentWorkSheet) |
static ColumnInfo[] |
getHeaders(Connection connection,
String tableName) |
static InputStream |
getInputStreamFromPath(String path)
Creates and returns an InputStream from the file path / http location given.
|
static com.google.gdata.data.spreadsheet.ListFeed |
getListFeed(TGSpreadConnection connection,
com.google.gdata.data.spreadsheet.WorksheetEntry currentWorkSheet) |
static int |
getRowIndex(String id) |
static boolean |
isRegistryPath(String path) |
static void |
writeRecords(org.apache.poi.ss.usermodel.Workbook workbook,
String filePath)
Method to write excel data to registry or file output streams.
|
public static final String GOV_REGISTRY_PATH_PREFIX
public static final String CONF_REGISTRY_PATH_PREFIX
public static ColumnInfo[] getHeaders(Connection connection, String tableName) throws SQLException
SQLException
public static com.google.gdata.data.spreadsheet.WorksheetEntry getCurrentWorkSheetEntry(TGSpreadConnection connection, String sheetName) throws SQLException
SQLException
public static com.google.gdata.data.spreadsheet.CellFeed getGSpreadCellFeed(TGSpreadConnection connection, com.google.gdata.data.spreadsheet.WorksheetEntry currentWorkSheet) throws SQLException
SQLException
public static com.google.gdata.data.spreadsheet.ListFeed getListFeed(TGSpreadConnection connection, com.google.gdata.data.spreadsheet.WorksheetEntry currentWorkSheet) throws SQLException
SQLException
public static int getColumnIndex(String id)
public static int getRowIndex(String id)
public static com.google.gdata.client.spreadsheet.SpreadsheetQuery createSpreadSheetQuery(String spreadSheetName, URL spreadSheetFeedUrl)
public static com.google.gdata.client.spreadsheet.WorksheetQuery createWorkSheetQuery(URL workSheetFeedUrl)
public static ParamInfo findParam(ColumnInfo columnInfo, ParamInfo[] params)
public static void writeRecords(org.apache.poi.ss.usermodel.Workbook workbook, String filePath) throws SQLException
workbook
- filePath
- SQLException
public static InputStream getInputStreamFromPath(String path) throws IOException, SQLException
IOException,
- SQLExceptionIOException
SQLException
InputStream
public static boolean isRegistryPath(String path)
public static int getCurrentTenantId()
Copyright © 2020 WSO2. All rights reserved.