1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-09 17:02:53 +00:00
Files
l2jserver2/src/main/java/com/l2jserver/model/id/ClanID.java

24 lines
445 B
Java

package com.l2jserver.model.id;
import com.google.inject.Inject;
import com.l2jserver.db.dao.ClanDAO;
import com.l2jserver.model.world.Clan;
public final class ClanID extends ObjectID<Clan> {
/**
* Data Access Object (DAO) for clans
*/
private final ClanDAO clanDao;
@Inject
protected ClanID(int id, ClanDAO clanDao) {
super(id);
this.clanDao = clanDao;
}
@Override
public Clan getObject() {
return clanDao.load(this);
}
}