01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.persistency;
10:
11: import com.completex.objective.components.persistency.core.DatabasePolicy;
12: import com.completex.objective.components.persistency.type.TypeHandler;
13:
14: /**
15: *
16: * @author Gennady Krizhevsky
17: */
18: public interface Persistency0 {
19:
20: static final int RC_NON_DIRTY = -1;
21:
22: /**
23: *
24: * @return true if peristency is set to "batch mode"
25: */
26: boolean isUseBatchModify();
27:
28: /**
29: *
30: * @return DatabasePolicy
31: */
32: DatabasePolicy getDatabasePolicy();
33:
34: /**
35: * Returns QueryFactory
36: *
37: * @return QueryFactory
38: */
39: QueryFactory getQueryFactory();
40:
41: /**
42: *
43: * @return CallFactory
44: */
45: CallFactory getCallFactory();
46:
47: /**
48: * Returns SelectQueryBuilder
49: *
50: * @return SelectQueryBuilder
51: */
52: SelectQueryBuilder getSelectQueryBuilder();
53:
54: /**
55: *
56: * Register default type handler for the column type.
57: * If the column type has its type handler set it will take precedence
58: *
59: * @param columnType
60: * @param typeHandler
61: */
62: void registerTypeHandler(ColumnType columnType,
63: TypeHandler typeHandler);
64:
65: /**
66: * Can be used to reset persistency settings
67: *
68: * @param params
69: * @return Object
70: */
71: Object reset(Object[] params);
72:
73: }
|