Examples of DBTransaction


Examples of marauroa.server.db.DBTransaction

   * @param username username
   * @return account status, or <code>null</code> if no such account exists
   * @throws SQLException in case of an database error
   */
  public String getAccountStatus(String username) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      String res = getAccountStatus(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

Examples of marauroa.server.db.DBTransaction

   * @param username username
   * @return account ban message, or <code>null</code> if this account is not banned
   * @throws SQLException in case of an database error
   */
  public String getAccountBanMessage(String username) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      String res = getAccountBanMessage(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

Examples of marauroa.server.db.DBTransaction

   * @param username username
   * @return email of account, or <code>null</code> if no such account exists
   * @throws SQLException in case of an database error
   */
  public String getEmail(String username) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      String res = getEmail(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

Examples of marauroa.server.db.DBTransaction

   * @param username username
   * @return id of account, or -1 if no such account exists
   * @throws SQLException in case of an database error
   */
  public int getDatabasePlayerId(String username) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      int res = getDatabasePlayerId(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

Examples of marauroa.server.db.DBTransaction

   * @param informations login credentials
   * @return true, on success; false otherwise
   * @throws SQLException in case of an database error
   */
  public boolean verify(PlayerEntry.SecuredLoginInfo informations) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      boolean res = verify(transaction, informations);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

Examples of marauroa.server.db.DBTransaction

   * @param username username
   * @return always true
   * @throws SQLException in case of an database error
   */
  public boolean removePlayer(String username) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      boolean res = removePlayer(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

Examples of marauroa.server.db.DBTransaction

   * @return true, if too many accounts have been created recently
   * @throws SQLException in case of an database error
   * @throws IOException in case of an input/output error
   */
  public boolean isAccountCreationLimitReached(String address) throws SQLException, IOException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      boolean res = isAccountCreationLimitReached(transaction, address);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

Examples of marauroa.server.db.DBTransaction

   * @throws SQLException in case of an database error
   */
  public void addBan(String username, String reason, Timestamp expire)
      throws SQLException {
   
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      addBan(transaction, username, reason, expire);     
    } finally {
      TransactionPool.get().commit(transaction);
    }
View Full Code Here

Examples of marauroa.server.db.DBTransaction

   * @return RPObject
   * @throws IOException in case of an input/output error
   * @throws SQLException in case of an database error
   */
  public RPObject loadRPObject(int objectid, boolean transform) throws SQLException, IOException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      RPObject res = loadRPObject(transaction, objectid, transform);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

Examples of marauroa.server.db.DBTransaction

   * @return RPObject
   * @throws IOException in case of an input/output error
   * @throws SQLException in case of an database error
   */
  public RPObject loadRPObject(int objectid) throws SQLException, IOException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      RPObject res = loadRPObject(transaction, objectid, true);
      return res;
    } 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.