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
|
boolean |
isDirty()
True if database been modified
|
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) |
boolean |
supportsBinaryProperties()
returns true if the database supports binary properties
|
boolean |
supportsNonStandardPropertyNames()
returns true if the database supports non-standard property names
|
boolean |
supportsRecycleBin()
returns true if the database supports recycle bin
|
void |
visit(G group,
Visitor visitor)
Visit all entries starting from a group
|
void |
visit(Visitor visitor)
Visit all entries
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableRecycleBin, getDescription, getName, getRecycleBin, getRootGroup, getStreamFormat, isRecycleBinEnabled, newEntry, newGroup, newIcon, newIcon, save, save, setDescription, setName, shouldProtect
public boolean isDirty()
Database
public void setDirty(boolean dirty)
public void visit(Visitor visitor)
Database
public void visit(G group, Visitor visitor)
Database
public List<? extends E> findEntries(Entry.Matcher matcher)
Database
public List<? extends E> findEntries(String find)
Database
Entry.match(String)
public G newGroup(String name)
Database
public G newGroup(Group group)
Database
Used for copying a group from one database to another
public E newEntry(String title)
Database
public E newEntry(Entry<?,?,?,?> entry)
Database
Used for copying an entry from one database to another
public E findEntry(UUID uuid)
Database
public boolean deleteEntry(UUID uuid)
Database
public G findGroup(UUID uuid)
Database
public boolean deleteGroup(UUID uuid)
Database
public void emptyRecycleBin()
Database
public boolean supportsNonStandardPropertyNames()
Database
public boolean supportsBinaryProperties()
Database
Copyright © 2023. All rights reserved.