public class ERMicrosoftPlugIn extends MicrosoftPlugIn
ERMicrosoftPlugIn
is a JDBCPlugIn
implementation for Microsoft SQL Server database. This class
extends the standard MicrosoftPlugIn
to use features available on newer versions of SQL Server.JDBCPlugIn
,
MicrosoftPlugIn
MicrosoftPlugIn.MicrosoftExpression, MicrosoftPlugIn.MicrosoftSynchronizationFactory
JDBCPlugIn.LobEntry
_adaptor, _expressionClass, _expressionFactory, _pkTableName, _subprotocolRegistry, _syncFactory, DefaultPlugInClassName, DefaultPlugInSuffix
Constructor and Description |
---|
ERMicrosoftPlugIn(JDBCAdaptor adaptor) |
Modifier and Type | Method and Description |
---|---|
String |
connectionURL()
The original implementation of the
MicrosoftPlugIn forcibly adds the SelectMethod=cursor
parameter to the connection URL. |
String |
defaultDriverName()
The SQL Server driver name has changed over time.
|
Class |
defaultExpressionClass()
Uses the enhanced
ERMicrosoftExpression as the expression class. |
protected static boolean |
isPrimaryKeyGenerationSupported(EOEntity entity)
Checks whether primary key generation can be supported for entity.
|
NSDictionary<String,Object> |
jdbcInfo()
This is usually extracted from the database using JDBC, but this is
really inconvenient for users who are trying to generate SQL at some.
|
NSArray<NSDictionary<String,Object>> |
newPrimaryKeys(int count,
EOEntity entity,
JDBCChannel channel)
Generates a batch of new primary keys for the given entity.
|
protected String |
sequenceNameForEntity(EOEntity entity)
Utility method that returns the name of the sequence associated
with
entity . |
protected boolean |
shouldUseBundledJdbcInfo()
This method returns
true if the connection URL for the
database has a special flag on it which indicates to the
system that the jdbcInfo which has been bundled into the
plugin is acceptable to use in place of actually going to
the database and getting it. |
createSchemaSynchronizationFactory, databaseProductName, isDroppedConnectionException, name, newPrimaryKeySelectString
_attributeForPath, _couldIgnoreException, _relationshipForPath, _takeValueForKeyPath, adaptor, assignTypeForAttribute, canDescribeStoredProcedure, connectionPropertiesForConnectionDictionary, createAttributeForRow, createExpressionFactory, createSynchronizationFactory, databaseInformation, expressionFactory, fetchBLOB, fetchCLOB, isPseudoColumnName, jdbcTypeForUnknownExternalType, plugInNameForURL, plugInValueForValue, primaryKeyLockString, primaryKeyTableCreateString, primaryKeyTableName, removePlugInNameForSubprotocol, schemaNameForEntity, schemaSynchronizationFactory, setPlugInNameForSubprotocol, sqlStatementForGettingProcedureNames, sqlStatementForGettingTableNames, sqlStatementForTableNamed, storedProcedureCatalogPattern, storedProcedureNamed, storedProcedureSchemaPattern, synchronizationFactory, tableTypes, updateLOBs, wildcardPatternForAttributes, wildcardPatternForSchema, wildcardPatternForTables
public ERMicrosoftPlugIn(JDBCAdaptor adaptor)
public String connectionURL()
MicrosoftPlugIn
forcibly adds the SelectMethod=cursor
parameter to the connection URL. Even though this option may be useful in some scenarios, it may also cause
undesirable side effects. Each application may have different requirements regarding how and when to use adaptive
buffering. For this reason, the ERMicrosoftPlugin
lets the user decide how to configure adaptive
buffering if needed.
See Microsoft documentation for more information about adaptive buffering
connectionURL
in class MicrosoftPlugIn
public String defaultDriverName()
defaultDriverName
in class MicrosoftPlugIn
public Class defaultExpressionClass()
ERMicrosoftExpression
as the expression class.defaultExpressionClass
in class MicrosoftPlugIn
public NSArray<NSDictionary<String,Object>> newPrimaryKeys(int count, EOEntity entity, JDBCChannel channel)
newPrimaryKeys
in class JDBCPlugIn
count
- the batch sizeentity
- the entity requesting primary keyschannel
- an open JDBCChannelNSArray
of NSDictionary
where each dictionary corresponds to a unique primary
key value.public NSDictionary<String,Object> jdbcInfo()
jdbcInfo
in class MicrosoftPlugIn
protected boolean shouldUseBundledJdbcInfo()
true
if the connection URL for the
database has a special flag on it which indicates to the
system that the jdbcInfo which has been bundled into the
plugin is acceptable to use in place of actually going to
the database and getting it.true
if bundled jdbcInfo should be usedprotected String sequenceNameForEntity(EOEntity entity)
entity
.entity
- the entityprotected static boolean isPrimaryKeyGenerationSupported(EOEntity entity)
entity
- the entity to be checkedtrue
if supported or false
otherwise.Copyright © 2002 – 2024 Project Wonder.