Interface DatasourceRpc
public interface DatasourceRpc
Provides RPC methods for working with datasources. Includes methods for working with
DatasourceMeta- Transactions
- Stored Procedures
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final record -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbeginTransaction(String datasource, int isolationLevel, long timeout) voidcloseTransaction(String txId) voidcommitTransaction(String txId) getColumnQuoteChar(String dataSource) getDatasourceName(String txId) getTableInfo(String dataSource, String tableName, TableType type) listColumns(@Nullable String dsn, @NotNull String tableName) listTables(@Nullable String dsn) voidrollbackTransaction(String txId)
-
Field Details
-
SERIALIZER
-
-
Method Details
-
getConnections
List<RpcDatasourceMeta> getConnections() -
getTables
- Throws:
Exception
-
getTableInfo
- Throws:
Exception
-
getColumnQuoteChar
-
call
- Throws:
Exception
-
beginTransaction
- Throws:
Exception
-
commitTransaction
- Throws:
Exception
-
rollbackTransaction
- Throws:
Exception
-
closeTransaction
- Throws:
Exception
-
getDatasourceName
- Returns:
- the datasource that a transaction is running under. If the transaction no longer exists, then an empty String is returned.
-
getDatasources
List<DatasourceRpc.DatasourceMetaInfo> getDatasources() -
listTables
- Throws:
Exception
-
listColumns
List<DatasourceRpc.ColumnMetaInfo> listColumns(@Nullable @Nullable String dsn, @NotNull @NotNull String tableName) throws Exception - Throws:
Exception
-