Code example for HibernateException

0
		} 
		else if ( tokens.length == 3 ) {
			return tokens[0];
		} 
		else { 
			throw new HibernateException( "Unable to parse object name: " + qualifiedName );
		} 
	} 
 
	private static String extractCatalog(String qualifiedName) {
		if ( qualifiedName == null ) {
			return null; 
		} 
		String[] tokens = qualifiedName.split( SEPARATOR );
		if ( tokens.length == 0 || tokens.length == 1 ) {
			return null; 
		} 
		else if ( tokens.length == 2 ) {
			// todo - this case needs to be refined w/ help of  DatabaseMetaData (HF) 
			return null; 
Experience pair programming with AI  Get Codota for Java