Sync with L2jServer HighFive Jul 25th 2015.
This commit is contained in:
@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.l2jserver.L2DatabaseFactory;
|
||||
import com.l2jserver.commons.database.pool.impl.ConnectionFactory;
|
||||
import com.l2jserver.gameserver.model.L2Mentee;
|
||||
import com.l2jserver.gameserver.model.L2World;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
@ -56,7 +56,7 @@ public class MentorManager
|
||||
|
||||
private void load()
|
||||
{
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
Statement statement = con.createStatement();
|
||||
ResultSet rset = statement.executeQuery("SELECT * FROM character_mentees"))
|
||||
{
|
||||
@ -78,7 +78,7 @@ public class MentorManager
|
||||
*/
|
||||
public void deleteMentee(int mentorId, int menteeId)
|
||||
{
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement statement = con.prepareStatement("DELETE FROM character_mentees WHERE mentorId = ? AND charId = ?"))
|
||||
{
|
||||
statement.setInt(1, mentorId);
|
||||
@ -97,7 +97,7 @@ public class MentorManager
|
||||
*/
|
||||
public void deleteMentor(int mentorId, int menteeId)
|
||||
{
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement statement = con.prepareStatement("DELETE FROM character_mentees WHERE mentorId = ? AND charId = ?"))
|
||||
{
|
||||
statement.setInt(1, mentorId);
|
||||
|
Reference in New Issue
Block a user