public void equalBytes(Column storeColumn, byte[] value) {
   if (logger.isDetailEnabled())
     logger.detail(
         "Column: "
             + storeColumn.getName()
             + " columnId: "
             + storeColumn.getColumnId()
             + " data length: "
             + value.length);
   ByteBuffer buffer = Utility.convertValue(storeColumn, value);
   int returnCode = ndbOperation.equal(storeColumn.getName(), buffer);
   handleError(returnCode, ndbOperation);
 }
 public void equalLong(Column storeColumn, long value) {
   try {
     ndbOperation.equalLong(storeColumn.getName(), value);
   } catch (NdbApiException ndbApiException) {
     throw new ClusterJDatastoreException(local.message("ERR_Datastore"), ndbApiException);
   }
 }
 public void setDatetime(Column storeColumn, Timestamp value) {
   try {
     ndbOperation.setDatetime(storeColumn.getName(), value);
   } catch (NdbApiException ndbApiException) {
     throw new ClusterJDatastoreException(local.message("ERR_Datastore"), ndbApiException);
   }
 }
 public void equalByte(Column storeColumn, byte b) {
   try {
     ndbOperation.equalInt(storeColumn.getName(), (int) b);
   } catch (NdbApiException ndbApiException) {
     throw new ClusterJDatastoreException(local.message("ERR_Datastore"), ndbApiException);
   }
 }
 public void setNull(Column storeColumn) {
   try {
     ndbOperation.setNull(storeColumn.getName());
   } catch (NdbApiException ndbApiException) {
     throw new ClusterJDatastoreException(local.message("ERR_Datastore"), ndbApiException);
   }
 }
 public void setByte(Column storeColumn, byte value) {
   try {
     ndbOperation.setInt(storeColumn.getName(), (int) value);
   } catch (NdbApiException ndbApiException) {
     throw new ClusterJDatastoreException(local.message("ERR_Datastore"), ndbApiException);
   }
 }
 public Blob getBlobHandle(Column storeColumn) {
   try {
     return new BlobImpl(ndbOperation.getBlobHandle(storeColumn.getName()));
   } catch (NdbApiException ndbApiException) {
     throw new ClusterJDatastoreException(local.message("ERR_Datastore"), ndbApiException);
   }
 }
 public void equalTime(Column storeColumn, Time value) {
   try {
     Timestamp timestamp = new Timestamp(((Time) value).getTime());
     ndbOperation.equalDatetime(storeColumn.getName(), timestamp);
   } catch (NdbApiException ndbApiException) {
     throw new ClusterJDatastoreException(local.message("ERR_Datastore"), ndbApiException);
   }
 }
 public void setBoundFloat(Column storeColumn, BoundType type, Float value) {
   int returnCode =
       ndbIndexScanOperation.setBound(
           storeColumn.getName(),
           convertBoundType(type),
           Utility.convertValue(storeColumn, value));
   handleError(returnCode, ndbIndexScanOperation);
 }
 public void setString(Column storeColumn, String value) {
   ByteBuffer stringStorageBuffer = Utility.encode(value, storeColumn, bufferManager);
   int length = stringStorageBuffer.remaining() - storeColumn.getPrefixLength();
   if (length > storeColumn.getLength()) {
     throw new ClusterJUserException(
         local.message(
             "ERR_Data_Too_Long", storeColumn.getName(), storeColumn.getLength(), length));
   }
   int returnCode = ndbOperation.setValue(storeColumn.getColumnId(), stringStorageBuffer);
   bufferManager.clearStringStorageBuffer();
   handleError(returnCode, ndbOperation);
 }
 public void setBytes(Column storeColumn, byte[] value) {
   // TODO use the string storage buffer instead of allocating a new buffer for each value
   int length = value.length;
   if (length > storeColumn.getLength()) {
     throw new ClusterJUserException(
         local.message(
             "ERR_Data_Too_Long", storeColumn.getName(), storeColumn.getLength(), length));
   }
   ByteBuffer buffer = Utility.convertValue(storeColumn, value);
   int returnCode = ndbOperation.setValue(storeColumn.getColumnId(), buffer);
   handleError(returnCode, ndbOperation);
 }
 public void equalByte(Column storeColumn, byte value) {
   int storeValue = Utility.convertByteValueForStorage(storeColumn, value);
   int returnCode = ndbOperation.equal(storeColumn.getName(), storeValue);
   handleError(returnCode, ndbOperation);
 }
 public void setShort(Column storeColumn, Short value) {
   int storeValue = Utility.convertShortValueForStorage(storeColumn, value);
   int returnCode = ndbOperation.setValue(storeColumn.getName(), storeValue);
   handleError(returnCode, ndbOperation);
 }
 public void equalString(Column storeColumn, String value) {
   ByteBuffer stringStorageBuffer = Utility.encode(value, storeColumn, bufferManager);
   int returnCode = ndbOperation.equal(storeColumn.getName(), stringStorageBuffer);
   bufferManager.clearStringStorageBuffer();
   handleError(returnCode, ndbOperation);
 }
 public void equalLong(Column storeColumn, long value) {
   long storeValue = Utility.convertLongValueForStorage(storeColumn, value);
   int returnCode = ndbOperation.equal(storeColumn.getName(), storeValue);
   handleError(returnCode, ndbOperation);
 }
 public void equalInt(Column storeColumn, int value) {
   int returnCode = ndbOperation.equal(storeColumn.getName(), value);
   handleError(returnCode, ndbOperation);
 }
 public void equalFloat(Column storeColumn, float value) {
   ByteBuffer buffer = Utility.convertValue(storeColumn, value);
   int returnCode = ndbOperation.equal(storeColumn.getName(), buffer);
   handleError(returnCode, ndbOperation);
 }
 public void equalBoolean(Column storeColumn, boolean booleanValue) {
   byte value = (booleanValue ? (byte) 0x01 : (byte) 0x00);
   int returnCode = ndbOperation.equal(storeColumn.getName(), value);
   handleError(returnCode, ndbOperation);
 }