ITeye博客

later equals never

四书五经 · 共 56 篇文章

前端学习点滴留痕1: bgcolor+background

bgcolor: 背景颜色 background:背景图片,可以是gif/jpg格式图片,不可以是png格式图片 eg: <body bgcolor="blue" background="img/xxx.jpg"> <table border="1" bgcolor="blue" background="img/xxx.jpg">

2017-08-06 21:59 · 前端学习点滴 · 评论(0)

oracle delete all object under an user

BEGINFOR cur_rec IN(SELECT object_name, object_type FROM user_objects WHERE object_type IN('TABLE','VIEW','PACKAGE','PROCEDURE','FUNCTION','SEQUENCE', 'SYNONYM', 'TRIGGER' )) LOOP BEGINIF cur_rec.object_type ='TABLE'THENEXECUTE IMMEDIATE 'DROP '|| cur_rec.object_type ||' "'|| cur_rec.object_name ||…

2013-11-22 11:36 · oracle · 评论(0)

common toString using reflection

core class: package com.itreply.oschina; import java.lang.reflect.Field; public class GeneralToString { public static String toString(Object obj) { if(obj == null) return "null"; StringBuffer sb = new StringBuffer(); Class clazz = obj.getClass(); Field[] fields = clazz.getDeclaredFields(); sb.appen…

2013-05-22 13:58 · java · 评论(0)

git tutorial

http://rogerdudler.github.io/git-guide/index.zh.html http://marklodato.github.io/visual-git-guide/index-en.html

2013-05-03 17:05 · maven · 评论(0)

Hibernate one -to -one mapping for Oracle auto-increment key

1. DB table create The parent table create table stock ( stock_id number(10) not null, stock_code varchar2(10) not null, stock_name varchar2(10) not null, primary key (stock_id) ); the child table create table stock_detail( stock_id number(10) not null, comp_name varchar2(100) not null, comp_desc v…

2013-04-05 17:53 · hibernate · 评论(0)

struts1: ForwardAction example

1st. create simple web app mvn archetype:create -DgroupId= com.iteye.struts1 -DartifactId= struts1 -DarchetypeArtifactId= maven -archetype-webapp 2nd. update pom.xml ... <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts-core</artifactId> <version>1.3.10</version> </dependency> <d…

2013-04-04 17:31 · struts · 评论(0)

1. maven常用命令

1. create simple web app mvn archetype:create -DgroupId= com.iteye.struts1 -DartifactId= struts1 -DarchetypeArtifactId= maven -archetype-webapp http://www.cnblogs.com/BenWong/archive/2013/03/25/2980820.html

2013-04-04 12:21 · maven · 评论(0)

eclipse hotkey

1. view variable value during debug: ctrl + shift + i 2. modify all same variable's value: alt + shift + R 3. convert to lowercase: ctrl + shift +Y 4. convert to uppercase ctrl + shift + X 5. locate specified method: ctrl + o

2013-03-26 16:21 · tools · 评论(0)

java JVM

1. Generations for Garbage Collection info: Java objects are created in Heap and Heap is divided into three parts, these are called as Young generation , Tenured or Old Generation and Perm Area . 1. young Generation is further divided into three parts known as Eden space , Survivor 1 and Survivor 2…

2013-03-21 16:57 · java · 评论(0)

multi-thread

1. sleep() and yield() don't release the object lock 2. wait will release the object lock when called

2013-03-19 12:07 · java multi-thread · 评论(0)

Business requirements relates

Business requirements usually consist of both functional requirements and non-functional requirements. The plan for implementing functional requirements is detailed in the system desig**n . The plan for implementing non-functional requirements is detailed in the system architecture . functional req…

2013-03-14 15:29 · software life-cycle · 评论(0)

Fixed Deposit account / savings account / installment load

Fixed Deposit Account (定期存款账户): customer deposits a big sum of money for a fixed duration of time (Atleast 3 months or higher). bank gives a very good interest as payment for keeping the deposit savings account(储蓄账户/活期账户) :where you can withdraw money at any time and get very low interest for the b…

2013-03-14 15:28 · bank · 评论(0)

SAVEPOINT

http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_10001.htm 4. savepoint Use the SAVEPOINT statement to identify a point in a transaction to which you can later roll back.

2013-03-13 16:43 · 评论(0)

trigger

Triggers are procedures that are stored in the database and are implicitly run, or fired, when something happens. Traditionally, triggers supported the execution of a PL/SQL block when an INSERT , UPDATE , or DELETE occurred on a table or view Trigger’s type: DML triggers on tables. INSTEAD OF trig…

2013-03-13 16:22 · oracle · 评论(0)

oracle wrap

Wrapping is the process of hiding PL/SQL source code. Wrapping helps to protect your source code from business competitors and others who might misuse it. You can wrap PL/SQL source code with either the wrap utility or DBMS_DDL subprograms. The wrap utility wraps a single source file, such as a SQL…

2013-03-13 15:45 · oracle · 评论(0)