|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Dbms
getBinarySqlDefinition
in class AnsiStandard
size
- how big the field is
AnsiStandard.getBinarySqlDefinition(int)
public String getStringSqlDefinition(int size) throws SQLException
getStringSqlDefinition
in interface Dbms
getStringSqlDefinition
in class AnsiStandard
size
- the string length (-1 means no limit)
SQLException
AnsiStandard.getStringSqlDefinition(int)
public String getQuotedName(String name)
getQuotedName
in interface Dbms
getQuotedName
in class AnsiStandard
name
- the unquoted name
AnsiStandard.getQuotedName(java.lang.String)
public String getSqlDefinition(String sqlTypeName)
getSqlDefinition
in interface Dbms
getSqlDefinition
in class AnsiStandard
sqlTypeName
- the Melati internal type name
AnsiStandard.getSqlDefinition(java.lang.String)
public PoemType canRepresent(PoemType storage, PoemType type)
canRepresent
in interface Dbms
canRepresent
in class AnsiStandard
storage
- 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 Dbms
defaultPoemTypeOfColumnMetaData
in class AnsiStandard
md
- the JDBC metadata
SQLException
- potentiallyAnsiStandard.defaultPoemTypeOfColumnMetaData(java.sql.ResultSet)
public String givesCapabilitySQL(Integer userTroid, String capabilityExpr)
givesCapabilitySQL
in interface Dbms
givesCapabilitySQL
in class AnsiStandard
userTroid
- 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 |