Hibernate ORM TypedValue - 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 TypedValue class.

This code example shows how to use the following methods:getType, getValue
	public int bind(PreparedStatement statement, QueryParameters qp, SessionImplementor session, int position)
	        throws SQLException {
		TypedValue typedValue = ( TypedValue ) qp.getNamedParameters().get( name );
		typedValue.getType().nullSafeSet( statement, typedValue.getValue(), position, session );
		return typedValue.getType().getColumnSpan( session.getFactory() );
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public String renderDisplayInfo() {
		return "name=" + name + ", expectedType=" + getExpectedType();
	} 
 
	/** 
	 * Getter for property 'name'. 
	 * 
	 * @return Value for property 'name'. 
	 */ 
	public String getName() {
5
CodeRank