public class MSAccess extends AnsiStandard
| Modifier and Type | Class and Description |
|---|---|
static class |
MSAccess.MSAccessStringPoemType
Translates a MSSQL String into a Poem
StringPoemType. |
| Modifier and Type | Field and Description |
|---|---|
static int |
msAccessBinarySize
Size of binary fields.
|
static int |
msAccessMemoSize
Size of memo fields.
|
static int |
msAccessTextHack
Size of text fields.
|
| Constructor and Description |
|---|
MSAccess()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
alterColumnNotNullableSQL(String tableName,
Column<?> column)
Accommodate SQLServer syntax.
|
boolean |
canDropColumns()
Whether this DBMS can drop columns.
|
<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.
|
boolean |
canStoreBlobs()
Whether this DBMS can store binary data.
|
String |
caseInsensitiveRegExpSQL(String term1,
String term2)
This is the Postgresql syntax.
|
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 |
getFixedPtSqlDefinition(int scale,
int precision)
Cludge?
|
String |
getLongSqlDefinition()
Accommodate Long / Bigint deviants.
|
String |
getSqlDefaultValue(SQLType<?> sqlType)
Used to set a not null value when
creating a non nullable column.
|
String |
getSqlDefinition(String sqlTypeName)
Retrieve a SQL type keyword used by the DBMS
for the given Melati type name.
|
String |
getStringSqlDefinition(int size)
Accommodate String / Text distinction.
|
String |
melatiName(String name)
Ignore tables starting with '~', which should
probably have a jdbc type of 'SYSTEM TABLE'.
|
String |
selectLimit(String querySelection,
int limit)
Accommodate different limiting syntax.
|
void |
shutdown(Connection connection)
A no-op for all but hsqldb, where the db needs to be shutdown
when the servlet container or jvm is destroyed.
|
String |
sqlBooleanValueOfRaw(Object raw)
Accommodate different true and false values.
|
String |
unreservedName(String name)
A pair of functions for getting around keywords which make your
JDBC driver barf, as 'group' does for MySQL.
|
alterColumnAddCommentSQL, alterTableAddCommentSQL, booleanTrueExpression, canBeIndexed, createTableOptionsSql, createTableSql, createTableTypeQualifierSql, exceptionForUpdate, exceptionForUpdate, getConnection, getForeignKeyDefinition, getIndexLength, getJdbcMetadataName, getPrimaryKeyDefinition, getQuotedName, getQuotedValue, getSchema, givesCapabilitySQL, preparedStatementPlaceholder, tableInitialisationSql, toString, unloadDriverpublic static final int msAccessTextHack
public static final int msAccessMemoSize
public static final int msAccessBinarySize
public boolean canDropColumns()
canDropColumns in interface DbmscanDropColumns in class AnsiStandardAnsiStandard.canDropColumns()public boolean canStoreBlobs()
canStoreBlobs in interface DbmscanStoreBlobs in class AnsiStandardDbms.canStoreBlobs()public void shutdown(Connection connection) throws SQLException
Dbmsshutdown in interface Dbmsshutdown in class AnsiStandardSQLExceptionpublic String unreservedName(String name)
AnsiStandardunreservedName in interface DbmsunreservedName in class AnsiStandardname - the field or table nameDbms.unreservedName(java.lang.String),
MySQL.unreservedName(java.lang.String),
MySQL.melatiName(java.lang.String)public String melatiName(String name)
melatiName in interface DbmsmelatiName in class AnsiStandardname - an SQL namepublic String getSqlDefinition(String sqlTypeName)
DbmsgetSqlDefinition in interface DbmsgetSqlDefinition in class AnsiStandardsqlTypeName - the Melati internal type namepublic String getLongSqlDefinition()
DbmsgetLongSqlDefinition in interface DbmsgetLongSqlDefinition in class AnsiStandardpublic String getStringSqlDefinition(int size) throws SQLException
DbmsgetStringSqlDefinition in interface DbmsgetStringSqlDefinition in class AnsiStandardsize - the string length (-1 means no limit)SQLExceptionpublic String getFixedPtSqlDefinition(int scale, int precision) throws SQLException
getFixedPtSqlDefinition in interface DbmsgetFixedPtSqlDefinition in class AnsiStandardscale - the number of places to right of decimal pointprecision - how many digits in totalSQLException - potentiallypublic String getBinarySqlDefinition(int size) throws SQLException
DbmsgetBinarySqlDefinition in interface DbmsgetBinarySqlDefinition in class AnsiStandardsize - how big the field isSQLExceptionpublic String sqlBooleanValueOfRaw(Object raw)
DbmssqlBooleanValueOfRaw in interface DbmssqlBooleanValueOfRaw in class AnsiStandardpublic <S,O> PoemType<O> canRepresent(PoemType<S> storage, PoemType<O> type)
DbmscanRepresent in interface DbmscanRepresent in class AnsiStandardstorage - the containertype - the type to storepublic SQLPoemType<?> defaultPoemTypeOfColumnMetaData(ResultSet md) throws SQLException
DbmsdefaultPoemTypeOfColumnMetaData in interface DbmsdefaultPoemTypeOfColumnMetaData in class AnsiStandardmd - the JDBC metadataSQLException - potentiallypublic String caseInsensitiveRegExpSQL(String term1, String term2)
AnsiStandardcaseInsensitiveRegExpSQL in interface DbmscaseInsensitiveRegExpSQL in class AnsiStandardterm1 - the term to find interm2 - the quoted term to findpublic String alterColumnNotNullableSQL(String tableName, Column<?> column)
alterColumnNotNullableSQL in interface DbmsalterColumnNotNullableSQL in class AnsiStandardpublic String selectLimit(String querySelection, int limit)
DbmsselectLimit in interface DbmsselectLimit in class AnsiStandardquerySelection - main body of querylimit - number to limit topublic String getSqlDefaultValue(SQLType<?> sqlType)
DbmsgetSqlDefaultValue in interface DbmsgetSqlDefaultValue in class AnsiStandardsqlType - the type nameCopyright © 2000–2021 PanEris. All rights reserved.