Method Summary |
|
public void | addAttribute(String attName, String type) Add an attribute to this meta data object. |
public void | addKeyField(String attName, String type, boolean autogen) Add a primary key field attribute to this meta data object. |
public void | addMember(String attName, String memberName) Add a member for an attribute to this meta object. |
public void | addSqlName(String attName, String sqlName) Add a new sql name for an attribute to this meta object. |
public void | addSqlType(String attName, String type) Add sql type data for a particular attribute in this meta data object. |
public AccessibleObject | getAccessor(String attributeName) Returns the accessor Field/Method for the specified attribute.
Parameters: attributeName - Name of the attribute for which accessor is required. |
public Map | getAccessors() Return a Map of the accessor Field/Method objects for the defined class where key is the
name of the attribute and value is the accessor Field/Method object. |
public Map | getAllKeyFieldNames() Returns a Map where key is the name of a primary key attribute for
the class and value is its corresponding Java type. |
public Map | getAttributes() Returns a Map of the non-primary-key attributes of the class where key
is the name of the attribtue and value is its Java type. |
public String | getClassName() Returns the fully-qualified class name of the class that this meta object
represents. |
public AccessibleObject | getMutator(String attributeName) Returns the mutator Field/Method for the specified attribute.
Parameters: attributeName - Name of the attribute for which mutator is required. |
public Map | getMutators() Return a Map of the mutator Field/Method objects for the defined class where key is the
name of the attribute and value is the mutator Field/Method object. |
public Map | getNonAutoKeyFieldNames() Returns a Map where key is the name of a primary key attribute for
the class and value is its corresponding Java type. |
public String | getSqlName(String attributeName) Returns the name of the sql column in which the specified attribute
is stored, as defined in the mapping file.
Parameters: attributeName - Name of the attribute for which the sql name is required. |
public String | getSqlType(String attributeName) Returns the database sql type for the specified attribute, as defined in
the mapping file.
Parameters: attributeName - Name of the attribute for which sql type is required. |
public String | getTable() Return the database table name that the object represented by this meta
object is to be stored in. |
public String | getType(String attName) Returns the Java type of the specified attribute.
Parameters: attName - The name of the attribute to be checked. |
public URL | getXmlFileUrl() Returns the URL object that was parsed to obtain the meta data for this
object. |
public void | setClassName(String classname) Set the classname property of this meta data object. |
public void | setTable(String table) |
public void | setXmlFileUrl(URL xmlFileUrl) Set the xmlFileUrl property of this meta data object. |
public void | validate() Uses the Introspection service to ensure that the correct accessors and
mutators exist for each attribtue specified in the mapping file. |