2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: met_proto.h
|
2003-12-03 09:19:24 +01:00
|
|
|
* DESCRIPTION: Prototype header file for met.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): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#ifndef JRD_MET_PROTO_H
|
|
|
|
#define JRD_MET_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
#include "../jrd/exe.h"
|
|
|
|
#include "../jrd/blob_filter.h"
|
2005-05-12 20:28:04 +02:00
|
|
|
#include "../common/classes/MetaName.h"
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-03-28 11:10:30 +02:00
|
|
|
struct dsc;
|
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
namespace Jrd {
|
|
|
|
class jrd_tra;
|
|
|
|
class jrd_req;
|
|
|
|
class jrd_prc;
|
2004-03-30 06:10:52 +02:00
|
|
|
class Format;
|
2004-03-20 15:57:40 +01:00
|
|
|
class jrd_rel;
|
2004-03-28 11:10:30 +02:00
|
|
|
class CompilerScratch;
|
2004-03-20 15:57:40 +01:00
|
|
|
class jrd_nod;
|
2004-10-25 03:18:37 +02:00
|
|
|
class Database;
|
2004-03-31 20:03:51 +02:00
|
|
|
struct bid;
|
2004-03-28 11:10:30 +02:00
|
|
|
struct index_desc;
|
2004-03-20 15:57:40 +01:00
|
|
|
}
|
2004-02-20 07:43:27 +01:00
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
void MET_activate_shadow(Jrd::thread_db*);
|
2004-10-25 03:18:37 +02:00
|
|
|
ULONG MET_align(Jrd::Database* dbb, const dsc*, ULONG);
|
2004-07-06 07:59:40 +02:00
|
|
|
void MET_change_fields(Jrd::thread_db*, Jrd::jrd_tra*, const dsc*);
|
2004-03-30 06:10:52 +02:00
|
|
|
Jrd::Format* MET_current(Jrd::thread_db*, Jrd::jrd_rel*);
|
2005-05-12 20:28:04 +02:00
|
|
|
void MET_delete_dependencies(Jrd::thread_db*, const Firebird::MetaName&, USHORT);
|
2004-03-20 15:57:40 +01:00
|
|
|
void MET_delete_shadow(Jrd::thread_db*, USHORT);
|
2003-12-22 11:00:59 +01:00
|
|
|
void MET_error(const TEXT*, ...);
|
2004-03-30 06:10:52 +02:00
|
|
|
Jrd::Format* MET_format(Jrd::thread_db*, Jrd::jrd_rel*, USHORT);
|
2004-03-20 15:57:40 +01:00
|
|
|
bool MET_get_char_subtype(Jrd::thread_db*, SSHORT*, const UCHAR*, USHORT);
|
|
|
|
Jrd::jrd_nod* MET_get_dependencies(Jrd::thread_db*, Jrd::jrd_rel*, const TEXT*,
|
2004-03-28 11:10:30 +02:00
|
|
|
Jrd::CompilerScratch*, Jrd::bid*, Jrd::jrd_req**,
|
2005-05-12 20:28:04 +02:00
|
|
|
Jrd::CompilerScratch**, Firebird::MetaName&, USHORT, USHORT);
|
2004-03-20 15:57:40 +01:00
|
|
|
class Jrd::jrd_fld* MET_get_field(Jrd::jrd_rel*, USHORT);
|
|
|
|
void MET_get_shadow_files(Jrd::thread_db*, bool);
|
2005-05-12 20:28:04 +02:00
|
|
|
void MET_load_trigger(Jrd::thread_db*, Jrd::jrd_rel*, const Firebird::MetaName&, Jrd::trig_vec**);
|
|
|
|
void MET_lookup_cnstrt_for_index(Jrd::thread_db*, Firebird::MetaName& constraint, const Firebird::MetaName& index_name);
|
|
|
|
void MET_lookup_cnstrt_for_trigger(Jrd::thread_db*, Firebird::MetaName&, Firebird::MetaName&, const Firebird::MetaName&);
|
|
|
|
void MET_lookup_exception(Jrd::thread_db*, SLONG, /* OUT */ Firebird::MetaName&, /* OUT */ TEXT*, size_t);
|
|
|
|
SLONG MET_lookup_exception_number(Jrd::thread_db*, const Firebird::MetaName&);
|
|
|
|
int MET_lookup_field(Jrd::thread_db*, Jrd::jrd_rel*, const Firebird::MetaName&, const Firebird::MetaName*);
|
2004-03-20 15:57:40 +01:00
|
|
|
Jrd::BlobFilter* MET_lookup_filter(Jrd::thread_db*, SSHORT, SSHORT);
|
|
|
|
SLONG MET_lookup_generator(Jrd::thread_db*, const TEXT*);
|
2005-05-12 20:28:04 +02:00
|
|
|
void MET_lookup_generator_id(Jrd::thread_db*, SLONG, Firebird::MetaName&);
|
|
|
|
void MET_lookup_index(Jrd::thread_db*, Firebird::MetaName&, const Firebird::MetaName&, USHORT);
|
|
|
|
SLONG MET_lookup_index_name(Jrd::thread_db*, const Firebird::MetaName&, SLONG*, SSHORT*);
|
2004-03-28 11:10:30 +02:00
|
|
|
bool MET_lookup_partner(Jrd::thread_db*, Jrd::jrd_rel*, struct Jrd::index_desc*, const TEXT*);
|
2005-05-12 20:28:04 +02:00
|
|
|
Jrd::jrd_prc* MET_lookup_procedure(Jrd::thread_db*, const Firebird::MetaName&, bool);
|
2004-03-20 15:57:40 +01:00
|
|
|
Jrd::jrd_prc* MET_lookup_procedure_id(Jrd::thread_db*, SSHORT, bool, bool, USHORT);
|
2005-05-12 20:28:04 +02:00
|
|
|
Jrd::jrd_rel* MET_lookup_relation(Jrd::thread_db*, const Firebird::MetaName&);
|
2004-03-20 15:57:40 +01:00
|
|
|
Jrd::jrd_rel* MET_lookup_relation_id(Jrd::thread_db*, SLONG, bool);
|
2004-03-28 11:10:30 +02:00
|
|
|
Jrd::jrd_nod* MET_parse_blob(Jrd::thread_db*, Jrd::jrd_rel*, Jrd::bid*, Jrd::CompilerScratch**,
|
2005-03-28 23:52:55 +02:00
|
|
|
Jrd::jrd_req**, bool);
|
2004-03-20 15:57:40 +01:00
|
|
|
void MET_parse_sys_trigger(Jrd::thread_db*, Jrd::jrd_rel*);
|
2004-12-09 03:53:19 +01:00
|
|
|
bool MET_post_existence(Jrd::thread_db*, Jrd::jrd_rel*);
|
2004-03-20 15:57:40 +01:00
|
|
|
void MET_prepare(Jrd::thread_db*, Jrd::jrd_tra*, USHORT, const UCHAR*);
|
|
|
|
Jrd::jrd_prc* MET_procedure(Jrd::thread_db*, int, bool, USHORT);
|
|
|
|
Jrd::jrd_rel* MET_relation(Jrd::thread_db*, USHORT);
|
2005-05-12 20:28:04 +02:00
|
|
|
bool MET_relation_default_class (Jrd::thread_db*, const Firebird::MetaName&, const Firebird::MetaName&);
|
2004-03-20 15:57:40 +01:00
|
|
|
void MET_release_existence(Jrd::jrd_rel*);
|
|
|
|
void MET_release_triggers(Jrd::thread_db*, Jrd::trig_vec**);
|
2003-06-01 18:22:47 +02:00
|
|
|
#ifdef DEV_BUILD
|
2004-03-20 15:57:40 +01:00
|
|
|
void MET_verify_cache(Jrd::thread_db*);
|
2003-06-01 18:22:47 +02:00
|
|
|
#endif
|
2004-04-10 21:46:48 +02:00
|
|
|
void MET_clear_cache(Jrd::thread_db*);
|
2004-03-20 15:57:40 +01:00
|
|
|
bool MET_procedure_in_use(Jrd::thread_db*, Jrd::jrd_prc*);
|
|
|
|
void MET_remove_procedure(Jrd::thread_db*, int, Jrd::jrd_prc*);
|
|
|
|
void MET_revoke(Jrd::thread_db*, Jrd::jrd_tra*, const TEXT*, const TEXT*, const TEXT*);
|
|
|
|
void MET_scan_relation(Jrd::thread_db*, Jrd::jrd_rel*);
|
2005-05-12 20:28:04 +02:00
|
|
|
const TEXT* MET_trigger_msg(Jrd::thread_db*, const Firebird::MetaName&, USHORT);
|
2004-03-20 15:57:40 +01:00
|
|
|
void MET_update_shadow(Jrd::thread_db*, class Jrd::Shadow*, USHORT);
|
|
|
|
void MET_update_transaction(Jrd::thread_db*, Jrd::jrd_tra*, const bool);
|
|
|
|
void MET_update_partners(Jrd::thread_db*);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#endif // JRD_MET_PROTO_H
|
2003-12-03 09:19:24 +01:00
|
|
|
|