|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.joanju.cg.db.CuFileTable
public class CuFileTable
Provides inter-package un-cached access to the cufile table.
Not part of the public API. The cufile table is for compile unit file names. It maps the an id for a lowercase entry from the string table to a mixed case (case-sensitive) compile unit file name. Needed for finding mixed or upper case file names on unix. Is used for working with sets of cu file names, for example, for 'build' sets.
Constructor Summary | |
---|---|
CuFileTable()
|
Method Summary | |
---|---|
static void |
delete(java.lang.String filename)
Delete a filename entry from the table if it's there. |
static void |
insert(int cuid,
java.lang.String filename)
Insert a filename entry with a given CUID. |
static int |
insertIfNew(java.lang.String filename)
Insert a filename entry if it's not already there. |
static java.io.File |
lookupFile(int cuid)
Lookup the filename for a CUID and return a File for it. |
static java.io.File |
lookupFile(java.lang.String lowername)
Lookup an entry for an input lowercase name and return a File for it. |
static java.lang.String |
lookupFilename(int cuid)
Lookup the mixed-case filename for a CUID. |
static java.lang.String |
lookupFilename(java.lang.String lowername)
Lookup a mixed-case filename from a lowercase string. |
static int |
lookupId(java.lang.String filename)
Lookup the string id (cuid) for an input CU filename. |
static java.util.ArrayList<java.lang.String> |
queryLike(java.lang.String like)
Get an ArrayList of filenames matching an SQL LIKE. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CuFileTable()
Method Detail |
---|
public static void delete(java.lang.String filename) throws java.sql.SQLException
java.sql.SQLException
public static void insert(int cuid, java.lang.String filename) throws java.sql.SQLException
java.sql.SQLException
public static int insertIfNew(java.lang.String filename) throws java.sql.SQLException
java.sql.SQLException
public static int lookupId(java.lang.String filename) throws java.sql.SQLException
java.sql.SQLException
public static java.io.File lookupFile(int cuid) throws java.sql.SQLException
java.sql.SQLException
public static java.io.File lookupFile(java.lang.String lowername) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String lookupFilename(int cuid) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String lookupFilename(java.lang.String lowername) throws java.sql.SQLException
java.sql.SQLException
public static java.util.ArrayList<java.lang.String> queryLike(java.lang.String like) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |