| com.jcorporate.expresso.core.dbobj.DBObject com.jcorporate.expresso.services.dbobj.RowPermissions
DEFAULT_PERMISSIONS | final public static int DEFAULT_PERMISSIONS(Code) | | |
DEFAULT_PERMISSION_GROUP | final public static String DEFAULT_PERMISSION_GROUP(Code) | | if no group has been named, here's a default name (10 char max)
which is created by UserGroup.populateDefaultValues()
|
GROUP_ONLY_READWRITE_PERMISSIONS | final public static int GROUP_ONLY_READWRITE_PERMISSIONS(Code) | | group can write, but others cannot even read
|
GROUP_PERMISSION_MASK | final public static int GROUP_PERMISSION_MASK(Code) | | |
GROUP_READ_MASK | final public static int GROUP_READ_MASK(Code) | | |
GROUP_READ_ONLY_PERMISSIONS | final public static int GROUP_READ_ONLY_PERMISSIONS(Code) | | |
GROUP_WRITE_MASK | final public static int GROUP_WRITE_MASK(Code) | | |
MAX_KEY_LENGTH | final public static int MAX_KEY_LENGTH(Code) | | max length of a primary key of this table, which is
made up of the target table name + target row PK
Most databases have a system limit.
InterBase probably has one of the lowest limits, 200 bytes for the index,
which is a combination of all indexed fields,
documented at http://bdn.borland.com/article/0,1410,25245,00.html
increase this length if you need to, and if your database allows a larger
number of bytes in indices.
|
MAX_TABLE_NAME_LENGTH | final public static int MAX_TABLE_NAME_LENGTH(Code) | | Maximum length of name of table; all tables must have names that fit.
Most databases have a system limit.
|
OTHERS_PERMISSION_MASK | final public static int OTHERS_PERMISSION_MASK(Code) | | |
OTHERS_READ_AND_GROUP_WRITES_PERMISSIONS | final public static int OTHERS_READ_AND_GROUP_WRITES_PERMISSIONS(Code) | | |
OTHERS_READ_MASK | final public static int OTHERS_READ_MASK(Code) | | |
OTHERS_WRITE_MASK | final public static int OTHERS_WRITE_MASK(Code) | | |
OWNER_AND_GROUP_WRITE_PERMISSIONS | final public static int OWNER_AND_GROUP_WRITE_PERMISSIONS(Code) | | |
OWNER_ID | final public static String OWNER_ID(Code) | | field name for owner
|
OWNER_ONLY_PERMISSIONS | final public static int OWNER_ONLY_PERMISSIONS(Code) | | |
OWNER_PERMISSION_MASK | final public static int OWNER_PERMISSION_MASK(Code) | | |
OWNER_READ_MASK | final public static int OWNER_READ_MASK(Code) | | |
OWNER_WRITE_MASK | final public static int OWNER_WRITE_MASK(Code) | | bitmasks for permissions, stored as Java int
|
PERMISSIONS | final public static String PERMISSIONS(Code) | | field name for bits that make up permissions; perms stored in this table, ROW_PERMISSIONS, have bits for
group permissions that are unused. Conversely, perms stored in table ROW_GRP_PERMS, have bits for owner and other
which are unused.
|
PERMISSIONS_TABLE_DESCRIP | final public static String PERMISSIONS_TABLE_DESCRIP(Code) | | |
PERMISSIONS_TABLE_NAME | final public static String PERMISSIONS_TABLE_NAME(Code) | | |
ROW_KEY | final public static String ROW_KEY(Code) | | field name for primary key of row
|
TABLE_NAME | final public static String TABLE_NAME(Code) | | field name for name of table
|
WIDE_OPEN_PERMISSIONS | final public static int WIDE_OPEN_PERMISSIONS(Code) | | |
sMaxKeyLen | protected static int sMaxKeyLen(Code) | | |
canOwnerAdministrate | public boolean canOwnerAdministrate() throws DBException(Code) | | always returns true
true if the own can administrate the row throws: DBException - upon error |
getMaxKeyLen | public static int getMaxKeyLen()(Code) | | the maximum length permitted for a primary key, if the table is to be acommodated by RowPermissions |
isFresh | public boolean isFresh() throws DBException(Code) | | indicates that this object is new--no permissions have been set
true if the field is Fresh. throws: DBException - upon DataObject error |
permissions | public void permissions(int perm) throws DBException(Code) | | set permissions
Parameters: perm - the permissions to set throws: DBException - upon DataObject error |
permissions | public int permissions() throws DBException(Code) | | get permissions, a bit-field of privilege bits; see constants in this class
for mask definitions
the permission code throws: DBException - upon DataObject error |
setupFields | protected synchronized void setupFields() throws DBException(Code) | | override in subclesses, and be sure to call this as first line of override
throws: DBException - upon error |
Methods inherited from com.jcorporate.expresso.core.dbobj.DBObject | public void add() throws DBException(Code)(Java Doc) protected synchronized void addDetail(String objName, String keyFieldsLocal, String keyFieldsForeign) throws DBException(Code)(Java Doc) protected synchronized void addField(String fieldName, String fieldType, int fieldSize, int fieldPrecision, boolean allowNull, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addField(String fieldName, String fieldType, int fieldSize, boolean allowNull, String fieldDescription) throws DBException(Code)(Java Doc) protected void addFieldError(String fieldName, String errorMessage)(Code)(Java Doc) public void addFoundKeys(String fieldName)(Code)(Java Doc) public synchronized void addIfNeeded() throws DBException(Code)(Java Doc) protected void addIndex(String indexName, String fieldNames, boolean isUnique) throws IllegalArgumentException, DBException(Code)(Java Doc) protected synchronized void addKey(String keyFieldName) throws DBException(Code)(Java Doc) public synchronized void addOrUpdate() throws DBException(Code)(Java Doc) public void addSortKey(String fieldString, boolean ascending)(Code)(Java Doc) protected void addTransition(Transition t) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, int fieldPrecision, boolean allowNull, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, int fieldPrecision, boolean allowNull, String descripKey, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, String fieldDescription) throws DBException(Code)(Java Doc) protected synchronized void addVirtualField(String fieldName, String fieldType, int fieldSize, String descripKey, String fieldDescription) throws DBException(Code)(Java Doc) public double average(String fieldName) throws DBException(Code)(Java Doc) public synchronized void basicAdd() throws DBException(Code)(Java Doc) public void cacheIsChangedComparison() throws DBException(Code)(Java Doc) protected synchronized void checkAllReferredToBy() throws DBException(Code)(Java Doc) protected synchronized void checkAllRefs() throws DBException(Code)(Java Doc) public synchronized void checkAllRefsPublic() throws DBException(Code)(Java Doc) public boolean checkAllowed(String function) throws DBException(Code)(Java Doc) protected void checkDeleteDetailPerm(DBObject obj) throws DBException(Code)(Java Doc) public synchronized void checkField(String fieldName, String fieldValue) throws DBException(Code)(Java Doc) protected synchronized void checkRef(String foreignKeyNames, DBObject refObject, String errorMessage) throws DBException(Code)(Java Doc) protected synchronized void checkRef(String foreignKeyNames, DBObject refObject, String errorMessage, boolean allowBlank) throws DBException(Code)(Java Doc) public synchronized void clear() throws DBException(Code)(Java Doc) public synchronized void clearDistinctFields() throws DBException(Code)(Java Doc) protected void clearError(String fieldName)(Code)(Java Doc) public synchronized void clearFieldsToRetrieve() throws DBException(Code)(Java Doc) public void clearSortKeys()(Code)(Java Doc) protected synchronized boolean containsWildCards(String fieldValue) throws DBException(Code)(Java Doc) protected void copyAttributes(DBObject returnObj) throws DBException(Code)(Java Doc) public synchronized int count() throws DBException(Code)(Java Doc) public void delete() throws DBException(Code)(Java Doc) public synchronized void delete(boolean deleteDetails) throws DBException(Code)(Java Doc) public synchronized void deleteAll() throws DBException(Code)(Java Doc) public synchronized void deleteAll(boolean oneByOne) throws DBException(Code)(Java Doc) protected void deleteDetails(DBConnection detailConnection) throws DBException(Code)(Java Doc) protected String denotesRange(String fieldValue)(Code)(Java Doc) public boolean equals(Object parm1)(Code)(Java Doc) public boolean find() throws DBException(Code)(Java Doc) public String forKey()(Code)(Java Doc) public String formatDateTime(String fieldName) throws DBException(Code)(Java Doc) public Object get(String fieldName) throws DataException(Code)(Java Doc) public Map getAllAttributes()(Code)(Java Doc) public Object getAttribute(String attribName)(Code)(Java Doc) public Iterator getAttributesIterator(String fieldName) throws DBException(Code)(Java Doc) protected String getBooleanFieldValue(boolean fieldValue) throws DBException(Code)(Java Doc) public int getCacheSize()(Code)(Java Doc) public static synchronized HashMap getCacheStatsMap()(Code)(Java Doc) protected CacheUtils getCacheUtil()(Code)(Java Doc) public synchronized boolean getCheckZeroUpdate() throws DBException(Code)(Java Doc) public String getCustomWhereClause()(Code)(Java Doc) public synchronized String getDBName()(Code)(Java Doc) public String getDataContext()(Code)(Java Doc) public DataField getDataField(String fieldName) throws DBException(Code)(Java Doc) public synchronized DataTransferObject getDataTransferObject() throws DBException(Code)(Java Doc) public Enumeration getDetails() throws DBException(Code)(Java Doc) public synchronized int getDistinctFieldCount() throws DBException(Code)(Java Doc) public String[] getDistinctFields() throws DBException(Code)(Java Doc) public synchronized String getField(String fieldName) throws DBException(Code)(Java Doc) public BigDecimal getFieldBigDecimal(String fieldName) throws DBException(Code)(Java Doc) public boolean getFieldBoolean(String fieldName) throws DBException(Code)(Java Doc) public byte getFieldByte(String fieldName) throws DBException(Code)(Java Doc) public byte[] getFieldByteArray(String fieldName) throws DBException(Code)(Java Doc) protected String getFieldData(String fieldName)(Code)(Java Doc) public java.util.Date getFieldDate(String fieldName) throws DBException(Code)(Java Doc) public String getFieldDecimalFormatted(String fieldName, String formatPattern) throws DBException(Code)(Java Doc) public double getFieldDouble(String fieldName) throws DBException(Code)(Java Doc) public String getFieldErrorMessage(String fieldName)(Code)(Java Doc) public float getFieldFloat(String fieldName) throws DBException(Code)(Java Doc) public int getFieldInt(String fieldName) throws DBException(Code)(Java Doc) public long getFieldLong(String fieldName) throws DBException(Code)(Java Doc) public DataFieldMetaData getFieldMetaData(String fieldName)(Code)(Java Doc) public short getFieldShort(String fieldName) throws DBException(Code)(Java Doc) public synchronized int getFieldsToRetrieveCount() throws DBException(Code)(Java Doc) public Class getFilterClass()(Code)(Java Doc) public long getFoundCount()(Code)(Java Doc) public Object[] getFoundKeysArray()(Code)(Java Doc) protected Vector getISOValuesDefault(String valueField, String descripField) throws DBException(Code)(Java Doc) protected Vector getISOValuesDefault(String valueField, String descripField, String whereClause) throws DBException(Code)(Java Doc) protected Vector getISOValuesDefault(String valueField, String descripField, String whereClause, String sortKeyString) throws DBException(Code)(Java Doc) public synchronized Object[] getIndexArray() throws DBException(Code)(Java Doc) public String getKey()(Code)(Java Doc) public Iterator getKeyFieldListIterator() throws DBException(Code)(Java Doc) public String getLength(String fieldName) throws DBException(Code)(Java Doc) public int getLengthInt(String fieldName) throws DBException(Code)(Java Doc) public DBConnection getLocalConnection()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public Logger getLogger()(Code)(Java Doc) public String getLookupObject(String fieldName) throws DBException(Code)(Java Doc) public String getMax(String fieldName, boolean whereClause) throws DBException(Code)(Java Doc) public String getMax(String fieldName) throws DBException(Code)(Java Doc) public int getMaxRecords()(Code)(Java Doc) public String getMyKeys() throws DBException(Code)(Java Doc) protected Object[] getMyUpdatesArray()(Code)(Java Doc) public int getOffsetRecord()(Code)(Java Doc) protected PatternMatcher getPatternMatcher()(Code)(Java Doc) public int getPrecision(String fieldName) throws DBException(Code)(Java Doc) public String getSerializedForm(DBField theField) throws DBException(Code)(Java Doc) public synchronized String getStringFilter(String fieldName) throws DBException(Code)(Java Doc) protected DBObject getThisDBObj() throws DBException(Code)(Java Doc) public static synchronized DBObject getThisDBbj(DataTransferObject dto) throws DBException(Code)(Java Doc) public String getValidValueDescrip(String fieldName) throws DBException(Code)(Java Doc) public synchronized Vector getValidValues(String fieldName) throws DBException(Code)(Java Doc) public java.util.List getValidValuesList(String fieldName) throws DBException(Code)(Java Doc) public Vector getValues() throws DBException(Code)(Java Doc) protected Vector getValuesDefault(String valueField, String descripField) throws DBException(Code)(Java Doc) protected Vector getValuesDefault(String valueField, String descripField, String whereClause) throws DBException(Code)(Java Doc) protected Vector getValuesDefault(String valueField, String descripField, String whereClause, String sortKeyString) throws DBException(Code)(Java Doc) public boolean hasError(String fieldName)(Code)(Java Doc) public boolean hasErrors()(Code)(Java Doc) public boolean haveAllKeys() throws DBException(Code)(Java Doc) protected synchronized void initialize() throws DBException(Code)(Java Doc) public boolean isCached()(Code)(Java Doc) public boolean isChanged() throws DBException(Code)(Java Doc) public synchronized boolean isDistinct() throws DBException(Code)(Java Doc) public synchronized boolean isEmpty() throws DBException(Code)(Java Doc) public boolean isFieldDistinct(String fieldName) throws DBException(Code)(Java Doc) public boolean isFieldNull(String fieldName) throws DBException(Code)(Java Doc) public boolean isFieldToRetrieve(String fieldName) throws DBException(Code)(Java Doc) public synchronized boolean isFieldsToRetrieve() throws DBException(Code)(Java Doc) public synchronized boolean isMultiValued(String fieldName) throws DBException(Code)(Java Doc) public boolean isReadOnly(String fieldName) throws DBException(Code)(Java Doc) public boolean isSecret(String fieldName) throws DBException(Code)(Java Doc) public boolean isVirtual(String fieldName) throws DBException(Code)(Java Doc) public synchronized int loadFromConnection(DBConnection connection) throws DBException(Code)(Java Doc) protected void logChange(DBField oneField, String fieldValue)(Code)(Java Doc) public double max(String fieldName) throws DBException(Code)(Java Doc) public double min(String fieldName) throws DBException(Code)(Java Doc) public DBObject newInstance() throws DBException(Code)(Java Doc) protected String noNewLine(String fieldValue)(Code)(Java Doc) protected String noQuotes(String oldString)(Code)(Java Doc) protected synchronized void notifyListeners(String eventCode) throws DBException(Code)(Java Doc) public synchronized void populateDefaultValues() throws DBException(Code)(Java Doc) protected synchronized void referredToBy(DBObject refObject, String foreignKeyNames, String errorMessage) throws DBException(Code)(Java Doc) public void removeAttribute(String attributeName)(Code)(Java Doc) public synchronized void removeFromCache(DBObject theDBObj) throws DBException(Code)(Java Doc) public void retrieve() throws DBException(Code)(Java Doc) public boolean retrieveFromCache() throws DBException(Code)(Java Doc) public void saveBinaryField(String fieldName, byte[] incomingData) throws DBException(Code)(Java Doc) public synchronized void search() throws DBException(Code)(Java Doc) public synchronized void search(String sortKeyString) throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList(String sortKeyString) throws DBException(Code)(Java Doc) public void set(String fieldName, Object o) throws DataException(Code)(Java Doc) public synchronized void setAttribute(String attribName, Object attribValue)(Code)(Java Doc) public synchronized void setCacheSize()(Code)(Java Doc) public synchronized void setCharset(String newCharSet) throws DBException(Code)(Java Doc) public synchronized void setCheckZeroUpdate(boolean newFlag) throws DBException(Code)(Java Doc) public synchronized void setConnection(DBConnection newConnection) throws DBException(Code)(Java Doc) public synchronized void setConnection(DBConnection newConnection, String setupTablesContext) throws DBException(Code)(Java Doc) public synchronized void setCustomWhereClause(String newCustomWhere)(Code)(Java Doc) public synchronized void setCustomWhereClause(String newCustomWhere, boolean append)(Code)(Java Doc) public void setDataContext(String newContext)(Code)(Java Doc) public void setDataField(String fieldName, DataField o) throws DataException(Code)(Java Doc) public synchronized void setDataTransferObject(DataTransferObject dto) throws DBException(Code)(Java Doc) protected synchronized void setDefaultValue(String fieldName, String fieldValue) throws DBException(Code)(Java Doc) public synchronized void setDescription(String newDescription) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, byte fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, byte[] fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, short fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, int fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, long fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, double fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, BigDecimal fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, boolean fieldValue) throws DBException(Code)(Java Doc) public synchronized void setField(String fieldName, String fieldValue) throws DBException(Code)(Java Doc) public void setField(String fieldName, java.util.Date fieldValue) throws DBException(Code)(Java Doc) protected synchronized void setFieldData(String fieldName, String fieldValue)(Code)(Java Doc) protected synchronized void setFieldData(String fieldName, byte[] fieldValue)(Code)(Java Doc) public void setFieldDistinct(String fieldName, boolean flag) throws DBException(Code)(Java Doc) public void setFieldsToRetrieve(String fieldNames) throws DBException(Code)(Java Doc) public Class setFilterClass(Class filter)(Code)(Java Doc) public Filter setFilterClass(Filter filter)(Code)(Java Doc) public synchronized void setKeys(String keyValues) throws DBException(Code)(Java Doc) public void setLocale(Locale newLocale)(Code)(Java Doc) public synchronized void setLookupField(String fieldName, String lookupFieldName)(Code)(Java Doc) public synchronized void setLookupObject(String fieldName, String objectName) throws DBException(Code)(Java Doc) protected synchronized void setMask(String fieldName, String newMask) throws DBException(Code)(Java Doc) public synchronized void setMaxRecords(int newMax) throws DBException(Code)(Java Doc) protected synchronized void setMultiValued(String fieldName) throws DBException(Code)(Java Doc) protected synchronized void setName(String theName) throws DBException(Code)(Java Doc) public synchronized void setOffsetRecord(int newOffset) throws DBException(Code)(Java Doc) public synchronized void setReadOnly(String fieldName) throws DBException(Code)(Java Doc) public synchronized void setSchema(Schema schema) throws DBException(Code)(Java Doc) public synchronized void setSecret(String fieldName) throws DBException(Code)(Java Doc) protected void setSortKey(String sortKeyString)(Code)(Java Doc) public synchronized String setStringFilter(String fieldName, String filterMethod) throws DBException(Code)(Java Doc) public void setStringFiltersOnAll(String filter) throws DBException(Code)(Java Doc) public synchronized void setTargetDbSchema(String theDbSchema) throws DBException(Code)(Java Doc) public synchronized void setTargetTable(String theTable) throws DBException(Code)(Java Doc) protected void setupFields() throws DBException(Code)(Java Doc) protected synchronized double sqlAggrFunction(String func, String fieldName) throws DBException(Code)(Java Doc) public double sum(String fieldName) throws DBException(Code)(Java Doc) public String toDebugString()(Code)(Java Doc) public void update() throws DBException(Code)(Java Doc) public void update(boolean updateChangedFieldsOnly) throws DBException(Code)(Java Doc) public synchronized void updateAll() throws DBException(Code)(Java Doc) public void updateAll(boolean oneByOne) throws DBException(Code)(Java Doc) public void verify() throws DBException(Code)(Java Doc)
|
|
|