| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | ColumnImpl.
Base class for the supported autonumber types. |
| private class | |
| private static class | ColumnImpl.
Date subclass which stashes the original date bits, in case we attempt to re-write the value (will not lose precision). |
| protected abstract static class | ColumnImpl.
Factory which handles date/time values appropriately for a DateTimeType. |
| private static class | ColumnImpl.
Factory impl for legacy Date handling. |
| private static class | |
| pack-priv static class | ColumnImpl.
Utility struct for passing params through ColumnImpl constructors. |
| pack-priv static interface | ColumnImpl.
internal interface for types which hold bytes in memory |
| private static class | ColumnImpl.
Factory impl for LocalDateTime handling. |
| private class | |
| private static class | ColumnImpl.
"Internal" column validator for text columns with the "allow zero len" property disabled. |
| private static class | ColumnImpl.
Wrapper for raw column data which can be re-written. |
| private static class | ColumnImpl.
"Internal" column validator for columns with the "required" property enabled. |
| public static class | ColumnImpl.
Collation sort order stored per text column in an MS Access database file. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final byte | AUTO_NUMBER_FLAG_MASK
mask for the auto number bit |
| public static final byte | AUTO_NUMBER_GUID_FLAG_MASK
mask for the auto number guid bit |
| private static final LocalDate | |
| private static final LocalDateTime | |
| private static final LocalTime | |
| public static final LocalDate | |
| public static final LocalDateTime | |
| public static final LocalTime | |
| private static final byte | |
| public static final byte | COMPLEX_FK_EXT_FLAG_MASK
mask for the ext flag which marks the complex value foreign key column of a complex column's flat table. |
| protected static final byte | |
| private static final ColumnImpl. | |
| private ColDefaultValueEvalContext | defValue
default value generator |
| private static final byte[] | |
| public static final byte | FIXED_LEN_FLAG_MASK
mask for the fixed len bit |
| public static final ColumnImpl. | GENERAL_97_SORT_ORDER
Sort order used by Access 97 databases (LCID 1033, version −1). |
| public static final ColumnImpl. | GENERAL_LEGACY_SORT_ORDER
Sort order used by Access 2000–2007 databases (LCID 1033, version 0). |
| public static final ColumnImpl. | GENERAL_SORT_ORDER
Sort order used by Access 2010 and later databases (LCID 1033, version 1). |
| private static final short | GENERAL_SORT_ORDER_VALUE
Windows LCID for the "General" English/default sort order used by all three General variants. |
| private static final Pattern | GUID_PATTERN
pattern matching textual guid strings (allows for optional surrounding '{' and '}') |
| public static final byte | HYPERLINK_FLAG_MASK
mask for the hyperlink bit (on memo types) |
| pack-priv static final int | INVALID_AUTO_NUMBER
auto numbers must be > 0 |
| pack-priv static final int | |
| pack-priv static final ColumnImpl. | |
| private int | lengthInUnits
length of the column in units, lazily computed |
| protected static final Logger | |
| private final boolean | mautoNumber
Whether or not the column is an autonumber column |
| private final ColumnImpl. | mautoNumberGenerator
the auto number generator for this column (if autonumber column) |
| private static final char | |
| private final boolean | mcalculated
Whether or not the column is a calculated column |
| private final short | mcolumnId
id assigned to this column when it was created. |
| private int | mcolumnIndex
index of the data for this column within a list of row data |
| private final short | mcolumnLength
Maximum column length |
| private final short | mcolumnNumber
0-based column number |
| private final boolean | mcomplexValueForeignKey
Whether or not the column is the complex value foreign key of a complex column's flat table |
| private final int | mdisplayIndex
display index of the data for this column |
| private final int | mfixedDataOffset
the offset of the fixed data in the row |
| pack-priv static final long | MILLIS_BETWEEN_EPOCH_AND_1900
Access starts counting dates at Dec 30, 1899 (note, this strange date seems to be caused by MS compatibility with Lotus-1-2-3 and incorrect leap years). |
| private static final long | |
| private static final long | MILLISECONDS_PER_DAY
Access stores numeric dates in days. |
| private static final char | |
| private final String | mname
Column name |
| private final TableImpl | mtable
owning table |
| private final DataType | mtype
Data type |
| private final boolean | mvariableLength
Whether or not the column is of variable length |
| private final int | mvarLenTableIndex
the index of the variable length data in the var len offset table |
| private static final long | |
| private static final long | |
| pack-priv static final byte | |
| private PropertyMap | props
properties for this column, if any |
| public static final Object | RETURN_ROW_ID
Placeholder object for adding rows which indicates that the caller wants the RowId of the new row. |
| public static final ColumnImpl. | RUSSIAN_SORT_ORDER
Sort order used by MS Access databases configured with the Russian/Cyrillic collation (LCID 1049, version 0). |
| private static final long | |
| private static final byte[] | TEXT_COMPRESSION_HEADER
header used to indicate unicode text compression |
| public static final ColumnImpl. | TURKISH_SORT_ORDER
Sort order used by MS Access databases configured with the Turkish collation (LCID 1055, version 0). |
| public static final ColumnImpl. | UKRAINIAN_SORT_ORDER
Sort order used by MS Access databases configured with the Ukrainian/Cyrillic collation (LCID 1058, version 0). |
| public static final byte | UPDATABLE_FLAG_MASK
mask for the "is updatable" field bit |
| private ColumnValidator | validator
Validator for writing new values |
| Access | Constructor and Description |
|---|---|
| protected | ColumnImpl(TableImpl _table, String _name, DataType _type, int _colNumber, int _fixedOffset, int _varLenIndex)
|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected static Object | |
| protected int | |
| pack-priv void | |
| public int | compareTo(ColumnImpl other)
Implements java. Orders Columns by column number. |
| public static short | Returns: The number of variable length columns found in the listA list of columns in a table definition columns)Returns the number of variable length columns found in the list. |
| public static ColumnImpl | create(TableImpl
owning table table, ByteBuffer Buffer containing column definition buffer, int Offset in the buffer at which the column definition starts offset, String name, int displayIndex)Creates the appropriate ColumnImpl class and reads a column definition in from a buffer |
| private ColumnImpl. | |
| private void | decodeTextSegment(byte[] data, int dataStart, int dataEnd, boolean inCompressedMode, StringBuilder textBuf)
Decodes a segnment of a text value into the given buffer according to the given status of the segment (compressed/uncompressed). |
| pack-priv String | |
| private static CharBuffer | decodeUncompressedText(byte[]
bytes of text to decode textBytes, int startPos, int length, Charset charset)Returns: the decoded string |
| public static String | Returns: the decoded stringbytes of text to decode textBytes, Charset relevant charset charset)Returns the decoded string. |
| private static Duration | |
| pack-priv ByteBuffer | encodeTextValue(Object obj, int minChars, int maxChars, boolean forceUncompressed)
Encodes a text value, possibly compressing. |
| public static ByteBuffer | Returns: A buffer with the text encodedText to encode text, Charset database charset charset)Returns a buffer with the text encoded. |
| private static void | |
| public long | |
| private static long | |
| pack-priv static long | |
| public Object | |
| public ColumnImpl. | getAutoNumberGenerator()
Returns the AutoNumberGenerator for this column if this is an autonumber column, |
| protected CalcColEvalContext | |
| protected Charset | |
| private static byte | |
| public short | |
| public int | getColumnIndex()
Implements io. Returns the position of this column within its table, i.e. the index at which this column's value is stored in
the |
| public short | |
| public ColumnValidator | getColumnValidator()
Implements io. Gets currently configured ColumnValidator (always non- |
| public ComplexColumnInfo | getComplexInfo()
Implements io. Returns extended functionality for "complex" columns. |
| public DatabaseImpl | getDatabase()
Implements io. Returns the database to which this column's table belongs. |
| public ColumnImpl. | |
| protected static ColumnImpl. | |
| public int | |
| public int | |
| protected int | |
| public JetFormat | |
| private static long | getFromLocalTimeZoneOffset(long time, TimeZone tz)
Gets the timezone offset from local time to UTC for the given time (including DST). |
| public short | getLength()
Implements io. Returns the length of this column in bytes, as stored in the database. |
| public final short | getLengthInUnits()
Implements io. Returns the length of this column in "units" appropriate for its type (e.g. characters for TEXT columns), which
may differ from |
| public String | |
| pack-priv byte | |
| public int | |
| public PageChannel | |
| public byte | getPrecision()
Implements io. Returns the numeric precision of this column (only meaningful for DataTypes NUMERIC and MONEY). |
| public PropertyMap | getProperties()
Implements io. Returns the properties for this column. |
| public Object | getRowValue(Object[] rowArray)
Implements io. Returns this column's value at the position given by |
| public Object | getRowValue(Map<String, ?> rowMap)
Implements io. Returns this column's value, keyed by |
| public byte | getScale()
Implements io. Returns the numeric scale of this column (only meaningful for DataTypes NUMERIC and MONEY). |
| public int | getSQLType()
Implements io. Returns the |
| public TableImpl | getTable()
Implements io. Returns the table to which this column belongs. |
| public short | |
| public ColumnImpl. | |
| public TimeZone | |
| public DataType | |
| public int | |
| public ColumnImpl | getVersionHistoryColumn()
Implements io. Returns the column which tracks the version history for an "append only" column. |
| public ZoneId | |
| pack-priv void | |
| public boolean | isAppendOnly()
Implements io. Whether or not this column is "append only" (its history is tracked by a separate version history column). |
| public boolean | isAutoNumber()
Implements io. Returns |
| public boolean | isCalculated()
Implements io. Returns whether or not this is a calculated column. |
| public boolean | Returns: whether this column is a complex value foreign keyReturns |
| public boolean | isCompressedUnicode()
Implements io. Returns |
| pack-priv static boolean | |
| public boolean | isHyperlink()
Implements io. Returns whether or not this is a hyperlink column (only possible for columns of type MEMO). |
| pack-priv static boolean | |
| public static boolean | |
| pack-priv boolean | |
| private static boolean | isUnicodeCompressible(CharSequence text)
Returns |
| public boolean | isVariableLength()
Implements io. Returns |
| public static LocalDateTime | |
| pack-priv void | |
| pack-priv void | |
| public static ColumnImpl. | rawDataWrapper(byte[] bytes)
Returns a wrapper for raw column data that can be written without understanding the data. |
| public Object | Returns: The deserialized ObjectThe raw byte value data)Deserialize a raw byte value for this column into an Object |
| public Object | |
| pack-priv static short | readCodePage(ByteBuffer buffer, int offset, JetFormat format)
Reads the column cade page info from the given buffer, if supported for this db. |
| private BigDecimal | Returns: BigDecimal representing the monetary valueColumn value that points to currency data buffer)Decodes "Currency" values. |
| private Object | |
| private static long | readExtDateLong(ByteBuffer buffer, int numChars)
Reads the given number of ascii encoded characters as a long value. |
| private static Object | |
| pack-priv static byte | readExtraFlags(ByteBuffer buffer, int offset, JetFormat format)
Read the extra flags field for a column definition. |
| public Object | |
| private static String | |
| private BigDecimal | |
| pack-priv static ColumnImpl. | Returns: the sort order for the column; nevernulltable definition buffer, positioned arbitrarily (absolute read) buffer, int byte offset of the sort-order field within position, JetFormat bufferJetFormat of the database, providing format)SIZE_SORT_ORDER and DEFAULT_SORT_ORDERReads the collating sort order for a text column from the table-definition buffer. |
| pack-priv void | |
| private static double | roundToMillis(double dbl)
Rounds the given decimal to milliseconds (3 decimal places) using the standard access rounding mode. |
| protected void | |
| public void | |
| public void | setColumnValidator(ColumnValidator newValidator)
Implements io. Sets a new ColumnValidator. |
| public Object | setRowValue(Object[] rowArray, Object value)
Implements io. Sets this column's value at the position given by |
| public Object | setRowValue(Map<String, Object> rowMap, Object value)
Implements io. Sets this column's value, keyed by |
| pack-priv void | |
| public void | |
| public boolean | |
| private static LocalDateTime | |
| pack-priv static BigDecimal | |
| pack-priv BigDecimal | Returns: an appropriate BigDecimal representation of the given object.null is returned as 0 and
Numbers are converted using their double representation.Returns an appropriate BigDecimal representation of the given object. |
| pack-priv static BigDecimal | Returns: an appropriate BigDecimal representation of the given object.null is returned as 0 and
Numbers are converted using their double representation.Returns an appropriate BigDecimal representation of the given object. |
| public static boolean | |
| public static byte[] | Returns: an appropriate byte[] representation of the given object.Returns an appropriate byte[] representation of the given object. |
| public static CharSequence | Returns: an appropriate CharSequence representation of the given object.Returns an appropriate CharSequence representation of the given object. |
| public double | toDateDouble(Object value)
Returns an access date double converted from a java Date/Calendar/Number time value. |
| private static double | toDateDouble(Object value, DateTimeContext dtc)
Returns an access date double converted from a java Date/Calendar/Number/Temporal time value. |
| public static double | |
| private static long | |
| public static Object | toInternalValue(DataType dataType, Object value, DatabaseImpl db)
Converts the given value to the "internal" representation for the given data type. |
| pack-priv static Object | toInternalValue(DataType dataType, Object value, DatabaseImpl db, ColumnImpl.
|
| pack-priv static double | |
| private static double | |
| pack-priv static LocalDateTime | |
| private Number | |
| private static Number | toNumber(Object value, DatabaseImpl db)
Returns: an appropriate Number representation of the given object. |
| public String | |
| pack-priv byte[] | |
| public Object | |
| pack-priv String | |
| private static String | |
| public ByteBuffer | |
| public ByteBuffer | |
| protected static void | |
| protected static void | |
| private void | |
| private void | |
| protected static void | |
| protected static void | writeDefinitions(TableCreator creator, ByteBuffer
Buffer to write to buffer)Writes the column definitions into a table definition buffer. |
| private static void | writeExtDateLong(ByteBuffer buffer, long val, int numChars)
Writes the given long value as the given number of ascii encoded characters. |
| private void | |
| protected ByteBuffer | Returns: A buffer containing the bytesObject to serialize obj, ByteOrder Order in which to serialize order)Serialize an Object into a raw byte value for this column |
| protected ByteBuffer | |
| private void | |
| private void | |
| protected ByteBuffer | |
| private static void | writeSortOrder(ByteBuffer buffer, ColumnImpl.
Writes the sort order info to the given buffer at the current position. |
| public boolean |