com.backendless.rt.data.RTDataEvents Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
Commons lib for both server and client Java/Android SDKs
The newest version!
package com.backendless.rt.data;
import com.backendless.rt.RTEvent;
public enum RTDataEvents implements RTEvent
{
created( "created" ),
bulk_created( "bulk-created" ),
bulk_upserted( "bulk-upserted" ),
updated( "updated" ),
upserted( "upserted" ),
bulk_updated( "bulk-updated" ),
deleted( "deleted" ),
bulk_deleted( "bulk-deleted" ),
relations_added( "relations-added" ),
relations_set( "relations-set" ),
relations_removed( "relations-removed" );
private final String eventName;
RTDataEvents( String eventName )
{
this.eventName = eventName;
}
@Override
public String eventName()
{
return eventName;
}
public static RTDataEvents forName( String eventName )
{
for( RTDataEvents rtDataEvents : RTDataEvents.values() )
{
if( rtDataEvents.eventName().equals( eventName ) )
return rtDataEvents;
}
throw new IllegalArgumentException( "There is no event with name " + eventName );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy