Package org.teiid.odbc
Class ODBCServerRemoteImpl
- java.lang.Object
-
- org.teiid.odbc.ODBCServerRemoteImpl
-
- All Implemented Interfaces:
ODBCServerRemote
public class ODBCServerRemoteImpl extends Object implements ODBCServerRemote
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTION_PROPERTY_PREFIXstatic StringTYPE_QUERY
-
Constructor Summary
Constructors Constructor Description ODBCServerRemoteImpl(ODBCClientInstance client, TeiidDriver driver, LogonImpl logon)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindParameters(String bindName, String prepareName, Object[] params, int resultCodeCount, short[] resultColumnFormat, Charset encoding)voidcancel(int pid, int key)voidcloseBoundStatement(String bindName)voidclosePreparedStatement(String preparedName)protected voiddoneExecuting()voiderrorOccurred(Throwable error)voidexecute(String bindName, int maxRows)voidexecuteQuery(String query)voidflush()voidfunctionCall(int oid, Object[] params, short resultFormat)StringgetEncoding()voidgetParameterDescription(String prepareName)voidgetResultSetMetaDataDescription(String bindName)voidinitialize(Properties props, SocketAddress remoteAddress, SSLEngine sslEngine)booleanisErrorOccurred()booleanisExecuting()voidlogon(String databaseName, String user, PgFrontendProtocol.NullTerminatedStringDataInputStream data, SocketAddress remoteAddress)voidprepare(String prepareName, String sql, int[] paramType)static voidsetConnectionProperties(ConnectionImpl conn)static voidsetConnectionProperties(ConnectionImpl conn, Properties p)voidsslRequest()voidsync()voidterminate()voidunsupportedOperation(String msg)
-
-
-
Field Detail
-
CONNECTION_PROPERTY_PREFIX
public static final String CONNECTION_PROPERTY_PREFIX
- See Also:
- Constant Field Values
-
TYPE_QUERY
public static final String TYPE_QUERY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ODBCServerRemoteImpl
public ODBCServerRemoteImpl(ODBCClientInstance client, TeiidDriver driver, LogonImpl logon)
-
-
Method Detail
-
initialize
public void initialize(Properties props, SocketAddress remoteAddress, SSLEngine sslEngine)
- Specified by:
initializein interfaceODBCServerRemote
-
logon
public void logon(String databaseName, String user, PgFrontendProtocol.NullTerminatedStringDataInputStream data, SocketAddress remoteAddress)
- Specified by:
logonin interfaceODBCServerRemote
-
cancel
public void cancel(int pid, int key)- Specified by:
cancelin interfaceODBCServerRemote
-
setConnectionProperties
public static void setConnectionProperties(ConnectionImpl conn) throws SQLException
- Throws:
SQLException
-
setConnectionProperties
public static void setConnectionProperties(ConnectionImpl conn, Properties p)
-
prepare
public void prepare(String prepareName, String sql, int[] paramType)
- Specified by:
preparein interfaceODBCServerRemote
-
bindParameters
public void bindParameters(String bindName, String prepareName, Object[] params, int resultCodeCount, short[] resultColumnFormat, Charset encoding)
- Specified by:
bindParametersin interfaceODBCServerRemote
-
unsupportedOperation
public void unsupportedOperation(String msg)
- Specified by:
unsupportedOperationin interfaceODBCServerRemote
-
execute
public void execute(String bindName, int maxRows)
- Specified by:
executein interfaceODBCServerRemote
-
executeQuery
public void executeQuery(String query)
- Specified by:
executeQueryin interfaceODBCServerRemote
-
isExecuting
public boolean isExecuting()
-
isErrorOccurred
public boolean isErrorOccurred()
-
getParameterDescription
public void getParameterDescription(String prepareName)
- Specified by:
getParameterDescriptionin interfaceODBCServerRemote
-
errorOccurred
public void errorOccurred(Throwable error)
-
getResultSetMetaDataDescription
public void getResultSetMetaDataDescription(String bindName)
- Specified by:
getResultSetMetaDataDescriptionin interfaceODBCServerRemote
-
sync
public void sync()
- Specified by:
syncin interfaceODBCServerRemote
-
doneExecuting
protected void doneExecuting()
-
closeBoundStatement
public void closeBoundStatement(String bindName)
- Specified by:
closeBoundStatementin interfaceODBCServerRemote
-
closePreparedStatement
public void closePreparedStatement(String preparedName)
- Specified by:
closePreparedStatementin interfaceODBCServerRemote
-
terminate
public void terminate()
- Specified by:
terminatein interfaceODBCServerRemote
-
flush
public void flush()
- Specified by:
flushin interfaceODBCServerRemote
-
functionCall
public void functionCall(int oid, Object[] params, short resultFormat)- Specified by:
functionCallin interfaceODBCServerRemote
-
sslRequest
public void sslRequest()
- Specified by:
sslRequestin interfaceODBCServerRemote
-
getEncoding
public String getEncoding()
-
-