Interface InternalRDBMS
public interface InternalRDBMS
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcloseTransactionConnection(long transactionId) voidcreateTable(ITypeDesc typeDesc) voidvoidexecuteBulk(List<TieredStorageBulkOperationRequest> operationRequests, ServerTransaction transaction) longgetEntryByUID(String typeName, String uid) longbooleaninitialize(String spaceName, String fullMemberName, SpaceTypeManager typeManager, boolean isBackup) voidinitialLoad(Context context, SpaceEngine engine, InitialLoadInfo initialLoadInfo) voidinsertEntry(Context context, IEntryHolder entryHolder) Inserts a new entry to the internalDiskStoragebooleanisKnownType(String name) makeEntriesIter(String typeName, ITemplateHolder templateHolder) voidpersistType(ITypeDesc typeDesc) booleanremoveEntry(Context context, IEntryHolder entryHolder) Removes an entry from the internalDiskStoragevoidvoidshutDown()voidunpersistType(ITypeDesc typeDesc) voidupdateEntry(Context context, IEntryHolder updatedEntry) updates an entry.
-
Method Details
-
initialize
boolean initialize(String spaceName, String fullMemberName, SpaceTypeManager typeManager, boolean isBackup) throws SAException - Parameters:
spaceName-fullMemberName-typeManager-- Returns:
- true if RDBMS is not empty on startup
- Throws:
SAException
-
setLogger
-
getDiskSize
- Throws:
SAExceptionIOException
-
getFreeSpaceSize
- Throws:
SAExceptionIOException
-
createTable
- Throws:
SAException
-
addIndex
- Throws:
SAException
-
dropTable
- Throws:
SAException
-
insertEntry
Inserts a new entry to the internalDiskStorage- Parameters:
entryHolder- entry to insert- Throws:
SAException
-
updateEntry
updates an entry.- Parameters:
updatedEntry- new content, same UID and class- Throws:
SAException
-
removeEntry
Removes an entry from the internalDiskStorage- Parameters:
entryHolder- entry to remove- Throws:
SAException
-
getEntryByUID
- Throws:
SAException
-
makeEntriesIter
ISAdapterIterator<IEntryHolder> makeEntriesIter(String typeName, ITemplateHolder templateHolder) throws SAException - Throws:
SAException
-
isKnownType
-
shutDown
void shutDown() -
deleteData
- Throws:
SAException
-
persistType
- Throws:
SAException
-
unpersistType
- Throws:
SAException
-
initialLoad
void initialLoad(Context context, SpaceEngine engine, InitialLoadInfo initialLoadInfo) throws SAException - Throws:
SAException
-
getTypeManager
SpaceTypeManager getTypeManager() -
executeBulk
List<TieredStorageBulkOperationResult> executeBulk(List<TieredStorageBulkOperationRequest> operationRequests, ServerTransaction transaction) throws SQLException, ClassNotFoundException - Throws:
SQLExceptionClassNotFoundException
-
closeTransactionConnection
- Throws:
SQLException
-