@Override
  protected void checkOpeness() {
    if (ownerPool == null)
      throw new ODatabaseException(
          "Database instance has been released to the pool. Get another database instance from the pool with the right username and password");

    super.checkOpeness();
  }
 public OObjectDatabaseTxPooled(
     final OObjectDatabasePool iOwnerPool,
     final String iURL,
     final String iUserName,
     final String iUserPassword) {
   super(iURL);
   ownerPool = iOwnerPool;
   userName = iUserName;
   super.open(iUserName, iUserPassword);
 }
 public void forceClose() {
   super.close();
 }