|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openexchange.api.OXObject
com.openexchange.api.OXSqlObject
public abstract class OXSqlObject
OXSqlObject
Field Summary | |
---|---|
static int |
DELETED
|
static int |
NEW_AND_MODIFIED
|
Fields inherited from class com.openexchange.api.OXObject |
---|
CREATION_TIME, LAST_MODIFIED, OBJECT_ID |
Constructor Summary | |
---|---|
OXSqlObject()
|
Method Summary | |
---|---|
boolean |
canDelete()
return true if the object is "deleteable" |
boolean |
canRead()
return true if the object is readable |
boolean |
canWrite()
return true if the object is writeable |
java.lang.Object |
clone()
|
void |
destroy()
destroys the object |
boolean |
getNext()
return true if the next object is availible |
abstract OXSearchQuery |
getSearchQuery()
|
java.lang.String |
getSQL_ORDER()
return the SQL Order |
java.lang.String |
getSQL_SELECT()
return the SQL Select |
java.lang.String |
getSQL_WHERE()
return the SQL Where |
java.lang.String |
getSQL()
return the SQL String |
void |
insert()
insert the actual object |
abstract void |
load()
load the OXObject |
void |
load(int object_id)
load the object with the given object_id |
void |
reset()
set the object to the default values |
abstract void |
save()
saves the OXObject with the specified values if the OXObject not contains the name "object_id" this method tries to perform an insert if the OXObject contains the name "object_id" this methods tries to perform an update |
void |
setSQL_ORDER(java.lang.String SQL_Simple_Order)
set the SQL Order query |
void |
setSQL_WHERE(java.lang.String SQL_Simple_Where)
set the SQL Where query |
void |
setSQL(java.lang.String SQL)
set the SQL string |
Methods inherited from class com.openexchange.api.OXObject |
---|
contains, delete, get, getConnection, getCreationTime, getInternalFieldname, getLastModified, getMandatoryFields, getMappedField, getObjectID, getPassword, getReadableFields, getUser, getWriteableFields, isNull, iterator, put, remove, set, setInternalObject, setObjectID, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NEW_AND_MODIFIED
public static final int DELETED
Constructor Detail |
---|
public OXSqlObject()
Method Detail |
---|
public void setSQL_WHERE(java.lang.String SQL_Simple_Where)
public void setSQL_ORDER(java.lang.String SQL_Simple_Order)
public java.lang.String getSQL_SELECT()
public java.lang.String getSQL_WHERE()
public java.lang.String getSQL_ORDER()
public java.lang.String getSQL()
public void setSQL(java.lang.String SQL)
SQL
- public boolean canRead() throws java.lang.Exception, OXConflictException
java.lang.Exception
OXConflictException
public boolean canWrite() throws java.lang.Exception, OXConflictException
java.lang.Exception
OXConflictException
public boolean canDelete() throws java.lang.Exception, OXConflictException
java.lang.Exception
OXConflictException
public abstract OXSearchQuery getSearchQuery()
public boolean getNext() throws java.lang.Exception
getNext
in class OXObject
java.lang.Exception
public void insert() throws OXConflictException, OXMandatoryFieldException, OXPermissionException, java.lang.Exception
OXConflictException
OXMandatoryFieldException
OXPermissionException
java.lang.Exception
public void load(int object_id) throws java.lang.Exception, OXConflictException, OXPermissionException
object_id
-
java.lang.Exception
OXConflictException
OXPermissionException
public void reset()
reset
in class OXObject
public void destroy()
destroy
in class OXObject
public abstract void load() throws java.lang.Exception, OXConflictException, OXPermissionException
OXObject
load
in class OXObject
java.lang.Exception
OXConflictException
OXPermissionException
public abstract void save() throws OXConflictException, OXMandatoryFieldException, OXPermissionException, java.lang.Exception
OXObject
save
in class OXObject
OXConflictException
OXMandatoryFieldException
OXPermissionException
java.lang.Exception
public java.lang.Object clone()
clone
in class OXObject
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |