Hibernate ORM Type - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM Type class.

This code example shows how to use the following methods:getColumnSpan, isAssociationType, isComponentType, isEntityType
                      + "], incoming type = [" + type + "]"); 
			return; 
		} 
		typesByPropertyPath.put(path, type); 
		columnsByPropertyPath.put(path, columns); 
		columnReadersByPropertyPath.put(path, columnReaders); 
		columnReaderTemplatesByPropertyPath.put(path, columnReaderTemplates); 
		if (formulaTemplates!=null) { 
			formulaTemplatesByPropertyPath.put(path, formulaTemplates); 
		} 
	} 
 
	/*protected void initPropertyPaths( 
			final String path, 
			final Type type, 
			final String[] columns, 
			final String[] formulaTemplates, 
			final Mapping factory) 
	throws MappingException { 
		//addFormulaPropertyPath(path, type, formulaTemplates); 

6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isCollectionType, isComponentType, isEntityType
 
			} 
 
		} 
 
	} 
 
	@Override 
    void processValue(int i, Object[] values, Type[] types) { 
		Object result = processValue( values[i], types[i] ); 
		if (result!=null) { 
			substitute = true; 
			values[i] = result; 
		} 
	} 
 
	@Override 
    Object processComponent(Object component, CompositeType componentType) 
	throws HibernateException { 
 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isCollectionType, isComponentType, isEntityType
	 * @param type 
	 * @throws HibernateException 
	 */ 
	final Object processValue(Object value, Type type) throws HibernateException {
 
		if ( type.isCollectionType() ) {
			//even process null collections 
			return processCollection( value, (CollectionType) type );
		} 
		else if ( type.isEntityType() ) {
			return processEntity( value, (EntityType) type );
		} 
		else if ( type.isComponentType() ) {
			return processComponent( value, (CompositeType) type );
		} 
		else { 
			return null; 
		} 
	} 
 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getLHSPropertyName, useLHSPrimaryKey, getColumnSpan
			} 
			else { 
				//handle a property-ref 
				String propertyRefTable = lhsPersister.getPropertyTableName(propertyName);
				if (propertyRefTable==null) {
					//it is possible that the tree-walking in OuterJoinLoader can get to 
					//an association defined by a subclass, in which case the property-ref 
					//might refer to a property defined on a subclass of the current class 
					//in this case, the table name is not known - this temporary solution  
					//assumes that the property-ref refers to a property of the subclass 
					//table that the association belongs to (a reasonable guess) 
					//TODO: fix this, add: OuterJoinLoadable.getSubclassPropertyTableName(String propertyName) 
					propertyRefTable = lhsPersister.getSubclassPropertyTableName(property);
				} 
				return propertyRefTable;
			} 
		} 
	} 
	 
	/** 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isCollectionType, isEntityType
	} 
 
	@Override 
    protected boolean isJoinedFetchEnabled(AssociationType type, FetchMode config, CascadeStyle cascadeStyle) {
		return ( type.isEntityType() || type.isCollectionType() ) &&
				( cascadeStyle==null || cascadeStyle.doCascade(cascadeAction) );
	} 
 
	@Override 
    protected boolean isTooManyCollections() { 
		return countCollectionPersisters(associations)>0;
	} 
 
	@Override 
    public String getComment() {
		return "load " + getPersister().getEntityName();
	} 
	 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:nullSafeSet, seed
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public int bind(PreparedStatement statement, QueryParameters qp, SessionImplementor session, int position)
	        throws SQLException {
		type.nullSafeSet( statement, type.seed( session ), position, session );
		return 1; 
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public Type getExpectedType() {
		return type;
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isEqual, seed
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getReturnedClass, toLoggableString
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isAssociationType
		// Default implementation: 
		// If this node has a data type, and that data type is not an association, then this is scalar. 
		Type type = getDataType(); 
		return type != null && !type.isAssociationType();	// Moved here from SelectClause [jsd] 
	} 
 
	public void setScalarColumn(int i) throws SemanticException { 
		this.scalarColumnIndex = i; 
		setScalarColumnText( i ); 
	} 
 
	public int getScalarColumnIndex() { 
		return scalarColumnIndex; 
	} 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getReturnedClass
				expectedType = rhType; 
			} 
			( ( ExpectedTypeAwareNode ) lhs ).setExpectedType( expectedType ); 
		} 
		else if ( ParameterNode.class.isAssignableFrom( rhs.getClass() ) && lhType != null ) { 
			Type expectedType = null; 
			// we have something like : "lhs [op] ?" 
			if ( isDateTimeType( lhType ) ) { 
				// more specifically : "datetime [op] ?" 
				//      1) if the operator is MINUS, we really cannot determine 
				//          the expected type as either another datetime or 
				//          numeric would be valid 
				//      2) if the operator is PLUS, the param needs to be of 
				//          some numeric type 
				if ( getType() == HqlSqlTokenTypes.PLUS ) { 
					expectedType = StandardBasicTypes.DOUBLE; 
				} 
			} 
			else { 
				expectedType = lhType; 

5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Hibernate ORM Type Methods: