public abstract class AbstractPropertyMapping extends Object implements PropertyMapping
PropertyMapping
contract.Constructor and Description |
---|
AbstractPropertyMapping() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPropertyPath(String path,
Type type,
String[] columns,
String[] columnReaders,
String[] columnReaderTemplates,
String[] formulaTemplates) |
String[] |
getColumnNames(String propertyName) |
protected abstract String |
getEntityName() |
String[] |
getIdentifierColumnNames() |
String[] |
getIdentifierColumnReaders() |
String[] |
getIdentifierColumnReaderTemplates() |
protected void |
initComponentPropertyPaths(String path,
CompositeType type,
String[] columns,
String[] columnReaders,
String[] columnReaderTemplates,
String[] formulaTemplates,
Mapping factory) |
protected void |
initIdentifierPropertyPaths(String path,
EntityType etype,
String[] columns,
String[] columnReaders,
String[] columnReaderTemplates,
Mapping factory) |
protected void |
initPropertyPaths(String path,
Type type,
String[] columns,
String[] columnReaders,
String[] columnReaderTemplates,
String[] formulaTemplates,
Mapping factory) |
protected QueryException |
propertyException(String propertyName) |
String[] |
toColumns(String propertyName)
Given a property path, return the corresponding column name(s).
|
String[] |
toColumns(String alias,
String propertyName)
Given a query alias and a property path, return the qualified
column name
|
Type |
toType(String propertyName)
Given a component path expression, get the type of the property
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType
public String[] getIdentifierColumnNames()
public String[] getIdentifierColumnReaderTemplates()
public String[] getIdentifierColumnReaders()
protected abstract String getEntityName()
public Type toType(String propertyName) throws QueryException
PropertyMapping
toType
in interface PropertyMapping
QueryException
protected final QueryException propertyException(String propertyName) throws QueryException
QueryException
public String[] toColumns(String alias, String propertyName) throws QueryException
PropertyMapping
toColumns
in interface PropertyMapping
QueryException
public String[] toColumns(String propertyName) throws QueryException
PropertyMapping
toColumns
in interface PropertyMapping
QueryException
protected void addPropertyPath(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates)
protected void initPropertyPaths(String path, Type type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory) throws MappingException
MappingException
protected void initIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, Mapping factory) throws MappingException
MappingException
protected void initComponentPropertyPaths(String path, CompositeType type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory) throws MappingException
MappingException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.