mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-18 02:00:22 +01:00
improve AbstractOrientDBModelDAO
This commit is contained in:
@@ -51,6 +51,11 @@ public abstract class AbstractOrientDBModelDAO<T extends ModelObject>
|
||||
implements GenericDAO<T>
|
||||
{
|
||||
|
||||
/** Field description */
|
||||
public static final String TYPE = "orientdb";
|
||||
|
||||
//~--- constructors ---------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
@@ -141,7 +146,8 @@ public abstract class AbstractOrientDBModelDAO<T extends ModelObject>
|
||||
*
|
||||
* @param item
|
||||
*/
|
||||
public void remove(T item)
|
||||
@Override
|
||||
public void delete(T item)
|
||||
{
|
||||
ODatabaseDocumentTx connection = connectionProvider.get();
|
||||
|
||||
@@ -167,7 +173,8 @@ public abstract class AbstractOrientDBModelDAO<T extends ModelObject>
|
||||
*
|
||||
* @param item
|
||||
*/
|
||||
public void update(T item)
|
||||
@Override
|
||||
public void modify(T item)
|
||||
{
|
||||
ODatabaseDocumentTx connection = connectionProvider.get();
|
||||
|
||||
@@ -220,6 +227,46 @@ public abstract class AbstractOrientDBModelDAO<T extends ModelObject>
|
||||
return item;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Long getCreationTime()
|
||||
{
|
||||
|
||||
// TODO
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Long getLastModified()
|
||||
{
|
||||
|
||||
// TODO
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public String getType()
|
||||
{
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
|
||||
Reference in New Issue
Block a user