Class OImmutableProperty
java.lang.Object
com.orientechnologies.orient.core.metadata.schema.OImmutableProperty
- All Implemented Interfaces:
OProperty,Comparable<OProperty>
- Since:
- 10/21/14
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.metadata.schema.OProperty
OProperty.ATTRIBUTES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintcreateIndex(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 propertybooleanget(OProperty.ATTRIBUTES attribute) Default value for the property; can be functionReturns the full name as. getId()getIndex()Returns the linked class in lazy mode because while unmarshalling the class could be not loaded yet.getMax()Max behavior depends on the Property OType.getMin()Min behavior depends on the Property OType.getName()getType()inthashCode()booleanIndicates whether property is contained in indexes as its first key item.booleanbooleanbooleanvoidremoveCustom(String iName) voidset(OProperty.ATTRIBUTES attribute, Object iValue) setCollate(OCollate collate) setCollate(String iCollateName) setDefaultValue(String defaultValue) setDescription(String iDescription) setLinkedClass(OClass oClass) setLinkedType(OType type) setMandatory(boolean mandatory) setNotNull(boolean iNotNull) setReadonly(boolean iReadonly) Change the type.toString()
-
Constructor Details
-
OImmutableProperty
-
-
Method Details
-
getName
-
getFullName
Description copied from interface:OPropertyReturns the full name as. - Specified by:
getFullNamein interfaceOProperty
-
setName
-
getDescription
- Specified by:
getDescriptionin interfaceOProperty
-
setDescription
- Specified by:
setDescriptionin interfaceOProperty
-
set
-
getType
-
getLinkedClass
Description copied from interface:OPropertyReturns the linked class in lazy mode because while unmarshalling the class could be not loaded yet.- Specified by:
getLinkedClassin interfaceOProperty- Returns:
-
setLinkedClass
- Specified by:
setLinkedClassin interfaceOProperty
-
getLinkedType
- Specified by:
getLinkedTypein interfaceOProperty
-
setLinkedType
- Specified by:
setLinkedTypein interfaceOProperty
-
isNotNull
public boolean isNotNull() -
setNotNull
- Specified by:
setNotNullin interfaceOProperty
-
getCollate
- Specified by:
getCollatein interfaceOProperty
-
setCollate
- Specified by:
setCollatein interfaceOProperty
-
setCollate
- Specified by:
setCollatein interfaceOProperty
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin interfaceOProperty
-
setMandatory
- Specified by:
setMandatoryin interfaceOProperty
-
isReadonly
public boolean isReadonly()- Specified by:
isReadonlyin interfaceOProperty
-
setReadonly
- Specified by:
setReadonlyin interfaceOProperty
-
getMin
Description copied from interface:OPropertyMin behavior depends on the Property OType.- String : minimum length
- Number : minimum value
- date and time : minimum time in millisecond, date must be written in the storage date format
- binary : minimum size of the byte array
- List,Set,Collection : minimum size of the collection
-
setMin
-
getMax
Description copied from interface:OPropertyMax behavior depends on the Property OType.- String : maximum length
- Number : maximum value
- date and time : maximum time in millisecond, date must be written in the storage date format
- binary : maximum size of the byte array
- List,Set,Collection : maximum size of the collection
-
setMax
-
getDefaultValue
Description copied from interface:OPropertyDefault value for the property; can be function- Specified by:
getDefaultValuein interfaceOProperty- Returns:
- String, can be null
-
setDefaultValue
- Specified by:
setDefaultValuein interfaceOProperty- Parameters:
defaultValue- can be null- Returns:
- this property
- See Also:
-
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- 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- 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- 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- 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 interface:OPropertyRemove the index on property- Specified by:
dropIndexesin interfaceOProperty- Returns:
-
getIndexes
- Specified by:
getIndexesin interfaceOProperty- Returns:
- All indexes in which this property participates as first key item.
-
getIndex
-
getAllIndexes
- Specified by:
getAllIndexesin interfaceOProperty- Returns:
- All indexes in which this property participates.
-
isIndexed
public boolean isIndexed()Description copied from interface:OPropertyIndicates whether property is contained in indexes as its first key item. If you would like to fetch all indexes or check property presence in other indexes useOProperty.getAllIndexes()instead. -
getRegexp
-
setRegexp
-
setType
Description copied from interface:OPropertyChange the type. It checks for compatibility between the change of type. -
getCustom
-
setCustom
-
removeCustom
- Specified by:
removeCustomin interfaceOProperty
-
clearCustom
public void clearCustom()- Specified by:
clearCustomin interfaceOProperty
-
getCustomKeys
- Specified by:
getCustomKeysin interfaceOProperty
-
getOwnerClass
- Specified by:
getOwnerClassin interfaceOProperty
-
get
-
getId
-
compareTo
- Specified by:
compareToin interfaceComparable<OProperty>
-
hashCode
public int hashCode() -
equals
-
toString
-
getMaxComparable
-
getMinComparable
-