Package MarcSync
Class Entry
- java.lang.Object
-
- MarcSync.Entry
-
public class Entry extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Deletes the entryStringgetCollectionName()ObjectgetValue(String key)EntryDatagetValues()EntryDataupdateValue(String key, Object value)EntryDataupdateValues(EntryData entryData)
-
-
-
Method Detail
-
getValues
public EntryData getValues()
- Returns:
- The EntryData object of the entry
Note: This method is useful if you want to get the values of the entry.
- See Also:
EntryData
-
getValue
public Object getValue(String key)
- Parameters:
key- The key of the value to get- Returns:
- The value of the specified key
Note: This method is useful if you want to get the value of a specific key without specifying the type.
- See Also:
EntryData
-
getCollectionName
public String getCollectionName()
- Returns:
- The name of the collection of the entry
-
updateValue
public EntryData updateValue(String key, Object value) throws URISyntaxException, IOException
- Parameters:
key- he key of the value to updatevalue- The value to update- Returns:
- The values of the entry after update
Note: This method is useful if you want to update the value of a specific key.
- Throws:
URISyntaxExceptionIOException
-
updateValues
public EntryData updateValues(EntryData entryData) throws URISyntaxException, IOException
- Parameters:
entryData- The values to update- Returns:
- The values of the entry after update
Note: This method is useful if you want to update multiple values of the entry.
- Throws:
URISyntaxExceptionIOException- See Also:
EntryData
-
delete
public void delete() throws IOException, URISyntaxExceptionDeletes the entryNote: Will delete the entry from the collection. This action cannot be undone.
- Throws:
IOExceptionURISyntaxException
-
-