/** * Check that the array is not empty * @param array Array * @throws IllegalArgumentException If array is null or empty * @since 3.1 */ public static final void isNotEmpty(Object[] array) { isNotEmpty(array,null); }
/** * Check that the map is not empty * @param map Map * @throws IllegalArgumentException If map is null or empty */ public static final void isNotEmpty(Map map) { isNotEmpty(map,null); }
/** * Check that the array is not empty * @param array Array * @throws IllegalArgumentException If array is null or empty * @since 3.1 */ public static final void isNotEmpty(Object[] array) { isNotEmpty(array,null); }
/** * Check that the collection is not empty * @param collection Collection * @throws IllegalArgumentException If collection is null or empty */ public static final void isNotEmpty(Collection collection) { isNotEmpty(collection,null); }
/** * Check that the collection is not empty * @param collection Collection * @throws IllegalArgumentException If collection is null or empty */ public static final void isNotEmpty(Collection collection) { isNotEmpty(collection,null); }
/** * Check that the map is not empty * @param map Map * @throws IllegalArgumentException If map is null or empty */ public static final void isNotEmpty(Map map) { isNotEmpty(map,null); }
public Collection<String> getGroupsForPartialName(final String partialGroupName) throws TeiidComponentException, QueryMetadataException { ArgCheck.isNotEmpty(partialGroupName); Collection<Table> matches = this.partialNameToFullNameCache.get(partialGroupName); if (matches == null) { matches = getMetadataStore().getGroupsForPartialName(partialGroupName); this.partialNameToFullNameCache.put(partialGroupName, matches); } if (matches.isEmpty()) { return Collections.emptyList(); } Collection<String> filteredResult = new ArrayList<String>(matches.size()); for (Table table : matches) { if (vdbMetaData == null || vdbMetaData.isVisible(table.getParent().getName())) { filteredResult.add(table.getFullName()); } } return filteredResult; }
public Collection<String> getGroupsForPartialName(final String partialGroupName) throws TeiidComponentException, QueryMetadataException { ArgCheck.isNotEmpty(partialGroupName); Collection<Table> matches = this.partialNameToFullNameCache.get(partialGroupName); if (matches == null) { matches = getMetadataStore().getGroupsForPartialName(partialGroupName); this.partialNameToFullNameCache.put(partialGroupName, matches); } if (matches.isEmpty()) { return Collections.emptyList(); } Collection<String> filteredResult = new ArrayList<String>(matches.size()); for (Table table : matches) { if (vdbMetaData == null || vdbMetaData.isVisible(table.getParent().getName())) { filteredResult.add(table.getFullName()); } } return filteredResult; }
public Collection<String> getGroupsForPartialName(final String partialGroupName) throws TeiidComponentException, QueryMetadataException { ArgCheck.isNotEmpty(partialGroupName); Collection<Table> matches = this.partialNameToFullNameCache.get(partialGroupName); if (matches == null) { matches = getMetadataStore().getGroupsForPartialName(partialGroupName); this.partialNameToFullNameCache.put(partialGroupName, matches); } if (matches.isEmpty()) { return Collections.emptyList(); } Collection<String> filteredResult = new ArrayList<String>(matches.size()); for (Table table : matches) { if (vdbMetaData == null || vdbMetaData.isVisible(table.getParent().getName())) { filteredResult.add(table.getFullName()); } } return filteredResult; }
private StoredProcedureInfo getStoredProcInfoDirect( final String name) throws TeiidComponentException, QueryMetadataException { ArgCheck.isNotEmpty(name); String canonicalName = name.toUpperCase(); Collection<StoredProcedureInfo> results = this.procedureCache.get(canonicalName);
private StoredProcedureInfo getStoredProcInfoDirect( final String name) throws TeiidComponentException, QueryMetadataException { ArgCheck.isNotEmpty(name); String canonicalName = name.toUpperCase(); Collection<StoredProcedureInfo> results = this.procedureCache.get(canonicalName);
private StoredProcedureInfo getStoredProcInfoDirect( final String name) throws TeiidComponentException, QueryMetadataException { ArgCheck.isNotEmpty(name); String canonicalName = name.toUpperCase(); Collection<StoredProcedureInfo> results = this.procedureCache.get(canonicalName);