CUBRID Engine  latest
serial.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 
20 /*
21  * serial.h: interface for serial functions
22  */
23 
24 #ifndef _SERIAL_H_
25 #define _SERIAL_H_
26 
27 #ident "$Id$"
28 
29 #if !defined (SERVER_MODE) && !defined (SA_MODE)
30 #error Belongs to server module
31 #endif /* !defined (SERVER_MODE) && !defined (SA_MODE) */
32 
33 #include "dbtype_def.h"
34 #include "thread_compat.hpp"
35 #include "storage_common.h"
36 
37 extern int xserial_get_current_value (THREAD_ENTRY * thread_p, DB_VALUE * result_num, const OID * oid_p,
38  int cached_num);
39 extern int xserial_get_next_value (THREAD_ENTRY * thread_p, DB_VALUE * result_num, const OID * oid_p, int cached_num,
40  int num_alloc, int is_auto_increment, bool force_set_last_insert_id);
41 extern void serial_finalize_cache_pool (void);
42 extern int serial_initialize_cache_pool (THREAD_ENTRY * thread_p);
43 extern void xserial_decache (THREAD_ENTRY * thread_p, OID * oidp);
44 
45 #if defined (SERVER_MODE)
46 extern int serial_cache_index_btid (THREAD_ENTRY * thread_p);
47 extern void serial_get_index_btid (BTID * output);
48 #endif /* SERVER_MODE */
49 
50 #endif /* _SERIAL_H_ */
void serial_finalize_cache_pool(void)
Definition: serial.c:1111
void THREAD_ENTRY
int xserial_get_next_value(THREAD_ENTRY *thread_p, DB_VALUE *result_num, const OID *oid_p, int cached_num, int num_alloc, int is_auto_increment, bool force_set_last_insert_id)
Definition: serial.c:282
int serial_initialize_cache_pool(THREAD_ENTRY *thread_p)
Definition: serial.c:1073
void xserial_decache(THREAD_ENTRY *thread_p, OID *oidp)
Definition: serial.c:1366
int xserial_get_current_value(THREAD_ENTRY *thread_p, DB_VALUE *result_num, const OID *oid_p, int cached_num)
Definition: serial.c:156