All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dddrive.oe.model.base.ObjTenantBase Maven / Gradle / Ivy


package io.dddrive.oe.model.base;

import io.dddrive.obj.model.ObjRepository;
import io.dddrive.obj.model.base.ObjExtnBase;
import io.dddrive.oe.model.ObjTenant;
import io.dddrive.oe.model.enums.CodeTenantType;
import io.dddrive.property.model.EnumProperty;
import io.dddrive.property.model.SimpleProperty;

public abstract class ObjTenantBase extends ObjExtnBase implements ObjTenant {

	//@formatter:off
	protected final EnumProperty tenantType = this.addEnumProperty("tenantType", CodeTenantType.class);
	protected final SimpleProperty name = this.addSimpleProperty("name", String.class);
	protected final SimpleProperty description = this.addSimpleProperty("description", String.class);
	//@formatter:on

	public ObjTenantBase(ObjRepository repository, Object state) {
		super(repository, state);
	}

	@Override
	public void doCalcSearch() {
		this.addSearchText(this.getName());
		this.addSearchText(this.getDescription());
	}

	@Override
	protected void doCalcAll() {
		super.doCalcAll();
		this.calcCaption();
	}

	protected void calcCaption() {
		this.setCaption(this.getName());
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy