Methods Summary |
---|
public boolean | equals(java.lang.Object objectToCompare)INTERNAL:
If equals returns false, call getConflict() for a finer grain reason why.
MetadataPersistenceUnit persistenceUnit = (MetadataPersistenceUnit) objectToCompare;
if (! persistenceUnit.getAccess().equals(getAccess())) {
m_conflict = XMLConstants.ACCESS;
return false;
}
if (! persistenceUnit.getCatalog().equals(getCatalog())) {
m_conflict = XMLConstants.CATALOG;
return false;
}
if (! persistenceUnit.getSchema().equals(getSchema())) {
m_conflict = XMLConstants.SCHEMA;
return false;
}
if (persistenceUnit.isCascadePersist() != isCascadePersist()) {
m_conflict = XMLConstants.CASCADE_PERSIST;
return false;
}
if (persistenceUnit.isMetadataComplete() != isMetadataComplete()) {
m_conflict = XMLConstants.METADATA_COMPLETE;
return false;
}
return true;
|
public java.lang.String | getAccess()INTERNAL:
return m_access;
|
public java.lang.String | getCatalog()INTERNAL:
return m_catalog;
|
public java.lang.String | getConflict()INTERNAL:
Calling this method after an equals call that returns false will give
you the conflicting metadata.
return m_conflict;
|
public java.lang.String | getSchema()INTERNAL:
return m_schema;
|
public boolean | isCascadePersist()INTERNAL:
return m_isCascadePersist;
|
public boolean | isMetadataComplete()INTERNAL:
return m_isMetadataComplete;
|
public void | setAccess(java.lang.String access)INTERNAL:
m_access = access;
|
public void | setCatalog(java.lang.String catalog)INTERNAL:
m_catalog = catalog;
|
public void | setIsCascadePersist(boolean isCascadePersist)INTERNAL:
m_isCascadePersist = isCascadePersist;
|
public void | setIsMetadataComplete(boolean isMetadataComplete)INTERNAL:
m_isMetadataComplete = isMetadataComplete;
|
public void | setSchema(java.lang.String schema)INTERNAL:
m_schema = schema;
|