From 07913e9b8a89cfa59984ace69fe39ed54b41606c Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 26 May 2020 08:39:12 +0000
Subject: [PATCH] Anpassung an der Klasse Util, Doku angepasst

---
 src/de/uhilger/baselink/Util.java |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/src/de/uhilger/baselink/Util.java b/src/de/uhilger/baselink/Util.java
index d37afa7..60e6bc9 100644
--- a/src/de/uhilger/baselink/Util.java
+++ b/src/de/uhilger/baselink/Util.java
@@ -1,6 +1,6 @@
 /*
  *  BaseLink - Generic object relational mapping
- *  Copyright (C) 2011  Ulrich Hilger, http://uhilger.de
+ *  Copyright (C) 2011-2020  Ulrich Hilger, http://uhilger.de
  *
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -38,13 +38,14 @@
   public static final boolean DONT_INCLUDE_BLOBS = false;
   
   /**
-   * Generate a database access object (DAO) for a table
+   * Generate a database transfer object (DTO) for a table
+   * 
    * @param pm  an object to be used for database access
    * @param schemaName name of database schema that contains the table 
    * @param tableName name of table to create DAO for
    * @return java source code of DAO
    */
-  public String generateDAO(PersistenceManager pm, String schemaName, String tableName) {
+  public String generateDTO(PersistenceManager pm, String schemaName, String tableName) {
     String indentation = "  ";
     //String indent = "";
     StringBuilder code = new StringBuilder();
@@ -163,6 +164,21 @@
   }
   
   /**
+   * Generate a database transfer object (DTO) for a table
+   * 
+   * This method is kept for compatibility reasons, it maps to 
+   * <code>generateDTO</code>.
+   * 
+   * @param pm  an object to be used for database access
+   * @param schemaName name of database schema that contains the table 
+   * @param tableName name of table to create DAO for
+   * @return java source code of DAO
+   */
+  public String generateDAO(PersistenceManager pm, String schemaName, String tableName) {
+    return generateDTO(pm, schemaName, tableName);
+  }
+  
+  /**
    * Get a description of the columns of a database table
    * 
    * @param pm  an object to be used for database access

--
Gitblit v1.9.3