io.ebeaninternal.server.deploy.DynamicPropertyBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeaninternal.server.deploy;
import io.ebeaninternal.server.query.STreeProperty;
import io.ebeaninternal.server.query.SqlJoinType;
import io.ebeaninternal.server.type.ScalarType;
import java.util.List;
/**
* Abstract base for dynamic properties.
*/
abstract class DynamicPropertyBase implements STreeProperty {
final String name;
final String fullName;
final String elPrefix;
final ScalarType> scalarType;
DynamicPropertyBase(String name, String fullName, String elPrefix, ScalarType> scalarType) {
this.name = name;
this.fullName = fullName;
this.elPrefix = elPrefix;
this.scalarType = scalarType;
}
@Override
public String getName() {
return name;
}
@Override
public String getFullBeanName() {
return fullName;
}
@Override
public boolean isId() {
return false;
}
@Override
public boolean isEmbedded() {
return false;
}
@Override
public boolean isFormula() {
return false;
}
@Override
public String getElPrefix() {
return elPrefix;
}
@Override
public ScalarType> getScalarType() {
return scalarType;
}
@Override
public void buildRawSqlSelectChain(String prefix, List selectChain) {
// do nothing, only for RawSql
}
@Override
public void loadIgnore(DbReadContext ctx) {
scalarType.loadIgnore(ctx.getDataReader());
}
@Override
public void appendFrom(DbSqlContext ctx, SqlJoinType joinType) {
// do not add to from usually
}
@Override
public String getEncryptKeyAsString() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy