|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.poem.dbms.AnsiStandard
org.melati.poem.dbms.Mckoi
public class Mckoi
A Driver for Mckoidb (http://www.mckoi.com/).
| Field Summary | |
|---|---|
static int |
mckoiBinaryHack
Size of binary fields. |
static int |
mckoiTextHack
Size of text fields. |
| Fields inherited from class org.melati.poem.dbms.AnsiStandard |
|---|
schema |
| Constructor Summary | |
|---|---|
Mckoi()
Constructor. |
|
| Method Summary | |
|---|---|
PoemType |
canRepresent(PoemType storage,
PoemType type)
Enable one PoemType to represent another, for example a bit to represent a boolean. |
SQLPoemType |
defaultPoemTypeOfColumnMetaData(ResultSet md)
The simplest POEM type corresponding to a JDBC description from the database. |
String |
getBinarySqlDefinition(int size)
Accomodate different treatment of different sized binary data. |
String |
getQuotedName(String name)
Accomodate different quoting strategies. |
String |
getSqlDefinition(String sqlTypeName)
Retrieve a SQL type keyword used by the DBMS for the given Melati type name. |
String |
getStringSqlDefinition(int size)
Accomodate String / Text distinction. |
String |
givesCapabilitySQL(Integer userTroid,
String capabilityExpr)
MySQL had no EXISTS keyword, from 4.1 onwards it does. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int mckoiTextHack
public static final int mckoiBinaryHack
| Constructor Detail |
|---|
public Mckoi()
| Method Detail |
|---|
public String getBinarySqlDefinition(int size)
getBinarySqlDefinition in interface DbmsgetBinarySqlDefinition in class AnsiStandardsize - how big the field is
AnsiStandard.getBinarySqlDefinition(int)
public String getStringSqlDefinition(int size)
throws SQLException
getStringSqlDefinition in interface DbmsgetStringSqlDefinition in class AnsiStandardsize - the string length (-1 means no limit)
SQLExceptionAnsiStandard.getStringSqlDefinition(int)public String getQuotedName(String name)
getQuotedName in interface DbmsgetQuotedName in class AnsiStandardname - the unquoted name
AnsiStandard.getQuotedName(java.lang.String)public String getSqlDefinition(String sqlTypeName)
getSqlDefinition in interface DbmsgetSqlDefinition in class AnsiStandardsqlTypeName - the Melati internal type name
AnsiStandard.getSqlDefinition(java.lang.String)
public PoemType canRepresent(PoemType storage,
PoemType type)
canRepresent in interface DbmscanRepresent in class AnsiStandardstorage - the POEM native typetype - the current type
AnsiStandard.canRepresent(org.melati.poem.PoemType>, org.melati.poem.PoemType>)
public SQLPoemType defaultPoemTypeOfColumnMetaData(ResultSet md)
throws SQLException
defaultPoemTypeOfColumnMetaData in interface DbmsdefaultPoemTypeOfColumnMetaData in class AnsiStandardmd - the JDBC metadata
SQLException - potentiallyAnsiStandard.defaultPoemTypeOfColumnMetaData(java.sql.ResultSet)
public String givesCapabilitySQL(Integer userTroid,
String capabilityExpr)
givesCapabilitySQL in interface DbmsgivesCapabilitySQL in class AnsiStandarduserTroid - the troid of the User to use in the querycapabilityExpr - the capability troid we need
AnsiStandard.givesCapabilitySQL(java.lang.Integer, java.lang.String)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||