universe.common.database
Class Query
java.lang.Object
|
+--universe.common.database.Query
- public class Query
- extends java.lang.Object
This class allows the program to make queries of the database (be
it server or client). The queries might be simple such as "give
me all known systems" or more complicated such as "give me all
enemy ships within 1 parsec of friendly stations."
Note that this class represents the query, not the results of the
query. The results of the query is returned as an Enumeration.
- Version:
- $Id: Query.java,v 1.11 2003/04/03 00:20:54 sstarkey Exp $
- Author:
- Sean Starkey
- See Also:
Database
,
DatabaseView
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
quickQuery
private int quickQuery
AllKnownPlayers
public static final int AllKnownPlayers
- See Also:
- Constant Field Values
Viewer
public static final int Viewer
- See Also:
- Constant Field Values
AllKnownGalaxies
public static final int AllKnownGalaxies
- See Also:
- Constant Field Values
AllKnownSystems
public static final int AllKnownSystems
- See Also:
- Constant Field Values
HomeSystem
public static final int HomeSystem
- See Also:
- Constant Field Values
AllKnownPlanets
public static final int AllKnownPlanets
- See Also:
- Constant Field Values
AllKnownStations
public static final int AllKnownStations
- See Also:
- Constant Field Values
AllKnownFleets
public static final int AllKnownFleets
- See Also:
- Constant Field Values
AllKnownWormholes
public static final int AllKnownWormholes
- See Also:
- Constant Field Values
resultType
private int resultType
ResultTypeUnknown
public static final int ResultTypeUnknown
- See Also:
- Constant Field Values
ResultTypePlayer
public static final int ResultTypePlayer
- See Also:
- Constant Field Values
ResultTypeGalaxy
public static final int ResultTypeGalaxy
- See Also:
- Constant Field Values
ResultTypeSystem
public static final int ResultTypeSystem
- See Also:
- Constant Field Values
ResultTypePlanet
public static final int ResultTypePlanet
- See Also:
- Constant Field Values
ResultTypeStation
public static final int ResultTypeStation
- See Also:
- Constant Field Values
ResultTypeFleet
public static final int ResultTypeFleet
- See Also:
- Constant Field Values
ResultTypeWormhole
public static final int ResultTypeWormhole
- See Also:
- Constant Field Values
Query
public Query()
Query
public Query(int queryType)
isQuickQuery
public boolean isQuickQuery()
getQuickQuery
public int getQuickQuery()
getResultType
public int getResultType()
Copyright © 2001 Universe Dev Team All Rights Reserved.