@Override public String[] toColumns(String propertyName) throws QueryException { if ( "index".equals( propertyName ) ) { if ( indexFragments == null ) { String[] tmp = new String[indexColumnNames.length]; for ( int i = 0; i < indexColumnNames.length; i++ ) { tmp[i] = indexColumnNames[i] == null ? indexFormulas[i] : indexColumnNames[i]; indexFragments = tmp; } } return indexFragments; } return elementPropertyMapping.toColumns( propertyName ); }
@Override public Type getType() { return elementPropertyMapping.getType(); // ==elementType ?? }
@Override public Type getType() { return collectionPropertyMapping.toType( propertyName ); }
/** * Retrieves the column names corresponding to the collection elements for the given * collection role. * * @param role The collection role * @param roleAlias The sql column-qualification alias (i.e., the table alias) * * @return the collection element columns */ public String[] getCollectionElementColumns(String role, String roleAlias) { return getCollectionPropertyMapping( role ).toColumns( roleAlias, CollectionPropertyNames.COLLECTION_ELEMENTS ); }
@Override public Type toType(String propertyName) throws QueryException { if ( "index".equals( propertyName ) ) { return indexType; } return elementPropertyMapping.toType( propertyName ); }
private void setType() throws QueryException { if ( currentProperty == null ) { type = getPropertyMapping().getType(); } else { type = getPropertyType(); } }
@Override public String[] toColumns(String alias, String propertyName) throws QueryException { if ( "index".equals( propertyName ) ) { return qualify( alias, indexColumnNames, indexFormulaTemplates ); } return elementPropertyMapping.toColumns( alias, propertyName ); }
@Override public Type getType(String relativePath) { //not sure what things are going to be passed here, how about 'id', maybe 'index' or 'key' or 'elements' ??? // todo: wtf! return getPropertyMapping().toType( relativePath ); }
public Type getType() { return elementPropertyMapping.getType(); //==elementType ?? }
@Override public String[] toColumns(String propertyName) throws QueryException, UnsupportedOperationException { return parentPropertyMapping.toColumns( toParentPropertyPath( propertyName ) ); }
@Override public Type toType(String propertyName) throws QueryException { return parentPropertyMapping.toType( toParentPropertyPath( propertyName ) ); }
public Type getType() { return elementPropertyMapping.getType(); // ==elementType ?? }
@Override public String[] toAliasedColumns(String alias, String propertyName) { return getPropertyMapping().toColumns( alias, propertyName ); }
@Override public Type toType(String propertyName) throws QueryException { return getBasePropertyMapping().toType( getPropertyPath( propertyName ) ); }
public Type getType() { return elementPropertyMapping.getType(); // ==elementType ?? }
@Override public String[] toColumns(String alias, String propertyName) throws QueryException { return parentPropertyMapping.toColumns( alias, toParentPropertyPath( propertyName ) ); }
@Override public Type getType(Criteria subcriteria, String propertyName) throws HibernateException { return getPropertyMapping( getEntityName( subcriteria, propertyName ) ) .toType( getPropertyName( propertyName ) ); }
private void setType() throws QueryException { if ( currentProperty == null ) { type = getPropertyMapping().getType(); } else { type = getPropertyType(); } }
columnNames = elementPropertyMapping.toColumns( reference ); formulaTemplates = formulaTemplates( reference, columnNames.length );
protected Type getPropertyType() throws QueryException { String propertyPath = getPropertyPath(); Type propertyType = getPropertyMapping().toType( propertyPath ); if ( propertyType == null ) { throw new QueryException( "could not resolve property type: " + propertyPath ); } return propertyType; }