public class Mckoi extends AnsiStandard
| Modifier and Type | Field and Description |
|---|---|
static int |
mckoiBinaryHack
Size of binary fields.
|
static int |
mckoiTextHack
Size of text fields.
|
| Constructor and Description |
|---|
Mckoi()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<S,O> PoemType<O> |
canRepresent(PoemType<S> storage,
PoemType<O> 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)
Accommodate different treatment of different sized binary data.
|
String |
getQuotedName(String name)
Accommodate different quoting strategies.
|
String |
getSqlDefinition(String sqlTypeName)
TODO Check against modern McKoi
|
String |
getStringSqlDefinition(int size)
Accommodate String / Text distinction.
|
String |
givesCapabilitySQL(Integer userTroid,
String capabilityExpr)
MySQL had no EXISTS keyword, from 4.1 onwards it does.
|
alterColumnAddCommentSQL, alterColumnNotNullableSQL, alterTableAddCommentSQL, booleanTrueExpression, canBeIndexed, canDropColumns, canStoreBlobs, caseInsensitiveRegExpSQL, createTableOptionsSql, createTableSql, createTableTypeQualifierSql, exceptionForUpdate, exceptionForUpdate, getConnection, getFixedPtSqlDefinition, getForeignKeyDefinition, getIndexLength, getJdbcMetadataName, getLongSqlDefinition, getPrimaryKeyDefinition, getQuotedValue, getSchema, getSqlDefaultValue, melatiName, preparedStatementPlaceholder, selectLimit, shutdown, sqlBooleanValueOfRaw, tableInitialisationSql, toString, unloadDriver, unreservedNamepublic static final int mckoiTextHack
public static final int mckoiBinaryHack
public String getBinarySqlDefinition(int size)
getBinarySqlDefinition in interface DbmsgetBinarySqlDefinition in class AnsiStandardsize - how big the field isAnsiStandard.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 nameAnsiStandard.getQuotedName(java.lang.String)public String getSqlDefinition(String sqlTypeName)
getSqlDefinition in interface DbmsgetSqlDefinition in class AnsiStandardsqlTypeName - the Melati internal type namepublic <S,O> PoemType<O> canRepresent(PoemType<S> storage, PoemType<O> type)
canRepresent in interface DbmscanRepresent in class AnsiStandardstorage - the containertype - the type to storeAnsiStandard.canRepresent(org.melati.poem.PoemType<S>, org.melati.poem.PoemType<O>)public SQLPoemType<?> defaultPoemTypeOfColumnMetaData(ResultSet md) throws SQLException
defaultPoemTypeOfColumnMetaData in interface DbmsdefaultPoemTypeOfColumnMetaData in class AnsiStandardmd - the JDBC metadataSQLException - 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 needAnsiStandard.givesCapabilitySQL(java.lang.Integer, java.lang.String)Copyright © 2000–2021 PanEris. All rights reserved.