public interface WriteableBeanDatabase extends BeanDatabase
BeanDatabase
. Types and instances can be
added to this in-memory databaseModifier and Type | Method and Description |
---|---|
WriteableType |
addType(String typeName)
Adds a type of the given name
|
void |
commit()
This method should be called when the writeable database should become
the current database.
|
void |
commit(Object commitMessage)
This method should be called when the writeable database should become
the current database.
|
WriteableType |
findOrAddWriteableType(String typeName)
Gets or creates a writeable type with the given name
|
WriteableType |
getWriteableType(String typeName)
Gets a writeable type of the given name
|
Type |
removeType(String typeName)
Removed the given type and all of its instances from the database.
|
dumpDatabase, dumpDatabase, getAllTypes, getInstance, getType
WriteableType addType(String typeName)
typeName
- The name of the type to addType removeType(String typeName)
typeName
- The non-null type nameWriteableType getWriteableType(String typeName)
typeName
- The non-null name of the type to fetchWriteableType findOrAddWriteableType(String typeName)
typeName
- The non-null name of the type to find or createvoid commit() throws IllegalStateException, MultiException
IllegalStateException
- if the current database has been modified
since this writeable database copy was createdMultiException
- if there were user implementations of BeanDatabaseUpdateListener
that failed by throwing exceptions this exception will be thrown wrapping those exceptionsvoid commit(Object commitMessage) throws IllegalStateException, MultiException
commitMessage
- An object to pass to any BeanDatabaseUpdateListener
that is registeredIllegalStateException
- if the current database has been modified
since this writeable database copy was createdMultiException
- if there were user implementations of BeanDatabaseUpdateListener
that failed by throwing exceptions this exception will be thrown wrapping those exceptionsCopyright © 2009–2018 Oracle Corporation. All rights reserved.