/** * Sets entity attribute * * @return true if attribute type differs from meta attribute type. */ public boolean setEntityAttribute(@Nullable DBSEntityAttribute entityAttribute) { this.entityAttribute = entityAttribute; if (entityAttribute != null && !haveEqualsTypes(metaAttribute, entityAttribute)) { valueHandler = DBUtils.findValueHandler(getDataSource(), entityAttribute); return true; } return false; }
public DBDAttributeBindingMeta( @NotNull DBPDataSource dataSource, @NotNull DBCAttributeMetaData metaAttribute) { super(DBUtils.findValueHandler(dataSource, metaAttribute)); this.dataSource = dataSource; this.metaAttribute = metaAttribute; }
public DBDAttributeBindingMeta( @NotNull DBCSession session, @NotNull DBCAttributeMetaData metaAttribute) { super(DBUtils.findValueHandler(session, metaAttribute)); this.dataSource = session.getDataSource(); this.metaAttribute = metaAttribute; }