
com.blazebit.persistence.impl.JoinAliasInfo Maven / Gradle / Ivy
/*
* Copyright 2014 Blazebit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.blazebit.persistence.impl;
/**
*
* @author Christian Beikov
* @author Moritz Becker
* @since 1.0
*/
public class JoinAliasInfo implements AliasInfo {
private String alias;
private JoinNode joinNode;
private boolean implicit;
// The absolute normalized path with the root as implicit base
private final String absolutePath;
private final AliasManager aliasOwner;
public JoinAliasInfo(String alias, String absolutePath, boolean implicit, AliasManager aliasOwner) {
this.alias = alias;
this.absolutePath = absolutePath;
this.implicit = implicit;
this.aliasOwner = aliasOwner;
}
@Override
public String getAlias() {
return alias;
}
public void setAlias(String alias) {
this.alias = alias;
}
public JoinNode getJoinNode() {
return joinNode;
}
public void setJoinNode(JoinNode joinNode) {
this.joinNode = joinNode;
}
public String getAbsolutePath() {
if (implicit) {
return absolutePath;
} else {
return alias;
}
}
public boolean isImplicit() {
return implicit;
}
public void setImplicit(boolean implicit) {
this.implicit = implicit;
}
@Override
public AliasManager getAliasOwner() {
return this.aliasOwner;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy