org.hibernate.metamodel.relational
Class InLineView
java.lang.Object
org.hibernate.metamodel.relational.AbstractTableSpecification
org.hibernate.metamodel.relational.InLineView
- All Implemented Interfaces:
- Loggable, TableSpecification, ValueContainer
public class InLineView
- extends AbstractTableSpecification
A data container defined by a SELECT statement. This translates into an inline view in the
SQL statements: select ... from (select ... from logical_table_table ...) ...
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InLineView
public InLineView(Schema schema,
String logicalName,
String select)
getSchema
public Schema getSchema()
- Description copied from interface:
TableSpecification
- Obtain a reference to the schema to which this table specification belongs.
- Returns:
- The schema to which this table specification belongs.
getSelect
public String getSelect()
getLoggableValueQualifier
public String getLoggableValueQualifier()
- Description copied from interface:
ValueContainer
- Get a qualifier which can be used to qualify
values
belonging to this container in
their logging.
- Returns:
- The qualifier
getIndexes
public Iterable<Index> getIndexes()
getOrCreateIndex
public Index getOrCreateIndex(String name)
getUniqueKeys
public Iterable<UniqueKey> getUniqueKeys()
getOrCreateUniqueKey
public UniqueKey getOrCreateUniqueKey(String name)
getCheckConstraints
public Iterable<CheckConstraint> getCheckConstraints()
addCheckConstraint
public void addCheckConstraint(String checkCondition)
getComments
public Iterable<String> getComments()
addComment
public void addComment(String comment)
getQualifiedName
public String getQualifiedName(Dialect dialect)
toLoggableString
public String toLoggableString()
- Description copied from interface:
Loggable
- Obtain the string representation of this value usable in log statements.
- Returns:
- The loggable representation
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.