public class OwStandardDBInvertedAttributeBag extends Object implements OwAttributeBag
(Number) | User (String) | Name (String) | AttributeName (String) | AttributeValue (String) |
1 | OW_SITE_USER | ViewerSize | X | 100 |
2 | OW_SITE_USER | ViewerSize | Y | 100 |
3 | UserName | SelectedClass | Account | 1 |
4 | UserName | SelectedClass | Credit | 1 |
5 | UserName | SelectedClass | Depot | 1 |
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_ATTR_NAME
DB attribute name of the attribute name
|
static String |
ATTRIBUTE_ATTR_VALUE
DB attribute name of the attribute value
|
static String |
ATTRIBUTE_BAGNAME
DB attribute name of the Name
|
static String |
ATTRIBUTE_USER
DB attribute name of the User
|
protected HashMap |
m_attributes
HashMap to store the attributes in
|
Constructor and Description |
---|
OwStandardDBInvertedAttributeBag(org.springframework.jdbc.core.JdbcTemplate jdbc_p,
String bagname_p,
String attributename_p,
OwTableSpec attributeBagTable) |
OwStandardDBInvertedAttributeBag(org.springframework.jdbc.core.JdbcTemplate jdbc_p,
String bagname_p,
String attributename_p,
String strTable_p)
Deprecated.
Will be replaced by
OwStandardDBInvertedAttributeBag(JdbcTemplate, String, String, OwTableSpec) . |
Modifier and Type | Method and Description |
---|---|
int |
attributecount()
get the number of attributes, or -1 if unknown
|
Object |
getAttribute(int index_p)
get a object at the specified index or throws OwObjectNotFoundException
|
Object |
getAttribute(String strName_p)
get the attribute with the given name or throws OwObjectNotFoundException
|
Collection |
getAttributeNames()
get all attribute names in the bag
|
Object |
getSafeAttribute(String strName_p,
Object default_p)
get the attribute with the given name, returns default if not found.
|
boolean |
hasAttribute(String strName_p)
check if attribute exists
|
public static final String ATTRIBUTE_USER
public static final String ATTRIBUTE_BAGNAME
public static final String ATTRIBUTE_ATTR_NAME
public static final String ATTRIBUTE_ATTR_VALUE
protected HashMap m_attributes
public OwStandardDBInvertedAttributeBag(org.springframework.jdbc.core.JdbcTemplate jdbc_p, String bagname_p, String attributename_p, String strTable_p) throws OwDataSourceException
OwStandardDBInvertedAttributeBag(JdbcTemplate, String, String, OwTableSpec)
.jdbc_p
- bagname_p
- attributename_p
- strTable_p
- OwDataSourceException
public OwStandardDBInvertedAttributeBag(org.springframework.jdbc.core.JdbcTemplate jdbc_p, String bagname_p, String attributename_p, OwTableSpec attributeBagTable) throws OwDataSourceException
jdbc_p
- bagname_p
- attributename_p
- attributeBagTable
- OwDataSourceException
public int attributecount()
OwAttributeBag
attributecount
in interface OwAttributeBag
public Object getAttribute(int index_p) throws Exception
OwAttributeBag
getAttribute
in interface OwAttributeBag
index_p
- int indexException
public Object getAttribute(String strName_p) throws Exception
OwAttributeBag
getAttribute
in interface OwAttributeBag
Exception
public Collection getAttributeNames()
OwAttributeBag
getAttributeNames
in interface OwAttributeBag
public Object getSafeAttribute(String strName_p, Object default_p)
OwAttributeBag
getSafeAttribute
in interface OwAttributeBag
public boolean hasAttribute(String strName_p)
OwAttributeBag
hasAttribute
in interface OwAttributeBag
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.