摘要: PropertyTypeDefaultDescriptionLinkcancelSelectionBooleantrueIndicates if tablesorter should disable selection of text in the table header (TH). Makes header behave more like a button.cssAscString"headerSortUp"The CSS style used to style the header when sorting ascending. Example from the b 阅读全文
posted @ 2013-05-31 10:43 小泥巴1024 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 1.heap是堆,stack是栈。2.stack的空间由操作系统自动分配和释放,heap的空间是手动申请和释放的,heap常用new关键字来分配。3.stack空间有限,heap的空间是很大的自由区。在Java中,若只是声明一个对象,则先在栈内存中为其分配地址空间,若再new一下,实例化它,则在堆内存中为其分配地址。4.举例:数据类型 变量名;这样定义的东西在栈区。如:Object a =null; 只在栈内存中分配空间new 数据类型();或者malloc(长度); 这样定义的东西就在堆区如:Object b =new Object(); 则在堆内存中分配空间 阅读全文
posted @ 2013-05-05 15:39 小泥巴1024 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 多对多(many-to-many):在操作和性能方面都不太理想,所以多对多的映射使用较少,实际使用中最好转换成一对多的对象模型;hibernate会为我们创建中间关联表,转换成两个一对多。1. E-R图2. 实体类:Teacher实体类如下:Java代码 packagecom.reiyen.hibernate.domain;importjava.util.Set;publicclassTeacher{privateintid;privateStringname;privateSet<Student>students;//setter和getter方法}Student实体类如下:Ja 阅读全文
posted @ 2013-05-05 15:17 小泥巴1024 阅读(228) 评论(0) 推荐(0) 编辑
摘要: namespace DSList{ public interface IListDS<T> { int GetLength(); //求长度 bool IsEmpty(); //判断线性表是否为空 void Clear(); //清空操作 void Append(T item); //追加操作 void Insert(int pos, T item); //插入操作 T Remove(int pos); //删除操作 T GetElem(int pos); //取表元 int L... 阅读全文
posted @ 2013-04-26 15:54 小泥巴1024 阅读(95) 评论(0) 推荐(0) 编辑
摘要: namespace DSList{ public partial class SeqList<T> : IListDS<T> where T:IComparable<T> { //fields private T[] data; private int last; private int maxsize; //properties public T this[int index] { get { return data[index]; } set { data[index] = value; ... 阅读全文
posted @ 2013-04-26 15:44 小泥巴1024 阅读(747) 评论(0) 推荐(0) 编辑
摘要: namespace DSList{ public class Node<T> { // fields private T data; //Data domain private Node<T> next; //Next reference domain // properties public T Data { get { return data; } set { data = value; } } public Node<T> Next { get ... 阅读全文
posted @ 2013-04-26 15:41 小泥巴1024 阅读(145) 评论(0) 推荐(0) 编辑
摘要: namespace DSList{ public partial class LinkList<T> : IListDS<T> where T:IComparable<T> { //fields private Node<T> head; //property public Node<T> Head { get { return head; } set { head = value; } } //constructor public LinkList() { head = nul... 阅读全文
posted @ 2013-04-26 15:40 小泥巴1024 阅读(104) 评论(0) 推荐(0) 编辑
摘要: namespace DSList{ public class DbNode<T> { /// <summary> /// fields /// </summary> private DbNode<T> prev; //Previous reference domain private T data; //Data domain private DbNode<T> next; //Next reference domain /// <summary> /// properties /// </summary> p 阅读全文
posted @ 2013-04-26 15:39 小泥巴1024 阅读(105) 评论(0) 推荐(0) 编辑
摘要: namespace DSList{ public partial class DbLinkList<T> : IListDS<T> where T : IComparable<T> { private DbNode<T> head; //Head reference domain //Head property public DbNode<T> Head { get { return head; } set { head = value; } } //Constructor public D... 阅读全文
posted @ 2013-04-26 15:37 小泥巴1024 阅读(117) 评论(0) 推荐(0) 编辑
摘要: namespace DSList{ public interface IStack<T> { int GetLength(); //求栈的长度 bool IsEmpty(); //判断栈是否为空 void Clear(); //清空操作 void Push(T item); //入栈操作 T Pop(); //出栈操作 T GetTop(); //取栈顶元素 }} 阅读全文
posted @ 2013-04-26 15:35 小泥巴1024 阅读(136) 评论(0) 推荐(0) 编辑