OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 13 of file Db_vendor_types.java.

Constructor & Destructor Documentation

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

Definition at line 14 of file Db_vendor_types.java.

14 {}

Member Function Documentation

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 30 of file Db_vendor_types.java.

31  {
32  if (connection_str.toLowerCase().contains("postgres"))
34  else if (connection_str.toLowerCase().contains("omnisci"))
37  }
abstract GisType com.mapd.utility.db_vendors.Db_vendor_types.find_gis_type ( Connection  conn,
ResultSetMetaData  metadata,
int  column_number 
) throws SQLException
pure virtual
abstract String com.mapd.utility.db_vendors.Db_vendor_types.get_wkt ( ResultSet  rs,
int  column_number,
String  gis_type_name 
) throws SQLException
pure virtual
static String com.mapd.utility.db_vendors.Db_vendor_types.gis_type_to_str ( GisType  type)
inlinestatic

Definition at line 38 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 run_benchmark_import.type.

38  {
39  StringBuffer column_sql_definition = new StringBuffer();
40  if (!type.subtype.isEmpty()) {
41  column_sql_definition.append(type.subtype + "(");
42  }
43  column_sql_definition.append(type.type);
44  if (type.srid != 0) {
45  column_sql_definition.append("," + type.srid);
46  }
47  if (!type.subtype.isEmpty()) {
48  column_sql_definition.append(")");
49  }
50  return column_sql_definition.toString();
51  }
abstract boolean com.mapd.utility.db_vendors.Db_vendor_types.isAutoCommitDisabledRequired ( )
pure virtual

Implemented in com.mapd.utility.db_vendors.PostGis_types, com.mapd.utility.db_vendors.HeavyDBGeo_types, and com.mapd.utility.db_vendors.Other_types.

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

+ Here is the caller graph for this function:

Member Data Documentation

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

Definition at line 15 of file Db_vendor_types.java.

Referenced by com.mapd.utility.db_vendors.HeavyDBGeo_types.find_gis_type().


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