Search in sources :

Example 1 with LocalVMChannel

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

the class NonMarshallingClientSideConnectionPeer method executeUpdates.

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

Example 2 with LocalVMChannel

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

the class NonMarshallingClientSideConnectionPeer method executeScan.

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

Example 3 with LocalVMChannel

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

the class NonMarshallingClientSideConnectionPeer method commitTransaction.

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

Example 4 with LocalVMChannel

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

the class NonMarshallingClientSideConnectionPeer method beginTransaction.

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

Example 5 with LocalVMChannel

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

the class NonMarshallingClientSideConnectionPeer method executeGet.

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

Aggregations

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