Refactored DatabaseFactory.
This commit is contained in:
@@ -39,7 +39,7 @@ import org.w3c.dom.NamedNodeMap;
|
||||
import org.w3c.dom.Node;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.commons.database.pool.impl.ConnectionFactory;
|
||||
import com.l2jmobius.commons.database.DatabaseFactory;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.data.sql.impl.CharNameTable;
|
||||
import com.l2jmobius.gameserver.enums.ItemLocation;
|
||||
@@ -162,7 +162,7 @@ public final class ItemAuctionInstance
|
||||
throw new IllegalArgumentException("No items defined");
|
||||
}
|
||||
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
try (Connection con = DatabaseFactory.getInstance().getConnection();
|
||||
PreparedStatement ps = con.prepareStatement(SELECT_AUCTION_ID_BY_INSTANCE_ID))
|
||||
{
|
||||
ps.setInt(1, _instanceId);
|
||||
@@ -537,7 +537,7 @@ public final class ItemAuctionInstance
|
||||
|
||||
private final ItemAuction loadAuction(final int auctionId) throws SQLException
|
||||
{
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection())
|
||||
try (Connection con = DatabaseFactory.getInstance().getConnection())
|
||||
{
|
||||
int auctionItemId = 0;
|
||||
long startingTime = 0;
|
||||
|
Reference in New Issue
Block a user