public abstract class OPropertyImpl extends ODocumentWrapperNoClass 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 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 |
document
Constructor and Description |
---|
OPropertyImpl(OClassImpl oClassImpl,
OGlobalProperty global) |
fromStream, load, load, reload, reload, save, save
getDocument, load, load, reload
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
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()
OIndexManager.dropIndex(String)
instead.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
protected static void checkSupportLinkedClass(OType type)
public OType getLinkedType()
getLinkedType
in interface OProperty
protected 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 String toString()
toString
in class ODocumentWrapper
public int hashCode()
hashCode
in class ODocumentWrapper
public boolean equals(Object obj)
equals
in class ODocumentWrapper
public void fromStream()
fromStream
in class ODocumentWrapperNoClass
public Collection<OIndex<?>> getAllIndexes()
getAllIndexes
in interface OProperty
public ODocument toStream()
toStream
in class ODocumentWrapper
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 ODocument toNetworkStream()
Copyright © 2009–2019 OrientDB. All rights reserved.