public abstract class OPropertyImpl extends Object implements OProperty
OProperty.ATTRIBUTES
Modifier and Type | Field and Description |
---|---|
protected OCollate |
collate |
protected Map<String,String> |
customFields |
protected String |
defaultValue |
protected String |
description |
protected ODocument |
document |
protected OGlobalProperty |
globalRef |
protected OClass |
linkedClass |
protected OType |
linkedType |
protected boolean |
mandatory |
protected String |
max |
protected String |
min |
protected boolean |
notNull |
protected OClassImpl |
owner |
protected boolean |
readonly |
protected String |
regexp |
Constructor and Description |
---|
OPropertyImpl(OClassImpl oClassImpl,
OGlobalProperty global) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
clearCustom, setCollate, setCustom, setDefaultValue, setDescription, setLinkedClass, setLinkedType, setMandatory, setMax, setMin, setName, setNotNull, setReadonly, setRegexp, setType
protected final OClassImpl owner
protected OType linkedType
protected OClass linkedClass
protected String description
protected boolean mandatory
protected boolean notNull
protected String min
protected String max
protected String defaultValue
protected String regexp
protected boolean readonly
protected OCollate collate
protected OGlobalProperty globalRef
protected ODocument document
public OPropertyImpl(OClassImpl oClassImpl, OGlobalProperty global)
public String getFullName()
OProperty
getFullName
in interface OProperty
public String getFullNameQuoted()
public int compareTo(OProperty o)
compareTo
in interface Comparable<OProperty>
public OIndex createIndex(OClass.INDEX_TYPE iType)
createIndex
in interface OProperty
iType
- One of types supported.
OClass#createIndex(String, OClass.INDEX_TYPE, String...)} instead.
public OIndex createIndex(String iType)
createIndex
in interface OProperty
iType
- OClass#createIndex(String, OClass.INDEX_TYPE, String...)} instead.
public OIndex createIndex(OClass.INDEX_TYPE iType, ODocument metadata)
OProperty
createIndex
in interface OProperty
iType
- One of types supported.
metadata
- the index metadataOClass.createIndex(String, OClass.INDEX_TYPE, String...)
.public OIndex createIndex(String iType, ODocument metadata)
OProperty
createIndex
in interface OProperty
iType
- One of types supported.
metadata
- the index metadataOClass.createIndex(String, OClass.INDEX_TYPE, String...)
.@Deprecated public OPropertyImpl dropIndexes()
dropIndexes
in interface OProperty
@Deprecated public void dropIndexesInternal()
dropIndexes()
@Deprecated public OIndex getIndex()
OClass.getInvolvedIndexes(String...)
instead.@Deprecated public Set<OIndex> getIndexes()
OClass.getInvolvedIndexes(String...)
instead.getIndexes
in interface OProperty
@Deprecated public boolean isIndexed()
OClass.areIndexed(String...)
instead.OProperty
OProperty.getAllIndexes()
instead.public OClass getOwnerClass()
getOwnerClass
in interface OProperty
public OClass getLinkedClass()
getLinkedClass
in interface OProperty
public static void checkSupportLinkedClass(OType type)
public OType getLinkedType()
getLinkedType
in interface OProperty
public static void checkLinkTypeSupport(OType type)
public boolean isMandatory()
isMandatory
in interface OProperty
public boolean isReadonly()
isReadonly
in interface OProperty
public String getMin()
OProperty
public String getMax()
OProperty
public String getDefaultValue()
OProperty
getDefaultValue
in interface OProperty
public void removeCustom(String iName)
removeCustom
in interface OProperty
public Set<String> getCustomKeys()
getCustomKeys
in interface OProperty
public Object get(OProperty.ATTRIBUTES attribute)
public void set(OProperty.ATTRIBUTES attribute, Object iValue)
public OCollate getCollate()
getCollate
in interface OProperty
public OProperty setCollate(OCollate collate)
setCollate
in interface OProperty
public String getDescription()
getDescription
in interface OProperty
public void fromStream()
public Collection<OIndex> getAllIndexes()
getAllIndexes
in interface OProperty
public ODocument toStream()
public void acquireSchemaReadLock()
public void releaseSchemaReadLock()
public void acquireSchemaWriteLock()
public void releaseSchemaWriteLock()
public void checkEmbedded()
protected ODatabaseDocumentInternal getDatabase()
protected void checkForDateFormat(String iDateAsString)
protected boolean isDistributedCommand()
public void fromStream(ODocument document)
public ODocument toNetworkStream()
Copyright © 2009–2020 OrientDB. All rights reserved.