|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DBReference
DBReference represents an Object that can hold a reference to a DBEntry object, providing sufficient means to retrieve that object from a Database. Note that a DBReference may be 'empty', i.e. both, reference class and reference id are null.
Database,
DBEntry,
DBEntrySelection| Field Summary | |
|---|---|
static DataFlavor |
REFERENCE_FLAVOR
allows to transfer a DBReference instance |
static DataFlavor |
REFERENCE_LIST_FLAVOR
allows to transfer an array of DBReference objects |
| Method Summary | |
|---|---|
Class<? extends DBEntry> |
getReferenceClass()
indicates the type of DBEntry that represents the class of the reference ID, so that the instance could be looked up in a Database; this may be null only if the reference itself is null, too. |
Object |
getReferenceID()
returns the ID of the DBEntry this instance refers to; this may be null only if the reference type returns null, too. |
String |
getReferenceString()
provides a meaningful (displayable) description for the referenceID/referenceType or null if there is no reference for this entry. |
| Field Detail |
|---|
static final DataFlavor REFERENCE_FLAVOR
DBReference instance
static final DataFlavor REFERENCE_LIST_FLAVOR
DBReference objects
| Method Detail |
|---|
Object getReferenceID()
DBEntry.getID(),
DefaultDBReference.isConsistent(DBReference)Class<? extends DBEntry> getReferenceClass()
Database,
DBEntry#getClass(),
DefaultDBReference.isConsistent(DBReference)String getReferenceString()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||