public class VirtualServerObject extends ServerObject implements com.streamscape.ds.schema.server.QueryableServer
Title: Dataspace Framework
Description: External DBMS Server object implementation.
Copyright: Copyright (c) 2013
Company: StreamScape Technologies
SchemaObject.ConstraintTypes, SchemaObject.Deferable, SchemaObject.Nullability, SchemaObject.ParameterModes, SchemaObject.ReferentialAction, SchemaObject.ViewCheckModes
ACTOR, ASPECTS, ASSERTION, CATALOG, CHARSET, COLLATION, COLLECTION, COLUMN, CONNECTION_FACTORY, CONSTRAINT, CURSOR, DOMAIN, emptyArray, EVENT_PROTOTYPE, FACETS, FILE_DESCRIPTOR, FULL_TEXT_INDEX, FUNCTION, GRANTEE, INDEX, JOB, LABEL, PARAMETER, PROCEDURE, REFERENCE_LINK, REPLICA, REPLICATION_SOURCE, ROUTINE, SCHEMA, SEMANTIC_TYPE, SEQUENCE, SERVER, SPECIFIC_ROUTINE, SUBQUERY, TABLE, TIMER, TRANSIENT_VAR, TRANSITION, TRIGGER, TYPE, VARIABLE, VIEW, WRAPPER
Constructor and Description |
---|
VirtualServerObject(DataspaceStore store,
NameManager.ObjectName name) |
Modifier and Type | Method and Description |
---|---|
void |
compile(com.streamscape.ds.session.Session session,
SchemaObject parentObject) |
void |
describeProperties(com.streamscape.ds.session.Session session,
com.streamscape.ds.navigator.RowSetNavigatorClient navigator) |
RowSet |
executeQuery(java.lang.String query,
java.util.List arguments) |
static java.lang.String |
formatSQLExceptionMessage(Connection connection,
SQLException exception) |
DatabaseConnection |
getConnection() |
com.streamscape.sef.factory.connection.FactoryConnectionService |
getConnectionService() |
ConnectionState |
getConnectionState() |
com.streamscape.sef.factory.connection.external.ExternalParser |
getExternalParser() |
java.lang.String |
getJDBCDriverClassName() |
java.util.Map |
getProperties() |
java.lang.String |
getSQL(java.lang.String name) |
static boolean |
isMSAccessConnection(Connection connection) |
static boolean |
isMSAccessConnection(java.lang.String driverClassName) |
static boolean |
isMSSQLConnection(Connection connection) |
static boolean |
isMySQLConnection(java.lang.String driverClassName) |
boolean |
isRunning() |
static boolean |
isStreamscapeDataspaceConnection(Connection connection) |
static boolean |
isSybaseConnection(Connection connection) |
static boolean |
isSybaseSpCall(Connection connection,
java.lang.String query) |
void |
releaseConnection(DatabaseConnection connection) |
void |
setConnectionsPoolSize(int connectionsPoolSize) |
void |
setProperties(java.util.Map properties) |
static DataspaceException |
sqlToDataspaceException(Connection connection,
SQLException exception) |
checkBeforeDrop, destroy, getCatalogName, getChangeTimestamp, getComponents, getDataspace, getEntity, getEntityName, getEntityParameters, getEntityScope, getFactoryName, getFactoryType, getLastError, getLastErrorTimeStamp, getObjectName, getObjectType, getOwner, getReferences, getSchemaName, getServerRole, getServerType, getSQL, getSQLInSchema, isInvalid, logDebug, logError, logInfo, open, setFactoryName, setFactoryType, startServer, stopServer, stopServerWithoutStateUpdate
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregateObjectStateHolder, recompileObject
public VirtualServerObject(DataspaceStore store, NameManager.ObjectName name)
public void compile(com.streamscape.ds.session.Session session, SchemaObject parentObject)
compile
in interface SchemaObject
compile
in class ServerObject
public DatabaseConnection getConnection()
public void releaseConnection(DatabaseConnection connection)
public boolean isRunning()
isRunning
in class ServerObject
public void setConnectionsPoolSize(int connectionsPoolSize)
public ConnectionState getConnectionState()
getConnectionState
in class ServerObject
public java.util.Map getProperties()
public void setProperties(java.util.Map properties)
public void describeProperties(com.streamscape.ds.session.Session session, com.streamscape.ds.navigator.RowSetNavigatorClient navigator)
describeProperties
in class ServerObject
public java.lang.String getSQL(java.lang.String name)
getSQL
in interface SchemaObject
public com.streamscape.sef.factory.connection.external.ExternalParser getExternalParser()
getExternalParser
in interface com.streamscape.ds.schema.server.QueryableServer
public RowSet executeQuery(java.lang.String query, java.util.List arguments)
public com.streamscape.sef.factory.connection.FactoryConnectionService getConnectionService()
getConnectionService
in interface com.streamscape.ds.schema.server.QueryableServer
public static boolean isSybaseSpCall(Connection connection, java.lang.String query)
public static boolean isSybaseConnection(Connection connection)
public static boolean isMSSQLConnection(Connection connection)
public static boolean isMSAccessConnection(Connection connection)
public static boolean isMSAccessConnection(java.lang.String driverClassName)
public static boolean isStreamscapeDataspaceConnection(Connection connection)
public static boolean isMySQLConnection(java.lang.String driverClassName)
public static java.lang.String formatSQLExceptionMessage(Connection connection, SQLException exception)
public static DataspaceException sqlToDataspaceException(Connection connection, SQLException exception)
public java.lang.String getJDBCDriverClassName()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.