public class JDBCSequenceContentStore extends Object implements ContentStoreIF
Modifier and Type | Field and Description |
---|---|
protected Connection |
conn |
protected String |
sql_get |
protected String |
sql_put |
protected String |
sql_remove |
Constructor and Description |
---|
JDBCSequenceContentStore(Connection conn) |
JDBCSequenceContentStore(Connection conn,
String tblname,
String keyname,
String valname,
String nextseq) |
Modifier and Type | Method and Description |
---|---|
int |
add(ContentInputStream data)
INTERNAL: Creates an entry for the specified data value.
|
int |
add(InputStream data,
int length)
INTERNAL: Creates an entry for the specified data value.
|
void |
close()
INTERNAL: Closes the content store.
|
boolean |
containsKey(int key)
INTERNAL: Returns true if the content store contains an entry with
the specified key.
|
ContentInputStream |
get(int key)
INTERNAL: Gets the data value associated with the specified key.
|
protected void |
init(String tblname,
String keyname,
String valname,
String nextseq) |
protected int |
readLength(InputStream stream) |
boolean |
remove(int key)
INTERNAL: Removes the entry associated with the key.
|
protected Connection conn
protected String sql_get
protected String sql_put
protected String sql_remove
public JDBCSequenceContentStore(Connection conn)
public JDBCSequenceContentStore(Connection conn, String tblname, String keyname, String valname, String nextseq)
public boolean containsKey(int key) throws ContentStoreException
ContentStoreIF
containsKey
in interface ContentStoreIF
ContentStoreException
public ContentInputStream get(int key) throws ContentStoreException
ContentStoreIF
get
in interface ContentStoreIF
ContentStoreException
protected int readLength(InputStream stream) throws IOException
IOException
public int add(ContentInputStream data) throws ContentStoreException
ContentStoreIF
add
in interface ContentStoreIF
ContentStoreException
public int add(InputStream data, int length) throws ContentStoreException
ContentStoreIF
add
in interface ContentStoreIF
ContentStoreException
public boolean remove(int key) throws ContentStoreException
ContentStoreIF
remove
in interface ContentStoreIF
ContentStoreException
public void close() throws ContentStoreException
ContentStoreIF
close
in interface ContentStoreIF
ContentStoreException