Search in sources :

Example 6 with LocalVMChannel

use of herddb.network.netty.LocalVMChannel in project herddb by diennea.

the class NonMarshallingClientSideConnectionPeer method executeUpdate.

@Override
public DMLResult executeUpdate(String tableSpace, String query, long tx, boolean returnValues, boolean usePreparedStatement, List<Object> params) throws HDBException, ClientSideMetadataProviderException {
    LocalVMChannel channel = (LocalVMChannel) realConnection.ensureOpen();
    ServerSideConnectionPeer serverSidePeer = (ServerSideConnectionPeer) channel.getServerSideChannel().getMessagesReceiver();
    return serverSidePeer.executeUpdate(tableSpace, query, tx, returnValues, params);
}
Also used : ServerSideConnectionPeer(herddb.server.ServerSideConnectionPeer) LocalVMChannel(herddb.network.netty.LocalVMChannel)

Example 7 with LocalVMChannel

use of herddb.network.netty.LocalVMChannel in project herddb by diennea.

the class NonMarshallingClientSideConnectionPeer method rollbackTransaction.

@Override
public void rollbackTransaction(String tableSpace, long tx) throws HDBException, ClientSideMetadataProviderException {
    LocalVMChannel channel = (LocalVMChannel) realConnection.ensureOpen();
    ServerSideConnectionPeer serverSidePeer = (ServerSideConnectionPeer) channel.getServerSideChannel().getMessagesReceiver();
    serverSidePeer.rollbackTransaction(tableSpace, tx);
}
Also used : ServerSideConnectionPeer(herddb.server.ServerSideConnectionPeer) LocalVMChannel(herddb.network.netty.LocalVMChannel)

Aggregations

LocalVMChannel (herddb.network.netty.LocalVMChannel)7 ServerSideConnectionPeer (herddb.server.ServerSideConnectionPeer)7