01: /*
02: * Copyright 2004 Clinton Begin
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package com.ibatis.sqlmap.engine.impl;
17:
18: import com.ibatis.sqlmap.client.SqlMapClient;
19: import com.ibatis.sqlmap.engine.execution.SqlExecutor;
20: import com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactory;
21: import com.ibatis.sqlmap.engine.mapping.statement.MappedStatement;
22:
23: /**
24: * A more advanced SQL map client interface
25: */
26: public interface ExtendedSqlMapClient extends SqlMapClient {
27:
28: /**
29: * Get the SQL delegate
30: *
31: * @return - the SqlMapExecutorDelegate
32: */
33: public SqlMapExecutorDelegate getDelegate();
34:
35: /**
36: * Get a mapped statement by ID
37: *
38: * @param id - the ID
39: *
40: * @return - the mapped statement
41: */
42: public MappedStatement getMappedStatement(String id);
43:
44: /**
45: * Get the SQL executor
46: *
47: * @return - the SQL executor
48: */
49: public SqlExecutor getSqlExecutor();
50:
51: /**
52: * Get the status of lazy loading
53: *
54: * @return - the status
55: */
56: public boolean isLazyLoadingEnabled();
57:
58: /**
59: * Get the status of CGLib enhancements
60: *
61: * @return - the status
62: */
63: public boolean isEnhancementEnabled();
64:
65: public ResultObjectFactory getResultObjectFactory();
66:
67: }
|