public class PgBackendProtocol extends io.netty.channel.ChannelOutboundHandlerAdapter implements ODBCClientRemote
ODBCClientRemote.CursorDirection| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_NAME |
static String |
CLIENT_ENCODING |
static String |
DEFAULT_APPLICATION_NAME |
static String |
DEFAULT_ENCODING |
static String |
SSL_HANDLER_KEY |
| Constructor and Description |
|---|
PgBackendProtocol(int maxLobSize,
int maxBufferSize,
SSLConfiguration config,
boolean requireSecure) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticationGSSContinue(byte[] serviceToken) |
void |
authenticationSucess(int processId,
int screctKey) |
void |
bindComplete() |
void |
emptyQueryReceived() |
void |
errorOccurred(String msg) |
void |
errorOccurred(Throwable t) |
static void |
escapeQuote(Writer sb,
String s) |
void |
flush() |
void |
functionCallResponse(byte[] data) |
void |
functionCallResponse(int data) |
String |
getClientEncoding() |
static String |
getCompletionTag(String sql,
Integer count) |
Charset |
getEncoding() |
void |
initialized(Properties props) |
void |
prepareCompleted(String preparedName) |
void |
ready(boolean inTransaction,
boolean failedTransaction) |
boolean |
secureData() |
void |
sendCommandComplete(String sql,
Integer count) |
void |
sendParameterDescription(int[] paramType) |
void |
sendParameterStatus(String param,
String value) |
void |
sendPortalSuspended() |
void |
sendResults(String sql,
ResultSetImpl rs,
List<PGUtil.PgColInfo> cols,
ResultsFuture<Integer> result,
ODBCClientRemote.CursorDirection direction,
int rowCount,
boolean describeRows,
short[] resultColumnFormat) |
void |
sendResultSetDescription(List<PGUtil.PgColInfo> cols,
short[] resultColumnFormat) |
void |
sendSslResponse() |
void |
sendUpdateCount(String sql,
int updateCount) |
void |
setEncoding(String value,
boolean init) |
void |
statementClosed() |
void |
terminated() |
void |
useAuthenticationGSS() |
void |
useClearTextAuthentication() |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic static final String APPLICATION_NAME
public static final String DEFAULT_APPLICATION_NAME
public static final String SSL_HANDLER_KEY
public static final String DEFAULT_ENCODING
public static final String CLIENT_ENCODING
public PgBackendProtocol(int maxLobSize,
int maxBufferSize,
SSLConfiguration config,
boolean requireSecure)
public void write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
throws Exception
write in interface io.netty.channel.ChannelOutboundHandlerwrite in class io.netty.channel.ChannelOutboundHandlerAdapterExceptionpublic void initialized(Properties props)
initialized in interface ODBCClientRemotepublic void useClearTextAuthentication()
useClearTextAuthentication in interface ODBCClientRemotepublic void useAuthenticationGSS()
useAuthenticationGSS in interface ODBCClientRemotepublic void authenticationGSSContinue(byte[] serviceToken)
authenticationGSSContinue in interface ODBCClientRemotepublic void authenticationSucess(int processId,
int screctKey)
authenticationSucess in interface ODBCClientRemotepublic void prepareCompleted(String preparedName)
prepareCompleted in interface ODBCClientRemotepublic void bindComplete()
bindComplete in interface ODBCClientRemotepublic void errorOccurred(String msg)
errorOccurred in interface ODBCClientRemotepublic void errorOccurred(Throwable t)
errorOccurred in interface ODBCClientRemotepublic void ready(boolean inTransaction,
boolean failedTransaction)
ready in interface ODBCClientRemotepublic void setEncoding(String value, boolean init)
setEncoding in interface ODBCClientRemotepublic String getClientEncoding()
public Charset getEncoding()
public void sendParameterDescription(int[] paramType)
sendParameterDescription in interface ODBCClientRemotepublic void sendResultSetDescription(List<PGUtil.PgColInfo> cols, short[] resultColumnFormat)
sendResultSetDescription in interface ODBCClientRemotepublic void sendResults(String sql, ResultSetImpl rs, List<PGUtil.PgColInfo> cols, ResultsFuture<Integer> result, ODBCClientRemote.CursorDirection direction, int rowCount, boolean describeRows, short[] resultColumnFormat)
sendResults in interface ODBCClientRemotepublic void sendUpdateCount(String sql, int updateCount)
sendUpdateCount in interface ODBCClientRemotepublic void statementClosed()
statementClosed in interface ODBCClientRemotepublic void terminated()
terminated in interface ODBCClientRemotepublic void flush()
flush in interface ODBCClientRemotepublic void emptyQueryReceived()
emptyQueryReceived in interface ODBCClientRemotepublic void sendCommandComplete(String sql, Integer count)
sendCommandComplete in interface ODBCClientRemotepublic static void escapeQuote(Writer sb, String s) throws IOException
IOExceptionpublic void sendSslResponse()
sendSslResponse in interface ODBCClientRemotepublic void sendPortalSuspended()
sendPortalSuspended in interface ODBCClientRemotepublic void sendParameterStatus(String param, String value)
sendParameterStatus in interface ODBCClientRemotepublic void functionCallResponse(byte[] data)
functionCallResponse in interface ODBCClientRemotepublic void functionCallResponse(int data)
functionCallResponse in interface ODBCClientRemotepublic boolean secureData()
Copyright © 2018 JBoss by Red Hat. All rights reserved.