Search in sources :

Example 1 with PropertyMetaData

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);
}
Also used : PersistentStoreTransaction(jetbrains.exodus.entitystore.PersistentStoreTransaction) PropertyMetaData(jetbrains.exodus.query.metadata.PropertyMetaData) EntityMetaData(jetbrains.exodus.query.metadata.EntityMetaData)

Aggregations

PersistentStoreTransaction (jetbrains.exodus.entitystore.PersistentStoreTransaction)1 EntityMetaData (jetbrains.exodus.query.metadata.EntityMetaData)1 PropertyMetaData (jetbrains.exodus.query.metadata.PropertyMetaData)1