private int getTTLForColumn ( Object columnTTLs , Attribute attribute ) { Integer ttl = null ; if ( columnTTLs != null ) { if ( columnTTLs instanceof Map ) { ttl = ( Integer ) ( columnTTLs == null ? 0 : ( ( Map ) columnTTLs ) . get ( ( ( AbstractAttribute ) attribute ) . getJPAColumnName ( ) ) ) ; } else if ( columnTTLs instanceof Integer ) { ttl = ( Integer ) columnTTLs ; } } return ttl == null ? 0 : ttl ; }
Determined TTL for a given column .