# Clases Internas

## Clases Internas

Utilizadas en el framework.

Soportan el patrón de diseño Builder en el constructor.

## ![](/files/-Lc1Wv0hEFXU_IEt2HdW)

## UserInfo

Para almacenar informaciòn del usuario.

```java
public class UserInfo {

    @Id
    private String iduserinfo;
    private String username;
    private Date datetime;
    private String description;
}
```

## ErrorInfo

Entity para manejo de errores

```java
public class ErrorInfo {
    @Id
    private String iderror;
    private String username;
    private Date date;
    private String clase;
    private String mensaje;

    public ErrorInfo() {
    }
//
}
```

## AccessInfo

```java
public class AccessInfo {
    @Id
    private String idaccessinfo;
    private String username;
    private Date datetime;
    private String form;
    private String ip;
    private String description;
}
```

## JmoordbResult

Para bases de datos con collecciones y documentos sin esquema

```java
public class JmoordbResult {

    private HashMap<String, String> field = new HashMap<>();
        Exception exception = new Exception();


    public HashMap<String, String> getField() {
        return field;
    }

    public void setField(HashMap<String, String> field) {
        this.field = field;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }

    public JmoordbResult() {
    }
    public JmoordbResult(String key, String value) {
        put(key, value);
    }



    // <editor-fold defaultstate="collapsed" desc="put(String key, String value)">
    public void put(String key, String value) {
        try {
            field.put(key, value);
        } catch (Exception e) {
            Logger.getLogger(Repository.class.getName()).log(Level.SEVERE, null, e);
            exception = new Exception("put() ", e);
        }
    }
    // </editor-fold>

    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="get(String key)">
    public String get(String key) {
       String value = "";
        try {
            value = field.get(key);
        } catch (Exception e) {
            Logger.getLogger(Repository.class.getName()).log(Level.SEVERE, null, e);
            exception = new Exception("get() ", e);
        }
        return value;
    }   // </editor-fold>
    // <editor-fold defaultstate="collapsed" desc="getInteger(String key)">
    public Object getInteger(String key) {
       Object value = "";
        try {
            value = field.get(key);
        } catch (Exception e) {
            Logger.getLogger(Repository.class.getName()).log(Level.SEVERE, null, e);
            exception = new Exception("get() ", e);
        }
        return Integer.parseInt(value.toString());
    }   // </editor-fold>


}
```

### JmoordbEmailMaster

Entity para el manejo de cuentas principales para el envió de correo

```java
public class JmoordbEmailMaster {
@Id
private String email;
private String password;
private String mail_smtp_host;
private String mail_smtp_auth;
private String mail_smtp_port;
private String mail_smtp_starttls_enable;
}
```

**Contiene:**

* JmoordbEmailMaster.java
* JmoordbEmailMasterConverter
* JmoordbEmailMasterDataModel
* JmoordbEmailMasterRepository
* JmoordbEmailMasterServices


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://avbravo-2.gitbook.io/jmoordb/capitulo-1/introduccion/userinfo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
