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)
Obtain aliased column/formula fragments for the specified property path. 
 | 
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, waitgetTypepublic String[] getIdentifierColumnNames()
public String[] getIdentifierColumnReaderTemplates()
public String[] getIdentifierColumnReaders()
protected abstract String getEntityName()
public Type toType(String propertyName) throws QueryException
PropertyMappingtoType in interface PropertyMappingQueryExceptionprotected final QueryException propertyException(String propertyName) throws QueryException
QueryExceptionpublic String[] toColumns(String alias, String propertyName) throws QueryException
PropertyMappingtoColumns in interface PropertyMappingQueryExceptionpublic String[] toColumns(String propertyName) throws QueryException
PropertyMappingtoColumns in interface PropertyMappingQueryExceptionprotected 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
MappingExceptionprotected void initIdentifierPropertyPaths(String path, EntityType etype, String[] columns, String[] columnReaders, String[] columnReaderTemplates, Mapping factory) throws MappingException
MappingExceptionprotected void initComponentPropertyPaths(String path, CompositeType type, String[] columns, String[] columnReaders, String[] columnReaderTemplates, String[] formulaTemplates, Mapping factory) throws MappingException
MappingExceptionCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.