|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.store.dao.impl.DNSDaoImpl
@Repository public class DNSDaoImpl
JPA implementation of the DNSDao interface.
| Constructor Summary | |
|---|---|
DNSDaoImpl()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DNSDaoImpl()
| Method Detail |
|---|
@Transactional(readOnly=false) public void add(Collection<DNSRecord> records)
add in interface DNSDaorecords - The records to add the store. If a record already exists, then an exception is thrown.@Transactional(readOnly=true) public int count()
count in interface DNSDao@Transactional(readOnly=true) public Collection<DNSRecord> get(int type)
get in interface DNSDaotype - The record type to search for.
public DNSRecord get(long recordId)
get in interface DNSDaorecordId - The internal record id to search for.
@Transactional(readOnly=true) public Collection<DNSRecord> get(long[] recordIds)
get in interface DNSDaorecordIds - Array of record ids to search for.
@Transactional(readOnly=true)
public Collection<DNSRecord> get(String name,
int type)
get in interface DNSDaoname - The record name.type - The record type to search for.
public Collection<DNSRecord> get(String name)
get in interface DNSDaoname - The record name.
@Transactional(readOnly=false) public void remove(Collection<DNSRecord> records)
remove in interface DNSDaorecords - Records to delete. Matching is done by name and type.@Transactional(readOnly=false) public void remove(long recordId)
remove in interface DNSDaorecordId - The internal record id to delete.@Transactional(readOnly=false) public void remove(long[] recordIds)
remove in interface DNSDaorecordIds - The internal record ids to delete.
@Transactional(readOnly=false)
public void update(long id,
DNSRecord record)
update in interface DNSDaoid - 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 | |||||||||