public abstract class BaseStorageDao extends Object implements StorageDao
| Modifier and Type | Field and Description |
|---|---|
protected CommonConnectionAccessor |
accessor |
| Constructor and Description |
|---|
BaseStorageDao(org.osgi.service.jdbc.DataSourceFactory dataSourceFactory,
Properties paramProperties,
boolean usePool,
Long loginTimeout) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
clip(int i,
String string) |
void |
closeConnection(Connection connection) |
void |
closeStatement(Statement statement) |
Connection |
createConnection() |
void |
dispose() |
protected CommonConnectionAccessor |
getAccessor() |
protected int |
getCleanupDays() |
protected abstract String |
getDeleteAttributesSql() |
protected abstract String |
getInsertAttributesSql() |
String |
getInstance() |
int |
getMaxLength() |
String |
getSchema() |
void |
setInstance(String instance) |
void |
setMaxLength(int maxLength) |
void |
setSchema(String schema) |
void |
updateComment(UUID id,
String comment) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanupArchive, loadEvent, queryEvents, storeEvent, toEventListprotected final CommonConnectionAccessor accessor
public BaseStorageDao(org.osgi.service.jdbc.DataSourceFactory dataSourceFactory,
Properties paramProperties,
boolean usePool,
Long loginTimeout)
throws SQLException
SQLExceptionpublic void dispose()
dispose in interface StorageDaopublic void setSchema(String schema)
public String getSchema()
public void setMaxLength(int maxLength)
public int getMaxLength()
public void setInstance(String instance)
public String getInstance()
public Connection createConnection() throws SQLException
SQLExceptionprotected CommonConnectionAccessor getAccessor()
public void closeStatement(Statement statement)
public void closeConnection(Connection connection)
public void updateComment(UUID id, String comment) throws Exception
updateComment in interface StorageDaoExceptionprotected int getCleanupDays()
protected abstract String getDeleteAttributesSql()
protected abstract String getInsertAttributesSql()