Package marauroa.server.db

Examples of marauroa.server.db.DBTransaction


   * @param username username
   * @return list of characters
   * @throws SQLException in case of an database error
   */
  public List<String> getCharacters(String username) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      List<String>  res = getCharacters(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here


   * @throws SQLException
   *             if there is any problem at database.
   * @throws IOException
   */
  public void storeCharacter(String username, String character, RPObject player) throws SQLException, IOException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      storeCharacter(transaction, username, character, player);
    } finally {
      TransactionPool.get().commit(transaction);
    }
View Full Code Here

   * @throws SQLException
   *             if there is any problem at database
   * @throws IOException
   */
  public RPObject loadCharacter(String username, String character) throws SQLException, IOException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      RPObject res = loadCharacter(transaction, username, character);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

   *             if there is any problem at database
   * @throws IOException
   *             if there is a problem reading the blob
   */
  public Map<String, RPObject> loadAllCharacters(String username) throws SQLException, IOException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      Map<String, RPObject> res = loadAllCharacters(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

   *             if there is any problem at database
   * @throws IOException
   *             if there is a problem reading the blob
   */
  public Map<String, RPObject> loadAllActiveCharacters(String username) throws SQLException, IOException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      Map<String, RPObject> res = loadAllActiveCharacters(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

   * @param character name of character
   * @return name of account, or <code>null<code> in case the character does not exist
   * @throws SQLException if there is any problem at database
   */
  public String getAccountName(String character) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      String res = getAccountName(transaction, character);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

   * @param character name of character
   * @return name of character, or <code>null<code> in case the character does not exist
   * @throws SQLException if there is any problem at database
   */
  public String getCanonicalName(String character) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      String res = getCanonicalName(transaction, character);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

   * @return true if too many characters have been created
   * @throws IOException in case of an input output error
   * @throws SQLException if there is any problem at database
   */
  public boolean isCharacterCreationLimitReached(String username, String address) throws IOException, SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      return isCharacterCreationLimitReached(transaction, username, address);
    } finally {
      TransactionPool.get().commit(transaction);
    }
View Full Code Here

   * @param character name of character
   * @return date of character creation or null if no character with that name exists
   * @throws SQLException in case of an database error
   */
  public Date getCreationDate(String character) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      Date res = getCreationDate(transaction, character);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

   * @param zone IRPZone
   * @throws IOException in case of an input/output error
   * @throws SQLException in case of an database error
   */
  public void loadRPZone(IRPZone zone) throws SQLException, IOException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      loadRPZone(transaction, zone);
    } finally {
      TransactionPool.get().commit(transaction);
    }
View Full Code Here

TOP

Related Classes of marauroa.server.db.DBTransaction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.