`
DavyJones2010
  • 浏览: 157668 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
1) Difference between Callable and Runnable      The Callable interface is similar to Runnable, in that both are designed for classes whose instances are potentially executed by another thread. A Runnable, however, does not return a result and cannot throw a checked exception.   2) ExecutorServi ...
1) Sleep package edu.xmu.thread; public class SleepTest { public static void main(String[] args) { Thread thread1 = new Thread(new MyRunnable()); Thread thread2 = new Thread(new MyRunnable()); Thread thread3 = new Thread(new MyRunnable()); System ...
A good resource to refer to:  http://www.mkyong.com/java-best-practices/understand-the-serialversionuid/
We need to delete the stored username/password when using subeclipse plugin. 1) If we are using SVNKit connector. We need to delete: [ECLIPSE_FOLDER]/configuration/org.eclipse.core.runtime.keyring   2) If we are using JavaHL connector. We need to delete folder below: [USER_FOLDER]/AppData/Roam ...
1.  ComboCheck.as /* * ComboCheck * v1.2.6 * Arcadio Carballares Martín, 2009 * http://www.carballares.es/arcadio */ package com.arcadiocarballares { import flash.events.Event; import flash.events.MouseEvent; import mx.collections.ArrayCollection; ...
1. WSC --> Wholesale Credit (Risk) 2. CCAR --> Comprehensive Capital Analysis and Review 3. CVA --> Credit Value Adjustment 4. BHC --> Bank Holding Company 5. SLA --> Stress Loss Aggregation 6. NCL --> Net Credit Loss 7. LLR --> Loan Loss Reserve 8. VaR --> Value at R ...
1. Quite often, we need to test dao in our project.     And derby is a good choice for this specific purpose.   2. Installation: 1) DTP Installation Help->Install New Software... 2) Download Derby JDBC JAR 1> In Non-maven project      We need to download the latest derby jar from th ...
1. As we know, it is meaningless to execute batch query.     There is only batchUpdate provided in JdbcTemplate. /** * @param sql defining an array of SQL statements that will be executed. */ public int[] batchUpdate(final String[] sql); /** * @param sql defining PreparedStatement that ...
1. JdbcDaoSupport public abstract class JdbcDaoSupport extends DaoSupport { private JdbcTemplate jdbcTemplate; public final void setDataSource(DataSource dataSource) { if (this.jdbcTemplate == null || dataSource != this.jdbcTemplate.getDataSource()) { this.jdbcTemplate = createJdbcTempl ...
1. queryForMap public Map<String, Object> queryForMap(String sql); public Map<String, Object> queryForMap(String sql, Object... args); public Map<String, Object> queryForMap(String sql, Object[] args, int[] argTypes); // The methods above are meant to be s single row query. A ...
1. Why do we need jdbc template as we already have plain JDBC? 1) Exception Handling 2) Opening & Closing Connections 3) Transaction Handling Operation listed above are cumbersome and repeating in old JDBC. Spring JDBC will take care of all those.   2. An example for Spring JDBC usage ...
1. First we need a util class import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellValue; import org.apache.poi.ss.usermodel.FormulaEvaluator; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; public class ExcelUtil { public ...
1. Characteristic of Transaction: 1) A (Atomicity) --> All the operations in one transaction should be regarded as a whole. They cannot be seperated. 2) C (Consistency) -->  3)  I  (Isolation)  --> One transaction should not interrupt or affect another transaction. 4) D (Durability)  - ...
1. CellReferenceUtil package edu.xmu.excel.util; public class CellReferenceUtil { /** * Input Coordination: C<br/> * Output Column Number: 2<br/> * * @param coordName * @return colIndex: 0 based index */ public static int getColIndex ...
1.Batching with Statement Object 1) Batching with Create package edu.xmu.jdbc.dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.util.List; import edu.xmu.jdbc.bean.Student; public class StudentDao { ...
Global site tag (gtag.js) - Google Analytics