文章列表
Mybatis 除了可以在xml定义sql外, 还可以通过java来生成sql.
生成sql的java类EntityProvider:
// Copyright (c) 1998-2013 Core Solutions Limited. All rights reserved.
package com.core.traininig.mybatisquiz;
import static org.apache.ibatis.jdbc.SqlBuilder.BEGIN;
import static org.apache.ibatis.jdbc.SqlBuilder.DELETE_F ...
类图中的关系主要有以下四种:
[1] Generalization(泛化), 其中Generalization(泛化)有两种实现: extends &&
implements.
[2] Association(关联):类与类之间的连接,让一个类知道另外一个类的属性与方法, 代码体
现(成员变量) 其中以下两种也是关联关系(但依赖关系更强):
a) Aggregation(聚合):整体和个体的关系, 整体不负责个体的生命周
期, 空心菱形◇指向整体
b) Combination(组合):整体对象负责个体对象的生命周期, 实心菱形指
...
http://blog.jobbole.com/37893/
(一):循环内的异常处理
SET SERVEROUTPUT ON;
DECLARE
SELECT_SQL1 VARCHAR2(1000);
SELECT_SQL2 VARCHAR2(1000);
UPDATE_SQL VARCHAR2(1000);
TABLE_NAME VARCHAR2(100);
UNIT_ID VARCHAR2(100);
BEGIN
FOR C1 IN (SELECT DC.ID, DC.DOC_ID, DC.REF_ENTITY_NAME, DC.DOC_VERSION, DC.DOMAIN_ID FROM CNT_DOC_UNIT DC ...
数据准备:
CREATE TABLE MEMBER (
MEMBER_ID NUMBER(10, 0),
FIRST_NAME VARCHAR2(400) NOT NULL,
LAST_NAME VARCHAR2(400) NOT NULL,
ADDRESS VARCHAR2(1000),
PHONE VARCHAR2(400),
PRIMARY KEY (MEMBER_ID));
CREATE TABLE TASK (
TASK_ID NUMBER(10, 0),
MEMBER_ID NUMBER(10, 0),
CONTENT VARCHAR2(1000),
...
Books recommended
1. The Mythical Man Month
2. Code Complete
3. Thinking in Java
4. Design Patterns: Elements of Reusable Object-Oriented Software
5. How to Win Friends and Influence People
6. Bitter Java
7. SQL Hacks
8. Extreme Productivity: Boost Your Results, Reduce Your Hours
Websites recommende ...