private long getHead() throws CoreException { if (this.head == 0) this.head = this.db.getRecPtr(this.ptr); return this.head; }
private long getHead() throws CoreException { if (this.head == 0) this.head = this.db.getRecPtr(this.ptr); return this.head; }
/** Return the value of the pointer stored in this field in the given instance. */ public long get(Database db, long instance) throws CoreException { return db.getRecPtr(instance + this.offset); }
/** Return the value of the pointer stored in this field in the given instance. */ public long get(Database db, long instance) throws CoreException { return db.getRecPtr(instance + this.offset); }
/** * Returns true iff this key is currently in the index */ public boolean isInIndex(Nd nd, long address) { long fieldAddress = address + this.offset; Database db = nd.getDB(); long namerec = db.getRecPtr(fieldAddress); boolean isInIndex = namerec != 0; return isInIndex; }
@Override public boolean hasReferences(Nd nd, long address) { if (this.pointsToOwner) { long ptr = nd.getDB().getRecPtr(address + this.offset); return ptr != 0; } return false; } }
/** * Returns true iff this key is currently in the index */ public boolean isInIndex(Nd nd, long address) { long fieldAddress = address + this.offset; Database db = nd.getDB(); long namerec = db.getRecPtr(fieldAddress); boolean isInIndex = namerec != 0; return isInIndex; }
@Override public boolean hasReferences(Nd nd, long address) { if (this.pointsToOwner) { long ptr = nd.getDB().getRecPtr(address + this.offset); return ptr != 0; } return false; } }
@Override public Long create(Nd dom, long address) { return dom.getDB().getRecPtr(address); }
@Override public Long create(Nd dom, long address) { return dom.getDB().getRecPtr(address); }
public T get() { long ptr = this.nd.getDB().getRecPtr(this.address); if (ptr == 0) { return null; } return this.targetFactory.create(this.nd, ptr); }
public T get() { long ptr = this.nd.getDB().getRecPtr(this.address); if (ptr == 0) { return null; } return this.targetFactory.create(this.nd, ptr); }
public IString get(Nd nd, long address) { Database db = nd.getDB(); long namerec = db.getRecPtr(address + this.offset); if (namerec == 0) { return EmptyString.create(); } return db.getString(namerec); }
public IString get(Nd nd, long address) { Database db = nd.getDB(); long namerec = db.getRecPtr(address + this.offset); if (namerec == 0) { return EmptyString.create(); } return db.getString(namerec); }
public void destruct() throws IndexException { Database db = getDB(); long current = this.address; while (true) { long ptr = db.getRecPtr(current + NEXT_MEMBER_BLOCK); db.free(current, Database.POOL_LINKED_LIST); if (isLastBlock(current, ptr)) { return; } current = ptr; } }
public IString get(Nd nd, long address) { Database db = nd.getDB(); long namerec = db.getRecPtr(address + this.offset); if (namerec == 0) { return EmptyString.create(); } return db.getString(namerec); }
public IString get(Nd nd, long address) { Database db = nd.getDB(); long namerec = db.getRecPtr(address + this.offset); if (namerec == 0) { return EmptyString.create(); } return db.getString(namerec); }
public long getAddress(Nd nd, long address) { long result = nd.getDB().getRecPtr(address + this.offset); if (!this.permitsNull && result == 0) { throw nd.describeProblem() .addProblemAddress(this, address) .build("Database contained a null in a non-null field"); //$NON-NLS-1$ } return result; }