createObjectFactory(db) {
    switch (this.name) {
      case 'User':
        return binding.UserFactory.create(this, db);
      case 'Device':
        return binding.DeviceFactory.create(this, db);
      case 'Object':
        return undefined;
    }

    return binding.EntityFactory.create(this, db);
  }
/**
   * {@inheritDoc}
   * Creates an ObjectFactory for this type and the given EntityManager
   * @return {binding.EntityFactory<binding.Entity>} A factory which creates entity objects
   */
Creates an ObjectFactory for this type and the given EntityManager
@return {binding.EntityFactory} A factory which creates entity objects
Creates an ObjectFactory for this type and the given EntityManager @return { binding . EntityFactory } A factory which creates entity objects
createObjectFactory(db) {
    switch (this.name) {
      case 'User':
        return binding.UserFactory.create(this, db);
      case 'Device':
        return binding.DeviceFactory.create(this, db);
      case 'Object':
        return undefined;
    }
    return binding.EntityFactory.create(this, db);
  }
createObjectFactory ( db ) { switch ( this . name ) { case 'User' : return binding . UserFactory . create ( this , db ) ; case 'Device' : return binding . DeviceFactory . create ( this , db ) ; case 'Object' : return undefined ; } return binding . EntityFactory . create ( this , db ) ; }
{@inheritDoc}
 Creates an ObjectFactory for this type and the given EntityManager
 @return {binding.EntityFactory<binding.Entity>} A factory which creates entity objects
{ @inheritDoc } Creates an ObjectFactory for this type and the given EntityManager @return { binding . EntityFactory<binding . Entity > } A factory which creates entity objects