public class JDBCResourcesStorage extends AbstractResourcesStorage implements SupportTransactions
AbstractResourcesStorage.AbstractResourceResourcesStorage.Resource| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TABLENAME_SERVER_EXPLORER_MARK |
EMPTY_RESOURCESSTORAGE| Constructor and Description |
|---|
JDBCResourcesStorage(JDBCHelper helper,
ResourcesStorage alternativeStorage,
JDBCStoreParameters resourcesStoreParameters,
java.lang.String tableName) |
JDBCResourcesStorage(JDBCHelper helper,
ResourcesStorage alternativeStorage,
JDBCStoreParameters resourcesStoreParameters,
java.lang.String tableName,
boolean readonly) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.String resourceName,
java.io.InputStream is) |
void |
clearCache() |
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
ResourcesStorage.Resource |
getResource(java.lang.String name) |
java.util.List<java.lang.String> |
getResourceNames()
Return the resource names in this store.
|
java.util.List<ResourcesStorage.Resource> |
getResources(java.lang.String name) |
DataTransaction |
getTransaction() |
boolean |
isEmpty() |
boolean |
remove(java.lang.String resourceName) |
void |
setTransaction(DataTransaction transaction) |
java.lang.String |
toString() |
allowRemove, exists, getLocalizedResource, getLocalizedResources, getSeparator, isReadOnlydispose, disposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateBytesResource, createFilesResourcesStorage, createFilesResourcesStorage, createMultiResourcesStorage, createResource, createResource, isEmptydisposepublic static final java.lang.String TABLENAME_SERVER_EXPLORER_MARK
public JDBCResourcesStorage(JDBCHelper helper, ResourcesStorage alternativeStorage, JDBCStoreParameters resourcesStoreParameters, java.lang.String tableName)
public JDBCResourcesStorage(JDBCHelper helper, ResourcesStorage alternativeStorage, JDBCStoreParameters resourcesStoreParameters, java.lang.String tableName, boolean readonly)
public void setTransaction(DataTransaction transaction)
setTransaction in interface SupportTransactionspublic DataTransaction getTransaction()
getTransaction in interface SupportTransactionspublic boolean isEmpty()
isEmpty in interface ResourcesStorageisEmpty in class AbstractResourcesStoragepublic java.util.List<java.lang.String> getResourceNames()
ResourcesStoragegetResourceNames in interface ResourcesStoragegetResourceNames in class AbstractResourcesStoragepublic ResourcesStorage.Resource getResource(java.lang.String name)
getResource in interface ResourcesStoragepublic java.util.List<ResourcesStorage.Resource> getResources(java.lang.String name)
getResources in interface ResourcesStoragegetResources in class AbstractResourcesStoragepublic boolean add(java.lang.String resourceName,
java.io.InputStream is)
add in interface ResourcesStorageadd in class AbstractResourcesStoragepublic boolean remove(java.lang.String resourceName)
remove in interface ResourcesStorageremove in class AbstractResourcesStoragepublic void clearCache()
clearCache in interface ResourcesStorageclearCache in class AbstractResourcesStorageprotected void doDispose()
throws BaseException
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractResourcesStorageBaseExceptionAbstractDisposable.dispose()public java.lang.String toString()
toString in class java.lang.Object