OmniSciDB  baf940c279
com.mapd.utility.db_vendors.Db_vendor_types Class Referenceabstract
+ Inheritance diagram for com.mapd.utility.db_vendors.Db_vendor_types:
+ Collaboration diagram for com.mapd.utility.db_vendors.Db_vendor_types:

Classes

class  GisType
 

Public Member Functions

abstract boolean isAutoCommitDisabledRequired ()
 
abstract GisType find_gis_type (Connection conn, ResultSetMetaData metadata, int column_number) throws SQLException
 
abstract String get_wkt (ResultSet rs, int column_number, String gis_type_name) throws SQLException
 

Static Public Member Functions

static com.mapd.utility.db_vendors.Db_vendor_types Db_vendor_factory (String connection_str)
 
static String gis_type_to_str (GisType type)
 

Protected Member Functions

 Db_vendor_types ()
 

Static Protected Attributes

static HashSet< Integer > valid_srid
 

Detailed Description

Definition at line 15 of file Db_vendor_types.java.

Constructor & Destructor Documentation

◆ Db_vendor_types()

com.mapd.utility.db_vendors.Db_vendor_types.Db_vendor_types ( )
inlineprotected

Definition at line 16 of file Db_vendor_types.java.

16 {}

Member Function Documentation

◆ Db_vendor_factory()

static com.mapd.utility.db_vendors.Db_vendor_types com.mapd.utility.db_vendors.Db_vendor_types.Db_vendor_factory ( String  connection_str)
inlinestatic

Definition at line 32 of file Db_vendor_types.java.

Referenced by com.mapd.utility.SQLImporter.executeQuery().

33  {
34  if (connection_str.toLowerCase().contains("postgres"))
36  else if (connection_str.toLowerCase().contains("omnisci"))
38  return new com.mapd.utility.db_vendors.Other_types();
39  }
+ Here is the caller graph for this function:

◆ find_gis_type()

abstract GisType com.mapd.utility.db_vendors.Db_vendor_types.find_gis_type ( Connection  conn,
ResultSetMetaData  metadata,
int  column_number 
) throws SQLException
abstract

Referenced by com.mapd.utility.SQLImporter.createMapDTable(), and com.mapd.utility.SQLImporter.verifyColumnSignaturesMatch().

+ Here is the caller graph for this function:

◆ get_wkt()

abstract String com.mapd.utility.db_vendors.Db_vendor_types.get_wkt ( ResultSet  rs,
int  column_number,
String  gis_type_name 
) throws SQLException
abstract

Referenced by com.mapd.utility.SQLImporter.setColValue().

+ Here is the caller graph for this function:

◆ gis_type_to_str()

static String com.mapd.utility.db_vendors.Db_vendor_types.gis_type_to_str ( GisType  type)
inlinestatic

Definition at line 40 of file Db_vendor_types.java.

References com.mapd.utility.db_vendors.Db_vendor_types.GisType.srid, com.mapd.utility.db_vendors.Db_vendor_types.GisType.subtype, and com.mapd.utility.db_vendors.Db_vendor_types.GisType.type.

Referenced by com.mapd.utility.SQLImporter.createMapDTable().

40  {
41  StringBuffer column_sql_definition = new StringBuffer();
42  if (!type.subtype.isEmpty()) {
43  column_sql_definition.append(type.subtype + "(");
44  }
45  column_sql_definition.append(type.type);
46  if (type.srid != 0) {
47  column_sql_definition.append("," + type.srid);
48  }
49  if (!type.subtype.isEmpty()) {
50  column_sql_definition.append(")");
51  }
52  return column_sql_definition.toString();
53  }
+ Here is the caller graph for this function:

◆ isAutoCommitDisabledRequired()

abstract boolean com.mapd.utility.db_vendors.Db_vendor_types.isAutoCommitDisabledRequired ( )
abstract

Referenced by com.mapd.utility.SQLImporter.executeQuery().

+ Here is the caller graph for this function:

Member Data Documentation

◆ valid_srid

HashSet<Integer> com.mapd.utility.db_vendors.Db_vendor_types.valid_srid
staticprotected
Initial value:
=
new HashSet<>(Arrays.asList(4326, 900913))

Definition at line 17 of file Db_vendor_types.java.


The documentation for this class was generated from the following file: