Package com.arcadedb.schema
Class Property
- java.lang.Object
-
- com.arcadedb.schema.Property
-
public class Property extends Object
-
-
Constructor Summary
Constructors Constructor Description Property(DocumentType owner, String name, Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Index
createIndex(Schema.INDEX_TYPE type, boolean unique)
Creates an index on this property.boolean
equals(Object o)
Set<String>
getCustomKeys()
Object
getCustomValue(String key)
Object
getDefaultValue()
int
getId()
String
getName()
Index
getOrCreateIndex(Schema.INDEX_TYPE type, boolean unique)
Returns an index on this property or creates it if not exists.Type
getType()
int
hashCode()
Object
setCustomValue(String key, Object value)
void
setDefaultValue(Object defaultValue)
-
-
-
Constructor Detail
-
Property
public Property(DocumentType owner, String name, Type type)
-
-
Method Detail
-
createIndex
public Index createIndex(Schema.INDEX_TYPE type, boolean unique)
Creates an index on this property.- Parameters:
type
- Index type between LSM_TREE and FULL_TEXTunique
- true if the index is unique- Returns:
- The index instance
-
getOrCreateIndex
public Index getOrCreateIndex(Schema.INDEX_TYPE type, boolean unique)
Returns an index on this property or creates it if not exists.- Parameters:
type
- Index type between LSM_TREE and FULL_TEXTunique
- true if the index is unique- Returns:
- The index instance
-
getName
public String getName()
-
getType
public Type getType()
-
getId
public int getId()
-
getDefaultValue
public Object getDefaultValue()
-
setDefaultValue
public void setDefaultValue(Object defaultValue)
-
-