Back to project page android-webview-example.
The source code is released under:
Apache License
If you think the Android project android-webview-example listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.significantfiles.android.sqlite.create; // w ww . j a va 2s. co m import com.significantfiles.android.provider.table.SQLiteTable; public class TableExtractor { private Class<?> type; private SQLiteTable table; public void set(final Class<?> type) { this.type = type; this.table = this.type.getAnnotation(SQLiteTable.class); } public String getIfTableNotExists() { return (table.ifNotExists() ? " IF NOT EXISTS " : ""); } public String getName() { return this.type.getSimpleName(); } /** * * @param typeDefinition * * @return an empty String if table is not temporary. else 'TEMP' */ public String getTempTableFlag() { return (table.temp() ? "TEMP" : ""); } }