Back to project page sqlite-analyzer.
The source code is released under:
Apache License
If you think the Android project sqlite-analyzer 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.novoda.sqlite.model; /* w w w . j a va2s. co m*/ import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; public final class Database { private final List<Table> tables = new ArrayList<Table>(); public void addTable(Table table) { tables.add(table); } public Collection<Table> getTables() { return Collections.unmodifiableCollection(tables); } public Table findTableByName(String tableName) { for (Table table : tables) if (table.getName().equalsIgnoreCase(tableName)) { return table; } return null; } }