public class SqlStringIndex extends java.lang.Object implements StringIndex
Constructor and Description |
---|
SqlStringIndex(SqlEntityData parent,
int cacheSize) |
Modifier and Type | Method and Description |
---|---|
protected SqlSession |
getSession() |
java.lang.String |
getString(int id)
Returns the string value for a previously registered string.
|
int |
getStringId(java.lang.String s,
boolean add)
Returns an existing integer ID mapped to the specified string or if 'add' is
true then it will create one if it doesn't already exist.
|
protected int |
lookupId(java.lang.String s) |
public SqlStringIndex(SqlEntityData parent, int cacheSize)
protected SqlSession getSession() throws java.sql.SQLException
java.sql.SQLException
protected int lookupId(java.lang.String s)
public int getStringId(java.lang.String s, boolean add)
StringIndex
getStringId
in interface StringIndex
public java.lang.String getString(int id)
StringIndex
getString
in interface StringIndex