문제

Is it possible to get a list of all the fields in a DBObject? I have searched through the documentation and can't find anything. Thanks.

도움이 되었습니까?

해결책

BasicDBObject implements the java.util.Map interface. So, you can use the Map's keySet() method to get the list of keys (or "fields").

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top