Elexis API documentation
Version 2.1.6 as of December 11 2011

com.healthmarketscience.jackcess
Class NullMask

java.lang.Object
  extended by com.healthmarketscience.jackcess.NullMask

public class NullMask
extends java.lang.Object

Bitmask that indicates whether or not each column in a row is null. Also holds values of boolean columns.

Author:
Tim McCune

Constructor Summary
NullMask(int columnCount)
           
 
Method Summary
 int byteSize()
           
 boolean isNull(Column column)
           
 void markNotNull(Column column)
          Indicate that the column with the given number is not null (or a boolean value is true).
 void read(java.nio.ByteBuffer buffer)
          Read a mask in from a buffer
 void write(java.nio.ByteBuffer buffer)
          Write a mask to a buffer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullMask

public NullMask(int columnCount)
Parameters:
columnCount - Number of columns in the row that this mask will be used for
Method Detail

read

public void read(java.nio.ByteBuffer buffer)
Read a mask in from a buffer


write

public void write(java.nio.ByteBuffer buffer)
Write a mask to a buffer


isNull

public boolean isNull(Column column)
Parameters:
column - column to test for null
Returns:
Whether or not the value for that column is null. For boolean columns, returns the actual value of the column (where non-null == true)

markNotNull

public void markNotNull(Column column)
Indicate that the column with the given number is not null (or a boolean value is true).

Parameters:
column - column to be marked non-null

byteSize

public int byteSize()
Returns:
Size in bytes of this mask

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis