Mercurial > hg > blitz_condensed
view src/org/dancres/blitz/entry/FixedOIDs.java @ 33:0b9265358617
Added tag 2.1.1 for changeset a77f0a9ed93c
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 12 Jun 2010 10:52:10 +0100 |
parents | 3dc0c5604566 |
children |
line wrap: on
line source
package org.dancres.blitz.entry; import org.dancres.util.BytePacker; /** Various fixed OIDs are used to store meta data in the registry associated with a particular type. This class encapsulates all the knowledge of what OIDs are used to store which bits of information. */ class FixedOIDs { private static final long INDEXES_OID = 0; private static final long SUBTYPES_OID = 1; static final byte[] INDEXES_KEY = keyFor(INDEXES_OID); static final byte[] SUBTYPES_KEY = keyFor(SUBTYPES_OID); static byte[] keyFor(long anId) { byte[] myKey = new byte[8]; BytePacker myPacker = BytePacker.getMSBPacker(myKey); myPacker.putLong(anId, 0); return myKey; } }