Package com.im.df.impl.db
Class SchemaErrorInfo
- java.lang.Object
-
- com.im.df.impl.db.SchemaErrorInfo
-
public abstract class SchemaErrorInfo extends Object
Schema error description which also contains possible fix, implemented in fix() method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchemaErrorInfo.TypeItem type.
-
Constructor Summary
Constructors Constructor Description SchemaErrorInfo(com.chemaxon.dif.db.api.schema.DBSchemaImpl schema, SchemaErrorInfo.Type type, String parentId, String itemId, String itemName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidfix()Calling this method will fix the schema error.StringgetItemId()StringgetItemName()com.chemaxon.dif.db.api.schema.DBSchemaImplgetSchema()SchemaErrorInfo.TypegetType()abstract booleanisDelete()Returns true if the fix delete the item.abstract booleanisFixed()Returns true if the problem was already fixed by calling fix() method.
-
-
-
Field Detail
-
schema
protected final com.chemaxon.dif.db.api.schema.DBSchemaImpl schema
-
type
protected final SchemaErrorInfo.Type type
-
parentId
protected final String parentId
-
itemId
protected final String itemId
-
itemName
protected final String itemName
-
-
Constructor Detail
-
SchemaErrorInfo
public SchemaErrorInfo(com.chemaxon.dif.db.api.schema.DBSchemaImpl schema, SchemaErrorInfo.Type type, String parentId, String itemId, String itemName)
-
-
Method Detail
-
getType
public SchemaErrorInfo.Type getType()
-
getItemId
public String getItemId()
-
getItemName
public String getItemName()
-
getSchema
public com.chemaxon.dif.db.api.schema.DBSchemaImpl getSchema()
-
fix
public abstract void fix()
Calling this method will fix the schema error. Should be called after user confirms it. User interaction can be implement inSchemaErrorLogger
-
isDelete
public abstract boolean isDelete()
Returns true if the fix delete the item.- Returns:
-
isFixed
public abstract boolean isFixed()
Returns true if the problem was already fixed by calling fix() method.- Returns:
-
-