Examples of DBTransaction


Examples of marauroa.server.db.DBTransaction

   * @param character name of character
   * @return true, if the character exists and belongs to the account; false otherwise
   * @throws SQLException in case of an database error
   */
  public boolean hasCharacter(String username, String character) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      boolean res = hasCharacter(transaction, username, character);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

Examples of marauroa.server.db.DBTransaction

   * @param character name of character
   * @return true, if the character exists and belongs to the account; false otherwise
   * @throws SQLException in case of an database error
   */
  public boolean hasActiveCharacter(String username, String character) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      boolean res = hasActiveCharacter(transaction, username, character);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

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

Examples of marauroa.server.db.DBTransaction

   * @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

Examples of marauroa.server.db.DBTransaction

   * @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

Examples of marauroa.server.db.DBTransaction

   *             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

Examples of marauroa.server.db.DBTransaction

   *             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

Examples of marauroa.server.db.DBTransaction

   * @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

Examples of marauroa.server.db.DBTransaction

   * @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

Examples of marauroa.server.db.DBTransaction

   * @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
TOP
Copyright © 2018 www.massapi.com. 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.