package com.gmail.emerssso.srbase.database;

import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

public class DailyTable {
	public static final String TABLE_DAILY = "daily";
	public static final String COLUMN_ID = "_id";
	public static final String COLUMN_SR_ID = "SR_id";
	public static final String COLUMN_DATE = "date";
	public static final String COLUMN_START_TIME = "start_time";
	public static final String COLUMN_END_TIME = "end_time";
	public static final String COLUMN_TRAVEL_TIME = "travel_time";
	public static final String COLUMN_COMMENT = "comment";
	
	private static final String DATABASE_CREATE = "create table "
			+ TABLE_DAILY + "(" + COLUMN_ID
			+ " integer primary key autoincrement, "
			+ COLUMN_SR_ID + " text not null, "
			+ COLUMN_DATE + " text not null, "
			+ COLUMN_START_TIME + " text not null, "
			+ COLUMN_END_TIME + " text not null, "
			+ COLUMN_TRAVEL_TIME + " text not null, "
			+ COLUMN_COMMENT + " text not null);";
	
	public static void onCreate(SQLiteDatabase database) {
	    database.execSQL(DATABASE_CREATE);
	}
	
	public static void onUpgrade(SQLiteDatabase database, int oldVersion,
			int newVersion) {
		Log.w(SRTable.class.getName(), "Upgrading database from version "
				+ oldVersion + " to " + newVersion
				+ ", which will destroy all old data");
		database.execSQL("DROP TABLE IF EXISTS " + TABLE_DAILY);
		onCreate(database);
	}

}

@@ -115,33 +115,134 @@
 g;%0A%0A
-public class DailyTable %7B
+// TODO: Auto-generated Javadoc%0A/**%0A * The Class DailyTable.%0A */%0Apublic class DailyTable %7B%0A%09%0A%09/** The Constant TABLE_DAILY. */
 %0A%09pu
@@ -289,16 +289,50 @@
 daily%22;%0A
+%09%0A%09/** The Constant COLUMN_ID. */%0A
 %09public 
@@ -366,24 +366,61 @@
 ID = %22_id%22;%0A
+%09%0A%09/** The Constant COLUMN_SR_ID. */%0A
 %09public stat
@@ -459,16 +459,52 @@
 SR_id%22;%0A
+%09%0A%09/** The Constant COLUMN_DATE. */%0A
 %09public 
@@ -541,24 +541,66 @@
 E = %22date%22;%0A
+%09%0A%09/** The Constant COLUMN_START_TIME. */%0A
 %09public stat
@@ -641,32 +641,72 @@
 = %22start_time%22;%0A
+%09%0A%09/** The Constant COLUMN_END_TIME. */%0A
 %09public static f
@@ -739,32 +739,75 @@
 E = %22end_time%22;%0A
+%09%0A%09/** The Constant COLUMN_TRAVEL_TIME. */%0A
 %09public static f
@@ -854,16 +854,55 @@
 _time%22;%0A
+%09%0A%09/** The Constant COLUMN_COMMENT. */%0A
 %09public 
@@ -951,16 +951,54 @@
 ent%22;%0A%09%0A
+%09/** The Constant DATABASE_CREATE. */%0A
 %09private
@@ -1383,16 +1383,78 @@
 l);%22;%0A%09%0A
+%09/**%0A%09 * On create.%0A%09 *%0A%09 * @param database the database%0A%09 */%0A
 %09public 
@@ -1546,16 +1546,155 @@
 );%0A%09%7D%0A%09%0A
+%09/**%0A%09 * On upgrade.%0A%09 *%0A%09 * @param database the database%0A%09 * @param oldVersion the old version%0A%09 * @param newVersion the new version%0A%09 */%0A
 %09public 

Add Jautodoc to DailyTable