User Tools

Site Tools


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

Table of Contents

TGIS_DbAbstract.sqlPathAbsolute(java.lang.String, java.lang.String, char, java.lang.String, char) 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,
  java.lang.String _key,
  char _delimiter
);
// Oxygene
public
  function sqlPathAbsolute(
    _folder : String;
    _connection : String;
    _separator : Char;
    _key : String;
    _delimiter : Char
  ) : 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
_key java.lang.String
String
key of the item which may contain path
_delimiter char
Char
key-value delimiter

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: 'key1=valu1;key2=value;KEY=value3' where ';' is a _separator, '=' is as _delimitter, and 'KEY' is a _key.

2021/09/28 01:25

Page Tools