Methods Summary |
---|
public boolean | applyDefaultUnknownPKClassStrategy(java.lang.String ejbName)Returns flag whether the mapping conversion should apply the default
strategy for dealing with unknown primary key classes. This method will
only be called when {@link #generateFields} returns true .
|
public boolean | ensureValidation()Returns the flag whether the mapping conversion should validate
all fields against schema columns.
|
public boolean | generateFields()Returns the flag whether the mapping conversion should generate
relationship fields and primary key fields to support run-time.
The version field is always created even {@link #generateFields} is
false because it holds version column information.
|
public java.lang.Object[] | getFields(java.lang.String beanName)
|
public java.lang.String | getGeneratedPKFieldName()Returns the name used for generated primary key fields.
|
public java.util.List | getGeneratedRelationships(java.lang.String ejbName)Returns a list of generated relationship field names.
|
public java.lang.String | getGeneratedVersionFieldNamePrefix()Returns the prefix used for generated version fields.
|
public java.lang.String | getInverseFieldName(java.lang.String ejbName, java.lang.String fieldName)
|
public java.lang.String | getMappedClassName(java.lang.String beanName)Computes the name of the TP implementation class for a bean.
|
public java.lang.String | getMultiplicity(java.lang.String ejbName, java.lang.String fieldName)
|
public java.lang.String | getRelationshipFieldContent(java.lang.String ejbName, java.lang.String fieldName)Return the name of the opposite roles ejb-name
|
public java.lang.String | getRelationshipFieldType(java.lang.String ejbName, java.lang.String fieldName)
|
public boolean | hasField(java.lang.String beanName, java.lang.String fieldName)
|
public boolean | isGeneratedField(java.lang.String ejbName, java.lang.String fieldName)Returns true if the field is generated. There are three
types of generated fields: generated relationships, unknown primary key
fields, and version consistency fields.
|
public boolean | isGeneratedRelationship(java.lang.String ejbName, java.lang.String fieldName)Flag whether the conversion helper generated the relationship field
|
public boolean | isKey(java.lang.String beanName, java.lang.String fieldName, boolean candidate)Compute the keyness of a field.
The value returned is the keyness of the field, if it is
computable. If it is not, the candidate value is returned.
|
public boolean | relatedObjectsAreDeleted(java.lang.String ejbName, java.lang.String fieldName)
|
public void | setEnsureValidation(boolean isValidating)Sets the flag whether the mapping conversion should validate all fields
against schema columns.
|
public void | setGenerateFields(boolean generateFields)Sets the flag whether the mapping conversion should generate relationship
fields, primary key fields, and version fields to support run-time.
|