public abstract class BaseStorageDao extends java.lang.Object implements StorageDao
| Modifier and Type | Field and Description |
|---|---|
protected CommonConnectionAccessor |
accessor |
| Constructor and Description |
|---|
BaseStorageDao(DataSourceFactory dataSourceFactory,
java.util.Properties paramProperties,
boolean usePool) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
clip(int i,
java.lang.String string) |
void |
closeConnection(java.sql.Connection connection) |
void |
closeStatement(java.sql.Statement statement) |
java.sql.Connection |
createConnection() |
void |
dispose() |
protected CommonConnectionAccessor |
getAccessor() |
protected int |
getCleanupDays() |
protected abstract java.lang.String |
getDeleteAttributesSql() |
protected abstract java.lang.String |
getInsertAttributesSql() |
java.lang.String |
getInstance() |
int |
getMaxLength() |
java.lang.String |
getSchema() |
void |
setInstance(java.lang.String instance) |
void |
setMaxLength(int maxLength) |
void |
setSchema(java.lang.String schema) |
void |
updateComment(java.util.UUID id,
java.lang.String comment) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanupArchive, loadEvent, queryEvents, storeEvent, toEventListpublic BaseStorageDao(DataSourceFactory dataSourceFactory,
java.util.Properties paramProperties,
boolean usePool)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void dispose()
dispose in interface StorageDaopublic void setSchema(java.lang.String schema)
public java.lang.String getSchema()
public void setMaxLength(int maxLength)
public int getMaxLength()
public void setInstance(java.lang.String instance)
public java.lang.String getInstance()
public java.sql.Connection createConnection()
throws java.sql.SQLException
java.sql.SQLExceptionprotected CommonConnectionAccessor getAccessor()
public void closeStatement(java.sql.Statement statement)
public void closeConnection(java.sql.Connection connection)
public void updateComment(java.util.UUID id,
java.lang.String comment)
throws java.lang.Exception
updateComment in interface StorageDaojava.lang.Exceptionprotected java.lang.String clip(int i,
java.lang.String string)
protected int getCleanupDays()
protected abstract java.lang.String getDeleteAttributesSql()
protected abstract java.lang.String getInsertAttributesSql()
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0