/* * data_base_entry.java * * Created on 27. November 2006, 17:06 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package javaapplication5.db; import java.util.ArrayList; /** * * @author kj09 */ public class data_base_entry { private ArrayList entry; /** Creates a new instance of data_base_entry */ public data_base_entry() { entry = new ArrayList(); } public void add(int col, String data){ System.out.println("Data added to data_base_entry. Column: "+col+", data: "+data+" I am "+entry.size()+" entries big."); entry.add(col, entry); } public int getLastCol(){ //The LastColumn of a row (ID) return(entry.size()); } }