primarykeyobj.java
来自「基于数据库操作的封装」· Java 代码 · 共 64 行
JAVA
64 行
package org.shaoye.magic;
import java.util.Vector;
import org.shaoye.magic.Column;
import java.io.Serializable;
/**
* @author zhangt
*
* To change this generated comment edit the template variable "typecomment":
* Window>Preferences>Java>Templates.
* To enable and disable the creation of type comments go to
* Window>Preferences>Java>Code Generation.
*/
public class PrimaryKeyObj implements Serializable {
private Vector _v = new Vector();
public PrimaryKeyObj() {
}
/**
* ����һ��������
*
*/
public void addPrimaryKey(Column _col) {
_v.add(_col);
}
/**
* ɾ��һ��������
*
*/
public void delPrimaryKey(int i) {
_v.remove(i);
}
/**
* ȡ��һ��������
*
*/
public Column getPrimaryKey(int i) {
return (Column)_v.get(i);
}
/**
* ������
*
*/
public int getPrimaryKeySize() {
return _v.size();
}
public void clear(){
_v.clear();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?