private Client getClientFromResultSet ( ResultSet result ) throws Exception { Client client = new Client ( ) ; client . setId ( result . getInt ( Constants . GENERIC_ID ) ) ; client . setUUID ( result . getString ( Constants . CLIENT_CLIENT_UUID ) ) ; client . setFriendlyName ( result . getString ( Constants . CLIENT_FRIENDLY_NAME ) ) ; client . setProfile ( ProfileService . getInstance ( ) . findProfile ( result . getInt ( Constants . GENERIC_PROFILE_ID ) ) ) ; client . setIsActive ( result . getBoolean ( Constants . CLIENT_IS_ACTIVE ) ) ; client . setActiveServerGroup ( result . getInt ( Constants . CLIENT_ACTIVESERVERGROUP ) ) ; return client ; }
Returns a client model from a ResultSet