【Java开源代码栏目提醒】:网学会员,鉴于大家对Java开源代码十分关注,论文会员在此为大家搜集整理了“UnaryLogicOperatorNode.java”一文,供大家参考学习!
package org.hibernate.hql.ast.tree;
import org.hibernate.type.Type;
import org.hibernate.Hibernate;
/**
* @author <a href="mailto:3710167@qq.com">Steve Ebersole </a>
*/
public class UnaryLogicOperatorNode extends SqlNode implements UnaryOperatorNode {
public Node getOperand() {
return ( Node ) getFirstChild();
}
public void initialize() {
// nothing to do; even if the operand is a parameter, no way we could
// infer an appropriate expected type here
}
public Type getDataType() {
// logic operators by definition resolve to booleans
return Hibernate.BOOLEAN;
}
}