Class OPropertyRemote
java.lang.Object
com.orientechnologies.orient.core.metadata.schema.OPropertyImpl
com.orientechnologies.orient.client.remote.metadata.schema.OPropertyRemote
- All Implemented Interfaces:
OProperty,Comparable<OProperty>
Created by tglman on 14/06/17.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.metadata.schema.OProperty
OProperty.ATTRIBUTES -
Field Summary
Fields inherited from class com.orientechnologies.orient.core.metadata.schema.OPropertyImpl
collate, customFields, defaultValue, description, globalRef, linkedClass, linkedClassName, linkedType, mandatory, max, min, notNull, owner, readonly, regexp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateIndex(OClass.INDEX_TYPE iType) Creates an index on this property.createIndex(OClass.INDEX_TYPE iType, ODocument metadata) Creates an index on this property.createIndex(String iType) Creates an index on this property.createIndex(String iType, ODocument metadata) Creates an index on this property.Remove the index on propertysetCollate(String collate) setDefaultValue(String defaultValue) setDescription(String iDescription) setLinkedClass(OClass linkedClass) setLinkedType(OType linkedType) setMandatory(boolean isMandatory) setNotNull(boolean isNotNull) setReadonly(boolean isReadonly) Change the type.Methods inherited from class com.orientechnologies.orient.core.metadata.schema.OPropertyImpl
acquireSchemaReadLock, acquireSchemaWriteLock, checkEmbedded, checkForDateFormat, checkLinkTypeSupport, checkSupportLinkedClass, compareTo, dropIndexesInternal, equals, fromStream, get, getAllIndexes, getCollate, getCustom, getCustomInternal, getCustomKeys, getDatabase, getDefaultValue, getDescription, getFullName, getFullNameQuoted, getId, getIndex, getIndexes, getLinkedClass, getLinkedType, getMax, getMin, getName, getOwnerClass, getRegexp, getType, hashCode, isDistributedCommand, isIndexed, isMandatory, isNotNull, isReadonly, quoteString, releaseSchemaReadLock, releaseSchemaWriteLock, removeCustom, set, setCollate, toNetworkStream, toStream, toString
-
Constructor Details
-
OPropertyRemote
-
-
Method Details
-
setType
Description copied from interface:OPropertyChange the type. It checks for compatibility between the change of type. -
setName
-
setDescription
-
setCollate
-
clearCustom
public void clearCustom() -
setCustom
-
setRegexp
-
setLinkedClass
-
setLinkedType
-
setNotNull
-
setDefaultValue
- Parameters:
defaultValue- can be null- Returns:
- this property
- See Also:
-
setMax
- Parameters:
max- can be null- Returns:
- this property
- See Also:
-
setMin
- Parameters:
min- can be null- Returns:
- this property
- See Also:
-
setReadonly
-
setMandatory
-
createIndex
Description copied from class:OPropertyImplCreates an index on this property. Indexes speed up queries but slow down insert and update operations. For massive inserts we suggest to remove the index, make the massive insert and recreate it.- Specified by:
createIndexin interfaceOProperty- Overrides:
createIndexin classOPropertyImpl- Returns:
- see
OClass.createIndex(String, OClass.INDEX_TYPE, String...).
-
createIndex
Description copied from class:OPropertyImplCreates an index on this property. Indexes speed up queries but slow down insert and update operations. For massive inserts we suggest to remove the index, make the massive insert and recreate it.- Specified by:
createIndexin interfaceOProperty- Overrides:
createIndexin classOPropertyImpl- Parameters:
iType- One of types supported.- UNIQUE: Doesn't allow duplicates
- NOTUNIQUE: Allow duplicates
- FULLTEXT: Indexes single word for full text search
- Returns:
- see
OClass.createIndex(String, OClass.INDEX_TYPE, String...).
-
createIndex
Description copied from interface:OPropertyCreates an index on this property. Indexes speed up queries but slow down insert and update operations. For massive inserts we suggest to remove the index, make the massive insert and recreate it.- Specified by:
createIndexin interfaceOProperty- Overrides:
createIndexin classOPropertyImpl- Parameters:
iType- One of types supported.- UNIQUE: Doesn't allow duplicates
- NOTUNIQUE: Allow duplicates
- FULLTEXT: Indexes single word for full text search
metadata- the index metadata- Returns:
- see
OClass.createIndex(String, OClass.INDEX_TYPE, String...).
-
createIndex
Description copied from interface:OPropertyCreates an index on this property. Indexes speed up queries but slow down insert and update operations. For massive inserts we suggest to remove the index, make the massive insert and recreate it.- Specified by:
createIndexin interfaceOProperty- Overrides:
createIndexin classOPropertyImpl- Parameters:
iType- One of types supported.- UNIQUE: Doesn't allow duplicates
- NOTUNIQUE: Allow duplicates
- FULLTEXT: Indexes single word for full text search
metadata- the index metadata- Returns:
- see
OClass.createIndex(String, OClass.INDEX_TYPE, String...).
-
dropIndexes
Description copied from class:OPropertyImplRemove the index on property- Specified by:
dropIndexesin interfaceOProperty- Overrides:
dropIndexesin classOPropertyImpl- Returns:
-