org.hibernate.metamodel.relational
Class DerivedValue
java.lang.Object
org.hibernate.metamodel.relational.AbstractSimpleValue
org.hibernate.metamodel.relational.DerivedValue
- All Implemented Interfaces:
- SimpleValue, Value
public class DerivedValue
- extends AbstractSimpleValue
Models a value expression. It is the result of a formula mapping.
Nested classes/interfaces inherited from interface org.hibernate.metamodel.relational.Value |
Value.JdbcCodes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DerivedValue
public DerivedValue(TableSpecification table,
int position,
String expression)
toLoggableString
public String toLoggableString()
- Obtain the string representation of this value usable in log statements.
- Returns:
- The loggable representation
getAlias
public String getAlias(Dialect dialect)
- For any column name, generate an alias that is unique
to that column name, unique across tables, and within
alias size constraints determined by
Dialect.getMaxAliasLength()
.
- Parameters:
dialect
- the dialect.
- Returns:
- the alias.
getExpression
public String getExpression()
- Get the value expression.
- Returns:
- the value expression
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.