public final String toXMLString(Object value, SessionFactoryImplementor pc) throws HibernateException { return toString(value); }
public String toLoggableString(Object value, SessionFactoryImplementor factory) { return value==null ? "null" : toString(value); }
/** * A null-safe version of {@link #toString(Object)}. Specifically we are * worried about null safeness in regards to the incoming value parameter, * not the return. * * @param value The value to convert to a string representation; may be null. * @return The string representation; may be null. * @throws HibernateException Thrown by {@link #toString(Object)}, which this calls. */ public String nullSafeToString(Object value) throws HibernateException { return value == null ? null : toString( value ); }
/** * A null-safe version of {@link #toString(Object)}. Specifically we are * worried about null safeness in regards to the incoming value parameter, * not the return. * * @param value The value to convert to a string representation; may be null. * @return The string representation; may be null. * @throws HibernateException Thrown by {@link #toString(Object)}, which this calls. */ public String nullSafeToString(Object value) throws HibernateException { return value == null ? null : toString( value ); }
public final String toXMLString(Object value, SessionFactoryImplementor pc) throws HibernateException { return toString(value); }
public final String toXMLString(Object value, SessionFactoryImplementor pc) throws HibernateException { return toString(value); }
public String toLoggableString(Object value, SessionFactoryImplementor factory) { return value==null ? "null" : toString(value); }
public String toString(Object value) throws HibernateException { return mutableType.toString(value); }
public String toLoggableString(Object value, SessionFactoryImplementor factory) { return value == null ? "null" : toString(value); }
public String toLoggableString(Object value, SessionFactoryImplementor factory) { return value == null ? "null" : toString(value); }
public final String toXMLString(Object value, SessionFactoryImplementor pc) throws HibernateException { return toString(value); }
public String toString(Object value) throws HibernateException { return Hibernate.DATE.toString( ( (Calendar) value ).getTime() ); }
public String toString(Object value) throws HibernateException { return Hibernate.TIMESTAMP.toString( ( (Calendar) value ).getTime() ); }
public String toString(Object value) throws HibernateException { return Hibernate.TIMESTAMP.toString( ( (Calendar) value ).getTime() ); }
public String toString(Object value) throws HibernateException { return Hibernate.DATE.toString( ( (Calendar) value ).getTime() ); }
public String toString(Object value) throws HibernateException { return Hibernate.BINARY.toString( toBytes(value) ); }
public String toString(Object value) throws HibernateException { return Hibernate.BINARY.toString( toBytes(value) ); }
public final Object nullSafeGet(ResultSet rs, String name) throws HibernateException, SQLException { Object value = get(rs, name); if ( value==null || rs.wasNull() ) { if (IS_TRACE_ENABLED) { LogFactory.getLog( getClass() ).trace("returning null as column: " + name); } return null; } else { if (IS_TRACE_ENABLED) { LogFactory.getLog( getClass() ).trace( "returning '" + toString(value) + "' as column: " + name); } return value; } }
public final void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException { if (value==null) { if (IS_TRACE_ENABLED) { LogFactory.getLog( getClass() ).trace("binding null to parameter: " + index); } st.setNull( index, sqlType() ); } else { if (IS_TRACE_ENABLED) { LogFactory.getLog( getClass() ).trace("binding '" + toString(value) + "' to parameter: " + index); } set(st, value, index); } }
public final Object nullSafeGet(ResultSet rs, String name) throws HibernateException, SQLException { try { Object value = get(rs, name); if ( value == null || rs.wasNull() ) { LOG.tracev( "Returning null as column {0}", name ); return null; } if ( LOG.isTraceEnabled() ) LOG.trace( "Returning '" + toString( value ) + "' as column " + name ); return value; } catch ( RuntimeException re ) { LOG.unableToReadColumnValueFromResultSet( name, re.getMessage() ); throw re; } catch ( SQLException se ) { LOG.unableToReadColumnValueFromResultSet( name, se.getMessage() ); throw se; } }