Package marauroa.server.db

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


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

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

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

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

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

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

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

   * @param objectid database-id of the RPObject
   * @return objectid
   * @throws SQLException in case of an database error
   */
  public int removeRPObject(int objectid) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      int res = removeRPObject(transaction, objectid);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

   * @param objectid database-id of the RPObject
   * @return true, if it exists; false otherwise
   * @throws SQLException in case of an database error
   */
  public boolean hasRPObject(int objectid) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      boolean res = hasRPObject(transaction, objectid);
      return res;
    } 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.