Managing expectedtype property
This commit is contained in:
parent
3776bdae50
commit
3fbdc1d734
|
@ -143,6 +143,7 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
|
|||
this.ignoreKeys = new HashSet<String>();
|
||||
this.ignoreKeys.add(Element.TYPE_PROPERTY);
|
||||
this.ignoreKeys.add(Element.SUPERTYPES_PROPERTY);
|
||||
this.ignoreKeys.add(Element.EXPECTED_TYPE_PROPERTY);
|
||||
this.ignoreKeys.add(IdentifiableElement.ID_PROPERTY);
|
||||
this.ignoreKeys.add(IdentifiableElement.METADATA_PROPERTY);
|
||||
|
||||
|
|
|
@ -55,6 +55,11 @@ public class EncryptedOrient extends ODocument implements Encrypted {
|
|||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getExpectedtype() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getEncryptedValue() {
|
||||
return this.field(EncryptedOrient.VALUE);
|
||||
|
@ -115,13 +120,6 @@ public class EncryptedOrient extends ODocument implements Encrypted {
|
|||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toJSON(String iFormat) {
|
||||
String ret = super.toJSON(iFormat);
|
||||
ret = OrientDBUtility.replaceType(ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getValue() {
|
||||
return getEncryptedValue();
|
||||
|
@ -132,4 +130,11 @@ public class EncryptedOrient extends ODocument implements Encrypted {
|
|||
setEncryptedValue(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toJSON(String iFormat) {
|
||||
String ret = super.toJSON(iFormat);
|
||||
ret = OrientDBUtility.replaceType(ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -47,6 +47,11 @@ public class MetadataOrient extends ODocument implements Metadata {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getExpectedtype() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCreatedBy() {
|
||||
return this.field(Metadata.CREATED_BY_PROPERTY);
|
||||
|
|
|
@ -45,6 +45,11 @@ public class PropagationConstraintOrient extends ODocument implements Propagatio
|
|||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getExpectedtype() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AddConstraint getAddConstraint() {
|
||||
|
|
Loading…
Reference in New Issue