1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-05 23:22:47 +00:00

Adds support for asynchronous database operations

This commit is contained in:
2011-12-16 12:30:18 -02:00
parent 82f6bcbc1c
commit dea1196859
11 changed files with 269 additions and 17 deletions

View File

@@ -80,7 +80,7 @@ public enum CharacterClass {
DARK_FIGHTER(0x1f, FIGHTER, DARK_ELF), PALUS_KNIGHT(0x20, DARK_FIGHTER), SHILLIEN_KNIGHT(
0x21, PALUS_KNIGHT), BLADEDANCER(0x22, PALUS_KNIGHT), ASSASSIN(
0x23, DARK_FIGHTER), ABYSS_WALKER(0x24, ASSASSIN), PHANTOM_RANGER(
0x25, ASSASSIN), SHILLIEN_TEMPLAR(0x6a, SHILLIEN_KNIGHT), spectralDancer(
0x25, ASSASSIN), SHILLIEN_TEMPLAR(0x6a, SHILLIEN_KNIGHT), SPECTRAL_DANCER(
0x6b, BLADEDANCER), GHOST_HUNTER(0x6c, ABYSS_WALKER), GHOST_SENTINEL(
0x6d, PHANTOM_RANGER),

View File

@@ -80,7 +80,7 @@ public class DatabaseChatLoggingService extends AbstractService implements
message.setMessage(messageText);
// save in database
chatMessageDao.save(message, true);
chatMessageDao.insert(message);
return message;
}

View File

@@ -55,7 +55,7 @@ public final class WorldFilters {
}
/**
* Performs an <tt>NOTA</tt> operation
* Performs an <tt>NOT</tt> operation
*
* @param <O>
* the object type

View File

@@ -16,10 +16,11 @@
*/
package com.l2jserver.service.game.world.filter.impl;
import static com.l2jserver.service.game.world.filter.WorldFilters.not;
import com.l2jserver.model.world.PositionableObject;
import com.l2jserver.model.world.WorldObject;
import com.l2jserver.service.game.world.filter.AndFilter;
import com.l2jserver.service.game.world.filter.NotFilter;
import com.l2jserver.util.geometry.Point3D;
/**
@@ -42,7 +43,7 @@ public class KnownListUpdateFilter extends AndFilter<PositionableObject> {
* the old position
*/
public KnownListUpdateFilter(PositionableObject object, Point3D old) {
super(new KnownListFilter(object), new NotFilter<PositionableObject>(
new RangePointFilter(old, KnownListFilter.KNOWNLIST_RANGE)));
super(new KnownListFilter(object), not(new RangePointFilter(old,
KnownListFilter.KNOWNLIST_RANGE)));
}
}