summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/imagemaster/db/DbSatelliteSuffix.java
blob: a22d694dd2fc52f819c0ad54e40d284e96da0b44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package org.openslx.imagemaster.db;

import java.util.List;

public class DbSatelliteSuffix
{

	public static List<String> forOrganization( String organizationId )
	{
		return MySQL.findAll( String.class, "SELECT satellite_suffix.suffix FROM satellite_suffix WHERE organizationid = ?", organizationId );
	}

	public static List<String> forSatellite( DbSatellite satellite )
	{
		return forOrganization( satellite.getOrganizationId() );
	}

}