diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b980803..141dc43 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,9 +1,8 @@ - + - @@ -34,7 +33,7 @@ - + @@ -43,7 +42,7 @@ - + @@ -61,7 +60,7 @@ - + @@ -69,8 +68,8 @@ - - + + @@ -82,7 +81,7 @@ - + @@ -99,7 +98,7 @@ - + @@ -108,8 +107,8 @@ - - + + @@ -117,10 +116,7 @@ - - - @@ -788,14 +784,28 @@ - + @@ -813,14 +823,14 @@ - + - + @@ -1215,7 +1225,7 @@ - + @@ -1229,21 +1239,35 @@ - + - + + + + + + + + + + + + + + + - - + + @@ -1251,39 +1275,22 @@ - - - - + - - - - - - - - - - - - - - - - + + diff --git a/src/raubach/fricklweb/server/database/tables/AccessTokens.java b/src/raubach/fricklweb/server/database/tables/AccessTokens.java index 25d26a1..f7bf2a6 100644 --- a/src/raubach/fricklweb/server/database/tables/AccessTokens.java +++ b/src/raubach/fricklweb/server/database/tables/AccessTokens.java @@ -49,10 +49,14 @@ public class AccessTokens extends TableImpl { * The reference instance of frickl.access_tokens */ public static final AccessTokens ACCESS_TOKENS = new AccessTokens(); + /** - * The column frickl.access_tokens.expires_on. When this token expires. + * The class holding records for this type */ - public final TableField EXPIRES_ON = createField("expires_on", org.jooq.impl.SQLDataType.TIMESTAMP, this, "When this token expires."); + @Override + public Class getRecordType() { + return AccessTokensRecord.class; + } /** * The column frickl.access_tokens.id. Auto incremented id of this table. @@ -65,12 +69,9 @@ public class AccessTokens extends TableImpl { public final TableField TOKEN = createField("token", org.jooq.impl.SQLDataType.VARCHAR(36).nullable(false), this, "The access token."); /** - * The class holding records for this type + * The column frickl.access_tokens.expires_on. When this token expires. */ - @Override - public Class getRecordType() { - return AccessTokensRecord.class; - } + public final TableField EXPIRES_ON = createField("expires_on", org.jooq.impl.SQLDataType.TIMESTAMP, this, "When this token expires."); /** * The column frickl.access_tokens.created_on. When this record has been created. diff --git a/src/raubach/fricklweb/server/database/tables/AlbumAccessToken.java b/src/raubach/fricklweb/server/database/tables/AlbumAccessToken.java index ba23827..b6aa635 100644 --- a/src/raubach/fricklweb/server/database/tables/AlbumAccessToken.java +++ b/src/raubach/fricklweb/server/database/tables/AlbumAccessToken.java @@ -35,31 +35,46 @@ @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class AlbumAccessToken extends TableImpl { + private static final long serialVersionUID = -1370202886; + /** * The reference instance of frickl.album_access_token */ public static final AlbumAccessToken ALBUM_ACCESS_TOKEN = new AlbumAccessToken(); - private static final long serialVersionUID = -1370202886; + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return AlbumAccessTokenRecord.class; + } + /** * The column frickl.album_access_token.album_id. Auto incremented id of this table. */ public final TableField ALBUM_ID = createField("album_id", org.jooq.impl.SQLDataType.INTEGER.defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "Auto incremented id of this table."); + /** * The column frickl.album_access_token.album_name. The name of the album. Should ideally be relatively short. */ public final TableField ALBUM_NAME = createField("album_name", org.jooq.impl.SQLDataType.VARCHAR(255), this, "The name of the album. Should ideally be relatively short."); + /** * The column frickl.album_access_token.album_description. Optional description of the album. */ public final TableField ALBUM_DESCRIPTION = createField("album_description", org.jooq.impl.SQLDataType.CLOB, this, "Optional description of the album."); + /** * The column frickl.album_access_token.token_id. Auto incremented id of this table. */ public final TableField TOKEN_ID = createField("token_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "Auto incremented id of this table."); + /** * The column frickl.album_access_token.token_token. The access token. */ public final TableField TOKEN_TOKEN = createField("token_token", org.jooq.impl.SQLDataType.VARCHAR(36).nullable(false), this, "The access token."); + /** * The column frickl.album_access_token.token_expires_on. When this token expires. */ @@ -98,14 +113,6 @@ public AlbumAccessToken(Table child, ForeignKey getRecordType() { - return AlbumAccessTokenRecord.class; - } - /** * {@inheritDoc} */ diff --git a/src/raubach/fricklweb/server/database/tables/records/AccessTokensRecord.java b/src/raubach/fricklweb/server/database/tables/records/AccessTokensRecord.java index b300030..293d454 100644 --- a/src/raubach/fricklweb/server/database/tables/records/AccessTokensRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/AccessTokensRecord.java @@ -41,23 +41,17 @@ public void setId(Integer value) { } /** - * Create a detached AccessTokensRecord + * Getter for frickl.access_tokens.id. Auto incremented id of this table. */ - public AccessTokensRecord() { - super(AccessTokens.ACCESS_TOKENS); + public Integer getId() { + return (Integer) get(0); } /** - * Create a detached, initialised AccessTokensRecord + * Setter for frickl.access_tokens.token. The access token. */ - public AccessTokensRecord(Integer id, String token, Timestamp expiresOn, Timestamp createdOn, Timestamp updatedOn) { - super(AccessTokens.ACCESS_TOKENS); - - set(0, id); - set(1, token); - set(2, expiresOn); - set(3, createdOn); - set(4, updatedOn); + public void setToken(String value) { + set(1, value); } /** @@ -68,17 +62,10 @@ public String getToken() { } /** - * Getter for frickl.access_tokens.id. Auto incremented id of this table. - */ - public Integer getId() { - return (Integer) get(0); - } - - /** - * Setter for frickl.access_tokens.token. The access token. + * Setter for frickl.access_tokens.expires_on. When this token expires. */ - public void setToken(String value) { - set(1, value); + public void setExpiresOn(Timestamp value) { + set(2, value); } /** @@ -89,10 +76,10 @@ public Timestamp getExpiresOn() { } /** - * Setter for frickl.access_tokens.expires_on. When this token expires. + * Setter for frickl.access_tokens.created_on. When this record has been created. */ - public void setExpiresOn(Timestamp value) { - set(2, value); + public void setCreatedOn(Timestamp value) { + set(3, value); } /** @@ -103,10 +90,17 @@ public Timestamp getCreatedOn() { } /** - * Setter for frickl.access_tokens.created_on. When this record has been created. + * Setter for frickl.access_tokens.updated_on. When this record has last been updated. */ - public void setCreatedOn(Timestamp value) { - set(3, value); + public void setUpdatedOn(Timestamp value) { + set(4, value); + } + + /** + * Getter for frickl.access_tokens.updated_on. When this record has last been updated. + */ + public Timestamp getUpdatedOn() { + return (Timestamp) get(4); } // ------------------------------------------------------------------------- @@ -126,17 +120,19 @@ public Record1 key() { // ------------------------------------------------------------------------- /** - * Getter for frickl.access_tokens.updated_on. When this record has last been updated. + * {@inheritDoc} */ - public Timestamp getUpdatedOn() { - return (Timestamp) get(4); + @Override + public Row5 fieldsRow() { + return (Row5) super.fieldsRow(); } /** - * Setter for frickl.access_tokens.updated_on. When this record has last been updated. + * {@inheritDoc} */ - public void setUpdatedOn(Timestamp value) { - set(4, value); + @Override + public Row5 valuesRow() { + return (Row5) super.valuesRow(); } /** @@ -159,24 +155,24 @@ public Field field2() { * {@inheritDoc} */ @Override - public Row5 fieldsRow() { - return (Row5) super.fieldsRow(); + public Field field3() { + return AccessTokens.ACCESS_TOKENS.EXPIRES_ON; } /** * {@inheritDoc} */ @Override - public Row5 valuesRow() { - return (Row5) super.valuesRow(); + public Field field4() { + return AccessTokens.ACCESS_TOKENS.CREATED_ON; } /** * {@inheritDoc} */ @Override - public Field field3() { - return AccessTokens.ACCESS_TOKENS.EXPIRES_ON; + public Field field5() { + return AccessTokens.ACCESS_TOKENS.UPDATED_ON; } /** @@ -199,24 +195,24 @@ public String component2() { * {@inheritDoc} */ @Override - public Field field4() { - return AccessTokens.ACCESS_TOKENS.CREATED_ON; + public Timestamp component3() { + return getExpiresOn(); } /** * {@inheritDoc} */ @Override - public Field field5() { - return AccessTokens.ACCESS_TOKENS.UPDATED_ON; + public Timestamp component4() { + return getCreatedOn(); } /** * {@inheritDoc} */ @Override - public Timestamp component3() { - return getExpiresOn(); + public Timestamp component5() { + return getUpdatedOn(); } /** @@ -239,24 +235,24 @@ public String value2() { * {@inheritDoc} */ @Override - public Timestamp component4() { - return getCreatedOn(); + public Timestamp value3() { + return getExpiresOn(); } /** * {@inheritDoc} */ @Override - public Timestamp component5() { - return getUpdatedOn(); + public Timestamp value4() { + return getCreatedOn(); } /** * {@inheritDoc} */ @Override - public Timestamp value3() { - return getExpiresOn(); + public Timestamp value5() { + return getUpdatedOn(); } /** @@ -277,22 +273,6 @@ public AccessTokensRecord value2(String value) { return this; } - /** - * {@inheritDoc} - */ - @Override - public Timestamp value4() { - return getCreatedOn(); - } - - /** - * {@inheritDoc} - */ - @Override - public Timestamp value5() { - return getUpdatedOn(); - } - /** * {@inheritDoc} */ @@ -311,10 +291,6 @@ public AccessTokensRecord value4(Timestamp value) { return this; } - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - /** * {@inheritDoc} */ @@ -336,4 +312,28 @@ public AccessTokensRecord values(Integer value1, String value2, Timestamp value3 value5(value5); return this; } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached AccessTokensRecord + */ + public AccessTokensRecord() { + super(AccessTokens.ACCESS_TOKENS); + } + + /** + * Create a detached, initialised AccessTokensRecord + */ + public AccessTokensRecord(Integer id, String token, Timestamp expiresOn, Timestamp createdOn, Timestamp updatedOn) { + super(AccessTokens.ACCESS_TOKENS); + + set(0, id); + set(1, token); + set(2, expiresOn); + set(3, createdOn); + set(4, updatedOn); + } } diff --git a/src/raubach/fricklweb/server/database/tables/records/AlbumAccessTokenRecord.java b/src/raubach/fricklweb/server/database/tables/records/AlbumAccessTokenRecord.java index fd1a2be..e2c71ea 100644 --- a/src/raubach/fricklweb/server/database/tables/records/AlbumAccessTokenRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/AlbumAccessTokenRecord.java @@ -32,24 +32,10 @@ public class AlbumAccessTokenRecord extends TableRecordImplfrickl.album_access_token.album_id. Auto incremented id of this table. */ - public AlbumAccessTokenRecord(Integer albumId, String albumName, String albumDescription, Integer tokenId, String tokenToken, Timestamp tokenExpiresOn) { - super(AlbumAccessToken.ALBUM_ACCESS_TOKEN); - - set(0, albumId); - set(1, albumName); - set(2, albumDescription); - set(3, tokenId); - set(4, tokenToken); - set(5, tokenExpiresOn); + public void setAlbumId(Integer value) { + set(0, value); } /** @@ -60,10 +46,10 @@ public Integer getAlbumId() { } /** - * Setter for frickl.album_access_token.album_id. Auto incremented id of this table. + * Setter for frickl.album_access_token.album_name. The name of the album. Should ideally be relatively short. */ - public void setAlbumId(Integer value) { - set(0, value); + public void setAlbumName(String value) { + set(1, value); } /** @@ -74,10 +60,10 @@ public String getAlbumName() { } /** - * Setter for frickl.album_access_token.album_name. The name of the album. Should ideally be relatively short. + * Setter for frickl.album_access_token.album_description. Optional description of the album. */ - public void setAlbumName(String value) { - set(1, value); + public void setAlbumDescription(String value) { + set(2, value); } /** @@ -88,10 +74,10 @@ public String getAlbumDescription() { } /** - * Setter for frickl.album_access_token.album_description. Optional description of the album. + * Setter for frickl.album_access_token.token_id. Auto incremented id of this table. */ - public void setAlbumDescription(String value) { - set(2, value); + public void setTokenId(Integer value) { + set(3, value); } /** @@ -102,10 +88,10 @@ public Integer getTokenId() { } /** - * Setter for frickl.album_access_token.token_id. Auto incremented id of this table. + * Setter for frickl.album_access_token.token_token. The access token. */ - public void setTokenId(Integer value) { - set(3, value); + public void setTokenToken(String value) { + set(4, value); } /** @@ -116,16 +102,12 @@ public String getTokenToken() { } /** - * Setter for frickl.album_access_token.token_token. The access token. + * Setter for frickl.album_access_token.token_expires_on. When this token expires. */ - public void setTokenToken(String value) { - set(4, value); + public void setTokenExpiresOn(Timestamp value) { + set(5, value); } - // ------------------------------------------------------------------------- - // Record6 type implementation - // ------------------------------------------------------------------------- - /** * Getter for frickl.album_access_token.token_expires_on. When this token expires. */ @@ -133,12 +115,9 @@ public Timestamp getTokenExpiresOn() { return (Timestamp) get(5); } - /** - * Setter for frickl.album_access_token.token_expires_on. When this token expires. - */ - public void setTokenExpiresOn(Timestamp value) { - set(5, value); - } + // ------------------------------------------------------------------------- + // Record6 type implementation + // ------------------------------------------------------------------------- /** * {@inheritDoc} @@ -345,10 +324,6 @@ public AlbumAccessTokenRecord value5(String value) { return this; } - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - /** * {@inheritDoc} */ @@ -371,4 +346,29 @@ public AlbumAccessTokenRecord values(Integer value1, String value2, String value value6(value6); return this; } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached AlbumAccessTokenRecord + */ + public AlbumAccessTokenRecord() { + super(AlbumAccessToken.ALBUM_ACCESS_TOKEN); + } + + /** + * Create a detached, initialised AlbumAccessTokenRecord + */ + public AlbumAccessTokenRecord(Integer albumId, String albumName, String albumDescription, Integer tokenId, String tokenToken, Timestamp tokenExpiresOn) { + super(AlbumAccessToken.ALBUM_ACCESS_TOKEN); + + set(0, albumId); + set(1, albumName); + set(2, albumDescription); + set(3, tokenId); + set(4, tokenToken); + set(5, tokenExpiresOn); + } } diff --git a/src/raubach/fricklweb/server/database/tables/records/AlbumStatsRecord.java b/src/raubach/fricklweb/server/database/tables/records/AlbumStatsRecord.java index 42e946b..99b3784 100644 --- a/src/raubach/fricklweb/server/database/tables/records/AlbumStatsRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/AlbumStatsRecord.java @@ -39,10 +39,10 @@ public void setId(Integer value) { } /** - * Create a detached AlbumStatsRecord + * Getter for frickl.album_stats.id. Auto incremented id of this table. */ - public AlbumStatsRecord() { - super(AlbumStats.ALBUM_STATS); + public Integer getId() { + return (Integer) get(0); } /** @@ -53,22 +53,10 @@ public void setName(String value) { } /** - * Create a detached, initialised AlbumStatsRecord + * Getter for frickl.album_stats.name. The name of the album. Should ideally be relatively short. */ - public AlbumStatsRecord(Integer id, String name, String description, String path, Integer bannerImageId, Long bannerImagePublicId, Integer parentAlbumId, Timestamp createdOn, Timestamp updatedOn, Long count, Long countPublic) { - super(AlbumStats.ALBUM_STATS); - - set(0, id); - set(1, name); - set(2, description); - set(3, path); - set(4, bannerImageId); - set(5, bannerImagePublicId); - set(6, parentAlbumId); - set(7, createdOn); - set(8, updatedOn); - set(9, count); - set(10, countPublic); + public String getName() { + return (String) get(1); } /** @@ -79,10 +67,10 @@ public void setDescription(String value) { } /** - * Getter for frickl.album_stats.id. Auto incremented id of this table. + * Getter for frickl.album_stats.description. Optional description of the album. */ - public Integer getId() { - return (Integer) get(0); + public String getDescription() { + return (String) get(2); } /** @@ -93,10 +81,10 @@ public void setPath(String value) { } /** - * Getter for frickl.album_stats.name. The name of the album. Should ideally be relatively short. + * Getter for frickl.album_stats.path. The path to the album relative to the base path of the setup. */ - public String getName() { - return (String) get(1); + public String getPath() { + return (String) get(3); } /** @@ -107,10 +95,10 @@ public void setBannerImageId(Integer value) { } /** - * Getter for frickl.album_stats.description. Optional description of the album. + * Getter for frickl.album_stats.banner_image_id. Optional banner image id. This image will be shown to visually represent this album. */ - public String getDescription() { - return (String) get(2); + public Integer getBannerImageId() { + return (Integer) get(4); } /** @@ -121,10 +109,10 @@ public void setBannerImagePublicId(Long value) { } /** - * Getter for frickl.album_stats.path. The path to the album relative to the base path of the setup. + * Getter for frickl.album_stats.banner_image_public_id. */ - public String getPath() { - return (String) get(3); + public Long getBannerImagePublicId() { + return (Long) get(5); } /** @@ -135,10 +123,10 @@ public void setParentAlbumId(Integer value) { } /** - * Getter for frickl.album_stats.banner_image_id. Optional banner image id. This image will be shown to visually represent this album. + * Getter for frickl.album_stats.parent_album_id. Optional parent album id. If this album is a sub-album of another album, this parent album can be defined here. */ - public Integer getBannerImageId() { - return (Integer) get(4); + public Integer getParentAlbumId() { + return (Integer) get(6); } /** @@ -149,10 +137,10 @@ public void setCreatedOn(Timestamp value) { } /** - * Getter for frickl.album_stats.banner_image_public_id. + * Getter for frickl.album_stats.created_on. When this record has been created. */ - public Long getBannerImagePublicId() { - return (Long) get(5); + public Timestamp getCreatedOn() { + return (Timestamp) get(7); } /** @@ -163,10 +151,10 @@ public void setUpdatedOn(Timestamp value) { } /** - * Getter for frickl.album_stats.parent_album_id. Optional parent album id. If this album is a sub-album of another album, this parent album can be defined here. + * Getter for frickl.album_stats.updated_on. When this record has last been updated. */ - public Integer getParentAlbumId() { - return (Integer) get(6); + public Timestamp getUpdatedOn() { + return (Timestamp) get(8); } /** @@ -177,10 +165,10 @@ public void setCount(Long value) { } /** - * Getter for frickl.album_stats.created_on. When this record has been created. + * Getter for frickl.album_stats.count. */ - public Timestamp getCreatedOn() { - return (Timestamp) get(7); + public Long getCount() { + return (Long) get(9); } /** @@ -191,10 +179,10 @@ public void setCountPublic(Long value) { } /** - * Getter for frickl.album_stats.updated_on. When this record has last been updated. + * Getter for frickl.album_stats.count_public. */ - public Timestamp getUpdatedOn() { - return (Timestamp) get(8); + public Long getCountPublic() { + return (Long) get(10); } // ------------------------------------------------------------------------- @@ -604,16 +592,28 @@ public AlbumStatsRecord values(Integer value1, String value2, String value3, Str // ------------------------------------------------------------------------- /** - * Getter for frickl.album_stats.count. + * Create a detached AlbumStatsRecord */ - public Long getCount() { - return (Long) get(9); + public AlbumStatsRecord() { + super(AlbumStats.ALBUM_STATS); } /** - * Getter for frickl.album_stats.count_public. + * Create a detached, initialised AlbumStatsRecord */ - public Long getCountPublic() { - return (Long) get(10); + public AlbumStatsRecord(Integer id, String name, String description, String path, Integer bannerImageId, Long bannerImagePublicId, Integer parentAlbumId, Timestamp createdOn, Timestamp updatedOn, Long count, Long countPublic) { + super(AlbumStats.ALBUM_STATS); + + set(0, id); + set(1, name); + set(2, description); + set(3, path); + set(4, bannerImageId); + set(5, bannerImagePublicId); + set(6, parentAlbumId); + set(7, createdOn); + set(8, updatedOn); + set(9, count); + set(10, countPublic); } } diff --git a/src/raubach/fricklweb/server/database/tables/records/AlbumTokensRecord.java b/src/raubach/fricklweb/server/database/tables/records/AlbumTokensRecord.java index ed7c248..88308e7 100644 --- a/src/raubach/fricklweb/server/database/tables/records/AlbumTokensRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/AlbumTokensRecord.java @@ -33,10 +33,10 @@ public class AlbumTokensRecord extends UpdatableRecordImpl im private static final long serialVersionUID = 89118807; /** - * Create a detached AlbumTokensRecord + * Setter for frickl.album_tokens.album_id. The album this token belongs to. */ - public AlbumTokensRecord() { - super(AlbumTokens.ALBUM_TOKENS); + public void setAlbumId(Integer value) { + set(0, value); } /** @@ -47,15 +47,10 @@ public Integer getAlbumId() { } /** - * Create a detached, initialised AlbumTokensRecord + * Setter for frickl.album_tokens.access_token_id. The access token allowing access to this album. */ - public AlbumTokensRecord(Integer albumId, Integer accessTokenId, Timestamp createdOn, Timestamp updatedOn) { - super(AlbumTokens.ALBUM_TOKENS); - - set(0, albumId); - set(1, accessTokenId); - set(2, createdOn); - set(3, updatedOn); + public void setAccessTokenId(Integer value) { + set(1, value); } /** @@ -73,17 +68,17 @@ public void setCreatedOn(Timestamp value) { } /** - * Setter for frickl.album_tokens.album_id. The album this token belongs to. + * Getter for frickl.album_tokens.created_on. When this record has been created. */ - public void setAlbumId(Integer value) { - set(0, value); + public Timestamp getCreatedOn() { + return (Timestamp) get(2); } /** - * Setter for frickl.album_tokens.access_token_id. The access token allowing access to this album. + * Setter for frickl.album_tokens.updated_on. When this record has last been updated. */ - public void setAccessTokenId(Integer value) { - set(1, value); + public void setUpdatedOn(Timestamp value) { + set(3, value); } /** @@ -274,16 +269,21 @@ public AlbumTokensRecord values(Integer value1, Integer value2, Timestamp value3 // ------------------------------------------------------------------------- /** - * Getter for frickl.album_tokens.created_on. When this record has been created. + * Create a detached AlbumTokensRecord */ - public Timestamp getCreatedOn() { - return (Timestamp) get(2); + public AlbumTokensRecord() { + super(AlbumTokens.ALBUM_TOKENS); } /** - * Setter for frickl.album_tokens.updated_on. When this record has last been updated. + * Create a detached, initialised AlbumTokensRecord */ - public void setUpdatedOn(Timestamp value) { - set(3, value); + public AlbumTokensRecord(Integer albumId, Integer accessTokenId, Timestamp createdOn, Timestamp updatedOn) { + super(AlbumTokens.ALBUM_TOKENS); + + set(0, albumId); + set(1, accessTokenId); + set(2, createdOn); + set(3, updatedOn); } } diff --git a/src/raubach/fricklweb/server/database/tables/records/AlbumsRecord.java b/src/raubach/fricklweb/server/database/tables/records/AlbumsRecord.java index 7131a82..70369ba 100644 --- a/src/raubach/fricklweb/server/database/tables/records/AlbumsRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/AlbumsRecord.java @@ -34,10 +34,10 @@ public class AlbumsRecord extends UpdatableRecordImpl implements R private static final long serialVersionUID = 659399391; /** - * Create a detached AlbumsRecord + * Setter for frickl.albums.id. Auto incremented id of this table. */ - public AlbumsRecord() { - super(Albums.ALBUMS); + public void setId(Integer value) { + set(0, value); } /** @@ -48,19 +48,10 @@ public Integer getId() { } /** - * Create a detached, initialised AlbumsRecord + * Setter for frickl.albums.name. The name of the album. Should ideally be relatively short. */ - public AlbumsRecord(Integer id, String name, String description, String path, Integer bannerImageId, Integer parentAlbumId, Timestamp createdOn, Timestamp updatedOn) { - super(Albums.ALBUMS); - - set(0, id); - set(1, name); - set(2, description); - set(3, path); - set(4, bannerImageId); - set(5, parentAlbumId); - set(6, createdOn); - set(7, updatedOn); + public void setName(String value) { + set(1, value); } /** @@ -78,10 +69,10 @@ public void setDescription(String value) { } /** - * Setter for frickl.albums.id. Auto incremented id of this table. + * Getter for frickl.albums.description. Optional description of the album. */ - public void setId(Integer value) { - set(0, value); + public String getDescription() { + return (String) get(2); } /** @@ -99,10 +90,10 @@ public String getPath() { } /** - * Setter for frickl.albums.name. The name of the album. Should ideally be relatively short. + * Setter for frickl.albums.banner_image_id. Optional banner image id. This image will be shown to visually represent this album. */ - public void setName(String value) { - set(1, value); + public void setBannerImageId(Integer value) { + set(4, value); } /** @@ -113,24 +104,24 @@ public Integer getBannerImageId() { } /** - * Getter for frickl.albums.description. Optional description of the album. + * Setter for frickl.albums.parent_album_id. Optional parent album id. If this album is a sub-album of another album, this parent album can be defined here. */ - public String getDescription() { - return (String) get(2); + public void setParentAlbumId(Integer value) { + set(5, value); } /** - * Setter for frickl.albums.banner_image_id. Optional banner image id. This image will be shown to visually represent this album. + * Getter for frickl.albums.parent_album_id. Optional parent album id. If this album is a sub-album of another album, this parent album can be defined here. */ - public void setBannerImageId(Integer value) { - set(4, value); + public Integer getParentAlbumId() { + return (Integer) get(5); } /** - * Getter for frickl.albums.parent_album_id. Optional parent album id. If this album is a sub-album of another album, this parent album can be defined here. + * Setter for frickl.albums.created_on. When this record has been created. */ - public Integer getParentAlbumId() { - return (Integer) get(5); + public void setCreatedOn(Timestamp value) { + set(6, value); } /** @@ -141,10 +132,10 @@ public Timestamp getCreatedOn() { } /** - * Setter for frickl.albums.parent_album_id. Optional parent album id. If this album is a sub-album of another album, this parent album can be defined here. + * Setter for frickl.albums.updated_on. When this record has last been updated. */ - public void setParentAlbumId(Integer value) { - set(5, value); + public void setUpdatedOn(Timestamp value) { + set(7, value); } /** @@ -471,16 +462,25 @@ public AlbumsRecord values(Integer value1, String value2, String value3, String // ------------------------------------------------------------------------- /** - * Setter for frickl.albums.created_on. When this record has been created. + * Create a detached AlbumsRecord */ - public void setCreatedOn(Timestamp value) { - set(6, value); + public AlbumsRecord() { + super(Albums.ALBUMS); } /** - * Setter for frickl.albums.updated_on. When this record has last been updated. + * Create a detached, initialised AlbumsRecord */ - public void setUpdatedOn(Timestamp value) { - set(7, value); + public AlbumsRecord(Integer id, String name, String description, String path, Integer bannerImageId, Integer parentAlbumId, Timestamp createdOn, Timestamp updatedOn) { + super(Albums.ALBUMS); + + set(0, id); + set(1, name); + set(2, description); + set(3, path); + set(4, bannerImageId); + set(5, parentAlbumId); + set(6, createdOn); + set(7, updatedOn); } } diff --git a/src/raubach/fricklweb/server/database/tables/records/CalendarDataRecord.java b/src/raubach/fricklweb/server/database/tables/records/CalendarDataRecord.java index b94e48a..9edc4f8 100644 --- a/src/raubach/fricklweb/server/database/tables/records/CalendarDataRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/CalendarDataRecord.java @@ -39,10 +39,10 @@ public void setDate(Date value) { } /** - * Create a detached CalendarDataRecord + * Getter for frickl.calendar_data.date. */ - public CalendarDataRecord() { - super(CalendarData.CALENDAR_DATA); + public Date getDate() { + return (Date) get(0); } /** @@ -53,13 +53,10 @@ public void setCount(Long value) { } /** - * Create a detached, initialised CalendarDataRecord + * Getter for frickl.calendar_data.count. */ - public CalendarDataRecord(Date date, Long count) { - super(CalendarData.CALENDAR_DATA); - - set(0, date); - set(1, count); + public Long getCount() { + return (Long) get(1); } // ------------------------------------------------------------------------- @@ -163,16 +160,19 @@ public CalendarDataRecord values(Date value1, Long value2) { // ------------------------------------------------------------------------- /** - * Getter for frickl.calendar_data.date. + * Create a detached CalendarDataRecord */ - public Date getDate() { - return (Date) get(0); + public CalendarDataRecord() { + super(CalendarData.CALENDAR_DATA); } /** - * Getter for frickl.calendar_data.count. + * Create a detached, initialised CalendarDataRecord */ - public Long getCount() { - return (Long) get(1); + public CalendarDataRecord(Date date, Long count) { + super(CalendarData.CALENDAR_DATA); + + set(0, date); + set(1, count); } } diff --git a/src/raubach/fricklweb/server/database/tables/records/ImageTagsRecord.java b/src/raubach/fricklweb/server/database/tables/records/ImageTagsRecord.java index 29be637..64fb1c8 100644 --- a/src/raubach/fricklweb/server/database/tables/records/ImageTagsRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/ImageTagsRecord.java @@ -31,10 +31,10 @@ public class ImageTagsRecord extends UpdatableRecordImpl implem private static final long serialVersionUID = -37226723; /** - * Create a detached ImageTagsRecord + * Setter for frickl.image_tags.image_id. The foreign key id of the referenced image. */ - public ImageTagsRecord() { - super(ImageTags.IMAGE_TAGS); + public void setImageId(Integer value) { + set(0, value); } /** @@ -45,13 +45,10 @@ public Integer getImageId() { } /** - * Create a detached, initialised ImageTagsRecord + * Setter for frickl.image_tags.tag_id. The foreign key id of the referenced tag. */ - public ImageTagsRecord(Integer imageId, Integer tagId) { - super(ImageTags.IMAGE_TAGS); - - set(0, imageId); - set(1, tagId); + public void setTagId(Integer value) { + set(1, value); } /** @@ -174,16 +171,19 @@ public ImageTagsRecord values(Integer value1, Integer value2) { // ------------------------------------------------------------------------- /** - * Setter for frickl.image_tags.image_id. The foreign key id of the referenced image. + * Create a detached ImageTagsRecord */ - public void setImageId(Integer value) { - set(0, value); + public ImageTagsRecord() { + super(ImageTags.IMAGE_TAGS); } /** - * Setter for frickl.image_tags.tag_id. The foreign key id of the referenced tag. + * Create a detached, initialised ImageTagsRecord */ - public void setTagId(Integer value) { - set(1, value); + public ImageTagsRecord(Integer imageId, Integer tagId) { + super(ImageTags.IMAGE_TAGS); + + set(0, imageId); + set(1, tagId); } } diff --git a/src/raubach/fricklweb/server/database/tables/records/ImageTimelineRecord.java b/src/raubach/fricklweb/server/database/tables/records/ImageTimelineRecord.java index 53a8d5e..079ab23 100644 --- a/src/raubach/fricklweb/server/database/tables/records/ImageTimelineRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/ImageTimelineRecord.java @@ -31,10 +31,10 @@ public class ImageTimelineRecord extends TableRecordImpl im private static final long serialVersionUID = -1787040223; /** - * Create a detached ImageTimelineRecord + * Setter for frickl.image_timeline.year. */ - public ImageTimelineRecord() { - super(ImageTimeline.IMAGE_TIMELINE); + public void setYear(UInteger value) { + set(0, value); } /** @@ -52,14 +52,10 @@ public void setMonth(Integer value) { } /** - * Create a detached, initialised ImageTimelineRecord + * Getter for frickl.image_timeline.month. */ - public ImageTimelineRecord(UInteger year, Integer month, Object ids) { - super(ImageTimeline.IMAGE_TIMELINE); - - set(0, year); - set(1, month); - set(2, ids); + public Integer getMonth() { + return (Integer) get(1); } /** @@ -71,10 +67,11 @@ public void setIds(Object value) { } /** - * Setter for frickl.image_timeline.year. + * @deprecated Unknown data type. Please define an explicit {@link org.jooq.Binding} to specify how this type should be handled. Deprecation can be turned off using {@literal } in your code generator configuration. */ - public void setYear(UInteger value) { - set(0, value); + @java.lang.Deprecated + public Object getIds() { + return get(2); } // ------------------------------------------------------------------------- @@ -216,17 +213,20 @@ public ImageTimelineRecord values(UInteger value1, Integer value2, Object value3 // ------------------------------------------------------------------------- /** - * Getter for frickl.image_timeline.month. + * Create a detached ImageTimelineRecord */ - public Integer getMonth() { - return (Integer) get(1); + public ImageTimelineRecord() { + super(ImageTimeline.IMAGE_TIMELINE); } /** - * @deprecated Unknown data type. Please define an explicit {@link org.jooq.Binding} to specify how this type should be handled. Deprecation can be turned off using {@literal } in your code generator configuration. + * Create a detached, initialised ImageTimelineRecord */ - @java.lang.Deprecated - public Object getIds() { - return get(2); + public ImageTimelineRecord(UInteger year, Integer month, Object ids) { + super(ImageTimeline.IMAGE_TIMELINE); + + set(0, year); + set(1, month); + set(2, ids); } } diff --git a/src/raubach/fricklweb/server/database/tables/records/ImagesRecord.java b/src/raubach/fricklweb/server/database/tables/records/ImagesRecord.java index 6ebc9c5..fe179ca 100644 --- a/src/raubach/fricklweb/server/database/tables/records/ImagesRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/ImagesRecord.java @@ -34,10 +34,10 @@ public class ImagesRecord extends UpdatableRecordImpl implements R private static final long serialVersionUID = 537646640; /** - * Create a detached ImagesRecord + * Setter for frickl.images.id. Auto incremented id of this table. */ - public ImagesRecord() { - super(Images.IMAGES); + public void setId(Integer value) { + set(0, value); } /** @@ -48,20 +48,10 @@ public Integer getId() { } /** - * Create a detached, initialised ImagesRecord + * Setter for frickl.images.path. The path to the image relative to the base path of the setup. */ - public ImagesRecord(Integer id, String path, String name, Byte isFavorite, Exif exif, Integer albumId, Byte isPublic, Timestamp createdOn, Timestamp updatedOn) { - super(Images.IMAGES); - - set(0, id); - set(1, path); - set(2, name); - set(3, isFavorite); - set(4, exif); - set(5, albumId); - set(6, isPublic); - set(7, createdOn); - set(8, updatedOn); + public void setPath(String value) { + set(1, value); } /** @@ -72,10 +62,10 @@ public String getPath() { } /** - * Setter for frickl.images.id. Auto incremented id of this table. + * Setter for frickl.images.name. The name of the image. This will be the filename. */ - public void setId(Integer value) { - set(0, value); + public void setName(String value) { + set(2, value); } /** @@ -100,10 +90,10 @@ public Byte getIsFavorite() { } /** - * Setter for frickl.images.path. The path to the image relative to the base path of the setup. + * Setter for frickl.images.exif. Optional Exif information in JSON format. */ - public void setPath(String value) { - set(1, value); + public void setExif(Exif value) { + set(4, value); } /** @@ -114,10 +104,10 @@ public Exif getExif() { } /** - * Setter for frickl.images.name. The name of the image. This will be the filename. + * Setter for frickl.images.album_id. The album this image belongs to. This will be the containing folder. */ - public void setName(String value) { - set(2, value); + public void setAlbumId(Integer value) { + set(5, value); } /** @@ -128,24 +118,24 @@ public Integer getAlbumId() { } /** - * Setter for frickl.images.exif. Optional Exif information in JSON format. + * Setter for frickl.images.is_public. */ - public void setExif(Exif value) { - set(4, value); + public void setIsPublic(Byte value) { + set(6, value); } /** - * Setter for frickl.images.album_id. The album this image belongs to. This will be the containing folder. + * Getter for frickl.images.is_public. */ - public void setAlbumId(Integer value) { - set(5, value); + public Byte getIsPublic() { + return (Byte) get(6); } /** - * Getter for frickl.images.is_public. + * Setter for frickl.images.created_on. When this record has been created. */ - public Byte getIsPublic() { - return (Byte) get(6); + public void setCreatedOn(Timestamp value) { + set(7, value); } /** @@ -156,10 +146,10 @@ public Timestamp getCreatedOn() { } /** - * Setter for frickl.images.is_public. + * Setter for frickl.images.updated_on. When this record has last been updated. */ - public void setIsPublic(Byte value) { - set(6, value); + public void setUpdatedOn(Timestamp value) { + set(8, value); } /** @@ -520,16 +510,26 @@ public ImagesRecord values(Integer value1, String value2, String value3, Byte va // ------------------------------------------------------------------------- /** - * Setter for frickl.images.created_on. When this record has been created. + * Create a detached ImagesRecord */ - public void setCreatedOn(Timestamp value) { - set(7, value); + public ImagesRecord() { + super(Images.IMAGES); } /** - * Setter for frickl.images.updated_on. When this record has last been updated. + * Create a detached, initialised ImagesRecord */ - public void setUpdatedOn(Timestamp value) { - set(8, value); + public ImagesRecord(Integer id, String path, String name, Byte isFavorite, Exif exif, Integer albumId, Byte isPublic, Timestamp createdOn, Timestamp updatedOn) { + super(Images.IMAGES); + + set(0, id); + set(1, path); + set(2, name); + set(3, isFavorite); + set(4, exif); + set(5, albumId); + set(6, isPublic); + set(7, createdOn); + set(8, updatedOn); } } diff --git a/src/raubach/fricklweb/server/database/tables/records/LatLngsRecord.java b/src/raubach/fricklweb/server/database/tables/records/LatLngsRecord.java index e1dbfd4..6a4c841 100644 --- a/src/raubach/fricklweb/server/database/tables/records/LatLngsRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/LatLngsRecord.java @@ -39,10 +39,10 @@ public void setId(Integer value) { } /** - * Create a detached LatLngsRecord + * Getter for frickl.lat_lngs.id. Auto incremented id of this table. */ - public LatLngsRecord() { - super(LatLngs.LAT_LNGS); + public Integer getId() { + return (Integer) get(0); } /** @@ -53,17 +53,10 @@ public void setPath(String value) { } /** - * Create a detached, initialised LatLngsRecord + * Getter for frickl.lat_lngs.path. The path to the image relative to the base path of the setup. */ - public LatLngsRecord(Integer id, String path, Integer albumId, Byte isPublic, BigDecimal latitude, BigDecimal longitude) { - super(LatLngs.LAT_LNGS); - - set(0, id); - set(1, path); - set(2, albumId); - set(3, isPublic); - set(4, latitude); - set(5, longitude); + public String getPath() { + return (String) get(1); } /** @@ -74,10 +67,10 @@ public void setAlbumId(Integer value) { } /** - * Getter for frickl.lat_lngs.id. Auto incremented id of this table. + * Getter for frickl.lat_lngs.album_id. The album this image belongs to. This will be the containing folder. */ - public Integer getId() { - return (Integer) get(0); + public Integer getAlbumId() { + return (Integer) get(2); } /** @@ -88,10 +81,10 @@ public void setIsPublic(Byte value) { } /** - * Getter for frickl.lat_lngs.path. The path to the image relative to the base path of the setup. + * Getter for frickl.lat_lngs.is_public. */ - public String getPath() { - return (String) get(1); + public Byte getIsPublic() { + return (Byte) get(3); } /** @@ -102,10 +95,10 @@ public void setLatitude(BigDecimal value) { } /** - * Getter for frickl.lat_lngs.album_id. The album this image belongs to. This will be the containing folder. + * Getter for frickl.lat_lngs.latitude. */ - public Integer getAlbumId() { - return (Integer) get(2); + public BigDecimal getLatitude() { + return (BigDecimal) get(4); } /** @@ -116,10 +109,10 @@ public void setLongitude(BigDecimal value) { } /** - * Getter for frickl.lat_lngs.is_public. + * Getter for frickl.lat_lngs.longitude. */ - public Byte getIsPublic() { - return (Byte) get(3); + public BigDecimal getLongitude() { + return (BigDecimal) get(5); } // ------------------------------------------------------------------------- @@ -359,16 +352,23 @@ public LatLngsRecord values(Integer value1, String value2, Integer value3, Byte // ------------------------------------------------------------------------- /** - * Getter for frickl.lat_lngs.latitude. + * Create a detached LatLngsRecord */ - public BigDecimal getLatitude() { - return (BigDecimal) get(4); + public LatLngsRecord() { + super(LatLngs.LAT_LNGS); } /** - * Getter for frickl.lat_lngs.longitude. + * Create a detached, initialised LatLngsRecord */ - public BigDecimal getLongitude() { - return (BigDecimal) get(5); + public LatLngsRecord(Integer id, String path, Integer albumId, Byte isPublic, BigDecimal latitude, BigDecimal longitude) { + super(LatLngs.LAT_LNGS); + + set(0, id); + set(1, path); + set(2, albumId); + set(3, isPublic); + set(4, latitude); + set(5, longitude); } } diff --git a/src/raubach/fricklweb/server/database/tables/records/SchemaVersionRecord.java b/src/raubach/fricklweb/server/database/tables/records/SchemaVersionRecord.java index 53ff17a..15476be 100644 --- a/src/raubach/fricklweb/server/database/tables/records/SchemaVersionRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/SchemaVersionRecord.java @@ -33,10 +33,10 @@ public class SchemaVersionRecord extends UpdatableRecordImplfrickl.schema_version.installed_rank. */ - public SchemaVersionRecord() { - super(SchemaVersion.SCHEMA_VERSION); + public void setInstalledRank(Integer value) { + set(0, value); } /** @@ -47,21 +47,10 @@ public Integer getInstalledRank() { } /** - * Create a detached, initialised SchemaVersionRecord + * Setter for frickl.schema_version.version. */ - public SchemaVersionRecord(Integer installedRank, String version, String description, String type, String script, Integer checksum, String installedBy, Timestamp installedOn, Integer executionTime, Byte success) { - super(SchemaVersion.SCHEMA_VERSION); - - set(0, installedRank); - set(1, version); - set(2, description); - set(3, type); - set(4, script); - set(5, checksum); - set(6, installedBy); - set(7, installedOn); - set(8, executionTime); - set(9, success); + public void setVersion(String value) { + set(1, value); } /** @@ -72,10 +61,10 @@ public String getVersion() { } /** - * Setter for frickl.schema_version.installed_rank. + * Setter for frickl.schema_version.description. */ - public void setInstalledRank(Integer value) { - set(0, value); + public void setDescription(String value) { + set(2, value); } /** @@ -93,10 +82,10 @@ public void setType(String value) { } /** - * Setter for frickl.schema_version.version. + * Getter for frickl.schema_version.type. */ - public void setVersion(String value) { - set(1, value); + public String getType() { + return (String) get(3); } /** @@ -114,10 +103,10 @@ public String getScript() { } /** - * Setter for frickl.schema_version.description. + * Setter for frickl.schema_version.checksum. */ - public void setDescription(String value) { - set(2, value); + public void setChecksum(Integer value) { + set(5, value); } /** @@ -128,10 +117,10 @@ public Integer getChecksum() { } /** - * Getter for frickl.schema_version.type. + * Setter for frickl.schema_version.installed_by. */ - public String getType() { - return (String) get(3); + public void setInstalledBy(String value) { + set(6, value); } /** @@ -142,24 +131,24 @@ public String getInstalledBy() { } /** - * Setter for frickl.schema_version.checksum. + * Setter for frickl.schema_version.installed_on. */ - public void setChecksum(Integer value) { - set(5, value); + public void setInstalledOn(Timestamp value) { + set(7, value); } /** - * Setter for frickl.schema_version.installed_by. + * Getter for frickl.schema_version.installed_on. */ - public void setInstalledBy(String value) { - set(6, value); + public Timestamp getInstalledOn() { + return (Timestamp) get(7); } /** - * Getter for frickl.schema_version.installed_on. + * Setter for frickl.schema_version.execution_time. */ - public Timestamp getInstalledOn() { - return (Timestamp) get(7); + public void setExecutionTime(Integer value) { + set(8, value); } /** @@ -170,10 +159,10 @@ public Integer getExecutionTime() { } /** - * Setter for frickl.schema_version.installed_on. + * Setter for frickl.schema_version.success. */ - public void setInstalledOn(Timestamp value) { - set(7, value); + public void setSuccess(Byte value) { + set(9, value); } /** @@ -568,16 +557,27 @@ public SchemaVersionRecord values(Integer value1, String value2, String value3, // ------------------------------------------------------------------------- /** - * Setter for frickl.schema_version.execution_time. + * Create a detached SchemaVersionRecord */ - public void setExecutionTime(Integer value) { - set(8, value); + public SchemaVersionRecord() { + super(SchemaVersion.SCHEMA_VERSION); } /** - * Setter for frickl.schema_version.success. + * Create a detached, initialised SchemaVersionRecord */ - public void setSuccess(Byte value) { - set(9, value); + public SchemaVersionRecord(Integer installedRank, String version, String description, String type, String script, Integer checksum, String installedBy, Timestamp installedOn, Integer executionTime, Byte success) { + super(SchemaVersion.SCHEMA_VERSION); + + set(0, installedRank); + set(1, version); + set(2, description); + set(3, type); + set(4, script); + set(5, checksum); + set(6, installedBy); + set(7, installedOn); + set(8, executionTime); + set(9, success); } } diff --git a/src/raubach/fricklweb/server/database/tables/records/StatsCameraRecord.java b/src/raubach/fricklweb/server/database/tables/records/StatsCameraRecord.java index f40eadf..5ea1a17 100644 --- a/src/raubach/fricklweb/server/database/tables/records/StatsCameraRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/StatsCameraRecord.java @@ -37,10 +37,10 @@ public void setCamera(String value) { } /** - * Create a detached StatsCameraRecord + * Getter for frickl.stats_camera.camera. */ - public StatsCameraRecord() { - super(StatsCamera.STATS_CAMERA); + public String getCamera() { + return (String) get(0); } /** @@ -51,13 +51,10 @@ public void setCount(Long value) { } /** - * Create a detached, initialised StatsCameraRecord + * Getter for frickl.stats_camera.count. */ - public StatsCameraRecord(String camera, Long count) { - super(StatsCamera.STATS_CAMERA); - - set(0, camera); - set(1, count); + public Long getCount() { + return (Long) get(1); } // ------------------------------------------------------------------------- @@ -161,16 +158,19 @@ public StatsCameraRecord values(String value1, Long value2) { // ------------------------------------------------------------------------- /** - * Getter for frickl.stats_camera.camera. + * Create a detached StatsCameraRecord */ - public String getCamera() { - return (String) get(0); + public StatsCameraRecord() { + super(StatsCamera.STATS_CAMERA); } /** - * Getter for frickl.stats_camera.count. + * Create a detached, initialised StatsCameraRecord */ - public Long getCount() { - return (Long) get(1); + public StatsCameraRecord(String camera, Long count) { + super(StatsCamera.STATS_CAMERA); + + set(0, camera); + set(1, count); } } diff --git a/src/raubach/fricklweb/server/database/tables/records/TagsRecord.java b/src/raubach/fricklweb/server/database/tables/records/TagsRecord.java index 9a4a008..217aeca 100644 --- a/src/raubach/fricklweb/server/database/tables/records/TagsRecord.java +++ b/src/raubach/fricklweb/server/database/tables/records/TagsRecord.java @@ -34,10 +34,10 @@ public class TagsRecord extends UpdatableRecordImpl implements Recor private static final long serialVersionUID = -915284446; /** - * Create a detached TagsRecord + * Setter for frickl.tags.id. Auto incremented id of this table. */ - public TagsRecord() { - super(Tags.TAGS); + public void setId(Integer value) { + set(0, value); } /** @@ -48,15 +48,10 @@ public Integer getId() { } /** - * Create a detached, initialised TagsRecord + * Setter for frickl.tags.name. The name of this tag. */ - public TagsRecord(Integer id, String name, Timestamp createdOn, Timestamp updatedOn) { - super(Tags.TAGS); - - set(0, id); - set(1, name); - set(2, createdOn); - set(3, updatedOn); + public void setName(String value) { + set(1, value); } /** @@ -74,17 +69,17 @@ public void setCreatedOn(Timestamp value) { } /** - * Setter for frickl.tags.id. Auto incremented id of this table. + * Getter for frickl.tags.created_on. When this record has been created. */ - public void setId(Integer value) { - set(0, value); + public Timestamp getCreatedOn() { + return (Timestamp) get(2); } /** - * Setter for frickl.tags.name. The name of this tag. + * Setter for frickl.tags.updated_on. When this record has last been updated. */ - public void setName(String value) { - set(1, value); + public void setUpdatedOn(Timestamp value) { + set(3, value); } /** @@ -275,16 +270,21 @@ public TagsRecord values(Integer value1, String value2, Timestamp value3, Timest // ------------------------------------------------------------------------- /** - * Getter for frickl.tags.created_on. When this record has been created. + * Create a detached TagsRecord */ - public Timestamp getCreatedOn() { - return (Timestamp) get(2); + public TagsRecord() { + super(Tags.TAGS); } /** - * Setter for frickl.tags.updated_on. When this record has last been updated. + * Create a detached, initialised TagsRecord */ - public void setUpdatedOn(Timestamp value) { - set(3, value); + public TagsRecord(Integer id, String name, Timestamp createdOn, Timestamp updatedOn) { + super(Tags.TAGS); + + set(0, id); + set(1, name); + set(2, createdOn); + set(3, updatedOn); } } diff --git a/src/raubach/fricklweb/server/resource/album/AlbumAccessTokenResource.java b/src/raubach/fricklweb/server/resource/album/AlbumAccessTokenResource.java index e2dc6ae..b3a561a 100644 --- a/src/raubach/fricklweb/server/resource/album/AlbumAccessTokenResource.java +++ b/src/raubach/fricklweb/server/resource/album/AlbumAccessTokenResource.java @@ -70,6 +70,8 @@ public boolean postJson(AccessToken accessToken) AccessTokensRecord token = context.newRecord(ACCESS_TOKENS); token.setToken(accessToken.getToken()); token.setExpiresOn(accessToken.getExpiresOn()); + + Logger.getLogger("").log(Level.INFO, "RECORD: " + token.toString()); token.store(); AlbumTokensRecord albumToken = context.newRecord(ALBUM_TOKENS);