public interface OProperty extends Comparable<OProperty>
Modifier and Type | Interface and Description |
---|---|
static class |
OProperty.ATTRIBUTES |
compareTo
String getName()
String getFullName()
void set(OProperty.ATTRIBUTES attribute, Object iValue)
OType getType()
OClass getLinkedClass()
OType getLinkedType()
boolean isNotNull()
OProperty setNotNull(boolean iNotNull)
OCollate getCollate()
boolean isMandatory()
OProperty setMandatory(boolean mandatory)
boolean isReadonly()
OProperty setReadonly(boolean iReadonly)
String getMin()
OProperty setMin(String min)
min
- can be nullgetMin()
String getMax()
OProperty setMax(String max)
max
- can be nullgetMax()
String getDefaultValue()
OProperty setDefaultValue(String defaultValue)
defaultValue
- can be nullgetDefaultValue()
OIndex createIndex(OClass.INDEX_TYPE iType)
iType
- One of types supported.
OClass.createIndex(String, OClass.INDEX_TYPE, String...)
.OIndex createIndex(String iType)
iType
- OClass.createIndex(String, OClass.INDEX_TYPE, String...)
.OIndex createIndex(String iType, ODocument metadata)
iType
- One of types supported.
metadata
- the index metadataOClass.createIndex(String, OClass.INDEX_TYPE, String...)
.OIndex createIndex(OClass.INDEX_TYPE iType, ODocument metadata)
iType
- One of types supported.
metadata
- the index metadataOClass.createIndex(String, OClass.INDEX_TYPE, String...)
.@Deprecated OProperty dropIndexes()
@Deprecated Set<OIndex> getIndexes()
OClass.getInvolvedIndexes(String...)
instead.@Deprecated OIndex getIndex()
OClass.getInvolvedIndexes(String...)
instead.Collection<OIndex> getAllIndexes()
@Deprecated boolean isIndexed()
OClass.areIndexed(String...)
instead.getAllIndexes()
instead.true
if and only if this property is contained in indexes as its first key
item.String getRegexp()
OProperty setType(OType iType)
iType
- void removeCustom(String iName)
void clearCustom()
OClass getOwnerClass()
Object get(OProperty.ATTRIBUTES iAttribute)
Integer getId()
String getDescription()
Copyright © 2009–2020 OrientDB. All rights reserved.