public class Util
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DO_INCLUDE_BLOBS |
static boolean |
DONT_INCLUDE_BLOBS |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateDAO(PersistenceManager pm,
java.lang.String schemaName,
java.lang.String tableName)
Generate a database transfer object (DTO) for a table
This method is kept for compatibility reasons, it maps to
generateDTO . |
java.lang.String |
generateDTO(PersistenceManager pm,
java.lang.String schemaName,
java.lang.String tableName)
Generate a database transfer object (DTO) for a table
|
java.util.List<java.util.List<java.lang.String>> |
getColumns(PersistenceManager pm,
java.sql.Connection c,
java.lang.String schemaName,
java.lang.String tableName)
Get a description of the columns of a database table
|
java.util.List<java.util.List<java.lang.String>> |
getPrimaryKeys(PersistenceManager pm,
java.sql.Connection c,
java.lang.String schemaName,
java.lang.String tableName)
Get a description of the primary keys of a database table
|
public static final boolean DO_INCLUDE_BLOBS
public static final boolean DONT_INCLUDE_BLOBS
public java.lang.String generateDTO(PersistenceManager pm, java.lang.String schemaName, java.lang.String tableName)
pm
- an object to be used for database accessschemaName
- name of database schema that contains the tabletableName
- name of table to create DAO forpublic java.lang.String generateDAO(PersistenceManager pm, java.lang.String schemaName, java.lang.String tableName)
generateDTO
.pm
- an object to be used for database accessschemaName
- name of database schema that contains the tabletableName
- name of table to create DAO forpublic java.util.List<java.util.List<java.lang.String>> getColumns(PersistenceManager pm, java.sql.Connection c, java.lang.String schemaName, java.lang.String tableName)
pm
- an object to be used for database accessc
- the database connection that has been opened for this actionschemaName
- name of database schema that contains the tabletableName
- name of table to get column descriptions forpublic java.util.List<java.util.List<java.lang.String>> getPrimaryKeys(PersistenceManager pm, java.sql.Connection c, java.lang.String schemaName, java.lang.String tableName)
pm
- an object to be used for database accessc
- the database connection that has been opened for this actionschemaName
- name of database schema that contains the tabletableName
- name of table to get primary key descriptions for