public class StringTable
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
StringTable() |
Modifier and Type | Method and Description |
---|---|
protected int |
addString(SqlSession session,
java.lang.String s) |
protected void |
checkStructure(java.util.Map<java.lang.String,java.lang.Integer> dbFields) |
static StringTable |
create(SqlSession session) |
java.lang.String |
getString(SqlSession session,
int id) |
int |
getStringId(SqlSession session,
java.lang.String s,
boolean add) |
protected void |
initialize(SqlSession session)
Makes sure that the table is created or is of the format we
expect.
|
protected int |
lookupString(SqlSession session,
java.lang.String s) |
public static StringTable create(SqlSession session) throws java.sql.SQLException
java.sql.SQLException
protected void initialize(SqlSession session) throws java.sql.SQLException
java.sql.SQLException
protected void checkStructure(java.util.Map<java.lang.String,java.lang.Integer> dbFields) throws java.sql.SQLException
java.sql.SQLException
protected int lookupString(SqlSession session, java.lang.String s) throws java.sql.SQLException
java.sql.SQLException
protected int addString(SqlSession session, java.lang.String s) throws java.sql.SQLException
java.sql.SQLException
public int getStringId(SqlSession session, java.lang.String s, boolean add) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getString(SqlSession session, int id) throws java.sql.SQLException
java.sql.SQLException