Package mgui.datasources.tinysql
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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TinySQLDriver()
TinySQLDriver(java.lang.String user, java.lang.String password)
-
Method Summary
Modifier and Type Method Description java.lang.Object
clone()
java.lang.String
getSQLName(java.lang.String name)
Returns a string fromname
that is safe for this driver.java.lang.String
getSQLQuote()
Returns a driver-specific SQL quotation mark; subclasses should only override this if their drivers expect non-standard SQL input.java.lang.String
getSQLType(int sql_type, int length)
Returns a driver-specific SQL quotation markjava.lang.String
getUrlFromName(java.lang.String name)
java.lang.String
getUrlPrefix()
Methods inherited from class mgui.datasources.DataSourceDriver
dropDatabase, getAttribute, getAttributes, getAttributeValue, getClassName, getConnection, getCreateDatabaseSQL, getDatabases, getDatabases, getDataSourceDialogPanel, getDataSourceFromUrl, getFileLoader, getFileWriter, getFriendlyName, getLoaderOptions, getLogin, getName, getPassword, getSSL, getUrl, getUrlReference, getWriterOptions, init, setAttribute, setAttributes, setClassName, setFileLoader, setFileWriter, setLoaderOptions, setLogin, setName, setPassword, setUrl, setUrlReference, setWriterOptions
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 classDataSourceDriver
-
getUrlPrefix
public java.lang.String getUrlPrefix()- Overrides:
getUrlPrefix
in classDataSourceDriver
-
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 classDataSourceDriver
- 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 classDataSourceDriver
- Parameters:
sql_type
- An SQL type; seeTypes
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 fromname
that is safe for this driver.- Overrides:
getSQLName
in classDataSourceDriver
- Returns:
-
clone
public java.lang.Object clone()- Overrides:
clone
in classDataSourceDriver
-