User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_dbabstract.sqlpathabsolute_string_string_char_boolean

Table of Contents

TGIS_DbAbstract.sqlPathAbsolute(java.lang.String, java.lang.String, char, bool) method

DK11 for Java | tatukgis.jdk.TGIS_DbAbstract.sqlPathAbsolute | Overloads | Constructors | Fields | Methods | Properties | Events

Resolves potentially embedded database path in a connection string into an absolute path.

Available also on: Delphi | .NET.

Syntax

// Java
public java.lang.String sqlPathAbsolute(
  java.lang.String _folder,
  java.lang.String _connection,
  char _separator,
  bool _jdbc
);
// Oxygene
public
  function sqlPathAbsolute(
    _folder : String;
    _connection : String;
    _separator : Char;
    _jdbc : Boolean = False
  ) : String;

Parameters

Name Type Description
_folder java.lang.String
String
base folder for opening file based databases
_connection java.lang.String
String
connection string
_separator char
Char
items separator
_jdbc bool
Boolean
if set (default is False) path will be represented according to JDBC

Result

Type Description
java.lang.String
String
if connection contains file then expanded absolute path; _connection string otherwise

Remarks

This overload assumes that _connection contains string in a format: 'someting1:someting2:something3' where ':' is a _separator.

2021/09/28 01:25

Page Tools