2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: dpm_proto.h
|
2003-11-07 09:06:35 +01:00
|
|
|
* DESCRIPTION: Prototype header file for dpm.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2001-12-24 03:51:06 +01:00
|
|
|
#ifndef JRD_DPM_PROTO_H
|
|
|
|
#define JRD_DPM_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-09-28 08:28:38 +02:00
|
|
|
#include "../jrd/RecordNumber.h"
|
|
|
|
#include "../jrd/sbm.h"
|
|
|
|
|
2001-12-24 03:51:06 +01:00
|
|
|
// fwd. decl.
|
2014-04-04 20:36:35 +02:00
|
|
|
namespace Jrd
|
|
|
|
{
|
2004-03-20 15:57:40 +01:00
|
|
|
class blb;
|
|
|
|
class jrd_rel;
|
|
|
|
struct record_param;
|
|
|
|
class Record;
|
|
|
|
class jrd_tra;
|
|
|
|
struct win;
|
2014-04-04 20:36:35 +02:00
|
|
|
|
2014-04-13 03:42:10 +02:00
|
|
|
// Store allocation policy types. Parameter to DPM_store()
|
|
|
|
// I don't see it stored, but since the first constant was 1, I'm using the same values in the enum.
|
2014-04-04 20:36:35 +02:00
|
|
|
enum RecordStorageType
|
|
|
|
{
|
|
|
|
DPM_primary = 1, // New primary record
|
|
|
|
DPM_secondary, // Chained version of primary record
|
|
|
|
DPM_other // Independent (or don't care) record
|
|
|
|
};
|
2004-03-20 15:57:40 +01:00
|
|
|
}
|
2014-04-04 20:36:35 +02:00
|
|
|
|
|
|
|
namespace Ods
|
|
|
|
{
|
2004-03-20 15:57:40 +01:00
|
|
|
struct pag;
|
|
|
|
struct data_page;
|
|
|
|
}
|
2004-03-28 11:10:30 +02:00
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
Ods::pag* DPM_allocate(Jrd::thread_db*, Jrd::win*);
|
|
|
|
void DPM_backout(Jrd::thread_db*, Jrd::record_param*);
|
2011-06-05 10:15:33 +02:00
|
|
|
void DPM_backout_mark(Jrd::thread_db*, Jrd::record_param*, const Jrd::jrd_tra*);
|
2005-03-29 11:43:31 +02:00
|
|
|
double DPM_cardinality(Jrd::thread_db*, Jrd::jrd_rel*, const Jrd::Format*);
|
|
|
|
bool DPM_chain(Jrd::thread_db*, Jrd::record_param*, Jrd::record_param*);
|
2004-03-20 15:57:40 +01:00
|
|
|
void DPM_create_relation(Jrd::thread_db*, Jrd::jrd_rel*);
|
2011-01-21 18:55:04 +01:00
|
|
|
ULONG DPM_data_pages(Jrd::thread_db*, Jrd::jrd_rel*);
|
|
|
|
void DPM_delete(Jrd::thread_db*, Jrd::record_param*, ULONG);
|
2004-03-20 15:57:40 +01:00
|
|
|
void DPM_delete_relation(Jrd::thread_db*, Jrd::jrd_rel*);
|
|
|
|
bool DPM_fetch(Jrd::thread_db*, Jrd::record_param*, USHORT);
|
2014-02-25 07:31:39 +01:00
|
|
|
bool DPM_fetch_back(Jrd::thread_db*, Jrd::record_param*, USHORT, SSHORT);
|
2004-03-20 15:57:40 +01:00
|
|
|
void DPM_fetch_fragment(Jrd::thread_db*, Jrd::record_param*, USHORT);
|
2004-07-07 05:47:12 +02:00
|
|
|
SINT64 DPM_gen_id(Jrd::thread_db*, SLONG, bool, SINT64);
|
2004-03-28 11:10:30 +02:00
|
|
|
bool DPM_get(Jrd::thread_db*, Jrd::record_param*, SSHORT);
|
2011-01-21 18:55:04 +01:00
|
|
|
ULONG DPM_get_blob(Jrd::thread_db*, Jrd::blb*, RecordNumber, bool, ULONG);
|
2009-10-31 07:25:01 +01:00
|
|
|
bool DPM_next(Jrd::thread_db*, Jrd::record_param*, USHORT, bool);
|
2011-01-21 18:55:04 +01:00
|
|
|
void DPM_pages(Jrd::thread_db*, SSHORT, int, ULONG, ULONG);
|
|
|
|
#ifdef SUPERSERVER_V2
|
2004-09-28 08:28:38 +02:00
|
|
|
SLONG DPM_prefetch_bitmap(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::PageBitmap*, SLONG);
|
2011-01-21 18:55:04 +01:00
|
|
|
#endif
|
2004-03-20 15:57:40 +01:00
|
|
|
void DPM_scan_pages(Jrd::thread_db*);
|
2014-04-04 20:36:35 +02:00
|
|
|
void DPM_store(Jrd::thread_db*, Jrd::record_param*, Jrd::PageStack&, const Jrd::RecordStorageType type);
|
2004-09-28 08:28:38 +02:00
|
|
|
RecordNumber DPM_store_blob(Jrd::thread_db*, Jrd::blb*, Jrd::Record*);
|
2004-03-20 15:57:40 +01:00
|
|
|
void DPM_rewrite_header(Jrd::thread_db*, Jrd::record_param*);
|
2004-04-22 16:49:16 +02:00
|
|
|
void DPM_update(Jrd::thread_db*, Jrd::record_param*, Jrd::PageStack*, const Jrd::jrd_tra*);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2006-05-22 00:07:35 +02:00
|
|
|
void DPM_create_relation_pages(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::RelationPages*);
|
|
|
|
void DPM_delete_relation_pages(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::RelationPages*);
|
|
|
|
|
2004-02-20 07:43:27 +01:00
|
|
|
#endif // JRD_DPM_PROTO_H
|