Skip to content

Commit adae966

Browse files
committed
refactor: update attecment api
Signed-off-by: Otavio Santana <[email protected]>
1 parent ad4424e commit adae966

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

jnosql-cassandra/src/main/java/org/eclipse/jnosql/databases/cassandra/mapping/CassandraUDTType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ class CassandraUDTType implements ColumnFieldValue {
4444
}
4545

4646
@Override
47-
public Object getValue() {
47+
public Object value() {
4848
return value;
4949
}
5050

5151
@Override
52-
public FieldMapping getField() {
52+
public FieldMapping field() {
5353
return field;
5454
}
5555

jnosql-database-commons/src/main/java/org/eclipse/jnosql/communication/driver/attachment/EntityAttachment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public interface EntityAttachment {
2828
/**
2929
* @return the file name of the attachment
3030
*/
31-
String getName();
31+
String name();
3232
/**
3333
* @return the last modification date of the attachment, in ms since the epoch
3434
*/
@@ -51,7 +51,7 @@ public interface EntityAttachment {
5151
* @return an ETag value for the current version of the content
5252
*/
5353
default String getETag() {
54-
return getName() + "-" + Long.toString(getLastModified(), 16); //$NON-NLS-1$
54+
return name() + "-" + Long.toString(getLastModified(), 16); //$NON-NLS-1$
5555
}
5656

5757
/**

jnosql-database-commons/src/test/java/org/eclipse/jnosql/communication/driver/AttachmentTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void testMemoryAttachment() throws IOException {
7777
}
7878

7979
private void checkAttachment(EntityAttachment att, String name, String contentType, long lastModified) throws IOException {
80-
assertEquals(name, att.getName());
80+
assertEquals(name, att.name());
8181
assertEquals(contentType, att.getContentType());
8282
assertEquals(testData.length, att.getLength());
8383
assertEquals(lastModified, att.getLastModified());

0 commit comments

Comments
 (0)