@Override public <T> T getReference(Class<T> entityClass, Object primaryKey) { checkOpen(); try { return byId( entityClass ).getReference( (Serializable) primaryKey ); } catch ( MappingException | TypeMismatchException | ClassCastException e ) { throw exceptionConverter.convert( new IllegalArgumentException( e.getMessage(), e ) ); } catch ( RuntimeException e ) { throw exceptionConverter.convert( e ); } }
public Object get(String entityName, Serializable id) throws HibernateException { return this.byId( entityName ).load( id ); }
public Object get(String entityName, Serializable id) throws HibernateException { return this.byId( entityName ).load( id ); }
public Object load(String entityName, Serializable id) throws HibernateException { return this.byId( entityName ).getReference( id ); }
public Object load(String entityName, Serializable id, LockOptions lockOptions) throws HibernateException { return this.byId( entityName ).with( lockOptions ).getReference( id ); }
public Object load(Class entityClass, Serializable id) throws HibernateException { return this.byId( entityClass ).getReference( id ); }
public Object get(Class entityClass, Serializable id) throws HibernateException { return this.byId( entityClass ).load( id ); }
public Object load(Class entityClass, Serializable id, LockMode lockMode) throws HibernateException { return this.byId( entityClass ).with( new LockOptions( lockMode ) ).getReference( id ); }
public Object load(Class entityClass, Serializable id) throws HibernateException { return this.byId( entityClass ).getReference( id ); }
public Object load(String entityName, Serializable id, LockMode lockMode) throws HibernateException { return this.byId( entityName ).with( new LockOptions( lockMode ) ).getReference( id ); }
public Object load(Class entityClass, Serializable id, LockMode lockMode) throws HibernateException { return this.byId( entityClass ).with( new LockOptions( lockMode ) ).getReference( id ); }
public Object load(String entityName, Serializable id, LockOptions lockOptions) throws HibernateException { return this.byId( entityName ).with( lockOptions ).getReference( id ); }
public Object load(Class entityClass, Serializable id, LockOptions lockOptions) throws HibernateException { return this.byId( entityClass ).with( lockOptions ).getReference( id ); }
@Override public IdentifierLoadAccessImpl byId(String entityName) { return new IdentifierLoadAccessImpl( entityName ); }