
public class OImmutableProperty extends Object implements OProperty
OProperty.ATTRIBUTES| Constructor and Description |
|---|
OImmutableProperty(OProperty property,
OImmutableClass owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCustom() |
int |
compareTo(OProperty other) |
OIndex<?> |
createIndex(OClass.INDEX_TYPE iType)
Creates an index on this property.
|
OIndex<?> |
createIndex(OClass.INDEX_TYPE iType,
ODocument metadata)
Creates an index on this property.
|
OIndex<?> |
createIndex(String iType)
Creates an index on this property.
|
OIndex<?> |
createIndex(String iType,
ODocument metadata)
Creates an index on this property.
|
OProperty |
dropIndexes()
Remove the index on property
|
boolean |
equals(Object obj) |
Object |
get(OProperty.ATTRIBUTES attribute) |
Collection<OIndex<?>> |
getAllIndexes() |
OCollate |
getCollate() |
String |
getCustom(String iName) |
Set<String> |
getCustomKeys() |
String |
getDefaultValue()
Default value for the property; can be function
|
String |
getDescription() |
String |
getFullName()
Returns the full name as
|
Integer |
getId() |
OIndex<?> |
getIndex() |
Set<OIndex<?>> |
getIndexes() |
OClass |
getLinkedClass()
Returns the linked class in lazy mode because while unmarshalling the class could be not loaded yet.
|
OType |
getLinkedType() |
String |
getMax()
Max behavior depends on the Property OType.
|
Comparable<Object> |
getMaxComparable() |
String |
getMin()
Min behavior depends on the Property OType.
|
Comparable<Object> |
getMinComparable() |
String |
getName() |
OClass |
getOwnerClass() |
String |
getRegexp() |
OType |
getType() |
int |
hashCode() |
boolean |
isIndexed()
Indicates whether property is contained in indexes as its first key item.
|
boolean |
isMandatory() |
boolean |
isNotNull() |
boolean |
isReadonly() |
void |
removeCustom(String iName) |
void |
set(OProperty.ATTRIBUTES attribute,
Object iValue) |
OProperty |
setCollate(OCollate collate) |
OProperty |
setCollate(String iCollateName) |
OProperty |
setCustom(String iName,
String iValue) |
OProperty |
setDefaultValue(String defaultValue) |
OProperty |
setDescription(String iDescription) |
OProperty |
setLinkedClass(OClass oClass) |
OProperty |
setLinkedType(OType type) |
OProperty |
setMandatory(boolean mandatory) |
OProperty |
setMax(String max) |
OProperty |
setMin(String min) |
OProperty |
setName(String iName) |
OProperty |
setNotNull(boolean iNotNull) |
OProperty |
setReadonly(boolean iReadonly) |
OProperty |
setRegexp(String regexp) |
OProperty |
setType(OType iType)
Change the type.
|
String |
toString() |
public OImmutableProperty(OProperty property, OImmutableClass owner)
public String getFullName()
OPropertygetFullName in interface OPropertypublic String getDescription()
getDescription in interface OPropertypublic OProperty setDescription(String iDescription)
setDescription in interface OPropertypublic void set(OProperty.ATTRIBUTES attribute, Object iValue)
public OClass getLinkedClass()
OPropertygetLinkedClass in interface OPropertypublic OProperty setLinkedClass(OClass oClass)
setLinkedClass in interface OPropertypublic OType getLinkedType()
getLinkedType in interface OPropertypublic OProperty setLinkedType(OType type)
setLinkedType in interface OPropertypublic OProperty setNotNull(boolean iNotNull)
setNotNull in interface OPropertypublic OCollate getCollate()
getCollate in interface OPropertypublic OProperty setCollate(String iCollateName)
setCollate in interface OPropertypublic OProperty setCollate(OCollate collate)
setCollate in interface OPropertypublic boolean isMandatory()
isMandatory in interface OPropertypublic OProperty setMandatory(boolean mandatory)
setMandatory in interface OPropertypublic boolean isReadonly()
isReadonly in interface OPropertypublic OProperty setReadonly(boolean iReadonly)
setReadonly in interface OPropertypublic String getMin()
OProperty
public OProperty setMin(String min)
setMin in interface OPropertymin - can be nullOProperty.getMin()public String getMax()
OProperty
public OProperty setMax(String max)
setMax in interface OPropertymax - can be nullOProperty.getMax()public String getDefaultValue()
OPropertygetDefaultValue in interface OPropertypublic OProperty setDefaultValue(String defaultValue)
setDefaultValue in interface OPropertydefaultValue - can be nullOProperty.getDefaultValue()public OIndex<?> createIndex(OClass.INDEX_TYPE iType)
OPropertycreateIndex in interface OPropertyiType - One of types supported.
OClass.createIndex(String, OClass.INDEX_TYPE, String...).public OIndex<?> createIndex(String iType)
OPropertycreateIndex in interface OPropertyOClass.createIndex(String, OClass.INDEX_TYPE, String...).public OIndex<?> createIndex(String iType, ODocument metadata)
OPropertycreateIndex in interface OPropertyiType - One of types supported.
metadata - the index metadataOClass.createIndex(String, OClass.INDEX_TYPE, String...).public OIndex<?> createIndex(OClass.INDEX_TYPE iType, ODocument metadata)
OPropertycreateIndex in interface OPropertyiType - One of types supported.
metadata - the index metadataOClass.createIndex(String, OClass.INDEX_TYPE, String...).public OProperty dropIndexes()
OPropertydropIndexes in interface OPropertypublic Set<OIndex<?>> getIndexes()
getIndexes in interface OPropertypublic OIndex<?> getIndex()
public Collection<OIndex<?>> getAllIndexes()
getAllIndexes in interface OPropertypublic boolean isIndexed()
OPropertyOProperty.getAllIndexes() instead.public OProperty setType(OType iType)
OPropertypublic void removeCustom(String iName)
removeCustom in interface OPropertypublic void clearCustom()
clearCustom in interface OPropertypublic Set<String> getCustomKeys()
getCustomKeys in interface OPropertypublic OClass getOwnerClass()
getOwnerClass in interface OPropertypublic Object get(OProperty.ATTRIBUTES attribute)
public int compareTo(OProperty other)
compareTo in interface Comparable<OProperty>public Comparable<Object> getMaxComparable()
public Comparable<Object> getMinComparable()
Copyright © 2009–2025 OrientDB. All rights reserved.