mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-09 17:02:53 +00:00
24 lines
445 B
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);
|
|
}
|
|
}
|