ReportMill 11 API

com.reportmill.datasource
Class RMDataSourceUtils

java.lang.Object
  extended by com.reportmill.datasource.RMDataSourceUtils

public class RMDataSourceUtils
extends java.lang.Object

Utility methods for RMProperty.


Constructor Summary
RMDataSourceUtils()
           
 
Method Summary
static java.lang.Object convertValue(java.lang.Object aValue, RMProperty.Type aType)
          Converts a given value to a given type using above conversion utils.
static RMEntity createEntity(java.lang.Class aClass)
          Returns the entity for the given class, using reflection.
static RMEntity createEntity(java.lang.String aTableName, java.sql.DatabaseMetaData dbMetaData)
          Returns an entity for a table name in this database.
static RMEntity createEntity(java.lang.String aName, java.sql.ResultSet aResultSet)
          Returns an entity for a result set.
static RMSchema createSchema(java.lang.String catalogName, java.lang.String dbSchemaName, java.sql.DatabaseMetaData metaData)
          Returns the database metadata for a particular catalog & schema as an RMSchema.
static RMProperty.Type getPropertyType(java.lang.Object anObj)
          Returns a property type for a given object/class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMDataSourceUtils

public RMDataSourceUtils()
Method Detail

convertValue

public static java.lang.Object convertValue(java.lang.Object aValue,
                                            RMProperty.Type aType)
Converts a given value to a given type using above conversion utils.


getPropertyType

public static RMProperty.Type getPropertyType(java.lang.Object anObj)
Returns a property type for a given object/class.


createEntity

public static RMEntity createEntity(java.lang.Class aClass)
Returns the entity for the given class, using reflection.


createEntity

public static RMEntity createEntity(java.lang.String aName,
                                    java.sql.ResultSet aResultSet)
Returns an entity for a result set.


createEntity

public static RMEntity createEntity(java.lang.String aTableName,
                                    java.sql.DatabaseMetaData dbMetaData)
Returns an entity for a table name in this database.


createSchema

public static RMSchema createSchema(java.lang.String catalogName,
                                    java.lang.String dbSchemaName,
                                    java.sql.DatabaseMetaData metaData)
Returns the database metadata for a particular catalog & schema as an RMSchema.


ReportMill 11 API