public abstract class AbstractDatabase<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon> extends Object implements Database<D,G,E,I>
| Constructor and Description |
|---|
AbstractDatabase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteEntry(UUID uuid)
Delete an entry with this UUID from anywhere in the database except the recycle bin
if recycle is enabled then the entry is moved to the recycle bin
|
boolean |
deleteGroup(UUID uuid)
Delete a group with this UUID from anywhere in the database except the recycle bin
if recycle is enabled then the group is moved to the recycle bin
|
void |
emptyRecycleBin()
empty the recycle bin whether it is enabled or disabled
|
List<? extends E> |
findEntries(Entry.Matcher matcher)
Find all entries that match the criteria
|
List<? extends E> |
findEntries(String find)
Find all entries that match
Entry.match(String) |
E |
findEntry(UUID uuid)
Find an entry with this UUID anywhere in the database except the recycle bin
|
G |
findGroup(UUID uuid)
Find a group with this UUID anywhere in the database except the recycle bin
|
PropertyValue.Strategy |
getPropertyValueStrategy()
Get the default means of storage of unprotected and protected property values
|
boolean |
isDirty()
True if database been modified
|
List<String> |
listShouldProtect()
Obtain a list of those properties that should be protected by default
|
E |
newEntry(Entry<?,?,?,?> entry)
Create a new Entry copying the details of the supplied entry
|
E |
newEntry(String title)
Create a new Entry with a title
|
G |
newGroup(Group<?,?,?,?> group)
Create a new Group copying the details of the supplied group, but not copying its children
|
G |
newGroup(String name)
Create a new named Group
|
void |
setDirty(boolean dirty) |
void |
setPropertyValueStrategy(PropertyValue.Strategy strategy)
Set the default means of storage of unprotected and protected property values
|
void |
setShouldProtect(String propertyName,
boolean protect)
Property to protect in memory
|
boolean |
shouldProtect(String propertyName)
Property to protect in memory
|
boolean |
supportsBinaryProperties()
returns true if the database supports binary properties
|
boolean |
supportsNonStandardPropertyNames()
returns true if the database supports non-standard property names
|
boolean |
supportsPropertyValueStrategy()
returns true if the implementation supports a PropertyValueStrategy
|
boolean |
supportsRecycleBin()
returns true if the database supports recycle bin
|
void |
visit(G group,
Visitor<D,G,E,I> visitor)
Visit all entries starting from a group
|
void |
visit(Visitor<D,G,E,I> visitor)
Visit all entries
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenableRecycleBin, getDescription, getName, getRecycleBin, getRootGroup, getStreamFormat, isRecycleBinEnabled, newEntry, newGroup, newIcon, newIcon, save, save, setDescription, setNamepublic boolean isDirty()
Databasepublic void setDirty(boolean dirty)
public void visit(Visitor<D,G,E,I> visitor)
Databasepublic void visit(G group, Visitor<D,G,E,I> visitor)
Databasepublic List<? extends E> findEntries(Entry.Matcher matcher)
Databasepublic List<? extends E> findEntries(String find)
DatabaseEntry.match(String)public G newGroup(String name)
Databasepublic G newGroup(Group<?,?,?,?> group)
DatabaseUsed for copying a group from one database to another
public E newEntry(String title)
Databasepublic E newEntry(Entry<?,?,?,?> entry)
DatabaseUsed for copying an entry from one database to another
public E findEntry(UUID uuid)
Databasepublic boolean deleteEntry(UUID uuid)
Databasepublic G findGroup(UUID uuid)
Databasepublic boolean deleteGroup(UUID uuid)
Databasepublic void emptyRecycleBin()
Databasepublic boolean supportsNonStandardPropertyNames()
Databasepublic boolean supportsBinaryProperties()
Databasepublic boolean supportsRecycleBin()
Databasepublic boolean shouldProtect(String propertyName)
Databasepublic void setShouldProtect(String propertyName, boolean protect)
Databasepublic List<String> listShouldProtect()
Databasepublic PropertyValue.Strategy getPropertyValueStrategy()
Databasepublic void setPropertyValueStrategy(PropertyValue.Strategy strategy)
Databasepublic boolean supportsPropertyValueStrategy()
DatabaseCopyright © 2025. All rights reserved.