forked from MagicBane/Server
Renamed class to not conflict with the java.lang version.
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
|
||||
package engine.objects;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.Enum.GameObjectType;
|
||||
import engine.Enum.TransactionType;
|
||||
import engine.mbEnums;
|
||||
import engine.mbEnums.GameObjectType;
|
||||
import engine.mbEnums.TransactionType;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
@@ -23,7 +23,7 @@ public class Transaction implements Comparable<Transaction> {
|
||||
|
||||
private final int warehouseUUID;
|
||||
private final int targetUUID;
|
||||
private final Enum.ResourceType resource;
|
||||
private final mbEnums.ResourceType resource;
|
||||
private final DateTime date;
|
||||
private final int amount;
|
||||
private final TransactionType transactionType;
|
||||
@@ -35,7 +35,7 @@ public class Transaction implements Comparable<Transaction> {
|
||||
this.targetUUID = rs.getInt("targetUID");
|
||||
this.targetType = GameObjectType.valueOf(rs.getString("targetType"));
|
||||
this.transactionType = TransactionType.valueOf(rs.getString("type").toUpperCase());
|
||||
this.resource = Enum.ResourceType.valueOf(rs.getString("resource").toUpperCase());
|
||||
this.resource = mbEnums.ResourceType.valueOf(rs.getString("resource").toUpperCase());
|
||||
this.amount = rs.getInt("amount");
|
||||
|
||||
Date sqlDateTime = rs.getTimestamp("date");
|
||||
@@ -48,7 +48,7 @@ public class Transaction implements Comparable<Transaction> {
|
||||
}
|
||||
|
||||
|
||||
public Transaction(int warehouseUUID, GameObjectType targetType, int targetUUID, TransactionType transactionType, Enum.ResourceType resource, int amount,
|
||||
public Transaction(int warehouseUUID, GameObjectType targetType, int targetUUID, TransactionType transactionType, mbEnums.ResourceType resource, int amount,
|
||||
DateTime date) {
|
||||
this.warehouseUUID = warehouseUUID;
|
||||
this.targetUUID = targetUUID;
|
||||
@@ -70,7 +70,7 @@ public class Transaction implements Comparable<Transaction> {
|
||||
}
|
||||
|
||||
|
||||
public Enum.ResourceType getResource() {
|
||||
public mbEnums.ResourceType getResource() {
|
||||
return resource;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user