-
Notifications
You must be signed in to change notification settings - Fork 1
CreateTable
nmc9 edited this page Apr 30, 2018
·
2 revisions
A series of methods that help build a CREATE TABLE statement.
This class is a series of hard coded Type Strings (INTEGER, DECIMAL,TEXT, INT(11), etc.) that can be used instead of hard coded strings for a stronger create table statement. TableHelper extends this class so they can be called directly
Accepts as many Strings as you want as paramters to the create table statement
createtable.put(ClassTable.FIELD_GENERIC,TEXT);
createtable.put(ClassTable.COL_ID,INTEGER,PRIMARY_KEY,AUTO_INCREMENT);
Returns the CreateTable object as a string that can be used to build the database table.
add the IF NOT EXISTS tag off by default
removed the IF NOT EXISTS tag off by default