|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DNSDao
DAO interface for DNS records
| Method Summary | |
|---|---|
void |
add(Collection<DNSRecord> records)
Adds multiple new DNS records to the store. |
int |
count()
Gets the number of records in the DNS store. |
Collection<DNSRecord> |
get(int type)
Gets all DNS records or a given type. |
DNSRecord |
get(long recordId)
Gets a single DNS record for an internal record id. |
Collection<DNSRecord> |
get(long[] recordIds)
Gets DNS records by the internal record ids. |
Collection<DNSRecord> |
get(String name)
Gets DNS records by record name. |
Collection<DNSRecord> |
get(String name,
int type)
Gets DNS records by record name and a specific record type. |
void |
remove(Collection<DNSRecord> records)
Removes DNS records matching the DNS records' name and type. |
void |
remove(long recordId)
Removes a single DNS record by an existing internal record id. |
void |
remove(long[] recordIds)
Removes DNS records by existing internal record ids. |
void |
update(long id,
DNSRecord record)
Update a DNS record for a specific internal id. |
| Method Detail |
|---|
int count()
Collection<DNSRecord> get(String name)
name - The record name.
Collection<DNSRecord> get(String name,
int type)
name - The record name.type - The record type to search for.
Collection<DNSRecord> get(int type)
type - The record type to search for.
Collection<DNSRecord> get(long[] recordIds)
recordIds - Array of record ids to search for.
DNSRecord get(long recordId)
recordId - The internal record id to search for.
void add(Collection<DNSRecord> records)
records - The records to add the store. If a record already exists, then an exception is thrown.void remove(long recordId)
recordId - The internal record id to delete.void remove(long[] recordIds)
recordIds - The internal record ids to delete.void remove(Collection<DNSRecord> records)
records - Records to delete. Matching is done by name and type.
void update(long id,
DNSRecord record)
id - The internal record id to update.record - Data to update the record with.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||