摘要:
与数据库建立连接、发送 操作数据库的语句并处理结果。 1、相对比较安全,可以防止sql注入。 2、有预编译功能,相同操作批量数据效率较高。 3、使用PreparedStatement 接口,继承自 Statement接口比Statement对象使用起来更加灵活,更有效率 4. JDBC API主要功 阅读全文
2016年12月14日
摘要:
package aaa; public interface Human { public void wearClothes(); public void walkToWhere(); } //定义装饰者 public abstract class Decorator implements Human 阅读全文