public class DbProperty extends Object
Modifier | Constructor and Description |
---|---|
|
DbProperty(DbObject dbObject)
Construct a pointer to a database object only (no property within).
|
|
DbProperty(DbObject dbObject,
String propertyName)
Create a DbProperty by supplying the DbObject and the property name.
|
|
DbProperty(DbObject dbObject,
String propertyName,
int index)
Create a DbProperty with an indexed value, e.g.
|
protected |
DbProperty(DbObject dbObject,
String propertyName,
int index,
boolean useSuppliedValue,
Object propertyValue)
Full constructor allowing control over whether the property name should be indexed (e.g.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
DbObject |
getDbObject() |
String |
getPath()
Work backwards from this DbProperty's DbObject to the root object to create a path in the
following format:
|
String |
getPropertyName() |
Object |
getPropertyValue() |
int |
hashCode() |
String |
toString() |
protected DbProperty(DbObject dbObject, String propertyName, int index, boolean useSuppliedValue, Object propertyValue)
The public constructors provide a more usable API with select sets of arguments.
dbObject
- DbObjectpropertyName
- Stringindex
- intuseSuppliedValue
- booleanpropertyValue
- Objectpublic DbProperty(DbObject dbObject)
dbObject
- DbObjectpublic DbProperty(DbObject dbObject, String propertyName)
dbObject
- DbObjectpropertyName
- Stringpublic DbProperty(DbObject dbObject, String propertyName, int index)
dbObject
- DbObjectpropertyName
- Stringindex
- intpublic DbObject getDbObject()
public String getPropertyName()
public Object getPropertyValue()
public String getPath()
root.child.grandchild[...].property
e.g. myschema.person.age.nullable
This isn't exactly the same as a FQ database object name, for example the property name could be indexed:
e.g. myschema.person.pk_person.columnNames[2]
to reflect the third column name in the primary key named "pk_person" on the person table.
Copyright © 2005–2017 Alfresco Software. All rights reserved.