return NumberedItemCollection.builder(projectNode, DnsZoneData.class).idField(DnsZoneData.ID_FIELD_NUMBER)
.keyField(DnsZoneData.NAME_FIELD_NUMBER).create();
}
public NumberedItemCollection<DnsRecordsetData> getDnsRecordsets(long projectId, long zoneId) {
StateNode dnsNode = stateStore.getRoot("dnsrecord");
StateNode projectNode = dnsNode.child(Long.toHexString(projectId));
StateNode domainNode = projectNode.child(Long.toHexString(zoneId));
return NumberedItemCollection.builder(domainNode, DnsRecordsetData.class)
.idField(DnsRecordsetData.ID_FIELD_NUMBER).create();
}