publicvoid ShowMe() ......{ if ((this.body ==null) || (this.engine ==null) || (wheels ==null)) ......{ Console.WriteLine("This car has NOT been completed yet!"); } else ......{ Console.WriteLine("This is a car with a "+ body.Name +" and a "+ engine.Name +"."); Console.WriteLine("This car contains "+ wheels.Count +" wheels:"); for (int i =0; i < wheels.Count; i++) ......{ Wheel wheel = wheels[i]; Console.WriteLine(wheel.Name); } } } }
//汽车制造厂抽象定义 publicabstractclass CarBuilder ......{ public virtual void BuildBody() ......{ ;}//生产车身 public virtual void BuildEngine() ......{ ;}//生产引擎 public virtual void BuildWheel(string name) ......{ ;}//生产车轮 } //Benz汽车制造厂 publicclass BenzBuilder : CarBuilder ......{ private Benz car; public override void BuildBody() ......{ car =new Car(); car.AddBody(new Body("business car body")); } public override void BuildEngine() ......{ car.AddEngine(new Engine("benz engine")); } public override void BuildWheel(string name) ......{ car.AddWheel(new Wheel(name)); } //生产汽车,Benz汽车装配过程 public Benz GetCar() ......{ //do something like to assemble body and engine together. return car; } }
如果希望workflow存储最近20次的log,在session里的Config Object设置,log options做配置,save session log :sessions run ;savesessio log for these runs:20
session下面的source 里面有个tracing 
今天遇到一个客户BUG,当前的jdbc连接用户是root,然后部分删除操作都会报下面这个错误:The user specified as a definer ('aaa'@'localhost') does not exist
最后找原因发现删除操作做了触发器,而触发器里面有这样一句
/*!50017 DEFINER = ''aaa@'localhost' */
原来最初
O7_DICTIONARY_ACCESSIBILITY参数控制对数据字典的访问.设置为true,如果用户被授予了如select any table等any table权限,用户即使不是dba或sysdba用户也可以访问数据字典.在9i及以上版本默认为false,8i及以前版本默认为true.如果设置为true就可能会带来安全上的一些问题.这也就为什么O7_DICTIONARY_ACCESSIBIL
#h1#
0、完成课堂例子
1、将一个四位数逆序打印
1234 ==> 4321
实现方法一:
# include <stdio.h>
int main(void)
{
int i = 1234;
int one = i%10;
int two = i / 10 % 10;
int three = i / 100 % 10;
===================================================================
第一个
===================================================================
try{
CString sql;
sql.Format("select * from p