org.hibernate.envers.configuration.metadata
Class MetadataTools
java.lang.Object
org.hibernate.envers.configuration.metadata.MetadataTools
public class MetadataTools
- extends Object
- Author:
- Adam Warski (adam at warski dot org)
Method Summary |
static org.dom4j.Element |
addColumn(org.dom4j.Element parent,
String name,
Integer length,
Integer scale,
Integer precision,
String sqlType)
|
static void |
addColumns(org.dom4j.Element any_mapping,
Iterator<Column> columns)
|
static org.dom4j.Element |
addNativelyGeneratedId(org.dom4j.Element parent,
String name,
String type)
|
static org.dom4j.Element |
addOrModifyColumn(org.dom4j.Element parent,
String name)
|
static org.dom4j.Element |
addProperty(org.dom4j.Element parent,
String name,
String type,
boolean insertable,
boolean key)
|
static org.dom4j.Element |
createEntity(org.dom4j.Document document,
AuditTableData auditTableData,
String discriminatorValue)
|
static org.dom4j.Element |
createJoin(org.dom4j.Element parent,
String tableName,
String schema,
String catalog)
|
static org.dom4j.Element |
createSubclassEntity(org.dom4j.Document document,
String subclassType,
AuditTableData auditTableData,
String extendsEntityName,
String discriminatorValue)
|
static MetadataTools.ColumnNameIterator |
getColumnNameIterator(Iterator<Column> columnIterator)
|
static MetadataTools.ColumnNameIterator |
getColumnNameIterator(JoinColumn[] joinColumns)
|
static void |
prefixNamesInPropertyElement(org.dom4j.Element element,
String prefix,
MetadataTools.ColumnNameIterator columnNameIterator,
boolean changeToKey,
boolean insertable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetadataTools
public MetadataTools()
addNativelyGeneratedId
public static org.dom4j.Element addNativelyGeneratedId(org.dom4j.Element parent,
String name,
String type)
addProperty
public static org.dom4j.Element addProperty(org.dom4j.Element parent,
String name,
String type,
boolean insertable,
boolean key)
addOrModifyColumn
public static org.dom4j.Element addOrModifyColumn(org.dom4j.Element parent,
String name)
addColumn
public static org.dom4j.Element addColumn(org.dom4j.Element parent,
String name,
Integer length,
Integer scale,
Integer precision,
String sqlType)
createEntity
public static org.dom4j.Element createEntity(org.dom4j.Document document,
AuditTableData auditTableData,
String discriminatorValue)
createSubclassEntity
public static org.dom4j.Element createSubclassEntity(org.dom4j.Document document,
String subclassType,
AuditTableData auditTableData,
String extendsEntityName,
String discriminatorValue)
createJoin
public static org.dom4j.Element createJoin(org.dom4j.Element parent,
String tableName,
String schema,
String catalog)
addColumns
public static void addColumns(org.dom4j.Element any_mapping,
Iterator<Column> columns)
prefixNamesInPropertyElement
public static void prefixNamesInPropertyElement(org.dom4j.Element element,
String prefix,
MetadataTools.ColumnNameIterator columnNameIterator,
boolean changeToKey,
boolean insertable)
getColumnNameIterator
public static MetadataTools.ColumnNameIterator getColumnNameIterator(Iterator<Column> columnIterator)
getColumnNameIterator
public static MetadataTools.ColumnNameIterator getColumnNameIterator(JoinColumn[] joinColumns)
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.