public static void createDatabase(DatabaseInfo info, Database entity) { if (info == null || entity == null) { return; } entity.setName(info.getName()); entity.setRssInstanceName(info.getRssInstanceName()); entity.setType(info.getType()); entity.setUrl(info.getUrl()); }
public static void createDatabaseInfo(DatabaseInfo info, Database entity) { if (info == null || entity == null) { return; } info.setName(entity.getName()); if (RSSManagerConstants.RSSManagerTypes.RM_TYPE_SYSTEM.equalsIgnoreCase(entity.getType())) { info.setRssInstanceName(RSSManagerConstants.RSSManagerTypes.RM_TYPE_SYSTEM); } else { info.setRssInstanceName(entity.getRssInstance().getName()); } info.setType(entity.getType()); info.setUrl( createDatabaseUrl( entity.getName(), entity.getRssInstance().getDbmsType(), entity.getRssInstance().getServerURL())); }
public static void validateDatabaseInfo(Database database) throws RSSManagerException { checkIfParameterSecured(database.getName()); }