Пример #1
0
 public M findFirstFromMetadata(String key, Object value) {
   Metadata md = MetaDataQuery.findFirstByTypeAndValue(METADATA_TYPE, key, value);
   if (md != null) {
     BigInteger id = md.getObjectId();
     return findById(id);
   }
   return null;
 }
Пример #2
0
 public List<Metadata> findMetadataList() {
   return MetaDataQuery.findListByTypeAndId(METADATA_TYPE, getId());
 }
Пример #3
0
 public Metadata findMetadata(String key) {
   return MetaDataQuery.findByTypeAndIdAndKey(METADATA_TYPE, getId(), key);
 }