一 介绍MongoDB是一个基于分布式文件存储的数据库。由C++语言编写。旨在为WEB应用提供可护展的高性能数据存储解决方案。一个mongod服务可以有建立多个数据库,每个数据库可以有多张表,这里的表名叫collection,每个collection可以存放多个文档(document),每个文档都以...
分类:
数据库 时间:
2014-08-14 15:51:28
阅读次数:
268
公司最近进了个实习生,每天下班前我都会花一些时间来解答一下实习生的一些疑问。今天问起了关于集合排序方法Sort的一些疑问,这让我一下回到自己刚刚入行的时候。那个时候也遇到了集合排序的问题,为发现接口IComparable和ICompare的妙处而兴奋,还在公司的内部分享会上分享了如何使用它们来排序。...
分类:
Web程序 时间:
2014-08-14 13:56:38
阅读次数:
246
一、org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.ptn.uim.bean.UimServFileRecord.uimServFileDatas, no session or session was closed 错误原因: 原因...
分类:
其他好文 时间:
2014-08-14 11:05:28
阅读次数:
171
iOS中CollectionCiew由于多次点击,会给程序造成错误。这个时候,我们可以用过手势类来进行判断和过滤。但是,有一个快捷的解决方法,那就是给用户响应增加延时操作。具体代码如下:[collectionView setUserInteractionEnabled:NO];[collection...
分类:
移动开发 时间:
2014-08-14 10:39:38
阅读次数:
205
In the partime, a simle program attracted my attention whose content is to change number to english by reading rule of money.It took about one hour to deal with this question.
Now the source was sh...
分类:
其他好文 时间:
2014-08-14 01:30:57
阅读次数:
268
Do you know how to init list in other way except for new object? The following will give you serveral tips. If having other great idea, you are welcome to share.
[java] view
plaincopy
...
分类:
编程语言 时间:
2014-08-14 01:30:37
阅读次数:
281
When learning the usage of map collection in java, I found serveral beneficial methods that was encountered in the daily life. Now I made a summary:
[java] view
plaincopy
i...
分类:
编程语言 时间:
2014-08-14 01:30:28
阅读次数:
207
In an attempt to remove duplicate elements from list, I go to the lengths to take advantage of methods in the java api. After investiagting the document of java api, the result is so satisfying that ...
分类:
编程语言 时间:
2014-08-14 01:30:17
阅读次数:
256
除了Java collection class/interface外,方便的有Google guava的utility class: Lists/Sets/Maps/Queues, 用它们可以方便地创建List等object。List list = Lists.newArrayList(); or ...
分类:
编程语言 时间:
2014-08-14 01:11:07
阅读次数:
243
DataTable.ChildRelations Gets the collection of child relations for this DataTable.A DataRelation defines the relationship between two tables. Typical...
分类:
其他好文 时间:
2014-08-14 00:52:37
阅读次数:
335