Class TinySQLDriver

java.lang.Object
mgui.datasources.DataSourceDriver
mgui.datasources.tinysql.TinySQLDriver
All Implemented Interfaces:
java.lang.Cloneable, AttributeObject, PersistentObject, NamedObject

public class TinySQLDriver
extends DataSourceDriver
Specifies the driver for TinySQL connectivity.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • TinySQLDriver

      public TinySQLDriver()
    • TinySQLDriver

      public TinySQLDriver​(java.lang.String user, java.lang.String password)
  • Method Details

    • getUrlFromName

      public java.lang.String getUrlFromName​(java.lang.String name)
      Overrides:
      getUrlFromName in class DataSourceDriver
    • getUrlPrefix

      public java.lang.String getUrlPrefix()
      Overrides:
      getUrlPrefix in class DataSourceDriver
    • getSQLQuote

      public java.lang.String getSQLQuote()
      Description copied from class: DataSourceDriver
      Returns a driver-specific SQL quotation mark; subclasses should only override this if their drivers expect non-standard SQL input.
      Overrides:
      getSQLQuote in class DataSourceDriver
      Returns:
    • getSQLType

      public java.lang.String getSQLType​(int sql_type, int length)
      Description copied from class: DataSourceDriver
      Returns a driver-specific SQL quotation mark
      Overrides:
      getSQLType in class DataSourceDriver
      Parameters:
      sql_type - An SQL type; see Types
      length - The length of the field; for variable-length fields only
      Returns:
    • getSQLName

      public java.lang.String getSQLName​(java.lang.String name)
      Description copied from class: DataSourceDriver
      Returns a string from name that is safe for this driver.
      Overrides:
      getSQLName in class DataSourceDriver
      Returns:
    • clone

      public java.lang.Object clone()
      Overrides:
      clone in class DataSourceDriver