use of jetbrains.exodus.query.metadata.PropertyMetaData in project xodus by JetBrains.
the class PropertyNotNull method instantiate.
@Override
public Iterable<Entity> instantiate(String entityType, QueryEngine queryEngine, ModelMetaData metaData) {
final EntityMetaData emd = metaData == null ? null : metaData.getEntityMetaData(entityType);
final PropertyMetaData pmd = emd == null ? null : emd.getPropertyMetaData(name);
queryEngine.assertOperational();
final PersistentStoreTransaction txn = queryEngine.getPersistentStore().getAndCheckCurrentTransaction();
return pmd == null || pmd.getType() == PropertyType.PRIMITIVE ? txn.findWithProp(entityType, name) : txn.findWithBlob(entityType, name);
}
Aggregations